svelteplot 0.7.1-pr-280.4 → 0.7.1-pr-280.6
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/marks/AxisX.svelte
CHANGED
|
@@ -68,14 +68,15 @@
|
|
|
68
68
|
...getPlotDefaults().axisX
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
const { ticks: magicTicks } = $derived({ ...DEFAULTS, ...markProps });
|
|
72
|
+
|
|
71
73
|
const {
|
|
72
|
-
|
|
73
|
-
data = Array.isArray(magicTicks) ? magicTicks : [],
|
|
74
|
+
data,
|
|
74
75
|
automatic = false,
|
|
75
76
|
title,
|
|
76
77
|
anchor,
|
|
77
78
|
facetAnchor = 'auto',
|
|
78
|
-
interval
|
|
79
|
+
interval,
|
|
79
80
|
tickSize,
|
|
80
81
|
tickFontSize,
|
|
81
82
|
tickPadding,
|
|
@@ -83,11 +84,17 @@
|
|
|
83
84
|
tickFormat,
|
|
84
85
|
tickClass,
|
|
85
86
|
class: className,
|
|
86
|
-
tickCount
|
|
87
|
+
tickCount,
|
|
87
88
|
tickSpacing,
|
|
88
89
|
text = true,
|
|
89
90
|
...options
|
|
90
|
-
}: AxisXMarkProps = $derived({
|
|
91
|
+
}: AxisXMarkProps = $derived({
|
|
92
|
+
data: Array.isArray(magicTicks) ? magicTicks : [],
|
|
93
|
+
tickCount: typeof magicTicks === 'number' ? magicTicks : undefined,
|
|
94
|
+
interval: typeof magicTicks === 'string' ? magicTicks : undefined,
|
|
95
|
+
...DEFAULTS,
|
|
96
|
+
...markProps
|
|
97
|
+
});
|
|
91
98
|
|
|
92
99
|
const { getPlotState } = getContext<PlotContext>('svelteplot');
|
|
93
100
|
const plot = $derived(getPlotState());
|
package/dist/marks/AxisY.svelte
CHANGED
|
@@ -65,15 +65,16 @@
|
|
|
65
65
|
...getPlotDefaults().axisY
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
const { ticks: magicTicks } = $derived({ ...DEFAULTS, ...markProps });
|
|
69
|
+
|
|
68
70
|
const {
|
|
69
|
-
|
|
70
|
-
data = Array.isArray(magicTicks) ? magicTicks : [],
|
|
71
|
+
data,
|
|
71
72
|
automatic = false,
|
|
72
73
|
title,
|
|
73
74
|
anchor = 'left',
|
|
74
75
|
class: className,
|
|
75
76
|
facetAnchor = 'auto',
|
|
76
|
-
interval
|
|
77
|
+
interval,
|
|
77
78
|
lineAnchor = 'center',
|
|
78
79
|
textAnchor,
|
|
79
80
|
tickSize,
|
|
@@ -81,11 +82,17 @@
|
|
|
81
82
|
tickPadding,
|
|
82
83
|
tickFormat,
|
|
83
84
|
tickClass,
|
|
84
|
-
tickCount
|
|
85
|
+
tickCount,
|
|
85
86
|
tickSpacing,
|
|
86
87
|
text = true,
|
|
87
88
|
...options
|
|
88
|
-
}: AxisYMarkProps = $derived({
|
|
89
|
+
}: AxisYMarkProps = $derived({
|
|
90
|
+
data: Array.isArray(magicTicks) ? magicTicks : [],
|
|
91
|
+
tickCount: typeof magicTicks === 'number' ? magicTicks : undefined,
|
|
92
|
+
interval: typeof magicTicks === 'string' ? magicTicks : undefined,
|
|
93
|
+
...DEFAULTS,
|
|
94
|
+
...markProps
|
|
95
|
+
});
|
|
89
96
|
|
|
90
97
|
const { getPlotState } = getContext<PlotContext>('svelteplot');
|
|
91
98
|
const plot = $derived(getPlotState());
|
|
@@ -174,7 +181,7 @@
|
|
|
174
181
|
facetAnchor !== 'auto' ? facetAnchor : anchor === 'left' ? 'left-empty' : 'right-empty'
|
|
175
182
|
);
|
|
176
183
|
|
|
177
|
-
const showAxis = $
|
|
184
|
+
const showAxis = $derived(
|
|
178
185
|
useFacetAnchor === 'left'
|
|
179
186
|
? left
|
|
180
187
|
: useFacetAnchor === 'right'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelteplot",
|
|
3
|
-
"version": "0.7.1-pr-280.
|
|
3
|
+
"version": "0.7.1-pr-280.6",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Gregor Aisch",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"eslint-plugin-svelte": "3.13.0",
|
|
95
95
|
"jqmath": "^0.4.9",
|
|
96
96
|
"jsdom": "^27.2.0",
|
|
97
|
+
"log-update": "^7.0.2",
|
|
97
98
|
"lru-cache": "^11.2.4",
|
|
98
99
|
"mdast-util-from-markdown": "^2.0.2",
|
|
99
100
|
"mdast-util-gfm": "^3.1.0",
|
|
@@ -109,6 +110,8 @@
|
|
|
109
110
|
"svelte-check": "^4.3.4",
|
|
110
111
|
"svelte-eslint-parser": "1.4.0",
|
|
111
112
|
"svelte-highlight": "^7.9.0",
|
|
113
|
+
"pixelmatch": "^5.3.0",
|
|
114
|
+
"pngjs": "^7.0.0",
|
|
112
115
|
"svg-path-parser": "^1.1.0",
|
|
113
116
|
"temml": "^0.12.1",
|
|
114
117
|
"topojson-client": "^3.1.0",
|