MCPcopy
hub / github.com/donmccurdy/glTF-Transform / clear

Method clear

packages/view/src/ImageProvider.ts:84–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 }
83
84 clear(): void {
85 for (const [_, texture] of this._cache) {
86 texture.dispose();
87 }
88 this._cache.clear();
89 }
90
91 dispose(): void {
92 this.clear();

Callers 1

disposeMethod · 0.95

Calls 2

disposeMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected