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

Function setState

modules/core/src/lib/composite-layer.ts:50–58  ·  view source on GitHub ↗

Updates selected state members and marks the composite layer to need rerender

(updateObject: any)

Source from the content-addressed store, hash-verified

48
49 /** Updates selected state members and marks the composite layer to need rerender */
50 setState(updateObject: any): void {
51 super.setState(updateObject);
52 // Trigger a layer update
53 // Although conceptually layer.draw and compositeLayer.renderLayers are equivalent,
54 // they are executed during different lifecycles.
55 // draw can be called without calling updateState (e.g. most viewport changes),
56 // while renderLayers can only be called during a recursive layer update.
57 this.setNeedsUpdate();
58 }
59
60 /** called to augment the info object that is bubbled up from a sublayer
61 override Layer.getPickingInfo() because decoding / setting uniform do

Callers

nothing calls this directly

Calls 2

setStateMethod · 0.80
setNeedsUpdateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…