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

Function cloneScales

docs/app/js/sanddance-app.js:13126–13128  ·  view source on GitHub ↗
(vegaSpec)

Source from the content-addressed store, hash-verified

13124 };
13125}
13126function cloneScales(vegaSpec) {
13127 return SandDance.VegaDeckGl.util.clone(vegaSpec.scales);
13128}
13129function serializeSpec(vegaSpec, datafile, dataRefType, transform, scheme) {
13130 const scales = cloneScales(vegaSpec);
13131 const colorScale = scales.filter((scale)=>scale.name === SandDance.constants.ScaleNames.Color)[0];

Callers 1

serializeSpecFunction · 0.70

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected