layerchart 0.7.1 → 0.7.2
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.
|
@@ -318,6 +318,9 @@ $: if (mode === 'bounds' || mode === 'band') {
|
|
|
318
318
|
style:stroke={debug ? 'red' : 'transparent'}
|
|
319
319
|
on:mousemove={(e) => handleTooltip(e, point.data)}
|
|
320
320
|
on:mouseleave={hideTooltip}
|
|
321
|
+
on:click={(e) => {
|
|
322
|
+
dispatch('click', { data: point.data });
|
|
323
|
+
}}
|
|
321
324
|
/>
|
|
322
325
|
</g>
|
|
323
326
|
{/each}
|
|
@@ -336,6 +339,9 @@ $: if (mode === 'bounds' || mode === 'band') {
|
|
|
336
339
|
style:stroke={debug ? 'red' : 'transparent'}
|
|
337
340
|
on:mousemove={(e) => handleTooltip(e, rect.data)}
|
|
338
341
|
on:mouseleave={hideTooltip}
|
|
342
|
+
on:click={(e) => {
|
|
343
|
+
dispatch('click', { data: rect.data });
|
|
344
|
+
}}
|
|
339
345
|
/>
|
|
340
346
|
{/each}
|
|
341
347
|
</g>
|
package/package.json
CHANGED