MCPcopy
hub / github.com/microsoft/SandDance / shouldViewstateTransition

Method shouldViewstateTransition

packages/sanddance/src/viewer.ts:452–459  ·  view source on GitHub ↗
(newInsight: Insight, oldInsight: Insight)

Source from the content-addressed store, hash-verified

450 }
451
452 private shouldViewstateTransition(newInsight: Insight, oldInsight: Insight) {
453 if (!oldInsight.columns) return false;
454 if (oldInsight.chart !== newInsight.chart) return true;
455 if (oldInsight.size.height !== newInsight.size.height) return true;
456 if (oldInsight.size.width !== newInsight.size.width) return true;
457 if (oldInsight.columns.facet !== newInsight.columns.facet) return true;
458 return false;
459 }
460
461 private configForSignalCapture(presenterConfig: VegaDeckGl.types.PresenterConfig) {
462 const colorContext = {

Callers 2

_renderMethod · 0.95
setDeckPropsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected