MCPcopy Create free account
hub / github.com/esengine/esengine / clear

Method clear

packages/fairygui/src/text/DynamicFont.ts:450–457  ·  view source on GitHub ↗

* Clear atlas and reset * 清除图集并重置

()

Source from the content-addressed store, hash-verified

448 * 清除图集并重置
449 */
450 public clear(): void {
451 this._glyphs.clear();
452 this._cursorX = 0;
453 this._cursorY = 0;
454 this._rowHeight = 0;
455 this.initCanvas();
456 this.version++;
457 }
458
459 /**
460 * Dispose resources

Callers

nothing calls this directly

Calls 2

initCanvasMethod · 0.95
clearMethod · 0.65

Tested by

no test coverage detected