svelteplot 0.0.1-alpha.2 → 0.0.1-alpha.4
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.
- package/dist/marks/Dot.svelte +3 -3
- package/package.json +1 -1
package/dist/marks/Dot.svelte
CHANGED
|
@@ -30,8 +30,8 @@ function isValid(value) {
|
|
|
30
30
|
type="dot"
|
|
31
31
|
{data}
|
|
32
32
|
channels={[
|
|
33
|
-
...(x ? ['x'
|
|
34
|
-
...(y ? ['y'
|
|
33
|
+
...(x ? ['x'] : []),
|
|
34
|
+
...(y ? ['y'] : []),
|
|
35
35
|
...(r ? ['radius'] : []),
|
|
36
36
|
...(symbol ? ['symbol'] : []),
|
|
37
37
|
...(fill || stroke ? ['color']: [])
|
|
@@ -48,7 +48,7 @@ function isValid(value) {
|
|
|
48
48
|
{#each data as datum, i}
|
|
49
49
|
{@const cx = resolveChannel('x', datum, x)}
|
|
50
50
|
{@const cy = resolveChannel('y', datum, y)}
|
|
51
|
-
{@const symbolT = resolveChannel('symbol', datum, symbol)
|
|
51
|
+
{@const symbolT = resolveChannel('symbol', datum, symbol)}
|
|
52
52
|
{@const symbolType = isSymbol(symbolT)
|
|
53
53
|
? maybeSymbol(symbolT)
|
|
54
54
|
: maybeSymbol(plot.symbolScale(symbolT))}
|