({ props , oldProps , changeFlags })
| 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, |
no test coverage detected