in powerbi-visual-builder/src_visual/visual.ts [645:663]
public update(options: VisualUpdateOptions) {
if (options.type & (VisualUpdateType.Data | VisualUpdateType.Style)) {
// If data or properties changed, re-generate the visual
this.properties = this.getProperties(options);
runAfterInitialized(() => this.updateRun(options));
} else if (
options.type &
(VisualUpdateType.Resize | VisualUpdateType.ResizeEnd)
) {
// If only size changed, just run resize
if (this.chartContainer) {
this.resize(options.viewport.width, options.viewport.height);
this.chartContainer.resize(
options.viewport.width,
options.viewport.height
);
}
}
}