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

Method waveLoadingResizeEvent

src/wave-loading.ts:261–268  ·  view source on GitHub ↗

* 窗口尺寸调整事件

()

Source from the content-addressed store, hash-verified

259 * 窗口尺寸调整事件
260 */
261 protected waveLoadingResizeEvent(): void {
262 this.onResize(() => {
263 this.halfCH = this.canvasHeight / 2
264 if (this.progress === 100) {
265 this.draw()
266 }
267 })
268 }
269
270 /**
271 * 方法:动态设置属性值

Callers 1

initMethod · 0.95

Calls 1

drawMethod · 0.95

Tested by

no test coverage detected