MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getDefaultStyle

Function getDefaultStyle

src/ui-react-dom-charts/common/svg.ts:77–78  ·  view source on GitHub ↗
(fontSize: number)

Source from the content-addressed store, hash-verified

75};
76
77const getDefaultStyle = (fontSize: number): Style =>
78 arrayMap(DEFAULT_STYLE, (value) => value * fontSize) as unknown as Style;
79
80const getStyle = (style: CSSStyleDeclaration | undefined): Style => {
81 const fontSize = parseFloat(style?.fontSize ?? EMPTY_STRING);

Callers 2

useLayoutFunction · 0.70
getStyleFunction · 0.70

Calls 1

arrayMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…