svelteplot 0.4.5-pr-209.2 → 0.4.5-pr-208.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.
- package/dist/Mark.svelte +87 -73
- package/dist/Mark.svelte.d.ts +37 -34
- package/dist/helpers/scales.d.ts +1 -1
- package/dist/helpers/scales.js +21 -10
- package/dist/marks/Area.svelte.d.ts +37 -34
- package/dist/marks/AreaX.svelte.d.ts +36 -34
- package/dist/marks/AreaY.svelte.d.ts +36 -34
- package/dist/marks/Arrow.svelte.d.ts +37 -34
- package/dist/marks/AxisX.svelte.d.ts +37 -34
- package/dist/marks/AxisY.svelte.d.ts +37 -34
- package/dist/marks/BarX.svelte.d.ts +37 -34
- package/dist/marks/BarY.svelte.d.ts +37 -34
- package/dist/marks/Cell.svelte.d.ts +37 -34
- package/dist/marks/Dot.svelte +1 -1
- package/dist/marks/Dot.svelte.d.ts +37 -34
- package/dist/marks/DotX.svelte.d.ts +37 -34
- package/dist/marks/DotY.svelte.d.ts +37 -34
- package/dist/marks/Geo.svelte.d.ts +37 -34
- package/dist/marks/GridX.svelte.d.ts +37 -34
- package/dist/marks/GridY.svelte.d.ts +37 -34
- package/dist/marks/Line.svelte.d.ts +37 -34
- package/dist/marks/LineX.svelte.d.ts +36 -34
- package/dist/marks/LineY.svelte.d.ts +36 -34
- package/dist/marks/Link.svelte.d.ts +37 -34
- package/dist/marks/Rect.svelte.d.ts +37 -34
- package/dist/marks/RuleX.svelte.d.ts +37 -34
- package/dist/marks/RuleY.svelte.d.ts +37 -34
- package/dist/marks/Spike.svelte.d.ts +36 -34
- package/dist/marks/Text.svelte.d.ts +37 -34
- package/dist/marks/TickX.svelte.d.ts +37 -34
- package/dist/marks/TickY.svelte.d.ts +37 -34
- package/dist/marks/Vector.svelte.d.ts +37 -34
- package/dist/marks/helpers/Regression.svelte +1 -1
- package/dist/regression/exponential.d.ts +17 -0
- package/dist/regression/exponential.js +56 -0
- package/dist/regression/index.d.ts +10 -0
- package/dist/regression/index.js +10 -0
- package/dist/regression/linear.d.ts +17 -0
- package/dist/regression/linear.js +59 -0
- package/dist/regression/loess.d.ts +14 -0
- package/dist/regression/loess.js +122 -0
- package/dist/regression/logarithmic.d.ts +20 -0
- package/dist/regression/logarithmic.js +60 -0
- package/dist/regression/polynomial.d.ts +21 -0
- package/dist/regression/polynomial.js +160 -0
- package/dist/regression/power.d.ts +18 -0
- package/dist/regression/power.js +56 -0
- package/dist/regression/quadratic.d.ts +19 -0
- package/dist/regression/quadratic.js +70 -0
- package/dist/regression/types.d.ts +4 -0
- package/dist/regression/types.js +1 -0
- package/dist/regression/utils/determination.d.ts +6 -0
- package/dist/regression/utils/determination.js +16 -0
- package/dist/regression/utils/geometry.d.ts +9 -0
- package/dist/regression/utils/geometry.js +12 -0
- package/dist/regression/utils/interpose.d.ts +6 -0
- package/dist/regression/utils/interpose.js +37 -0
- package/dist/regression/utils/median.d.ts +4 -0
- package/dist/regression/utils/median.js +8 -0
- package/dist/regression/utils/ols.d.ts +6 -0
- package/dist/regression/utils/ols.js +9 -0
- package/dist/regression/utils/points.d.ts +11 -0
- package/dist/regression/utils/points.js +45 -0
- package/dist/transforms/dodge.d.ts +17 -0
- package/dist/transforms/dodge.js +128 -0
- package/dist/types/mark.d.ts +37 -34
- package/dist/types/scale.d.ts +6 -0
- package/package.json +3 -2
package/dist/types/mark.d.ts
CHANGED
|
@@ -12,16 +12,19 @@ import type { MouseEventHandler } from 'svelte/elements';
|
|
|
12
12
|
import type { ChannelAccessor, ConstantAccessor, DataRecord, RawValue } from './index.js';
|
|
13
13
|
import type * as CSS from 'csstype';
|
|
14
14
|
import type { ScaledChannelName, ScaleName } from './scale.js';
|
|
15
|
+
import type { DodgeXOptions, DodgeYOptions } from '../transforms/dodge.js';
|
|
15
16
|
export type BaseMarkProps<T> = Partial<{
|
|
16
17
|
/**
|
|
17
18
|
* Filter the data without modifying the inferred scales
|
|
18
19
|
*/
|
|
19
|
-
filter
|
|
20
|
-
facet
|
|
20
|
+
filter: ConstantAccessor<boolean, T>;
|
|
21
|
+
facet: 'auto' | 'include' | 'exclude';
|
|
21
22
|
fx: ChannelAccessor<T>;
|
|
22
23
|
fy: ChannelAccessor<T>;
|
|
23
24
|
dx: ConstantAccessor<number, T>;
|
|
24
25
|
dy: ConstantAccessor<number, T>;
|
|
26
|
+
dodgeX: DodgeXOptions;
|
|
27
|
+
dodgeY: DodgeYOptions;
|
|
25
28
|
fill: ChannelAccessor<T>;
|
|
26
29
|
fillOpacity: ConstantAccessor<number, T>;
|
|
27
30
|
sort: string | ConstantAccessor<RawValue, T> | ((a: RawValue, b: RawValue) => number) | {
|
|
@@ -44,44 +47,44 @@ export type BaseMarkProps<T> = Partial<{
|
|
|
44
47
|
imageFilter: ConstantAccessor<string, T>;
|
|
45
48
|
shapeRendering: ConstantAccessor<CSS.Property.ShapeRendering, T>;
|
|
46
49
|
paintOrder: ConstantAccessor<string, T>;
|
|
47
|
-
onclick
|
|
48
|
-
ondblclick
|
|
49
|
-
onmouseup
|
|
50
|
-
onmousedown
|
|
51
|
-
onmouseenter
|
|
52
|
-
onmousemove
|
|
53
|
-
onmouseleave
|
|
54
|
-
onmouseout
|
|
55
|
-
onmouseover
|
|
56
|
-
onpointercancel
|
|
57
|
-
onpointerdown
|
|
58
|
-
onpointerup
|
|
59
|
-
onpointerenter
|
|
60
|
-
onpointerleave
|
|
61
|
-
onpointermove
|
|
62
|
-
onpointerover
|
|
63
|
-
onpointerout
|
|
64
|
-
ondrag
|
|
65
|
-
ondrop
|
|
66
|
-
ondragstart
|
|
67
|
-
ondragenter
|
|
68
|
-
ondragleave
|
|
69
|
-
ondragover
|
|
70
|
-
ondragend
|
|
71
|
-
ontouchstart
|
|
72
|
-
ontouchmove
|
|
73
|
-
ontouchend
|
|
74
|
-
ontouchcancel
|
|
75
|
-
oncontextmenu
|
|
76
|
-
onwheel
|
|
50
|
+
onclick: MouseEventHandler<SVGPathElement>;
|
|
51
|
+
ondblclick: MouseEventHandler<SVGPathElement>;
|
|
52
|
+
onmouseup: MouseEventHandler<SVGPathElement>;
|
|
53
|
+
onmousedown: MouseEventHandler<SVGPathElement>;
|
|
54
|
+
onmouseenter: MouseEventHandler<SVGPathElement>;
|
|
55
|
+
onmousemove: MouseEventHandler<SVGPathElement>;
|
|
56
|
+
onmouseleave: MouseEventHandler<SVGPathElement>;
|
|
57
|
+
onmouseout: MouseEventHandler<SVGPathElement>;
|
|
58
|
+
onmouseover: MouseEventHandler<SVGPathElement>;
|
|
59
|
+
onpointercancel: MouseEventHandler<SVGPathElement>;
|
|
60
|
+
onpointerdown: MouseEventHandler<SVGPathElement>;
|
|
61
|
+
onpointerup: MouseEventHandler<SVGPathElement>;
|
|
62
|
+
onpointerenter: MouseEventHandler<SVGPathElement>;
|
|
63
|
+
onpointerleave: MouseEventHandler<SVGPathElement>;
|
|
64
|
+
onpointermove: MouseEventHandler<SVGPathElement>;
|
|
65
|
+
onpointerover: MouseEventHandler<SVGPathElement>;
|
|
66
|
+
onpointerout: MouseEventHandler<SVGPathElement>;
|
|
67
|
+
ondrag: MouseEventHandler<SVGPathElement>;
|
|
68
|
+
ondrop: MouseEventHandler<SVGPathElement>;
|
|
69
|
+
ondragstart: MouseEventHandler<SVGPathElement>;
|
|
70
|
+
ondragenter: MouseEventHandler<SVGPathElement>;
|
|
71
|
+
ondragleave: MouseEventHandler<SVGPathElement>;
|
|
72
|
+
ondragover: MouseEventHandler<SVGPathElement>;
|
|
73
|
+
ondragend: MouseEventHandler<SVGPathElement>;
|
|
74
|
+
ontouchstart: MouseEventHandler<SVGPathElement>;
|
|
75
|
+
ontouchmove: MouseEventHandler<SVGPathElement>;
|
|
76
|
+
ontouchend: MouseEventHandler<SVGPathElement>;
|
|
77
|
+
ontouchcancel: MouseEventHandler<SVGPathElement>;
|
|
78
|
+
oncontextmenu: MouseEventHandler<SVGPathElement>;
|
|
79
|
+
onwheel: MouseEventHandler<SVGPathElement>;
|
|
77
80
|
/**
|
|
78
81
|
* if you want to give your mark element an extra CSS class
|
|
79
82
|
*/
|
|
80
|
-
class
|
|
83
|
+
class: string;
|
|
81
84
|
/**
|
|
82
85
|
* if you want to give your mark element an extra inline style
|
|
83
86
|
*/
|
|
84
|
-
style
|
|
87
|
+
style: string;
|
|
85
88
|
cursor: ConstantAccessor<CSS.Property.Cursor, T>;
|
|
86
89
|
}>;
|
|
87
90
|
export type LinkableMarkProps<T> = {
|
package/dist/types/scale.d.ts
CHANGED
|
@@ -24,7 +24,13 @@ export type ScaleOptions = {
|
|
|
24
24
|
label?: string | false;
|
|
25
25
|
interval?: string | number;
|
|
26
26
|
clamp: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Extend the domain to nice round numbers (applicable to quantitative scales only)
|
|
29
|
+
*/
|
|
27
30
|
nice: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Include zero in the scale domain (applicable to quantitative scales only)
|
|
33
|
+
*/
|
|
28
34
|
zero: boolean;
|
|
29
35
|
round: boolean;
|
|
30
36
|
percent: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelteplot",
|
|
3
|
-
"version": "0.4.5-pr-
|
|
3
|
+
"version": "0.4.5-pr-208.3",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Gregor Aisch",
|
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"types": "./dist/index.d.ts",
|
|
115
115
|
"type": "module",
|
|
116
116
|
"dependencies": {
|
|
117
|
+
"@gka/d3-regression": "^1.3.10-pr48",
|
|
117
118
|
"d3-array": "^3.2.4",
|
|
118
119
|
"d3-color": "^3.1.0",
|
|
119
120
|
"d3-format": "^3.1.0",
|
|
@@ -122,13 +123,13 @@
|
|
|
122
123
|
"d3-path": "^3.1.0",
|
|
123
124
|
"d3-quadtree": "^3.0.1",
|
|
124
125
|
"d3-random": "^3.0.1",
|
|
125
|
-
"@gka/d3-regression": "^1.3.10-pr48",
|
|
126
126
|
"d3-scale": "^4.0.2",
|
|
127
127
|
"d3-scale-chromatic": "^3.1.0",
|
|
128
128
|
"d3-shape": "^3.2.0",
|
|
129
129
|
"d3-time": "^3.1.0",
|
|
130
130
|
"es-toolkit": "^1.39.10",
|
|
131
131
|
"fast-equals": "^5.2.2",
|
|
132
|
+
"interval-tree-1d": "^1.0.4",
|
|
132
133
|
"merge-deep": "^3.0.3",
|
|
133
134
|
"svelte": "5.38.7"
|
|
134
135
|
}
|