|
|
@ -194,8 +194,17 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
this.updateSeries(series); |
|
|
|
this.updateSeries(series); |
|
|
|
this.updateOptions(options); |
|
|
|
this.updateOptions(options); |
|
|
|
if(shouldRerender) { |
|
|
|
if(shouldRerender) { |
|
|
|
this.render(); |
|
|
|
this.forceRerender(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public forceRerender(): void { |
|
|
|
|
|
|
|
// TODO: it is a hack. It is not nessesary to recreate svg.
|
|
|
|
|
|
|
|
// the only purpose for this action, to clear d3.zoom.transform (see https://gitlab.com/chartwerk/core/-/issues/10)
|
|
|
|
|
|
|
|
this.createSvg(); |
|
|
|
|
|
|
|
this.initPodState(); |
|
|
|
|
|
|
|
this.initComponents(); |
|
|
|
|
|
|
|
this.render(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected updateOptions(newOptions: O): void { |
|
|
|
protected updateOptions(newOptions: O): void { |
|
|
|