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

Method rePresent

packages/vega-deck.gl/src/presenter.ts:239–242  ·  view source on GitHub ↗

* Present the same recently rendered Stage with only slight modifications such as a color change, * using the previous Stage values as a basis. * @param stage Partially populated Stage object containing changes. * @param modifyConfig Optional presentation configuration object.

(stage: Partial<Stage>, modifyConfig?: PresenterConfig)

Source from the content-addressed store, hash-verified

237 * @param modifyConfig Optional presentation configuration object.
238 */
239 rePresent(stage: Partial<Stage>, modifyConfig?: PresenterConfig) {
240 const newStage = { ...this._last.stage, ...stage };
241 this.setDeckProps(newStage, this._last.height, this._last.width, this._last.cubeCount, modifyConfig);
242 }
243
244 private isNewBounds(view: View, height: number, width: number, cubeCount: number) {
245 const lastBounds: IBounds = this.lastBounds();

Callers 2

showGuidesMethod · 0.95
renderSameLayoutMethod · 0.45

Calls 1

setDeckPropsMethod · 0.95

Tested by

no test coverage detected