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

Method ownResizeEvent

src/particle.ts:461–470  ·  view source on GitHub ↗

* 窗口尺寸调整事件

()

Source from the content-addressed store, hash-verified

459 * 窗口尺寸调整事件
460 */
461 private ownResizeEvent(): void {
462 this.onResize((scaleX, scaleY) => {
463 if (this.options.range > 0) {
464 this.positionX! *= scaleX
465 this.positionY! *= scaleY
466 this.mouseX *= scaleX
467 this.mouseY *= scaleY
468 }
469 })
470 }
471}

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected