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

Function cloneTextData

packages/sanddance/src/axes.ts:21–25  ·  view source on GitHub ↗
(textData: VegaDeckGl.types.VegaTextLayerDatum[], color: VegaDeckGl.RGBAColor)

Source from the content-addressed store, hash-verified

19}
20
21function cloneTextData(textData: VegaDeckGl.types.VegaTextLayerDatum[], color: VegaDeckGl.RGBAColor) {
22 return textData.map(t => {
23 return { ...t, color };
24 });
25}
26
27export function recolorAxes(stage: VegaDeckGl.types.Stage, oldColors: SpecColorSettings, newColors: SpecColorSettings): Partial<VegaDeckGl.types.Stage> {
28 const hasNewLineColor = newColors.axisLine && newColors.axisLine !== oldColors.axisLine;

Callers 1

recolorAxesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected