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

Function newLineLayer

docs/app/js/sanddance-app.js:7469–7478  ·  view source on GitHub ↗
(id, data)

Source from the content-addressed store, hash-verified

7467 return new (0, _cubeLayer.CubeLayer)(cubeLayerProps);
7468}
7469function newLineLayer(id, data) {
7470 return new (0, _base.base).layers.LineLayer({
7471 id,
7472 data,
7473 widthUnits: "pixels",
7474 coordinateSystem: (0, _base.base).deck.COORDINATE_SYSTEM.CARTESIAN,
7475 getColor: (o)=>o.color,
7476 getWidth: (o)=>o.strokeWidth
7477 });
7478}
7479function newPathLayer(id, data) {
7480 if (!data) return null;
7481 return new (0, _base.base).layers.PathLayer({

Callers 1

getLayersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected