svelteplot 0.1.3-next.3 → 0.1.3-next.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/Mark.svelte +5 -7
- package/package.json +1 -1
package/dist/Mark.svelte
CHANGED
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
const dx = Number(resolveProp<number>(options.dx, out.datum, 0));
|
|
204
204
|
const dy = Number(resolveProp<number>(options.dy, out.datum, 0));
|
|
205
205
|
|
|
206
|
-
// special handling if there's a projection
|
|
206
|
+
// special handling if there's a projection, e.g. a line mark
|
|
207
207
|
if (plot.scales.projection && mark.type !== 'geo') {
|
|
208
208
|
for (const suffix of ['', '1', '2']) {
|
|
209
209
|
if (
|
|
@@ -212,22 +212,20 @@
|
|
|
212
212
|
) {
|
|
213
213
|
// we have two-dimensional accessors
|
|
214
214
|
// for the x and y channels
|
|
215
|
-
const rx = resolveChannel(`x${suffix}`, row, options);
|
|
216
|
-
const ry = resolveChannel(`y${suffix}`, row, options);
|
|
217
215
|
const [x, y] =
|
|
218
216
|
mark.type === 'line'
|
|
219
|
-
? [
|
|
217
|
+
? [row.x, row.y] // line paths are projected later
|
|
220
218
|
: projectXY(
|
|
221
219
|
plot.scales,
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
row.x,
|
|
221
|
+
row.y,
|
|
224
222
|
usedScales.x,
|
|
225
223
|
usedScales.y,
|
|
226
224
|
suffix
|
|
227
225
|
);
|
|
228
226
|
out[`x${suffix}`] = x;
|
|
229
227
|
out[`y${suffix}`] = y;
|
|
230
|
-
out.valid = out.valid && isValid(
|
|
228
|
+
out.valid = out.valid && isValid(row.x) && isValid(row.y);
|
|
231
229
|
}
|
|
232
230
|
}
|
|
233
231
|
}
|