MCPcopy
hub / github.com/microsoft/SandDance / newLineLayer

Function newLineLayer

packages/vega-deck.gl/src/layers.ts:100–109  ·  view source on GitHub ↗
(id: string, data: StyledLine[])

Source from the content-addressed store, hash-verified

98}
99
100function newLineLayer(id: string, data: StyledLine[]) {
101 return new base.layers.LineLayer({
102 id,
103 data,
104 widthUnits: 'pixels',
105 coordinateSystem: base.deck.COORDINATE_SYSTEM.CARTESIAN,
106 getColor: (o: StyledLine) => o.color,
107 getWidth: (o: StyledLine) => o.strokeWidth,
108 });
109}
110
111
112function newPathLayer(id: string, data: Path[]) {

Callers 1

getLayersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected