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

Method mainDrawing

src/wave-loading.ts:151–163  ·  view source on GitHub ↗

* 绘制图案

()

Source from the content-addressed store, hash-verified

149 * 绘制图案
150 */
151 private mainDrawing() {
152 this.eventEmitter.trigger(EVENT_NAMES_WAVE_LOADING.PROGRESS, this.progress)
153 this.calcOffsetTop()
154 this.clearCanvasAndSetGlobalAttrs()
155
156 // 调用 Wave 方法
157 this.renderMaskMode(() => {
158 this.drawWaves()
159 })
160
161 // 调用 WaveLoading 方法
162 this.drawText()
163 }
164
165 /**
166 * 绘制进度文本

Callers 1

drawMethod · 0.95

Calls 4

calcOffsetTopMethod · 0.95
drawTextMethod · 0.95
triggerMethod · 0.80
drawWavesMethod · 0.80

Tested by

no test coverage detected