Browse Source

code style fix

merge-requests/19/head
dv4mp1r3 2 years ago
parent
commit
bbfea95deb
  1. 7
      src/index.ts

7
src/index.ts

@ -448,9 +448,8 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
this.crosshair.style('display', 'none');
}
isDoubleClickActive(): boolean
{
if (this.options.zoomEvents.mouse['doubleClick'] === undefined) {
isDoubleClickActive(): boolean {
if(this.options.zoomEvents.mouse.doubleClick === undefined) {
return false;
}
return this.options.zoomEvents.mouse.doubleClick.isActive;
@ -462,7 +461,7 @@ export class LinePod extends ChartwerkPod<LineTimeSerie, LineOptions> {
if(this.isOutOfChart() === true) {
return;
}
if (this.d3.event.type === 'dblclick' && !this.isDoubleClickActive()) {
if(this.d3.event.type === 'dblclick' && !this.isDoubleClickActive()) {
return;
}
// TODO: its not clear, why we use this orientation here. Mb its better to use separate option

Loading…
Cancel
Save