svelteplot 0.4.3-pr-199.0 → 0.4.3-pr-199.2

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 CHANGED
@@ -265,7 +265,7 @@
265
265
  ? scale === 'x'
266
266
  ? projectX(origChannel as 'x' | 'x1' | 'x2', plot.scales, value)
267
267
  : scale === 'y'
268
- ? projectY(origChannel as 'y' | 'y1' | 'y1', plot.scales, value)
268
+ ? projectY(origChannel as 'y' | 'y1' | 'y2', plot.scales, value)
269
269
  : scale === 'color' && !isValid(value)
270
270
  ? plot.options.color.unknown
271
271
  : plot.scales[scale].fn(value)
@@ -236,7 +236,7 @@ export function inferScaleType(name, dataValues, markTypes) {
236
236
  if (name === 'symbol')
237
237
  return 'ordinal';
238
238
  // for positional scales, try to pick a scale that's required by the mark types
239
- if ((name === 'x' || name === 'y') && markTypes.size === 1) {
239
+ if (name === 'x' || name === 'y') {
240
240
  if (name === 'y' &&
241
241
  (markTypes.has('barX') || markTypes.has('tickX') || markTypes.has('cell')))
242
242
  return 'band';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteplot",
3
- "version": "0.4.3-pr-199.0",
3
+ "version": "0.4.3-pr-199.2",
4
4
  "license": "ISC",
5
5
  "author": {
6
6
  "name": "Gregor Aisch",