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

Function addScaleProj

docs/app/js/sanddance-app.js:149695–149698  ·  view source on GitHub ↗
(name, transform1)

Source from the content-addressed store, hash-verified

149693 },
149694 // ----
149695 addScaleProj (name, transform1) {
149696 if ((0, _vegaUtil.hasOwnProperty)(this.scales, name)) (0, _vegaUtil.error)("Duplicate scale or projection name: " + (0, _vegaUtil.stringValue)(name));
149697 this.scales[name] = this.add(transform1);
149698 },
149699 addScale (name, params) {
149700 this.addScaleProj(name, Scale(params));
149701 },

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected