Browse Source

handle non-existing `this.overlay` case

pull/1/head
rozetko 2 years ago
parent
commit
f7a5ccfff9
  1. 2
      src/index.ts

2
src/index.ts

@ -113,7 +113,7 @@ export class ChartwerkBarPod extends ChartwerkPod<BarSerie, BarOptions> {
}
redirectEventToOverlay(): void {
this.overlay.node().dispatchEvent(new MouseEvent(d3.event.type, d3.event));
this.overlay?.node().dispatchEvent(new MouseEvent(d3.event.type, d3.event));
}
getTrianglePath(x: number, y: number, length: number, options?: { max: number, min: number }): string {

Loading…
Cancel
Save