layerchart 0.79.3 → 0.79.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.
@@ -223,8 +223,8 @@
223
223
  }
224
224
 
225
225
  // TODO: Use objectId to work around Svelte 4 reactivity issue (even when memoizing gradients)
226
- $: fillKey = typeof fill === 'object' ? objectId(fill) : fill;
227
- $: strokeKey = typeof stroke === 'object' ? objectId(stroke) : stroke;
226
+ $: fillKey = fill && typeof fill === 'object' ? objectId(fill) : fill;
227
+ $: strokeKey = stroke && typeof stroke === 'object' ? objectId(stroke) : stroke;
228
228
 
229
229
  $: if (renderContext === 'canvas') {
230
230
  // Redraw when props change
@@ -148,8 +148,8 @@
148
148
  }
149
149
 
150
150
  // TODO: Use objectId to work around Svelte 4 reactivity issue (even when memoizing gradients)
151
- $: fillKey = typeof fill === 'object' ? objectId(fill) : fill;
152
- $: strokeKey = typeof stroke === 'object' ? objectId(stroke) : stroke;
151
+ $: fillKey = fill && typeof fill === 'object' ? objectId(fill) : fill;
152
+ $: strokeKey = stroke && typeof stroke === 'object' ? objectId(stroke) : stroke;
153
153
 
154
154
  $: if (renderContext === 'canvas') {
155
155
  // Redraw when props change
@@ -91,8 +91,8 @@
91
91
  }
92
92
 
93
93
  // TODO: Use objectId to work around Svelte 4 reactivity issue (even when memoizing gradients)
94
- $: fillKey = typeof fill === 'object' ? objectId(fill) : fill;
95
- $: strokeKey = typeof stroke === 'object' ? objectId(stroke) : stroke;
94
+ $: fillKey = fill && typeof fill === 'object' ? objectId(fill) : fill;
95
+ $: strokeKey = stroke && typeof stroke === 'object' ? objectId(stroke) : stroke;
96
96
 
97
97
  $: if (renderContext === 'canvas') {
98
98
  // Redraw when geojson, projection, or class change
@@ -70,8 +70,8 @@
70
70
  }
71
71
 
72
72
  // TODO: Use objectId to work around Svelte 4 reactivity issue (even when memoizing gradients)
73
- $: fillKey = typeof fill === 'object' ? objectId(fill) : fill;
74
- $: strokeKey = typeof stroke === 'object' ? objectId(stroke) : stroke;
73
+ $: fillKey = fill && typeof fill === 'object' ? objectId(fill) : fill;
74
+ $: strokeKey = stroke && typeof stroke === 'object' ? objectId(stroke) : stroke;
75
75
 
76
76
  $: if (renderContext === 'canvas') {
77
77
  // Redraw when props change
@@ -62,8 +62,8 @@
62
62
  }
63
63
 
64
64
  // TODO: Use objectId to work around Svelte 4 reactivity issue (even when memoizing gradients)
65
- $: fillKey = typeof fill === 'object' ? objectId(fill) : fill;
66
- $: strokeKey = typeof stroke === 'object' ? objectId(stroke) : stroke;
65
+ $: fillKey = fill && typeof fill === 'object' ? objectId(fill) : fill;
66
+ $: strokeKey = stroke && typeof stroke === 'object' ? objectId(stroke) : stroke;
67
67
 
68
68
  $: if (renderContext === 'canvas') {
69
69
  // Redraw when props change
@@ -175,8 +175,8 @@
175
175
  }
176
176
 
177
177
  // TODO: Use objectId to work around Svelte 4 reactivity issue (even when memoizing gradients)
178
- $: fillKey = typeof fill === 'object' ? objectId(fill) : fill;
179
- $: strokeKey = typeof stroke === 'object' ? objectId(stroke) : stroke;
178
+ $: fillKey = fill && typeof fill === 'object' ? objectId(fill) : fill;
179
+ $: strokeKey = stroke && typeof stroke === 'object' ? objectId(stroke) : stroke;
180
180
 
181
181
  $: if (renderContext === 'canvas') {
182
182
  // Redraw when props change
@@ -203,8 +203,8 @@
203
203
  }
204
204
 
205
205
  // TODO: Use objectId to work around Svelte 4 reactivity issue (even when memoizing gradients)
206
- $: fillKey = typeof fill === 'object' ? objectId(fill) : fill;
207
- $: strokeKey = typeof stroke === 'object' ? objectId(stroke) : stroke;
206
+ $: fillKey = fill && typeof fill === 'object' ? objectId(fill) : fill;
207
+ $: strokeKey = stroke && typeof stroke === 'object' ? objectId(stroke) : stroke;
208
208
 
209
209
  $: if (renderContext === 'canvas') {
210
210
  // Redraw when props change
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Sean Lynch <techniq35@gmail.com>",
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
- "version": "0.79.3",
7
+ "version": "0.79.4",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.27.12",
10
10
  "@mdi/js": "^7.4.47",