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

Function cloneTextData

docs/app/js/sanddance-app.js:10078–10084  ·  view source on GitHub ↗
(textData, color)

Source from the content-addressed store, hash-verified

10076 });
10077}
10078function cloneTextData(textData, color) {
10079 return textData.map((t)=>{
10080 return Object.assign(Object.assign({}, t), {
10081 color
10082 });
10083 });
10084}
10085function recolorAxes(stage, oldColors, newColors) {
10086 const hasNewLineColor = newColors.axisLine && newColors.axisLine !== oldColors.axisLine;
10087 const hasNewTextColor = newColors.axisText && newColors.axisText !== oldColors.axisText;

Callers 1

recolorAxesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected