MCPcopy
hub / github.com/OpenWebGAL/WebGAL / settleText

Function settleText

packages/webgal/src/Stage/TextBox/IMSSTextbox.tsx:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39 useEffect(() => {
40 function settleText() {
41 const textElements = document.querySelectorAll('.Textelement_start');
42 const textArray = [...textElements];
43 textArray.forEach((e) => {
44 e.className = applyStyle('TextBox_textElement_Settled', styles.TextBox_textElement_Settled);
45 });
46 }
47
48 WebGAL.events.textSettle.on(settleText);
49 return () => {

Callers

nothing calls this directly

Calls 1

applyStyleFunction · 0.50

Tested by

no test coverage detected