layerchart 0.91.0 → 0.91.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
/** Enable debug view (show hit targets, etc) */
|
|
112
112
|
export let debug = false;
|
|
113
113
|
|
|
114
|
-
export let onclick: ({ data }: { data: any }) => any = () => {};
|
|
114
|
+
export let onclick: (e: MouseEvent, { data }: { data: any }) => any = () => {};
|
|
115
115
|
|
|
116
116
|
/** Exposed to allow binding in Chart */
|
|
117
117
|
export let tooltip = writable({
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
on:pointerleave={triggerPointerEvents ? hideTooltip : undefined}
|
|
407
407
|
on:click={(e) => {
|
|
408
408
|
if (triggerPointerEvents) {
|
|
409
|
-
onclick({ data: $tooltip?.data });
|
|
409
|
+
onclick(e, { data: $tooltip?.data });
|
|
410
410
|
}
|
|
411
411
|
}}
|
|
412
412
|
>
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
}
|
|
439
439
|
}}
|
|
440
440
|
onclick={(e, { data }) => {
|
|
441
|
-
onclick({ data });
|
|
441
|
+
onclick(e, { data });
|
|
442
442
|
}}
|
|
443
443
|
classes={{ path: cls(debug && 'fill-danger/10 stroke-danger') }}
|
|
444
444
|
/>
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
}
|
|
465
465
|
}}
|
|
466
466
|
on:click={(e) => {
|
|
467
|
-
onclick({ data: rect.data });
|
|
467
|
+
onclick(e, { data: rect.data });
|
|
468
468
|
}}
|
|
469
469
|
/>
|
|
470
470
|
{/each}
|
|
@@ -26,7 +26,7 @@ declare const __propDef: {
|
|
|
26
26
|
* @type {number}
|
|
27
27
|
*/ radius?: number;
|
|
28
28
|
/** Enable debug view (show hit targets, etc) */ debug?: boolean;
|
|
29
|
-
onclick?: ({ data }: {
|
|
29
|
+
onclick?: (e: MouseEvent, { data }: {
|
|
30
30
|
data: any;
|
|
31
31
|
}) => any;
|
|
32
32
|
/** Exposed to allow binding in Chart */ tooltip?: import("svelte/store").Writable<{
|