functionsFunction: clampOn this pageFunction: clamp utils.clamp ▸ clamp(val, min, max): number 将值限定在最大最小值中间 Parameters NameTypeDescriptionvalnumber当前值minnumber最小值maxnumber最大值 Returns number Defined in src/utils/math.ts:28