svelteplot 0.1.3-next.13 → 0.1.3-next.14

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.
@@ -51,8 +51,8 @@
51
51
  required={[]}
52
52
  channels={['x1', 'x2', 'y1', 'y2', 'fill', 'stroke', 'opacity', 'fillOpacity', 'strokeOpacity']}
53
53
  {...args}>
54
- {#snippet children({ mark, usedScales, scaledData })}
55
- <g class="rect">
54
+ {#snippet children({ usedScales, scaledData })}
55
+ <GroupMultiple class={scaledData.length > 1 ? 'rect' : null} length={scaledData.length}>
56
56
  {#each scaledData as d}
57
57
  {#if d.valid}
58
58
  {@const x1 = d.x1 == null ? plot.options.marginLeft : d.x1}
@@ -76,7 +76,7 @@
76
76
 
77
77
  {@const [style, styleClass] = resolveStyles(plot, d, args, 'fill', usedScales)}
78
78
  <rect
79
- class={[styleClass]}
79
+ class={[scaledData.length === 1 && 'rect', styleClass]}
80
80
  {style}
81
81
  x={minx + insetL}
82
82
  y={miny + insetT}
@@ -91,7 +91,7 @@
91
91
  }} />
92
92
  {/if}
93
93
  {/each}
94
- </g>
94
+ </GroupMultiple>
95
95
  {/snippet}
96
96
  </Mark>
97
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteplot",
3
- "version": "0.1.3-next.13",
3
+ "version": "0.1.3-next.14",
4
4
  "license": "ISC",
5
5
  "author": {
6
6
  "name": "Gregor Aisch",