svelteplot 0.3.4 → 0.3.5-pr-121.1
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 +25 -27
- package/dist/Mark.svelte.d.ts +87 -17
- package/dist/Plot.svelte +1 -2
- package/dist/Plot.svelte.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/core/Facet.svelte +1 -1
- package/dist/core/Facet.svelte.d.ts +1 -1
- package/dist/core/FacetAxes.svelte +3 -1
- package/dist/core/FacetGrid.svelte +1 -1
- package/dist/core/FacetGrid.svelte.d.ts +1 -1
- package/dist/core/Plot.svelte +1 -1
- package/dist/core/Plot.svelte.d.ts +1 -1
- package/dist/helpers/autoScales.d.ts +1 -1
- package/dist/helpers/autoTicks.d.ts +1 -1
- package/dist/helpers/autoTicks.js +1 -1
- package/dist/helpers/callWithProps.d.ts +1 -1
- package/dist/helpers/colors.d.ts +2 -2
- package/dist/helpers/curves.d.ts +1 -1
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +2 -2
- package/dist/helpers/group.d.ts +1 -1
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/isDataRecord.d.ts +1 -1
- package/dist/helpers/isRawValue.d.ts +1 -1
- package/dist/helpers/projection.d.ts +1 -1
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/regressionLoess.d.ts +1 -1
- package/dist/helpers/resolve.d.ts +3 -3
- package/dist/helpers/scales.d.ts +2 -2
- package/dist/helpers/typeChecks.d.ts +5 -5
- package/dist/marks/Area.svelte +14 -17
- package/dist/marks/Area.svelte.d.ts +91 -19
- package/dist/marks/AreaX.svelte +15 -12
- package/dist/marks/AreaX.svelte.d.ts +94 -3
- package/dist/marks/AreaY.svelte +15 -15
- package/dist/marks/AreaY.svelte.d.ts +94 -3
- package/dist/marks/Arrow.svelte +16 -19
- package/dist/marks/Arrow.svelte.d.ts +110 -38
- package/dist/marks/AxisX.svelte +60 -56
- package/dist/marks/AxisX.svelte.d.ts +98 -25
- package/dist/marks/AxisY.svelte +73 -54
- package/dist/marks/AxisY.svelte.d.ts +100 -27
- package/dist/marks/BarX.svelte +28 -30
- package/dist/marks/BarX.svelte.d.ts +89 -17
- package/dist/marks/BarY.svelte +27 -27
- package/dist/marks/BarY.svelte.d.ts +88 -16
- package/dist/marks/BollingerX.svelte +21 -16
- package/dist/marks/BollingerX.svelte.d.ts +17 -16
- package/dist/marks/BollingerY.svelte +21 -16
- package/dist/marks/BollingerY.svelte.d.ts +17 -16
- package/dist/marks/BoxX.svelte +5 -7
- package/dist/marks/BoxX.svelte.d.ts +5 -3
- package/dist/marks/BoxY.svelte +13 -16
- package/dist/marks/BoxY.svelte.d.ts +41 -28
- package/dist/marks/Brush.svelte +27 -30
- package/dist/marks/Brush.svelte.d.ts +20 -15
- package/dist/marks/BrushX.svelte +9 -7
- package/dist/marks/BrushX.svelte.d.ts +5 -2
- package/dist/marks/BrushY.svelte +9 -7
- package/dist/marks/BrushY.svelte.d.ts +5 -2
- package/dist/marks/Cell.svelte +17 -18
- package/dist/marks/Cell.svelte.d.ts +80 -8
- package/dist/marks/CellX.svelte +12 -8
- package/dist/marks/CellX.svelte.d.ts +5 -2
- package/dist/marks/CellY.svelte +12 -8
- package/dist/marks/CellY.svelte.d.ts +5 -2
- package/dist/marks/ColorLegend.svelte +5 -8
- package/dist/marks/ColorLegend.svelte.d.ts +2 -2
- package/dist/marks/CustomMark.svelte +23 -16
- package/dist/marks/CustomMark.svelte.d.ts +17 -14
- package/dist/marks/CustomMarkHTML.svelte +20 -18
- package/dist/marks/CustomMarkHTML.svelte.d.ts +29 -15
- package/dist/marks/DifferenceY.svelte +54 -18
- package/dist/marks/DifferenceY.svelte.d.ts +59 -28
- package/dist/marks/Dot.svelte +13 -14
- package/dist/marks/Dot.svelte.d.ts +84 -12
- package/dist/marks/DotX.svelte +9 -9
- package/dist/marks/DotX.svelte.d.ts +86 -4
- package/dist/marks/DotY.svelte +10 -9
- package/dist/marks/DotY.svelte.d.ts +87 -5
- package/dist/marks/Frame.svelte +20 -27
- package/dist/marks/Frame.svelte.d.ts +24 -10
- package/dist/marks/Geo.svelte +22 -15
- package/dist/marks/Geo.svelte.d.ts +97 -13
- package/dist/marks/Graticule.svelte +16 -19
- package/dist/marks/Graticule.svelte.d.ts +3 -3
- package/dist/marks/GridX.svelte +5 -8
- package/dist/marks/GridX.svelte.d.ts +79 -7
- package/dist/marks/GridY.svelte +5 -8
- package/dist/marks/GridY.svelte.d.ts +79 -7
- package/dist/marks/HTMLTooltip.svelte +9 -14
- package/dist/marks/HTMLTooltip.svelte.d.ts +25 -12
- package/dist/marks/Line.svelte +24 -29
- package/dist/marks/Line.svelte.d.ts +97 -25
- package/dist/marks/LineX.svelte +9 -4
- package/dist/marks/LineX.svelte.d.ts +99 -3
- package/dist/marks/LineY.svelte +11 -5
- package/dist/marks/LineY.svelte.d.ts +100 -4
- package/dist/marks/Link.svelte +35 -19
- package/dist/marks/Link.svelte.d.ts +107 -18
- package/dist/marks/Pointer.svelte +13 -18
- package/dist/marks/Pointer.svelte.d.ts +34 -21
- package/dist/marks/Rect.svelte +19 -19
- package/dist/marks/Rect.svelte.d.ts +86 -13
- package/dist/marks/RectX.svelte +10 -9
- package/dist/marks/RectX.svelte.d.ts +22 -6
- package/dist/marks/RectY.svelte +9 -10
- package/dist/marks/RectY.svelte.d.ts +22 -6
- package/dist/marks/RegressionX.svelte +1 -1
- package/dist/marks/RegressionX.svelte.d.ts +1 -1
- package/dist/marks/RegressionY.svelte +1 -1
- package/dist/marks/RegressionY.svelte.d.ts +1 -1
- package/dist/marks/RuleX.svelte +14 -16
- package/dist/marks/RuleX.svelte.d.ts +84 -12
- package/dist/marks/RuleY.svelte +12 -15
- package/dist/marks/RuleY.svelte.d.ts +84 -12
- package/dist/marks/Sphere.svelte +6 -7
- package/dist/marks/Sphere.svelte.d.ts +3 -2
- package/dist/marks/Spike.svelte +17 -9
- package/dist/marks/Spike.svelte.d.ts +94 -4
- package/dist/marks/SymbolLegend.svelte +1 -1
- package/dist/marks/Text.svelte +25 -23
- package/dist/marks/Text.svelte.d.ts +101 -25
- package/dist/marks/TickX.svelte +12 -13
- package/dist/marks/TickX.svelte.d.ts +92 -20
- package/dist/marks/TickY.svelte +11 -14
- package/dist/marks/TickY.svelte.d.ts +92 -20
- package/dist/marks/Vector.svelte +19 -23
- package/dist/marks/Vector.svelte.d.ts +93 -21
- package/dist/marks/helpers/AreaCanvas.svelte +1 -1
- package/dist/marks/helpers/AreaCanvas.svelte.d.ts +1 -1
- package/dist/marks/helpers/BaseAxisX.svelte +5 -3
- package/dist/marks/helpers/BaseAxisX.svelte.d.ts +1 -1
- package/dist/marks/helpers/BaseAxisY.svelte +10 -8
- package/dist/marks/helpers/BaseAxisY.svelte.d.ts +3 -1
- package/dist/marks/helpers/CanvasLayer.svelte +1 -1
- package/dist/marks/helpers/DotCanvas.svelte +1 -1
- package/dist/marks/helpers/DotCanvas.svelte.d.ts +1 -1
- package/dist/marks/helpers/GeoCanvas.svelte +1 -1
- package/dist/marks/helpers/GeoCanvas.svelte.d.ts +1 -1
- package/dist/marks/helpers/LineCanvas.svelte +1 -1
- package/dist/marks/helpers/LineCanvas.svelte.d.ts +1 -1
- package/dist/marks/helpers/LinearGradientX.svelte +1 -1
- package/dist/marks/helpers/LinearGradientX.svelte.d.ts +1 -1
- package/dist/marks/helpers/LinearGradientY.svelte +1 -1
- package/dist/marks/helpers/LinearGradientY.svelte.d.ts +1 -1
- package/dist/marks/helpers/MarkerPath.svelte +1 -1
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +1 -41
- package/dist/marks/helpers/MultilineText.svelte +1 -1
- package/dist/marks/helpers/MultilineText.svelte.d.ts +1 -1
- package/dist/marks/helpers/RectPath.svelte +29 -26
- package/dist/marks/helpers/RectPath.svelte.d.ts +39 -26
- package/dist/marks/helpers/Regression.svelte +7 -2
- package/dist/marks/helpers/Regression.svelte.d.ts +2 -5
- package/dist/marks/helpers/events.d.ts +1 -1
- package/dist/transforms/bin.d.ts +2 -2
- package/dist/transforms/bollinger.d.ts +2 -67
- package/dist/transforms/centroid.d.ts +8 -66
- package/dist/transforms/centroid.js +10 -7
- package/dist/transforms/filter.d.ts +1 -1
- package/dist/transforms/group.d.ts +5 -13
- package/dist/transforms/interval.d.ts +3 -123
- package/dist/transforms/jitter.d.ts +1 -1
- package/dist/transforms/map.d.ts +4 -184
- package/dist/transforms/normalize.d.ts +3 -123
- package/dist/transforms/recordize.d.ts +1 -1
- package/dist/transforms/rename.d.ts +2 -2
- package/dist/transforms/select.d.ts +8 -428
- package/dist/transforms/shift.d.ts +1 -1
- package/dist/transforms/sort.d.ts +4 -243
- package/dist/transforms/stack.d.ts +1 -1
- package/dist/transforms/window.d.ts +3 -131
- package/dist/types/channel.d.ts +11 -0
- package/dist/types/colorScheme.d.ts +1 -0
- package/dist/types/colorScheme.js +1 -0
- package/dist/types/data.d.ts +13 -0
- package/dist/types/data.js +1 -0
- package/dist/types/facet.d.ts +50 -0
- package/dist/types/facet.js +1 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/index.js +7 -0
- package/dist/types/mark.d.ts +123 -0
- package/dist/types/mark.js +1 -0
- package/dist/types/plot.d.ts +459 -0
- package/dist/types/plot.js +1 -0
- package/dist/types/scale.d.ts +143 -0
- package/dist/types/scale.js +1 -0
- package/package.json +125 -120
- package/dist/types.d.ts +0 -841
- /package/dist/{types.js → types/channel.js} +0 -0
package/dist/marks/BarX.svelte
CHANGED
|
@@ -2,42 +2,40 @@
|
|
|
2
2
|
@component
|
|
3
3
|
For horizontal bar charts using a band scale as y axis
|
|
4
4
|
-->
|
|
5
|
-
<script
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
y?: ChannelAccessor;
|
|
23
|
-
stack?: StackOptions;
|
|
24
|
-
/**
|
|
25
|
-
* Converts x into x1/x2 ranges based on the provided interval. Disables the
|
|
26
|
-
* implicit stacking
|
|
27
|
-
*/
|
|
28
|
-
interval?: number | string;
|
|
29
|
-
};
|
|
30
|
-
</script>
|
|
5
|
+
<script lang="ts" generics="Datum extends DataRow">
|
|
6
|
+
interface BarXMarkProps
|
|
7
|
+
extends BaseMarkProps<Datum>,
|
|
8
|
+
LinkableMarkProps<Datum>,
|
|
9
|
+
BaseRectMarkProps<Datum> {
|
|
10
|
+
data: Datum[];
|
|
11
|
+
x?: ChannelAccessor<Datum>;
|
|
12
|
+
x1?: ChannelAccessor<Datum>;
|
|
13
|
+
x2?: ChannelAccessor<Datum>;
|
|
14
|
+
y?: ChannelAccessor<Datum>;
|
|
15
|
+
stack?: StackOptions;
|
|
16
|
+
/**
|
|
17
|
+
* Converts x into x1/x2 ranges based on the provided interval. Disables the
|
|
18
|
+
* implicit stacking
|
|
19
|
+
*/
|
|
20
|
+
interval?: number | string;
|
|
21
|
+
}
|
|
31
22
|
|
|
32
|
-
<script lang="ts">
|
|
33
23
|
import Mark from '../Mark.svelte';
|
|
34
24
|
import { getContext } from 'svelte';
|
|
35
|
-
import { stackX, recordizeX, intervalX, sort } from '
|
|
25
|
+
import { stackX, recordizeX, intervalX, sort } from '..';
|
|
36
26
|
|
|
37
27
|
import type { StackOptions } from '../transforms/stack.js';
|
|
38
|
-
import type { DataRow } from '../types.js';
|
|
28
|
+
import type { DataRow } from '../types/index.js';
|
|
39
29
|
import GroupMultiple from './helpers/GroupMultiple.svelte';
|
|
40
30
|
import RectPath from './helpers/RectPath.svelte';
|
|
31
|
+
import type {
|
|
32
|
+
PlotContext,
|
|
33
|
+
BaseMarkProps,
|
|
34
|
+
BaseRectMarkProps,
|
|
35
|
+
ChannelAccessor,
|
|
36
|
+
LinkableMarkProps,
|
|
37
|
+
PlotDefaults
|
|
38
|
+
} from '../types/index.js';
|
|
41
39
|
|
|
42
40
|
const DEFAULTS = {
|
|
43
41
|
fill: 'currentColor',
|
|
@@ -48,7 +46,7 @@
|
|
|
48
46
|
let markProps: BarXMarkProps = $props();
|
|
49
47
|
|
|
50
48
|
const {
|
|
51
|
-
data = [{}],
|
|
49
|
+
data = [{} as Datum],
|
|
52
50
|
class: className = null,
|
|
53
51
|
stack,
|
|
54
52
|
...options
|
|
@@ -1,20 +1,92 @@
|
|
|
1
|
-
import type { BaseMarkProps, BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types.js';
|
|
2
|
-
export type BarXMarkProps = BaseMarkProps & LinkableMarkProps & BaseRectMarkProps & {
|
|
3
|
-
data: DataRow[];
|
|
4
|
-
x?: ChannelAccessor;
|
|
5
|
-
x1?: ChannelAccessor;
|
|
6
|
-
x2?: ChannelAccessor;
|
|
7
|
-
y?: ChannelAccessor;
|
|
8
|
-
stack?: StackOptions;
|
|
9
|
-
/**
|
|
10
|
-
* Converts x into x1/x2 ranges based on the provided interval. Disables the
|
|
11
|
-
* implicit stacking
|
|
12
|
-
*/
|
|
13
|
-
interval?: number | string;
|
|
14
|
-
};
|
|
15
1
|
import type { StackOptions } from '../transforms/stack.js';
|
|
16
|
-
import type { DataRow } from '../types.js';
|
|
2
|
+
import type { DataRow } from '../types/index.js';
|
|
3
|
+
import type { BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
4
|
+
declare class __sveltets_Render<Datum extends DataRow> {
|
|
5
|
+
props(): Partial<{
|
|
6
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
7
|
+
facet?: "auto" | "include" | "exclude";
|
|
8
|
+
fx: ChannelAccessor<Datum>;
|
|
9
|
+
fy: ChannelAccessor<Datum>;
|
|
10
|
+
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
|
+
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
|
+
fill: ChannelAccessor<Datum>;
|
|
13
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
+
sort: {
|
|
15
|
+
channel: string;
|
|
16
|
+
order?: "ascending" | "descending";
|
|
17
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
18
|
+
stroke: ChannelAccessor<Datum>;
|
|
19
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
24
|
+
opacity: ChannelAccessor<Datum>;
|
|
25
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
26
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
27
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
|
+
clipPath: string;
|
|
29
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
30
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
31
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
32
|
+
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
|
+
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
+
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
+
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
+
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
+
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
+
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
+
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
+
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
+
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
+
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
+
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
+
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
+
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
+
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
+
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
+
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
+
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
+
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
+
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
+
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
+
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
+
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
+
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
+
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
+
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
+
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
+
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
+
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
+
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
+
class: string | null;
|
|
63
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
|
+
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
65
|
+
data: Datum[];
|
|
66
|
+
x?: ChannelAccessor<Datum>;
|
|
67
|
+
x1?: ChannelAccessor<Datum>;
|
|
68
|
+
x2?: ChannelAccessor<Datum>;
|
|
69
|
+
y?: ChannelAccessor<Datum>;
|
|
70
|
+
stack?: StackOptions;
|
|
71
|
+
/**
|
|
72
|
+
* Converts x into x1/x2 ranges based on the provided interval. Disables the
|
|
73
|
+
* implicit stacking
|
|
74
|
+
*/
|
|
75
|
+
interval?: number | string;
|
|
76
|
+
};
|
|
77
|
+
events(): {};
|
|
78
|
+
slots(): {};
|
|
79
|
+
bindings(): "";
|
|
80
|
+
exports(): {};
|
|
81
|
+
}
|
|
82
|
+
interface $$IsomorphicComponent {
|
|
83
|
+
new <Datum extends DataRow>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Datum>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Datum>['props']>, ReturnType<__sveltets_Render<Datum>['events']>, ReturnType<__sveltets_Render<Datum>['slots']>> & {
|
|
84
|
+
$$bindings?: ReturnType<__sveltets_Render<Datum>['bindings']>;
|
|
85
|
+
} & ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
86
|
+
<Datum extends DataRow>(internal: unknown, props: ReturnType<__sveltets_Render<Datum>['props']> & {}): ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
87
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
88
|
+
}
|
|
17
89
|
/** For horizontal bar charts using a band scale as y axis */
|
|
18
|
-
declare const BarX:
|
|
19
|
-
type BarX =
|
|
90
|
+
declare const BarX: $$IsomorphicComponent;
|
|
91
|
+
type BarX<Datum extends DataRow> = InstanceType<typeof BarX<Datum>>;
|
|
20
92
|
export default BarX;
|
package/dist/marks/BarY.svelte
CHANGED
|
@@ -2,41 +2,41 @@
|
|
|
2
2
|
@component
|
|
3
3
|
For vertical column charts using a band scale as x axis
|
|
4
4
|
-->
|
|
5
|
-
<script module lang="ts">
|
|
6
|
-
import type {
|
|
7
|
-
PlotContext,
|
|
8
|
-
BaseMarkProps,
|
|
9
|
-
BaseRectMarkProps,
|
|
10
|
-
ChannelAccessor,
|
|
11
|
-
DataRow,
|
|
12
|
-
PlotDefaults
|
|
13
|
-
} from '../types.js';
|
|
14
5
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
<script lang="ts" generics="Datum extends DataRow">
|
|
7
|
+
interface BarYMarkProps
|
|
8
|
+
extends BaseMarkProps<Datum>,
|
|
9
|
+
LinkableMarkProps<Datum>,
|
|
10
|
+
BaseRectMarkProps<Datum> {
|
|
11
|
+
data: Datum[];
|
|
12
|
+
x?: ChannelAccessor<Datum>;
|
|
13
|
+
y?: ChannelAccessor<Datum>;
|
|
14
|
+
y1?: ChannelAccessor<Datum>;
|
|
15
|
+
y2?: ChannelAccessor<Datum>;
|
|
16
|
+
stack?: StackOptions;
|
|
17
|
+
/**
|
|
18
|
+
* Converts y into y1/y2 ranges based on the provided interval. Disables the
|
|
19
|
+
* implicit stacking
|
|
20
|
+
*/
|
|
21
|
+
interval?: number | string;
|
|
22
|
+
}
|
|
31
23
|
|
|
32
|
-
<script lang="ts">
|
|
33
24
|
import Mark from '../Mark.svelte';
|
|
34
25
|
import { getContext } from 'svelte';
|
|
35
|
-
import { intervalY, stackY, recordizeY, sort } from '
|
|
26
|
+
import { intervalY, stackY, recordizeY, sort } from '..';
|
|
36
27
|
|
|
37
28
|
import type { StackOptions } from '../transforms/stack.js';
|
|
38
29
|
import GroupMultiple from './helpers/GroupMultiple.svelte';
|
|
39
30
|
import RectPath from './helpers/RectPath.svelte';
|
|
31
|
+
import type {
|
|
32
|
+
PlotContext,
|
|
33
|
+
BaseMarkProps,
|
|
34
|
+
BaseRectMarkProps,
|
|
35
|
+
ChannelAccessor,
|
|
36
|
+
DataRow,
|
|
37
|
+
PlotDefaults,
|
|
38
|
+
LinkableMarkProps
|
|
39
|
+
} from '../types/index.js';
|
|
40
40
|
|
|
41
41
|
const { getPlotState } = getContext<PlotContext>('svelteplot');
|
|
42
42
|
const plot = $derived(getPlotState());
|
|
@@ -1,19 +1,91 @@
|
|
|
1
|
-
import type { BaseMarkProps, BaseRectMarkProps, ChannelAccessor, DataRow } from '../types.js';
|
|
2
|
-
export type BarYMarkProps = BaseMarkProps & LinkableMarkProps & BaseRectMarkProps & {
|
|
3
|
-
data: DataRow[];
|
|
4
|
-
x?: ChannelAccessor;
|
|
5
|
-
y?: ChannelAccessor;
|
|
6
|
-
y1?: ChannelAccessor;
|
|
7
|
-
y2?: ChannelAccessor;
|
|
8
|
-
stack?: StackOptions;
|
|
9
|
-
/**
|
|
10
|
-
* Converts y into y1/y2 ranges based on the provided interval. Disables the
|
|
11
|
-
* implicit stacking
|
|
12
|
-
*/
|
|
13
|
-
interval?: number | string;
|
|
14
|
-
};
|
|
15
1
|
import type { StackOptions } from '../transforms/stack.js';
|
|
2
|
+
import type { BaseRectMarkProps, ChannelAccessor, DataRow, LinkableMarkProps } from '../types/index.js';
|
|
3
|
+
declare class __sveltets_Render<Datum extends DataRow> {
|
|
4
|
+
props(): Partial<{
|
|
5
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
6
|
+
facet?: "auto" | "include" | "exclude";
|
|
7
|
+
fx: ChannelAccessor<Datum>;
|
|
8
|
+
fy: ChannelAccessor<Datum>;
|
|
9
|
+
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
+
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
|
+
fill: ChannelAccessor<Datum>;
|
|
12
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
13
|
+
sort: {
|
|
14
|
+
channel: string;
|
|
15
|
+
order?: "ascending" | "descending";
|
|
16
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
17
|
+
stroke: ChannelAccessor<Datum>;
|
|
18
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
19
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
21
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
22
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
23
|
+
opacity: ChannelAccessor<Datum>;
|
|
24
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
25
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
26
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
27
|
+
clipPath: string;
|
|
28
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
29
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
31
|
+
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
|
+
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
|
+
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
+
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
+
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
+
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
+
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
+
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
+
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
+
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
+
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
+
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
+
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
+
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
+
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
+
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
+
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
+
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
+
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
+
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
+
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
+
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
+
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
+
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
+
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
+
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
+
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
+
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
+
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
+
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
+
class: string | null;
|
|
62
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
|
+
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
64
|
+
data: Datum[];
|
|
65
|
+
x?: ChannelAccessor<Datum>;
|
|
66
|
+
y?: ChannelAccessor<Datum>;
|
|
67
|
+
y1?: ChannelAccessor<Datum>;
|
|
68
|
+
y2?: ChannelAccessor<Datum>;
|
|
69
|
+
stack?: StackOptions;
|
|
70
|
+
/**
|
|
71
|
+
* Converts y into y1/y2 ranges based on the provided interval. Disables the
|
|
72
|
+
* implicit stacking
|
|
73
|
+
*/
|
|
74
|
+
interval?: number | string;
|
|
75
|
+
};
|
|
76
|
+
events(): {};
|
|
77
|
+
slots(): {};
|
|
78
|
+
bindings(): "";
|
|
79
|
+
exports(): {};
|
|
80
|
+
}
|
|
81
|
+
interface $$IsomorphicComponent {
|
|
82
|
+
new <Datum extends DataRow>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Datum>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Datum>['props']>, ReturnType<__sveltets_Render<Datum>['events']>, ReturnType<__sveltets_Render<Datum>['slots']>> & {
|
|
83
|
+
$$bindings?: ReturnType<__sveltets_Render<Datum>['bindings']>;
|
|
84
|
+
} & ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
85
|
+
<Datum extends DataRow>(internal: unknown, props: ReturnType<__sveltets_Render<Datum>['props']> & {}): ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
86
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
87
|
+
}
|
|
16
88
|
/** For vertical column charts using a band scale as x axis */
|
|
17
|
-
declare const BarY:
|
|
18
|
-
type BarY =
|
|
89
|
+
declare const BarY: $$IsomorphicComponent;
|
|
90
|
+
type BarY<Datum extends DataRow> = InstanceType<typeof BarY<Datum>>;
|
|
19
91
|
export default BarY;
|
|
@@ -2,26 +2,29 @@
|
|
|
2
2
|
@component
|
|
3
3
|
line representing a moving average and an area representing volatility as a band
|
|
4
4
|
-->
|
|
5
|
-
<script
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
<script lang="ts" generics="Datum extends DataRecord">
|
|
6
|
+
import { Area, Line, bollingerX, recordizeX } from '..';
|
|
7
|
+
import type {
|
|
8
|
+
BaseMarkProps,
|
|
9
|
+
ChannelAccessor,
|
|
10
|
+
DataRecord,
|
|
11
|
+
TransformArg
|
|
12
|
+
} from '../types/index.js';
|
|
13
|
+
import { pick } from 'es-toolkit';
|
|
14
|
+
|
|
15
|
+
interface BollingerXMarkProps extends BaseMarkProps<Datum> {
|
|
16
|
+
data: Datum[];
|
|
17
|
+
x?: ChannelAccessor<Datum>;
|
|
18
|
+
y?: ChannelAccessor<Datum>;
|
|
10
19
|
/**
|
|
11
|
-
* the window size (the window transform
|
|
20
|
+
* the window size (the window transform's k option), an integer; defaults to 20
|
|
12
21
|
*/
|
|
13
22
|
n?: number;
|
|
14
23
|
/**
|
|
15
24
|
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
16
25
|
*/
|
|
17
26
|
k?: number;
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<script lang="ts">
|
|
22
|
-
import { Area, Line, bollingerX, recordizeX } from '../index.js';
|
|
23
|
-
import type { BaseMarkProps, ChannelAccessor, DataRow } from '../types.js';
|
|
24
|
-
import { pick } from 'es-toolkit';
|
|
27
|
+
}
|
|
25
28
|
|
|
26
29
|
let {
|
|
27
30
|
data,
|
|
@@ -31,7 +34,9 @@
|
|
|
31
34
|
...options
|
|
32
35
|
}: BollingerXMarkProps = $props();
|
|
33
36
|
|
|
34
|
-
let args = $derived(
|
|
37
|
+
let args = $derived(
|
|
38
|
+
bollingerX(recordizeX({ data, ...options } as TransformArg<DataRecord>), { n, k })
|
|
39
|
+
);
|
|
35
40
|
</script>
|
|
36
41
|
|
|
37
42
|
<g class="bollinger {className || ''}">
|
|
@@ -46,7 +51,7 @@
|
|
|
46
51
|
y1: '__x',
|
|
47
52
|
x1: '__lo',
|
|
48
53
|
x2: '__hi',
|
|
49
|
-
fillOpacity
|
|
50
|
-
|
|
54
|
+
...pick(args, ['data', 'fill', 'fillOpacity', 'opacity']),
|
|
55
|
+
fillOpacity: 0.2
|
|
51
56
|
}} />
|
|
52
57
|
</g>
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
import type { DataRecord } from '../types/index.js';
|
|
2
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
|
+
props(): any;
|
|
4
|
+
events(): {};
|
|
5
|
+
slots(): {};
|
|
6
|
+
bindings(): "";
|
|
7
|
+
exports(): {};
|
|
8
|
+
}
|
|
9
|
+
interface $$IsomorphicComponent {
|
|
10
|
+
new <Datum extends DataRecord>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Datum>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Datum>['props']>, ReturnType<__sveltets_Render<Datum>['events']>, ReturnType<__sveltets_Render<Datum>['slots']>> & {
|
|
11
|
+
$$bindings?: ReturnType<__sveltets_Render<Datum>['bindings']>;
|
|
12
|
+
} & ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
13
|
+
<Datum extends DataRecord>(internal: unknown, props: ReturnType<__sveltets_Render<Datum>['props']> & {}): ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
14
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
15
|
+
}
|
|
15
16
|
/** line representing a moving average and an area representing volatility as a band */
|
|
16
|
-
declare const BollingerX:
|
|
17
|
-
type BollingerX =
|
|
17
|
+
declare const BollingerX: $$IsomorphicComponent;
|
|
18
|
+
type BollingerX<Datum extends DataRecord> = InstanceType<typeof BollingerX<Datum>>;
|
|
18
19
|
export default BollingerX;
|
|
@@ -2,30 +2,35 @@
|
|
|
2
2
|
@component
|
|
3
3
|
line representing a moving average and an area representing volatility as a band
|
|
4
4
|
-->
|
|
5
|
-
<script
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
<script lang="ts" generics="Datum extends DataRecord">
|
|
6
|
+
import { Area, Line, bollingerY, recordizeY } from '..';
|
|
7
|
+
import type {
|
|
8
|
+
BaseMarkProps,
|
|
9
|
+
ChannelAccessor,
|
|
10
|
+
DataRecord,
|
|
11
|
+
TransformArg
|
|
12
|
+
} from '../types/index.js';
|
|
13
|
+
import { pick } from 'es-toolkit';
|
|
14
|
+
|
|
15
|
+
interface BollingerYMarkProps extends BaseMarkProps<Datum> {
|
|
16
|
+
data: Datum[];
|
|
17
|
+
x?: ChannelAccessor<Datum>;
|
|
18
|
+
y?: ChannelAccessor<Datum>;
|
|
10
19
|
/**
|
|
11
|
-
* the window size (the window transform
|
|
20
|
+
* the window size (the window transform's k option), an integer; defaults to 20
|
|
12
21
|
*/
|
|
13
22
|
n?: number;
|
|
14
23
|
/**
|
|
15
24
|
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
16
25
|
*/
|
|
17
26
|
k?: number;
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<script lang="ts">
|
|
22
|
-
import { Area, Line, bollingerY, recordizeY } from '../index.js';
|
|
23
|
-
import type { BaseMarkProps, ChannelAccessor, DataRow } from '../types.js';
|
|
24
|
-
import { pick } from 'es-toolkit';
|
|
27
|
+
}
|
|
25
28
|
|
|
26
29
|
let { data, n = 20, k = 2, class: className, ...options }: BollingerYMarkProps = $props();
|
|
27
30
|
|
|
28
|
-
const args = $derived(
|
|
31
|
+
const args = $derived(
|
|
32
|
+
bollingerY(recordizeY({ data, ...options } as TransformArg<DataRecord>), { n, k })
|
|
33
|
+
);
|
|
29
34
|
</script>
|
|
30
35
|
|
|
31
36
|
<g class="bollinger {className || ''}">
|
|
@@ -35,7 +40,7 @@
|
|
|
35
40
|
x1: '__x',
|
|
36
41
|
y1: '__lo',
|
|
37
42
|
y2: '__hi',
|
|
38
|
-
fillOpacity
|
|
39
|
-
|
|
43
|
+
...pick(args, ['data', 'fill', 'fillOpacity', 'opacity']),
|
|
44
|
+
fillOpacity: 0.2
|
|
40
45
|
}} />
|
|
41
46
|
</g>
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
import type { DataRecord } from '../types/index.js';
|
|
2
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
|
+
props(): any;
|
|
4
|
+
events(): {};
|
|
5
|
+
slots(): {};
|
|
6
|
+
bindings(): "";
|
|
7
|
+
exports(): {};
|
|
8
|
+
}
|
|
9
|
+
interface $$IsomorphicComponent {
|
|
10
|
+
new <Datum extends DataRecord>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Datum>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Datum>['props']>, ReturnType<__sveltets_Render<Datum>['events']>, ReturnType<__sveltets_Render<Datum>['slots']>> & {
|
|
11
|
+
$$bindings?: ReturnType<__sveltets_Render<Datum>['bindings']>;
|
|
12
|
+
} & ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
13
|
+
<Datum extends DataRecord>(internal: unknown, props: ReturnType<__sveltets_Render<Datum>['props']> & {}): ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
14
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
15
|
+
}
|
|
15
16
|
/** line representing a moving average and an area representing volatility as a band */
|
|
16
|
-
declare const BollingerY:
|
|
17
|
-
type BollingerY =
|
|
17
|
+
declare const BollingerY: $$IsomorphicComponent;
|
|
18
|
+
type BollingerY<Datum extends DataRecord> = InstanceType<typeof BollingerY<Datum>>;
|
|
18
19
|
export default BollingerY;
|
package/dist/marks/BoxX.svelte
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
<!-- @component
|
|
2
2
|
Creates a horizontal box plot for visualizing data distribution with quartiles and outliers
|
|
3
3
|
-->
|
|
4
|
-
<script module lang="ts">
|
|
5
|
-
export type BoxXMarkProps = BoxYMarkProps;
|
|
6
|
-
</script>
|
|
7
4
|
|
|
8
5
|
<script lang="ts">
|
|
6
|
+
interface BoxXMarkProps extends ComponentProps<typeof BoxY> {}
|
|
9
7
|
import GroupMultiple from './helpers/GroupMultiple.svelte';
|
|
10
|
-
import
|
|
11
|
-
import { BarX, TickX, RuleY, Dot, groupY } from '../index.js';
|
|
8
|
+
import { BarX, TickX, RuleY, Dot, groupY } from '..';
|
|
12
9
|
import { resolveChannel } from '../helpers/resolve.js';
|
|
13
|
-
import { getContext } from 'svelte';
|
|
14
|
-
import type { PlotDefaults } from '../types.js';
|
|
10
|
+
import { getContext, type ComponentProps } from 'svelte';
|
|
11
|
+
import type { PlotDefaults } from '../types/index.js';
|
|
12
|
+
import type BoxY from './BoxY.svelte';
|
|
15
13
|
|
|
16
14
|
let markProps: BoxXMarkProps = $props();
|
|
17
15
|
const DEFAULTS = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import type
|
|
1
|
+
import { type ComponentProps } from 'svelte';
|
|
2
|
+
import type BoxY from './BoxY.svelte';
|
|
3
|
+
interface BoxXMarkProps extends ComponentProps<typeof BoxY> {
|
|
4
|
+
}
|
|
3
5
|
/** Creates a horizontal box plot for visualizing data distribution with quartiles and outliers */
|
|
4
|
-
declare const BoxX: import("svelte").Component<
|
|
6
|
+
declare const BoxX: import("svelte").Component<BoxXMarkProps, {}, "">;
|
|
5
7
|
type BoxX = ReturnType<typeof BoxX>;
|
|
6
8
|
export default BoxX;
|