public update()

in src/visual.ts [276:302]


    public update(options: VisualUpdateOptions): void {
        if (!options.dataViews || !options.dataViews[0]) {
            return;
        }
        try {
            this.host.eventService.renderingStarted(options);


            this.settings = TableHeatMap.parseSettings(options.dataViews[0], this.colorHelper);

            this.svg.selectAll(TableHeatMap.ClsAll).remove();
            this.div.attr("widtht", PixelConverter.toString(options.viewport.width + this.margin.left));
            this.div.style("height", PixelConverter.toString(options.viewport.height + this.margin.left));

            this.svg.attr("width", options.viewport.width);
            this.svg.attr("height", options.viewport.height);

            this.mainGraphics = this.svg.append(TableHeatMap.HtmlObjG);

            this.setSize(options.viewport);

            this.updateInternal(options, this.settings);
        } catch (ex) {
            this.host.eventService.renderingFailed(options, JSON.stringify(ex));
        }
        this.host.eventService.renderingFinished(options);
    }