Browse Source

fix resize

merge-requests/16/head
vargburz 3 years ago
parent
commit
aa4399712e
  1. 2
      dist/index.js
  2. 3
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

3
src/index.ts

@ -137,7 +137,8 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
protected options: O;
protected readonly d3: typeof d3;
protected deltaYTransform = 0;
protected debouncedRender = debounce(this.render.bind(this), 100);
// TODO: forceRerender is a hack, it will be remove someday. But we need to update state on resize
protected debouncedRender = debounce(this.forceRerender.bind(this), 100);
// containers
// TODO: add better names
protected chartContainer: d3.Selection<SVGGElement, unknown, null, undefined>;

Loading…
Cancel
Save