Browse Source

Merge branch 'fix-resize' into 'main'

Fir broken rerender on resize

See merge request chartwerk/core!16
merge-requests/17/merge
Alexander Velikiy 3 years ago
parent
commit
4bb786382e
  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