svelteplot 0.3.1 → 0.3.3

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.
@@ -50,6 +50,7 @@
50
50
  fontSize: 12,
51
51
  fontWeight: 500,
52
52
  strokeWidth: 1.6,
53
+ frameAnchor: 'center',
53
54
  ...getContext<PlotDefaults>('svelteplot/_defaults').text
54
55
  };
55
56
 
@@ -94,7 +95,7 @@
94
95
  'strokeOpacity',
95
96
  'fillOpacity'
96
97
  ]}
97
- required={['x', 'y']}
98
+ required={[]}
98
99
  {...args}>
99
100
  {#snippet children({ mark, scaledData, usedScales })}
100
101
  <GroupMultiple class="text {className}" length={className ? 2 : args.data.length}>
@@ -223,7 +223,6 @@
223
223
  stroke: currentColor;
224
224
  }
225
225
  text {
226
- font-size: 11px;
227
226
  opacity: 0.8;
228
227
  fill: currentColor;
229
228
  }
@@ -199,7 +199,6 @@
199
199
  stroke: currentColor;
200
200
  }
201
201
  text {
202
- font-size: 11px;
203
202
  opacity: 0.8;
204
203
  fill: currentColor;
205
204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteplot",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "license": "ISC",
5
5
  "author": {
6
6
  "name": "Gregor Aisch",
@@ -39,9 +39,9 @@
39
39
  "@sveltejs/adapter-auto": "^6.0.1",
40
40
  "@sveltejs/adapter-static": "^3.0.8",
41
41
  "@sveltejs/eslint-config": "^8.2.0",
42
- "@sveltejs/kit": "^2.21.1",
42
+ "@sveltejs/kit": "^2.21.2",
43
43
  "@sveltejs/package": "^2.3.11",
44
- "@sveltejs/vite-plugin-svelte": "5.0.3",
44
+ "@sveltejs/vite-plugin-svelte": "5.1.0",
45
45
  "@sveltepress/theme-default": "^6.0.3",
46
46
  "@sveltepress/twoslash": "^1.2.2",
47
47
  "@sveltepress/vite": "^1.2.2",
@@ -57,8 +57,8 @@
57
57
  "@types/d3-scale": "^4.0.9",
58
58
  "@types/d3-scale-chromatic": "^3.1.0",
59
59
  "@types/d3-shape": "^3.1.7",
60
- "@typescript-eslint/eslint-plugin": "^8.33.0",
61
- "@typescript-eslint/parser": "^8.33.0",
60
+ "@typescript-eslint/eslint-plugin": "^8.33.1",
61
+ "@typescript-eslint/parser": "^8.33.1",
62
62
  "csstype": "^3.1.3",
63
63
  "d3-dsv": "^3.0.1",
64
64
  "d3-fetch": "^3.0.1",
@@ -85,7 +85,7 @@
85
85
  "typedoc-plugin-markdown": "^4.6.4",
86
86
  "typescript": "^5.8.3",
87
87
  "vite": "^6.3.5",
88
- "vitest": "^3.1.4",
88
+ "vitest": "^3.2.2",
89
89
  "vitest-matchmedia-mock": "^2.0.3"
90
90
  },
91
91
  "types": "./dist/index.d.ts",
@@ -104,10 +104,10 @@
104
104
  "d3-scale-chromatic": "^3.1.0",
105
105
  "d3-shape": "^3.2.0",
106
106
  "d3-time": "^3.1.0",
107
- "es-toolkit": "^1.38.0",
107
+ "es-toolkit": "^1.39.1",
108
108
  "fast-equals": "^5.2.2",
109
109
  "merge-deep": "^3.0.3",
110
- "svelte": "5.33.13"
110
+ "svelte": "5.33.14"
111
111
  },
112
112
  "scripts": {
113
113
  "dev": "vite dev",