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

Function newPathLayer

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

Source from the content-addressed store, hash-verified

7477 });
7478}
7479function newPathLayer(id, data) {
7480 if (!data) return null;
7481 return new (0, _base.base).layers.PathLayer({
7482 id,
7483 data,
7484 billboard: true,
7485 widthScale: 1,
7486 widthMinPixels: 2,
7487 widthUnits: "pixels",
7488 coordinateSystem: (0, _base.base).deck.COORDINATE_SYSTEM.CARTESIAN,
7489 getPath: (o)=>o.positions,
7490 getColor: (o)=>o.strokeColor,
7491 getWidth: (o)=>o.strokeWidth
7492 });
7493}
7494function newPolygonLayer(id, data) {
7495 if (!data) return null;
7496 let newlayer = new (0, _base.base).layers.PolygonLayer({

Callers 1

getLayersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected