layerchart 0.93.1 → 0.93.3
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.
|
@@ -368,13 +368,8 @@
|
|
|
368
368
|
<slot name="bar" {bar}>
|
|
369
369
|
<Bar
|
|
370
370
|
spring={motion}
|
|
371
|
-
x={typeof bar === 'object' ? bar.x : undefined}
|
|
372
|
-
y={typeof bar === 'object' ? bar.y : undefined}
|
|
373
|
-
insets={typeof bar === 'object' ? bar.insets : undefined}
|
|
374
|
-
stroke={typeof bar === 'object' ? bar.stroke : undefined}
|
|
375
|
-
strokeWidth={typeof bar === 'object' ? bar.strokeWidth : undefined}
|
|
376
|
-
radius={typeof bar === 'object' ? bar.radius : undefined}
|
|
377
371
|
bar={highlightData}
|
|
372
|
+
{...typeof bar === 'object' ? bar : null}
|
|
378
373
|
class={cls(
|
|
379
374
|
// @ts-expect-error
|
|
380
375
|
!bar.fill && 'fill-primary',
|
|
@@ -127,10 +127,6 @@
|
|
|
127
127
|
component?.events?.pointermove?.(e);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
if (e.buttons === 1) {
|
|
131
|
-
component?.events?.pointerdown?.(e);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
130
|
lastActiveComponent = component;
|
|
135
131
|
}
|
|
136
132
|
|
|
@@ -282,6 +278,10 @@
|
|
|
282
278
|
const component = getPointerComponent(e);
|
|
283
279
|
component?.events?.dblclick?.(e);
|
|
284
280
|
}}
|
|
281
|
+
on:pointerdown={(e) => {
|
|
282
|
+
const component = getPointerComponent(e);
|
|
283
|
+
component?.events?.pointerdown?.(e);
|
|
284
|
+
}}
|
|
285
285
|
on:pointerenter={onPointerMove}
|
|
286
286
|
on:pointerenter
|
|
287
287
|
on:pointermove={onPointerMove}
|