MCPcopy Index your code
hub / github.com/microsoft/SandDance / updateState

Method updateState

docs/app/js/sanddance-app.js:7731–7746  ·  view source on GitHub ↗
({ props , oldProps , changeFlags  })

Source from the content-addressed store, hash-verified

7729 });
7730 }
7731 updateState({ props , oldProps , changeFlags }) {
7732 super.updateState({
7733 props,
7734 oldProps,
7735 changeFlags
7736 }); //TODO add parameter type to deck.gl-typings
7737 // Re-generate model if geometry changed
7738 //if (props.fp64 !== oldProps.fp64) {
7739 const { gl } = this.context;
7740 if (this.state.model) this.state.model.delete();
7741 this.setState({
7742 model: this._getModel(gl)
7743 });
7744 this.getAttributeManager().invalidateAll();
7745 //}
7746 }
7747 _getModel(gl) {
7748 return new (0, _base.base).luma.Model(gl, Object.assign({}, this.getShaders(), {
7749 id: this.props.id,

Callers 1

sanddance-app.jsFile · 0.45

Calls 2

_getModelMethod · 0.95
deleteMethod · 0.45

Tested by

no test coverage detected