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

Method addText

packages/sanddance/src/characterSet.ts:18–20  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

16 if (!this.chars) {
17 const map: { [char: string]: true } = {};
18 const addText = (text: string) => {
19 Array.from(text).forEach(char => { map[char] = true; });
20 };
21 stage.textData.forEach(t => addText(t.text));
22 const { x, y, z } = stage.axes;
23 [x, y, z].forEach(axes => {

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected