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

Function customSymbol

docs/app/js/sanddance-app.js:121650–121660  ·  view source on GitHub ↗
(path3)

Source from the content-addressed store, hash-verified

121648}
121649var custom = {};
121650function customSymbol(path3) {
121651 if (!(0, _vegaUtil.hasOwnProperty)(custom, path3)) {
121652 const parsed = pathParse(path3);
121653 custom[path3] = {
121654 draw: function(context15, size) {
121655 pathRender(context15, parsed, 0, 0, Math.sqrt(size) / 2);
121656 }
121657 };
121658 }
121659 return custom[path3];
121660}
121661const C = 0.448084975506; // C = 1 - c
121662function rectangleX(d) {
121663 return d.x;

Callers 1

symbolsFunction · 0.70

Calls 2

pathParseFunction · 0.70
pathRenderFunction · 0.70

Tested by

no test coverage detected