in src/visualComponent/rootComponent.ts [118:146]
public render(options: IVisualComponentRenderOptions) {
const previousViewportSize: ViewportSize = this.renderOptions
&& this.renderOptions.data
&& this.renderOptions.data.viewportSize;
this.renderOptions = options;
if (options
&& options.data
&& options.data.series
&& options.data.series.length
) {
this.show();
this.renderComponent(options);
} else {
this.hide();
}
this.updateFontSizeAccordingToViewportSize(
options.data.viewportSize,
previousViewportSize,
);
if (this.isExecutedInPhantomJs()) {
this.turnOnPrintMode();
} else {
this.turnOffPrintMode();
}
}