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

Method setOffsetTop

src/wave-loading.ts:114–123  ·  view source on GitHub ↗

* 设置 offsetTop 值 * @param top 高度值

(top: number)

Source from the content-addressed store, hash-verified

112 * @param top 高度值
113 */
114 private setOffsetTop(top: number): void {
115 const { offsetTop } = this.options
116 if (Array.isArray(offsetTop)) {
117 offsetTop.forEach((_item, i, arr) => {
118 arr[i] = top
119 })
120 } else {
121 this.options.offsetTop = top
122 }
123 }
124
125 /**
126 * 设置画布 CSS 样式

Callers 2

initMethod · 0.95
calcOffsetTopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected