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

Method init

src/wave-loading.ts:93–108  ·  view source on GitHub ↗

* 初始化数据和运行程序

()

Source from the content-addressed store, hash-verified

91 * 初始化数据和运行程序
92 */
93 protected init(): void {
94 this.halfCH = this.canvasHeight / 2
95
96 // WaveLoading methods
97 this.setOffsetTop(this.canvasHeight)
98 this.setCanvasStyle()
99
100 // Wave methods
101 this.ownResizeEvent()
102 this.optionsNormalize()
103 this.loadMaskImage()
104 this.createDots()
105
106 // WaveLoading resize 事件需要放到 Wave 的后面
107 this.waveLoadingResizeEvent()
108 }
109
110 /**
111 * 设置 offsetTop 值

Callers

nothing calls this directly

Calls 6

setOffsetTopMethod · 0.95
setCanvasStyleMethod · 0.95
ownResizeEventMethod · 0.45
optionsNormalizeMethod · 0.45
createDotsMethod · 0.45

Tested by

no test coverage detected