MCPcopy Create free account
hub / github.com/Barrior/JParticles / getOptionProcessedValue

Method getOptionProcessedValue

src/wave.ts:170–183  ·  view source on GitHub ↗

* 获取配置项计算数值 * @param property 属性 * @param value 原始值 * @param range 范围值

(
    property: ValueOf<typeof stdProperties>,
    value: StrNumBool,
    range: number
  )

Source from the content-addressed store, hash-verified

168 * @param range 范围值
169 */
170 protected static getOptionProcessedValue(
171 property: ValueOf<typeof stdProperties>,
172 value: StrNumBool,
173 range: number
174 ): StrNumBool {
175 if (
176 property === 'offsetTop' ||
177 property === 'offsetLeft' ||
178 property === 'crestHeight'
179 ) {
180 return calcQuantity(value as number, range)
181 }
182 return value
183 }
184
185 /**
186 * 创建波浪线条像素点

Callers 2

optionsNormalizeMethod · 0.80
updateComplexOptionsMethod · 0.80

Calls 1

calcQuantityFunction · 0.90

Tested by

no test coverage detected