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>
@@ -3,7 +3,7 @@ import { motionStore } from '../stores/motionStore';
3
3
  export let x1;
4
4
  export let initialX1 = x1;
5
5
  export let y1;
6
- export let initialY1 = x1;
6
+ export let initialY1 = y1;
7
7
  export let x2;
8
8
  export let initialX2 = x2;
9
9
  export let y2;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Sean Lynch <techniq35@gmail.com>",
4
4
  "license": "MIT",
5
5
  "repository": "techniq/layerchart",
6
- "version": "0.22.0",
6
+ "version": "0.22.1",
7
7
  "scripts": {
8
8
  "dev": "vite dev",
9
9
  "build": "vite build",