MCPcopy
hub / github.com/visgl/deck.gl / draw

Method draw

modules/layers/src/path-layer/path-layer.ts:292–317  ·  view source on GitHub ↗
({uniforms})

Source from the content-addressed store, hash-verified

290 }
291
292 draw({uniforms}) {
293 const {
294 jointRounded,
295 capRounded,
296 billboard,
297 miterLimit,
298 widthUnits,
299 widthScale,
300 widthMinPixels,
301 widthMaxPixels
302 } = this.props;
303
304 const model = this.state.model!;
305 const pathProps: PathProps = {
306 jointType: Number(jointRounded),
307 capType: Number(capRounded),
308 billboard,
309 widthUnits: UNIT[widthUnits],
310 widthScale,
311 miterLimit,
312 widthMinPixels,
313 widthMaxPixels
314 };
315 model.shaderInputs.setProps({path: pathProps});
316 model.draw(this.context.renderPass);
317 }
318
319 protected _getModel(): Model {
320 /*

Callers

nothing calls this directly

Calls 2

setPropsMethod · 0.65
drawMethod · 0.65

Tested by

no test coverage detected