svelteplot 0.11.1 → 0.12.0-pr-523.0
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/core/Plot.svelte +31 -1
- package/dist/helpers/autoScales.js +3 -1
- package/dist/helpers/facets.d.ts +2 -2
- package/dist/helpers/rasterInterpolate.d.ts +26 -0
- package/dist/helpers/rasterInterpolate.js +220 -0
- package/dist/marks/Contour.svelte +516 -0
- package/dist/marks/Contour.svelte.d.ts +138 -0
- package/dist/marks/Geo.svelte +9 -5
- package/dist/marks/Line.svelte +52 -15
- package/dist/marks/Raster.svelte +421 -0
- package/dist/marks/Raster.svelte.d.ts +95 -0
- package/dist/marks/Text.svelte +8 -6
- package/dist/marks/helpers/GroupMultiple.svelte +6 -1
- package/dist/marks/helpers/GroupMultiple.svelte.d.ts +1 -0
- package/dist/marks/index.d.ts +2 -0
- package/dist/marks/index.js +2 -0
- package/dist/types/mark.d.ts +1 -1
- package/dist/types/plot.d.ts +10 -1
- package/package.json +5 -1
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
children,
|
|
6
6
|
class: className = null,
|
|
7
7
|
...groupProps
|
|
8
|
-
}: {
|
|
8
|
+
}: {
|
|
9
|
+
children: Snippet;
|
|
10
|
+
length?: number;
|
|
11
|
+
class?: string | null;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
} = $props();
|
|
9
14
|
</script>
|
|
10
15
|
|
|
11
16
|
{#if length > 1 || className}
|
package/dist/marks/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as Brush } from './Brush.svelte';
|
|
|
14
14
|
export { default as BrushX } from './BrushX.svelte';
|
|
15
15
|
export { default as BrushY } from './BrushY.svelte';
|
|
16
16
|
export { default as Cell } from './Cell.svelte';
|
|
17
|
+
export { default as Contour } from './Contour.svelte';
|
|
17
18
|
export { default as CellX } from './CellX.svelte';
|
|
18
19
|
export { default as CellY } from './CellY.svelte';
|
|
19
20
|
export { default as CustomMark } from './CustomMark.svelte';
|
|
@@ -33,6 +34,7 @@ export { default as LineX } from './LineX.svelte';
|
|
|
33
34
|
export { default as LineY } from './LineY.svelte';
|
|
34
35
|
export { default as Link } from './Link.svelte';
|
|
35
36
|
export { default as Pointer } from './Pointer.svelte';
|
|
37
|
+
export { default as Raster } from './Raster.svelte';
|
|
36
38
|
export { default as Rect } from './Rect.svelte';
|
|
37
39
|
export { default as RectX } from './RectX.svelte';
|
|
38
40
|
export { default as RectY } from './RectY.svelte';
|
package/dist/marks/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export { default as Brush } from './Brush.svelte';
|
|
|
14
14
|
export { default as BrushX } from './BrushX.svelte';
|
|
15
15
|
export { default as BrushY } from './BrushY.svelte';
|
|
16
16
|
export { default as Cell } from './Cell.svelte';
|
|
17
|
+
export { default as Contour } from './Contour.svelte';
|
|
17
18
|
export { default as CellX } from './CellX.svelte';
|
|
18
19
|
export { default as CellY } from './CellY.svelte';
|
|
19
20
|
export { default as CustomMark } from './CustomMark.svelte';
|
|
@@ -33,6 +34,7 @@ export { default as LineX } from './LineX.svelte';
|
|
|
33
34
|
export { default as LineY } from './LineY.svelte';
|
|
34
35
|
export { default as Link } from './Link.svelte';
|
|
35
36
|
export { default as Pointer } from './Pointer.svelte';
|
|
37
|
+
export { default as Raster } from './Raster.svelte';
|
|
36
38
|
export { default as Rect } from './Rect.svelte';
|
|
37
39
|
export { default as RectX } from './RectX.svelte';
|
|
38
40
|
export { default as RectY } from './RectY.svelte';
|
package/dist/types/mark.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type Mark<T> = {
|
|
|
6
6
|
data: DataRecord<T>[];
|
|
7
7
|
options: T;
|
|
8
8
|
};
|
|
9
|
-
export type MarkType = 'area' | 'arrow' | 'axisX' | 'axisY' | 'barX' | 'barY' | 'cell' | 'custom' | 'dot' | 'vector' | 'frame' | 'geo' | 'gridX' | 'gridY' | 'image' | 'link' | 'line' | 'rect' | 'regression' | 'ruleX' | 'ruleY' | 'swoopyArrow' | 'text' | 'tickX' | 'tickY' | 'trail' | 'waffleX' | 'waffleY';
|
|
9
|
+
export type MarkType = 'area' | 'arrow' | 'axisX' | 'axisY' | 'barX' | 'barY' | 'cell' | 'custom' | 'dot' | 'vector' | 'frame' | 'geo' | 'gridX' | 'gridY' | 'image' | 'link' | 'line' | 'raster' | 'rect' | 'regression' | 'ruleX' | 'ruleY' | 'swoopyArrow' | 'text' | 'tickX' | 'tickY' | 'trail' | 'waffleX' | 'waffleY';
|
|
10
10
|
export type MarkStyleProps = 'strokeDasharray' | 'strokeLinejoin' | 'strokeLinecap' | 'opacity' | 'cursor' | 'pointerEvents' | 'blend' | 'fill' | 'fillOpacity' | 'fontFamily' | 'fontWeight' | 'fontVariant' | 'fontSize' | 'fontStyle' | 'letterSpacing' | 'wordSpacing' | 'stroke' | 'strokeWidth' | 'strokeOpacity' | 'x' | 'y' | 'clipPath' | 'mask' | 'filter' | 'angle' | 'radius' | 'symbol' | 'textAnchor' | 'textTransform' | 'textDecoration' | 'width';
|
|
11
11
|
import type { ChannelAccessor, ConstantAccessor, DataRecord, RawValue } from './index.js';
|
|
12
12
|
import type * as CSS from 'csstype';
|
package/dist/types/plot.d.ts
CHANGED
|
@@ -84,7 +84,14 @@ export type PlotDefaults = {
|
|
|
84
84
|
* default color scheme
|
|
85
85
|
*/
|
|
86
86
|
colorScheme: ColorScheme;
|
|
87
|
-
|
|
87
|
+
/**
|
|
88
|
+
* default color scheme for type 'categorical'
|
|
89
|
+
*/
|
|
90
|
+
categoricalColorScheme: ColorScheme | string[] | ColorScheme | string[] | Record<string, string>;
|
|
91
|
+
/**
|
|
92
|
+
* default color scheme for tyoe 'diverging'
|
|
93
|
+
*/
|
|
94
|
+
divergingColorScheme: ColorScheme | string[];
|
|
88
95
|
/**
|
|
89
96
|
* fallback color to be used for null/NA
|
|
90
97
|
*/
|
|
@@ -402,6 +409,8 @@ export type PlotOptions = {
|
|
|
402
409
|
projection: string | null | {
|
|
403
410
|
type?: string;
|
|
404
411
|
rotate?: [number, number] | [number, number, number];
|
|
412
|
+
center?: [number, number] | [number, number, number];
|
|
413
|
+
parallels?: [number, number] | [number, number, number];
|
|
405
414
|
domain?: object;
|
|
406
415
|
inset?: number;
|
|
407
416
|
clip?: Clip;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelteplot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-pr-523.0",
|
|
4
4
|
"description": "A Svelte-native data visualization framework based on the layered grammar of graphics principles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|
|
@@ -82,6 +82,8 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"d3-array": "^3.2.4",
|
|
84
84
|
"d3-color": "^3.1.0",
|
|
85
|
+
"d3-contour": "^4.0.2",
|
|
86
|
+
"d3-delaunay": "^6.0.4",
|
|
85
87
|
"d3-format": "^3.1.2",
|
|
86
88
|
"d3-geo": "^3.1.1",
|
|
87
89
|
"d3-interpolate": "^3.0.1",
|
|
@@ -114,6 +116,8 @@
|
|
|
114
116
|
"@testing-library/user-event": "^14.6.1",
|
|
115
117
|
"@types/d3-array": "^3.2.2",
|
|
116
118
|
"@types/d3-color": "^3.1.3",
|
|
119
|
+
"@types/d3-contour": "^3.0.6",
|
|
120
|
+
"@types/d3-delaunay": "^6.0.4",
|
|
117
121
|
"@types/d3-dsv": "^3.0.7",
|
|
118
122
|
"@types/d3-geo": "^3.1.0",
|
|
119
123
|
"@types/d3-interpolate": "^3.0.4",
|