svelteplot 0.0.1-alpha.24 → 0.0.1-alpha.25

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/Plot.svelte CHANGED
@@ -74,7 +74,13 @@ const onMouseMove = (evt) => {
74
74
  let hasLegend = $derived(color?.legend || symbol?.legend);
75
75
  </script>
76
76
 
77
- <figure data-testid={testid} class="svelteplot" bind:clientWidth={width} style:max-width={maxWidth}>
77
+ <figure
78
+ data-testid={testid} class="svelteplot"
79
+ data-reactive-hack-x={plot.x.dataValues.length}
80
+ data-reactive-hack-y={plot.y.dataValues.length}
81
+ data-reactive-hack-color={plot.color.dataValues.length}
82
+ data-reactive-hack-symbol={plot.symbol.dataValues.length}
83
+ bind:clientWidth={width} style:max-width={maxWidth}>
78
84
  <div
79
85
  role="document"
80
86
  class="plot-body"
@@ -50,21 +50,6 @@ export class Scale {
50
50
  isColor = $derived(this.name === 'color');
51
51
  scaleType = $derived(this.scaleOptions.type ||
52
52
  inferScaleType(this.dataValues, { isPosition: this.isPosition, isColor: this.isColor }));
53
- // readonly valueType = $derived(
54
- // this.dataValues.every((v) => v == null)
55
- // ? 'null'
56
- // : this.dataValues.every(isColorOrNull)
57
- // ? 'color'
58
- // : this.dataValues.every(isBooleanOrNull)
59
- // ? 'boolean'
60
- // : this.dataValues.every(isStringOrNull)
61
- // ? 'text'
62
- // : this.dataValues.every(isNumberOrNull)
63
- // ? 'number'
64
- // : this.dataValues.every(isDateOrNull)
65
- // ? 'date'
66
- // : 'mixed'
67
- // );
68
53
  domain = $derived(this.scaleOptions.domain || inferScaleDomain(this.dataValues, this.scaleType));
69
54
  }
70
55
  // opacity: typeof === 'number' && between [0,1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteplot",
3
- "version": "0.0.1-alpha.24",
3
+ "version": "0.0.1-alpha.25",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",
@@ -29,6 +29,7 @@
29
29
  "devDependencies": {
30
30
  "@playwright/test": "^1.40.1",
31
31
  "@sveltejs/adapter-auto": "^3.1.0",
32
+ "@sveltejs/adapter-static": "^3.0.1",
32
33
  "@sveltejs/kit": "^2.3.2",
33
34
  "@sveltejs/package": "^2.2.5",
34
35
  "@sveltejs/vite-plugin-svelte": "^3.0.1",