MCPcopy Create free account
hub / github.com/microsoft/SandDance / resetCharacterSet

Method resetCharacterSet

packages/sanddance/src/characterSet.ts:9–13  ·  view source on GitHub ↗
(forceNewCharacterSet: boolean, oldInsight?: Insight, newInsight?: Insight)

Source from the content-addressed store, hash-verified

7 private chars: string[];
8
9 public resetCharacterSet(forceNewCharacterSet: boolean, oldInsight?: Insight, newInsight?: Insight) {
10 if (forceNewCharacterSet || needsNewCharacterSet(oldInsight, newInsight)) {
11 this.chars = undefined;
12 }
13 }
14
15 public getCharacterSet(stage: types.Stage) {
16 if (!this.chars) {

Callers 2

handlerMethod · 0.45
_renderMethod · 0.45

Calls 1

needsNewCharacterSetFunction · 0.70

Tested by

no test coverage detected