Browse Source

remove limits of zoomin

merge-requests/17/merge
vargburz 3 years ago
parent
commit
2c15498ed0
  1. 2
      dist/index.js
  2. 4
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

4
src/index.ts

@ -827,6 +827,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
const extent = this.d3.event.selection;
this.isBrushing === false;
if(extent === undefined || extent === null || extent.length < 2) {
console.warn('Chartwerk Core: skip brush end (no extent)');
return;
}
this.chartContainer
@ -838,9 +839,6 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
case BrushOrientation.HORIZONTAL:
const startTimestamp = this.xScale.invert(extent[0]);
const endTimestamp = this.xScale.invert(extent[1]);
if(Math.abs(endTimestamp - startTimestamp) < this.timeInterval) {
return;
}
xRange = [startTimestamp, endTimestamp];
this.state.xValueRange = xRange;
break;

Loading…
Cancel
Save