layerchart 0.22.0 → 0.22.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.
|
@@ -163,9 +163,9 @@ $: if ($tooltip.data) {
|
|
|
163
163
|
<Rect
|
|
164
164
|
spring
|
|
165
165
|
{..._area}
|
|
166
|
-
fill="rgba(0,0,0,.1)"
|
|
167
|
-
on:click
|
|
168
166
|
{...typeof area === 'object' ? area : null}
|
|
167
|
+
class={cls(!area.fill && 'fill-black/10', typeof area === 'object' ? area.class : null)}
|
|
168
|
+
on:click
|
|
169
169
|
/>
|
|
170
170
|
</slot>
|
|
171
171
|
{/if}
|
|
@@ -179,8 +179,11 @@ $: if ($tooltip.data) {
|
|
|
179
179
|
y1={line.y1}
|
|
180
180
|
x2={line.x2}
|
|
181
181
|
y2={line.y2}
|
|
182
|
-
class="stroke-black/50 stroke-2 [stroke-dasharray:2,2] pointer-events-none"
|
|
183
182
|
{...typeof lines === 'object' ? lines : null}
|
|
183
|
+
class={cls(
|
|
184
|
+
'stroke-black/20 stroke-2 [stroke-dasharray:2,2] pointer-events-none',
|
|
185
|
+
typeof lines === 'object' ? lines.class : null
|
|
186
|
+
)}
|
|
184
187
|
/>
|
|
185
188
|
{/each}
|
|
186
189
|
</slot>
|
|
@@ -197,11 +200,12 @@ $: if ($tooltip.data) {
|
|
|
197
200
|
cy={point.y}
|
|
198
201
|
r={4}
|
|
199
202
|
{fill}
|
|
203
|
+
{...typeof points === 'object' ? points : null}
|
|
200
204
|
class={cls(
|
|
201
205
|
'stroke-[6] stroke-white [paint-order:stroke] drop-shadow',
|
|
202
|
-
!fill && 'fill-accent-500'
|
|
206
|
+
!fill && 'fill-accent-500',
|
|
207
|
+
typeof points === 'object' ? points.class : null
|
|
203
208
|
)}
|
|
204
|
-
{...typeof points === 'object' ? points : null}
|
|
205
209
|
/>
|
|
206
210
|
{/each}
|
|
207
211
|
</slot>
|