MCPcopy
hub / github.com/rikschennink/fitty / applyStyle

Function applyStyle

src/fitty.js:140–144  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

138
139 // apply styles to single fitty
140 const applyStyle = (f) => {
141 f.element.style.whiteSpace = f.whiteSpace;
142 f.element.style.display = f.display;
143 f.element.style.fontSize = f.currentFontSize + 'px';
144 };
145
146 // dispatch a fit event on a fitty
147 const dispatchFitEvent = (f) => {

Callers 1

redrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…