@visactor/vseed 0.4.24 → 0.4.25
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/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/annotation/annotation.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/annotation/annotation.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js +134 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.d.ts +27 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js +167 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +1 -0
- package/dist/esm/theme/common/annotaion.d.ts +6 -1
- package/dist/esm/theme/common/annotaion.js +18 -1
- package/dist/esm/theme/common/annotaion.js.map +1 -1
- package/dist/esm/theme/dark/area.d.ts +2 -0
- package/dist/esm/theme/dark/bar.d.ts +3 -0
- package/dist/esm/theme/dark/boxPlot.d.ts +1 -0
- package/dist/esm/theme/dark/column.d.ts +3 -0
- package/dist/esm/theme/dark/dualAxis.d.ts +1 -0
- package/dist/esm/theme/dark/histogram.d.ts +1 -0
- package/dist/esm/theme/dark/line.d.ts +1 -0
- package/dist/esm/theme/dark/race.d.ts +3 -0
- package/dist/esm/theme/dark/raceLine.d.ts +1 -0
- package/dist/esm/theme/dark/scatter.d.ts +1 -0
- package/dist/esm/theme/light/area.d.ts +2 -0
- package/dist/esm/theme/light/bar.d.ts +3 -0
- package/dist/esm/theme/light/boxPlot.d.ts +1 -0
- package/dist/esm/theme/light/column.d.ts +3 -0
- package/dist/esm/theme/light/dualAxis.d.ts +1 -0
- package/dist/esm/theme/light/histogram.d.ts +1 -0
- package/dist/esm/theme/light/line.d.ts +1 -0
- package/dist/esm/theme/light/race.d.ts +3 -0
- package/dist/esm/theme/light/raceLine.d.ts +1 -0
- package/dist/esm/theme/light/scatter.d.ts +1 -0
- package/dist/esm/theme/tokenTheme.js +3 -0
- package/dist/esm/theme/tokenTheme.js.map +1 -1
- package/dist/esm/types/chartType/bar/bar.d.ts +5 -1
- package/dist/esm/types/chartType/bar/zBar.d.ts +303 -0
- package/dist/esm/types/chartType/bar/zBar.js +2 -1
- package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +5 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +303 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.js +2 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +5 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +303 -0
- package/dist/esm/types/chartType/column/zColumn.js +2 -1
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +5 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +303 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
- package/dist/esm/types/properties/annotation/annotation.d.ts +303 -0
- package/dist/esm/types/properties/annotation/annotation.js +3 -1
- package/dist/esm/types/properties/annotation/annotation.js.map +1 -1
- package/dist/esm/types/properties/annotation/annotationDifferenceLine.d.ts +51 -0
- package/dist/esm/types/properties/annotation/annotationDifferenceLine.js +0 -0
- package/dist/esm/types/properties/annotation/index.d.ts +2 -0
- package/dist/esm/types/properties/annotation/index.js +1 -0
- package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.d.ts +294 -0
- package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js +29 -0
- package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js.map +1 -0
- package/dist/esm/types/properties/config/annotation/annotation.d.ts +2 -0
- package/dist/esm/types/properties/config/annotation/zAnnotation.d.ts +12 -0
- package/dist/esm/types/properties/config/annotation/zAnnotation.js +10 -2
- package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
- package/dist/esm/types/properties/config/area.d.ts +12 -0
- package/dist/esm/types/properties/config/bar.d.ts +18 -0
- package/dist/esm/types/properties/config/boxplot.d.ts +6 -0
- package/dist/esm/types/properties/config/column.d.ts +18 -0
- package/dist/esm/types/properties/config/config.d.ts +114 -0
- package/dist/esm/types/properties/config/dualAxis.d.ts +6 -0
- package/dist/esm/types/properties/config/histogram.d.ts +6 -0
- package/dist/esm/types/properties/config/line.d.ts +6 -0
- package/dist/esm/types/properties/config/race.d.ts +36 -0
- package/dist/esm/types/properties/config/scatter.d.ts +6 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +228 -0
- package/dist/umd/index.js +366 -6
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,11 +3,13 @@ import { zAnnotationPoint } from "./zAnnotationPoint.js";
|
|
|
3
3
|
import { zAnnotationVerticalLine } from "./zAnnotationVerticalLine.js";
|
|
4
4
|
import { zAnnotationHorizontalLine } from "./zAnnotationHorizontalLine.js";
|
|
5
5
|
import { zAnnotationArea } from "./zAnnotationArea.js";
|
|
6
|
+
import { zAnnotationDifferenceLine } from "./zAnnotationDifferenceLine.js";
|
|
6
7
|
const zAnnotation = z.object({
|
|
7
8
|
annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).nullish(),
|
|
8
9
|
annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).nullish(),
|
|
9
10
|
annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).nullish(),
|
|
10
|
-
annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish()
|
|
11
|
+
annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish(),
|
|
12
|
+
annotationDifferenceLine: zAnnotationDifferenceLine.or(z.array(zAnnotationDifferenceLine)).nullish()
|
|
11
13
|
});
|
|
12
14
|
export { zAnnotation };
|
|
13
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/annotation/annotation.js","sources":["../../../../../src/types/properties/annotation/annotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from './zAnnotationPoint'\nimport { zAnnotationVerticalLine } from './zAnnotationVerticalLine'\nimport { zAnnotationHorizontalLine } from './zAnnotationHorizontalLine'\nimport { zAnnotationArea } from './zAnnotationArea'\n\nexport const zAnnotation = z.object({\n annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).nullish(),\n annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).nullish(),\n annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish(),\n})\n\nexport type Annotation = z.infer<typeof zAnnotation>\n"],"names":["zAnnotation","z","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/annotation/annotation.js","sources":["../../../../../src/types/properties/annotation/annotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from './zAnnotationPoint'\nimport { zAnnotationVerticalLine } from './zAnnotationVerticalLine'\nimport { zAnnotationHorizontalLine } from './zAnnotationHorizontalLine'\nimport { zAnnotationArea } from './zAnnotationArea'\nimport { zAnnotationDifferenceLine } from './zAnnotationDifferenceLine'\n\nexport const zAnnotation = z.object({\n annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).nullish(),\n annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).nullish(),\n annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish(),\n annotationDifferenceLine: zAnnotationDifferenceLine.or(z.array(zAnnotationDifferenceLine)).nullish(),\n})\n\nexport type Annotation = z.infer<typeof zAnnotation>\n"],"names":["zAnnotation","z","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine"],"mappings":";;;;;;AAOO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,iBAAiBC,iBAAiB,EAAE,CAACD,EAAE,KAAK,CAACC,mBAAmB,OAAO;IACvE,wBAAwBC,wBAAwB,EAAE,CAACF,EAAE,KAAK,CAACE,0BAA0B,OAAO;IAC5F,0BAA0BC,0BAA0B,EAAE,CAACH,EAAE,KAAK,CAACG,4BAA4B,OAAO;IAClG,gBAAgBC,gBAAgB,EAAE,CAACJ,EAAE,KAAK,CAACI,kBAAkB,OAAO;IACpE,0BAA0BC,0BAA0B,EAAE,CAACL,EAAE,KAAK,CAACK,4BAA4B,OAAO;AACpG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { DimensionSelector, MeasureSelector, PartialDatumSelector } from '../../dataSelector';
|
|
2
|
+
/**
|
|
3
|
+
* @description 差异标注锚点选择器,仅支持能明确绑定到具体数据项的选择器类型。
|
|
4
|
+
*/
|
|
5
|
+
export type DifferenceSelector = PartialDatumSelector | MeasureSelector | DimensionSelector;
|
|
6
|
+
/**
|
|
7
|
+
* @description 差异标注锚点配置,用于选择起始点或终止点绑定的数据。
|
|
8
|
+
*/
|
|
9
|
+
export type DifferenceAnchor = {
|
|
10
|
+
/**
|
|
11
|
+
* @description 锚点选择器,必须最终定位到一个逻辑锚点。
|
|
12
|
+
* @example { year: '1930', type: 'Autocracies' }
|
|
13
|
+
* @example [{ field: 'year', operator: 'in', value: ['1930'] }, { field: 'type', operator: 'in', value: ['Autocracies'] }]
|
|
14
|
+
*/
|
|
15
|
+
selector: DifferenceSelector | DifferenceSelector[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @description 差异标注线配置,用于绑定两个数据锚点并展示它们的绝对差值或百分比差值。
|
|
19
|
+
*/
|
|
20
|
+
export type AnnotationDifferenceLine = {
|
|
21
|
+
/**
|
|
22
|
+
* @description 差异标注线的起始锚点。
|
|
23
|
+
*/
|
|
24
|
+
start: DifferenceAnchor;
|
|
25
|
+
/**
|
|
26
|
+
* @description 差异标注线的终止锚点。
|
|
27
|
+
*/
|
|
28
|
+
end: DifferenceAnchor;
|
|
29
|
+
/**
|
|
30
|
+
* @description 差异值类型。
|
|
31
|
+
* - absolute: 显示绝对差值,计算方式为 end - start
|
|
32
|
+
* - percent: 显示百分比差值,计算方式为 (end - start) / start
|
|
33
|
+
*/
|
|
34
|
+
differenceType?: 'absolute' | 'percent';
|
|
35
|
+
/**
|
|
36
|
+
* @description 文本字体大小。
|
|
37
|
+
*/
|
|
38
|
+
textFontSize?: number;
|
|
39
|
+
/**
|
|
40
|
+
* @description 文本颜色。
|
|
41
|
+
*/
|
|
42
|
+
textColor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @description 文本背景色。
|
|
45
|
+
*/
|
|
46
|
+
textBackgroundColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @description 线条颜色。
|
|
49
|
+
*/
|
|
50
|
+
lineColor?: string;
|
|
51
|
+
};
|
|
File without changes
|
|
@@ -2,8 +2,10 @@ export type * from './annotationPoint';
|
|
|
2
2
|
export type * from './annotationHorizontalLine';
|
|
3
3
|
export type * from './annotationVerticalLine';
|
|
4
4
|
export type * from './annotationArea';
|
|
5
|
+
export type * from './annotationDifferenceLine';
|
|
5
6
|
export * from './zAnnotationPoint';
|
|
6
7
|
export * from './zAnnotationVerticalLine';
|
|
7
8
|
export * from './zAnnotationHorizontalLine';
|
|
8
9
|
export * from './zAnnotationArea';
|
|
10
|
+
export * from './zAnnotationDifferenceLine';
|
|
9
11
|
export * from './annotation';
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const zDifferenceSelector: z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
3
|
+
field: z.ZodString;
|
|
4
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
"=": "=";
|
|
6
|
+
"==": "==";
|
|
7
|
+
"!=": "!=";
|
|
8
|
+
">": ">";
|
|
9
|
+
"<": "<";
|
|
10
|
+
">=": ">=";
|
|
11
|
+
"<=": "<=";
|
|
12
|
+
between: "between";
|
|
13
|
+
}>>>;
|
|
14
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
15
|
+
"=": "=";
|
|
16
|
+
"==": "==";
|
|
17
|
+
"!=": "!=";
|
|
18
|
+
">": ">";
|
|
19
|
+
"<": "<";
|
|
20
|
+
">=": ">=";
|
|
21
|
+
"<=": "<=";
|
|
22
|
+
between: "between";
|
|
23
|
+
}>>>;
|
|
24
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
field: z.ZodString;
|
|
27
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
28
|
+
in: "in";
|
|
29
|
+
"not in": "not in";
|
|
30
|
+
}>>>;
|
|
31
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
32
|
+
in: "in";
|
|
33
|
+
"not in": "not in";
|
|
34
|
+
}>>>;
|
|
35
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
36
|
+
}, z.core.$strip>]>;
|
|
37
|
+
export declare const zDifferenceSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
38
|
+
field: z.ZodString;
|
|
39
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
40
|
+
"=": "=";
|
|
41
|
+
"==": "==";
|
|
42
|
+
"!=": "!=";
|
|
43
|
+
">": ">";
|
|
44
|
+
"<": "<";
|
|
45
|
+
">=": ">=";
|
|
46
|
+
"<=": "<=";
|
|
47
|
+
between: "between";
|
|
48
|
+
}>>>;
|
|
49
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
50
|
+
"=": "=";
|
|
51
|
+
"==": "==";
|
|
52
|
+
"!=": "!=";
|
|
53
|
+
">": ">";
|
|
54
|
+
"<": "<";
|
|
55
|
+
">=": ">=";
|
|
56
|
+
"<=": "<=";
|
|
57
|
+
between: "between";
|
|
58
|
+
}>>>;
|
|
59
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
field: z.ZodString;
|
|
62
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
63
|
+
in: "in";
|
|
64
|
+
"not in": "not in";
|
|
65
|
+
}>>>;
|
|
66
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
67
|
+
in: "in";
|
|
68
|
+
"not in": "not in";
|
|
69
|
+
}>>>;
|
|
70
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
71
|
+
}, z.core.$strip>]>>;
|
|
72
|
+
export declare const zDifferenceAnchor: z.ZodObject<{
|
|
73
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
74
|
+
field: z.ZodString;
|
|
75
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
76
|
+
"=": "=";
|
|
77
|
+
"==": "==";
|
|
78
|
+
"!=": "!=";
|
|
79
|
+
">": ">";
|
|
80
|
+
"<": "<";
|
|
81
|
+
">=": ">=";
|
|
82
|
+
"<=": "<=";
|
|
83
|
+
between: "between";
|
|
84
|
+
}>>>;
|
|
85
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
86
|
+
"=": "=";
|
|
87
|
+
"==": "==";
|
|
88
|
+
"!=": "!=";
|
|
89
|
+
">": ">";
|
|
90
|
+
"<": "<";
|
|
91
|
+
">=": ">=";
|
|
92
|
+
"<=": "<=";
|
|
93
|
+
between: "between";
|
|
94
|
+
}>>>;
|
|
95
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
field: z.ZodString;
|
|
98
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
99
|
+
in: "in";
|
|
100
|
+
"not in": "not in";
|
|
101
|
+
}>>>;
|
|
102
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
103
|
+
in: "in";
|
|
104
|
+
"not in": "not in";
|
|
105
|
+
}>>>;
|
|
106
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
107
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
108
|
+
field: z.ZodString;
|
|
109
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
110
|
+
"=": "=";
|
|
111
|
+
"==": "==";
|
|
112
|
+
"!=": "!=";
|
|
113
|
+
">": ">";
|
|
114
|
+
"<": "<";
|
|
115
|
+
">=": ">=";
|
|
116
|
+
"<=": "<=";
|
|
117
|
+
between: "between";
|
|
118
|
+
}>>>;
|
|
119
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
120
|
+
"=": "=";
|
|
121
|
+
"==": "==";
|
|
122
|
+
"!=": "!=";
|
|
123
|
+
">": ">";
|
|
124
|
+
"<": "<";
|
|
125
|
+
">=": ">=";
|
|
126
|
+
"<=": "<=";
|
|
127
|
+
between: "between";
|
|
128
|
+
}>>>;
|
|
129
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
field: z.ZodString;
|
|
132
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
133
|
+
in: "in";
|
|
134
|
+
"not in": "not in";
|
|
135
|
+
}>>>;
|
|
136
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
137
|
+
in: "in";
|
|
138
|
+
"not in": "not in";
|
|
139
|
+
}>>>;
|
|
140
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
141
|
+
}, z.core.$strip>]>>]>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export declare const zAnnotationDifferenceLine: z.ZodObject<{
|
|
144
|
+
start: z.ZodObject<{
|
|
145
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
146
|
+
field: z.ZodString;
|
|
147
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
148
|
+
"=": "=";
|
|
149
|
+
"==": "==";
|
|
150
|
+
"!=": "!=";
|
|
151
|
+
">": ">";
|
|
152
|
+
"<": "<";
|
|
153
|
+
">=": ">=";
|
|
154
|
+
"<=": "<=";
|
|
155
|
+
between: "between";
|
|
156
|
+
}>>>;
|
|
157
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
158
|
+
"=": "=";
|
|
159
|
+
"==": "==";
|
|
160
|
+
"!=": "!=";
|
|
161
|
+
">": ">";
|
|
162
|
+
"<": "<";
|
|
163
|
+
">=": ">=";
|
|
164
|
+
"<=": "<=";
|
|
165
|
+
between: "between";
|
|
166
|
+
}>>>;
|
|
167
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
+
field: z.ZodString;
|
|
170
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
171
|
+
in: "in";
|
|
172
|
+
"not in": "not in";
|
|
173
|
+
}>>>;
|
|
174
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
175
|
+
in: "in";
|
|
176
|
+
"not in": "not in";
|
|
177
|
+
}>>>;
|
|
178
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
179
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
180
|
+
field: z.ZodString;
|
|
181
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
182
|
+
"=": "=";
|
|
183
|
+
"==": "==";
|
|
184
|
+
"!=": "!=";
|
|
185
|
+
">": ">";
|
|
186
|
+
"<": "<";
|
|
187
|
+
">=": ">=";
|
|
188
|
+
"<=": "<=";
|
|
189
|
+
between: "between";
|
|
190
|
+
}>>>;
|
|
191
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
192
|
+
"=": "=";
|
|
193
|
+
"==": "==";
|
|
194
|
+
"!=": "!=";
|
|
195
|
+
">": ">";
|
|
196
|
+
"<": "<";
|
|
197
|
+
">=": ">=";
|
|
198
|
+
"<=": "<=";
|
|
199
|
+
between: "between";
|
|
200
|
+
}>>>;
|
|
201
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
+
field: z.ZodString;
|
|
204
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
205
|
+
in: "in";
|
|
206
|
+
"not in": "not in";
|
|
207
|
+
}>>>;
|
|
208
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
209
|
+
in: "in";
|
|
210
|
+
"not in": "not in";
|
|
211
|
+
}>>>;
|
|
212
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
213
|
+
}, z.core.$strip>]>>]>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
end: z.ZodObject<{
|
|
216
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
217
|
+
field: z.ZodString;
|
|
218
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
219
|
+
"=": "=";
|
|
220
|
+
"==": "==";
|
|
221
|
+
"!=": "!=";
|
|
222
|
+
">": ">";
|
|
223
|
+
"<": "<";
|
|
224
|
+
">=": ">=";
|
|
225
|
+
"<=": "<=";
|
|
226
|
+
between: "between";
|
|
227
|
+
}>>>;
|
|
228
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
229
|
+
"=": "=";
|
|
230
|
+
"==": "==";
|
|
231
|
+
"!=": "!=";
|
|
232
|
+
">": ">";
|
|
233
|
+
"<": "<";
|
|
234
|
+
">=": ">=";
|
|
235
|
+
"<=": "<=";
|
|
236
|
+
between: "between";
|
|
237
|
+
}>>>;
|
|
238
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
240
|
+
field: z.ZodString;
|
|
241
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
242
|
+
in: "in";
|
|
243
|
+
"not in": "not in";
|
|
244
|
+
}>>>;
|
|
245
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
246
|
+
in: "in";
|
|
247
|
+
"not in": "not in";
|
|
248
|
+
}>>>;
|
|
249
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
250
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
|
|
251
|
+
field: z.ZodString;
|
|
252
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
253
|
+
"=": "=";
|
|
254
|
+
"==": "==";
|
|
255
|
+
"!=": "!=";
|
|
256
|
+
">": ">";
|
|
257
|
+
"<": "<";
|
|
258
|
+
">=": ">=";
|
|
259
|
+
"<=": "<=";
|
|
260
|
+
between: "between";
|
|
261
|
+
}>>>;
|
|
262
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
263
|
+
"=": "=";
|
|
264
|
+
"==": "==";
|
|
265
|
+
"!=": "!=";
|
|
266
|
+
">": ">";
|
|
267
|
+
"<": "<";
|
|
268
|
+
">=": ">=";
|
|
269
|
+
"<=": "<=";
|
|
270
|
+
between: "between";
|
|
271
|
+
}>>>;
|
|
272
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
273
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
274
|
+
field: z.ZodString;
|
|
275
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
276
|
+
in: "in";
|
|
277
|
+
"not in": "not in";
|
|
278
|
+
}>>>;
|
|
279
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
280
|
+
in: "in";
|
|
281
|
+
"not in": "not in";
|
|
282
|
+
}>>>;
|
|
283
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
284
|
+
}, z.core.$strip>]>>]>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
differenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
287
|
+
percent: "percent";
|
|
288
|
+
absolute: "absolute";
|
|
289
|
+
}>>>;
|
|
290
|
+
textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
291
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
+
textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
|
+
lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { zDimensionSelector, zMeasureSelector, zPartialSelector } from "../../dataSelector/index.js";
|
|
3
|
+
const zDifferenceSelector = z.union([
|
|
4
|
+
zPartialSelector,
|
|
5
|
+
zMeasureSelector,
|
|
6
|
+
zDimensionSelector
|
|
7
|
+
]);
|
|
8
|
+
const zDifferenceSelectors = z.array(zDifferenceSelector);
|
|
9
|
+
const zDifferenceAnchor = z.object({
|
|
10
|
+
selector: z.union([
|
|
11
|
+
zDifferenceSelector,
|
|
12
|
+
zDifferenceSelectors
|
|
13
|
+
])
|
|
14
|
+
});
|
|
15
|
+
const zAnnotationDifferenceLine = z.object({
|
|
16
|
+
start: zDifferenceAnchor,
|
|
17
|
+
end: zDifferenceAnchor,
|
|
18
|
+
differenceType: z["enum"]([
|
|
19
|
+
'absolute',
|
|
20
|
+
'percent'
|
|
21
|
+
]).nullish(),
|
|
22
|
+
textFontSize: z.number().nullish(),
|
|
23
|
+
textColor: z.string().nullish(),
|
|
24
|
+
textBackgroundColor: z.string().nullish(),
|
|
25
|
+
lineColor: z.string().nullish()
|
|
26
|
+
});
|
|
27
|
+
export { zAnnotationDifferenceLine, zDifferenceAnchor, zDifferenceSelector, zDifferenceSelectors };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=zAnnotationDifferenceLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types/properties/annotation/zAnnotationDifferenceLine.js","sources":["../../../../../src/types/properties/annotation/zAnnotationDifferenceLine.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zDimensionSelector, zMeasureSelector, zPartialSelector } from '../../dataSelector'\n\nexport const zDifferenceSelector = z.union([zPartialSelector, zMeasureSelector, zDimensionSelector])\nexport const zDifferenceSelectors = z.array(zDifferenceSelector)\n\nexport const zDifferenceAnchor = z.object({\n selector: z.union([zDifferenceSelector, zDifferenceSelectors]),\n})\n\nexport const zAnnotationDifferenceLine = z.object({\n start: zDifferenceAnchor,\n end: zDifferenceAnchor,\n differenceType: z.enum(['absolute', 'percent']).nullish(),\n textFontSize: z.number().nullish(),\n textColor: z.string().nullish(),\n textBackgroundColor: z.string().nullish(),\n lineColor: z.string().nullish(),\n})\n"],"names":["zDifferenceSelector","z","zPartialSelector","zMeasureSelector","zDimensionSelector","zDifferenceSelectors","zDifferenceAnchor","zAnnotationDifferenceLine"],"mappings":";;AAGO,MAAMA,sBAAsBC,EAAE,KAAK,CAAC;IAACC;IAAkBC;IAAkBC;CAAmB;AAC5F,MAAMC,uBAAuBJ,EAAE,KAAK,CAACD;AAErC,MAAMM,oBAAoBL,EAAE,MAAM,CAAC;IACxC,UAAUA,EAAE,KAAK,CAAC;QAACD;QAAqBK;KAAqB;AAC/D;AAEO,MAAME,4BAA4BN,EAAE,MAAM,CAAC;IAChD,OAAOK;IACP,KAAKA;IACL,gBAAgBL,CAAC,CAADA,OAAM,CAAC;QAAC;QAAY;KAAU,EAAE,OAAO;IACvD,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,WAAWA,EAAE,MAAM,GAAG,OAAO;IAC7B,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,WAAWA,EAAE,MAAM,GAAG,OAAO;AAC/B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AnnotationArea } from '../../annotation/annotationArea';
|
|
2
|
+
import type { AnnotationDifferenceLine } from '../../annotation/annotationDifferenceLine';
|
|
2
3
|
import type { AnnotationHorizontalLine } from '../../annotation/annotationHorizontalLine';
|
|
3
4
|
import type { AnnotationPoint } from '../../annotation/annotationPoint';
|
|
4
5
|
export type AnnotationPointConfig = Pick<AnnotationPoint, 'textColor' | 'textFontSize' | 'textFontWeight' | 'textBackgroundVisible' | 'textBackgroundColor' | 'textBackgroundBorderColor' | 'textBackgroundBorderWidth' | 'textBackgroundPadding' | 'textBackgroundBorderRadius' | 'offsetX' | 'offsetY'>;
|
|
@@ -74,3 +75,4 @@ export interface AnnotationHorizontalLineConfig extends Pick<AnnotationHorizonta
|
|
|
74
75
|
}
|
|
75
76
|
export type AnnotationVerticalLineConfig = AnnotationHorizontalLineConfig;
|
|
76
77
|
export type AnnotationAreaConfig = Pick<AnnotationArea, 'areaBorderColor' | 'areaBorderRadius' | 'areaBorderWidth' | 'areaColor' | 'areaColorOpacity' | 'areaLineDash' | 'outerPadding' | 'textBackgroundBorderColor' | 'textBackgroundBorderRadius' | 'textBackgroundBorderWidth' | 'textBackgroundColor' | 'textBackgroundPadding' | 'textBackgroundVisible' | 'textColor' | 'textFontSize' | 'textFontWeight'>;
|
|
78
|
+
export type AnnotationDifferenceLineConfig = Pick<AnnotationDifferenceLine, 'lineColor' | 'textBackgroundColor' | 'textColor' | 'textFontSize'>;
|
|
@@ -167,6 +167,12 @@ export declare const zAnnotationAreaConfig: z.ZodObject<{
|
|
|
167
167
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
168
168
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
169
169
|
}, z.core.$strip>;
|
|
170
|
+
export declare const zAnnotationDifferenceLineConfig: z.ZodObject<{
|
|
171
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
172
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
173
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
174
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
170
176
|
export declare const zAnnotationConfig: z.ZodObject<{
|
|
171
177
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
172
178
|
dynamicFilter: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -336,4 +342,10 @@ export declare const zAnnotationConfig: z.ZodObject<{
|
|
|
336
342
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
337
343
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
338
344
|
}, z.core.$strip>>>;
|
|
345
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
346
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
347
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
348
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
349
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
350
|
+
}, z.core.$strip>>>;
|
|
339
351
|
}, z.core.$strip>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zAnnotationPoint } from "../../annotation/zAnnotationPoint.js";
|
|
3
|
+
import { zAnnotationDifferenceLine } from "../../annotation/zAnnotationDifferenceLine.js";
|
|
3
4
|
import { zAnnotationHorizontalLine } from "../../annotation/zAnnotationHorizontalLine.js";
|
|
4
5
|
import { zAnnotationArea } from "../../annotation/zAnnotationArea.js";
|
|
5
6
|
const zAnnotationPointConfig = zAnnotationPoint.omit({
|
|
@@ -47,12 +48,19 @@ const zAnnotationAreaConfig = zAnnotationArea.pick({
|
|
|
47
48
|
areaLineDash: true,
|
|
48
49
|
outerPadding: true
|
|
49
50
|
}).partial();
|
|
51
|
+
const zAnnotationDifferenceLineConfig = zAnnotationDifferenceLine.pick({
|
|
52
|
+
lineColor: true,
|
|
53
|
+
textColor: true,
|
|
54
|
+
textFontSize: true,
|
|
55
|
+
textBackgroundColor: true
|
|
56
|
+
}).partial();
|
|
50
57
|
const zAnnotationConfig = z.object({
|
|
51
58
|
annotationPoint: zAnnotationPointConfig.nullish(),
|
|
52
59
|
annotationHorizontalLine: zAnnotationHorizontalLineConfig.nullish(),
|
|
53
60
|
annotationVerticalLine: zAnnotationVerticalLineConfig.nullish(),
|
|
54
|
-
annotationArea: zAnnotationAreaConfig.nullish()
|
|
61
|
+
annotationArea: zAnnotationAreaConfig.nullish(),
|
|
62
|
+
annotationDifferenceLine: zAnnotationDifferenceLineConfig.nullish()
|
|
55
63
|
});
|
|
56
|
-
export { zAnnotationAreaConfig, zAnnotationConfig, zAnnotationHorizontalLineConfig, zAnnotationPointConfig, zAnnotationVerticalLineConfig };
|
|
64
|
+
export { zAnnotationAreaConfig, zAnnotationConfig, zAnnotationDifferenceLineConfig, zAnnotationHorizontalLineConfig, zAnnotationPointConfig, zAnnotationVerticalLineConfig };
|
|
57
65
|
|
|
58
66
|
//# sourceMappingURL=zAnnotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/annotation/zAnnotation.js","sources":["../../../../../../src/types/properties/config/annotation/zAnnotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from '../../annotation/zAnnotationPoint'\nimport { zAnnotationHorizontalLine } from '../../annotation/zAnnotationHorizontalLine'\nimport { zAnnotationArea } from '../../annotation/zAnnotationArea'\n\nexport const zAnnotationPointConfig = zAnnotationPoint.omit({ selector: true, text: true }).partial()\n\n// Use pick to explicitly list fields we want to expose in config variants.\nexport const zAnnotationHorizontalLineConfig = zAnnotationHorizontalLine\n .pick({\n // only pick fields that exist on the runtime schema\n lineColor: true,\n lineWidth: true,\n lineVisible: true,\n lineStyle: true,\n\n textBackgroundVisible: true,\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n })\n // extend with additional config-only fields that runtime schema doesn't include\n .extend({\n endSymbolVisible: z.boolean().nullish(),\n endSymbolType: z.string().nullish(),\n endSymbolSize: z.number().nullish(),\n\n startSymbolVisible: z.boolean().nullish(),\n startSymbolType: z.string().nullish(),\n startSymbolSize: z.number().nullish(),\n })\n .partial()\n\nexport const zAnnotationVerticalLineConfig = zAnnotationHorizontalLineConfig.clone()\n\nexport const zAnnotationAreaConfig = zAnnotationArea\n .pick({\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n\n textBackgroundVisible: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n\n areaColor: true,\n areaColorOpacity: true,\n areaBorderColor: true,\n areaBorderWidth: true,\n areaBorderRadius: true,\n areaLineDash: true,\n\n outerPadding: true,\n })\n .partial()\n\nexport const zAnnotationConfig = z.object({\n annotationPoint: zAnnotationPointConfig.nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLineConfig.nullish(),\n annotationVerticalLine: zAnnotationVerticalLineConfig.nullish(),\n annotationArea: zAnnotationAreaConfig.nullish(),\n})\n"],"names":["zAnnotationPointConfig","zAnnotationPoint","zAnnotationHorizontalLineConfig","zAnnotationHorizontalLine","z","zAnnotationVerticalLineConfig","zAnnotationAreaConfig","zAnnotationArea","zAnnotationConfig"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/config/annotation/zAnnotation.js","sources":["../../../../../../src/types/properties/config/annotation/zAnnotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from '../../annotation/zAnnotationPoint'\nimport { zAnnotationDifferenceLine } from '../../annotation/zAnnotationDifferenceLine'\nimport { zAnnotationHorizontalLine } from '../../annotation/zAnnotationHorizontalLine'\nimport { zAnnotationArea } from '../../annotation/zAnnotationArea'\n\nexport const zAnnotationPointConfig = zAnnotationPoint.omit({ selector: true, text: true }).partial()\n\n// Use pick to explicitly list fields we want to expose in config variants.\nexport const zAnnotationHorizontalLineConfig = zAnnotationHorizontalLine\n .pick({\n // only pick fields that exist on the runtime schema\n lineColor: true,\n lineWidth: true,\n lineVisible: true,\n lineStyle: true,\n\n textBackgroundVisible: true,\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n })\n // extend with additional config-only fields that runtime schema doesn't include\n .extend({\n endSymbolVisible: z.boolean().nullish(),\n endSymbolType: z.string().nullish(),\n endSymbolSize: z.number().nullish(),\n\n startSymbolVisible: z.boolean().nullish(),\n startSymbolType: z.string().nullish(),\n startSymbolSize: z.number().nullish(),\n })\n .partial()\n\nexport const zAnnotationVerticalLineConfig = zAnnotationHorizontalLineConfig.clone()\n\nexport const zAnnotationAreaConfig = zAnnotationArea\n .pick({\n textColor: true,\n textFontSize: true,\n textFontWeight: true,\n\n textBackgroundVisible: true,\n textBackgroundColor: true,\n textBackgroundBorderColor: true,\n textBackgroundBorderWidth: true,\n textBackgroundBorderRadius: true,\n textBackgroundPadding: true,\n\n areaColor: true,\n areaColorOpacity: true,\n areaBorderColor: true,\n areaBorderWidth: true,\n areaBorderRadius: true,\n areaLineDash: true,\n\n outerPadding: true,\n })\n .partial()\n\nexport const zAnnotationDifferenceLineConfig = zAnnotationDifferenceLine\n .pick({\n lineColor: true,\n textColor: true,\n textFontSize: true,\n textBackgroundColor: true,\n })\n .partial()\n\nexport const zAnnotationConfig = z.object({\n annotationPoint: zAnnotationPointConfig.nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLineConfig.nullish(),\n annotationVerticalLine: zAnnotationVerticalLineConfig.nullish(),\n annotationArea: zAnnotationAreaConfig.nullish(),\n annotationDifferenceLine: zAnnotationDifferenceLineConfig.nullish(),\n})\n"],"names":["zAnnotationPointConfig","zAnnotationPoint","zAnnotationHorizontalLineConfig","zAnnotationHorizontalLine","z","zAnnotationVerticalLineConfig","zAnnotationAreaConfig","zAnnotationArea","zAnnotationDifferenceLineConfig","zAnnotationDifferenceLine","zAnnotationConfig"],"mappings":";;;;;AAMO,MAAMA,yBAAyBC,iBAAiB,IAAI,CAAC;IAAE,UAAU;IAAM,MAAM;AAAK,GAAG,OAAO;AAG5F,MAAMC,kCAAkCC,0BAAAA,IACxC,CAAC;IAEJ,WAAW;IACX,WAAW;IACX,aAAa;IACb,WAAW;IAEX,uBAAuB;IACvB,WAAW;IACX,cAAc;IACd,gBAAgB;IAChB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,uBAAuB;AACzB,GAEC,MAAM,CAAC;IACN,kBAAkBC,EAAE,OAAO,GAAG,OAAO;IACrC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,eAAeA,EAAE,MAAM,GAAG,OAAO;IAEjC,oBAAoBA,EAAE,OAAO,GAAG,OAAO;IACvC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;AACrC,GACC,OAAO;AAEH,MAAMC,gCAAgCH,gCAAgC,KAAK;AAE3E,MAAMI,wBAAwBC,gBAAAA,IAC9B,CAAC;IACJ,WAAW;IACX,cAAc;IACd,gBAAgB;IAEhB,uBAAuB;IACvB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,uBAAuB;IAEvB,WAAW;IACX,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB;IAClB,cAAc;IAEd,cAAc;AAChB,GACC,OAAO;AAEH,MAAMC,kCAAkCC,0BAAAA,IACxC,CAAC;IACJ,WAAW;IACX,WAAW;IACX,cAAc;IACd,qBAAqB;AACvB,GACC,OAAO;AAEH,MAAMC,oBAAoBN,EAAE,MAAM,CAAC;IACxC,iBAAiBJ,uBAAuB,OAAO;IAC/C,0BAA0BE,gCAAgC,OAAO;IACjE,wBAAwBG,8BAA8B,OAAO;IAC7D,gBAAgBC,sBAAsB,OAAO;IAC7C,0BAA0BE,gCAAgC,OAAO;AACnE"}
|
|
@@ -595,6 +595,12 @@ export declare const zAreaConfig: z.ZodObject<{
|
|
|
595
595
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
596
596
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
597
597
|
}, z.core.$strip>>>;
|
|
598
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
599
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
600
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
601
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
602
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
603
|
+
}, z.core.$strip>>>;
|
|
598
604
|
}, z.core.$strip>>>;
|
|
599
605
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
600
606
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1211,6 +1217,12 @@ export declare const zAreaPercentConfig: z.ZodObject<{
|
|
|
1211
1217
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
1212
1218
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1213
1219
|
}, z.core.$strip>>>;
|
|
1220
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1221
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1222
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1223
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1224
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1225
|
+
}, z.core.$strip>>>;
|
|
1214
1226
|
}, z.core.$strip>>>;
|
|
1215
1227
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1216
1228
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -595,6 +595,12 @@ export declare const zBarConfig: z.ZodObject<{
|
|
|
595
595
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
596
596
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
597
597
|
}, z.core.$strip>>>;
|
|
598
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
599
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
600
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
601
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
602
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
603
|
+
}, z.core.$strip>>>;
|
|
598
604
|
}, z.core.$strip>>>;
|
|
599
605
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
600
606
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1211,6 +1217,12 @@ export declare const zBarParallelConfig: z.ZodObject<{
|
|
|
1211
1217
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
1212
1218
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1213
1219
|
}, z.core.$strip>>>;
|
|
1220
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1221
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1222
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1223
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1224
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1225
|
+
}, z.core.$strip>>>;
|
|
1214
1226
|
}, z.core.$strip>>>;
|
|
1215
1227
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1216
1228
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1827,6 +1839,12 @@ export declare const zBarPercentConfig: z.ZodObject<{
|
|
|
1827
1839
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
1828
1840
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1829
1841
|
}, z.core.$strip>>>;
|
|
1842
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1843
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1844
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1845
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1846
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1847
|
+
}, z.core.$strip>>>;
|
|
1830
1848
|
}, z.core.$strip>>>;
|
|
1831
1849
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1832
1850
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -594,6 +594,12 @@ export declare const zBoxplotConfig: z.ZodObject<{
|
|
|
594
594
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
595
595
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
596
596
|
}, z.core.$strip>>>;
|
|
597
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
598
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
599
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
600
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
601
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
602
|
+
}, z.core.$strip>>>;
|
|
597
603
|
}, z.core.$strip>>>;
|
|
598
604
|
whiskers: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>>;
|
|
599
605
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -597,6 +597,12 @@ export declare const zColumnParallelConfig: z.ZodObject<{
|
|
|
597
597
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
598
598
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
599
599
|
}, z.core.$strip>>>;
|
|
600
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
601
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
602
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
603
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
604
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
605
|
+
}, z.core.$strip>>>;
|
|
600
606
|
}, z.core.$strip>>>;
|
|
601
607
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
602
608
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1215,6 +1221,12 @@ export declare const zColumnConfig: z.ZodObject<{
|
|
|
1215
1221
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
1216
1222
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
1217
1223
|
}, z.core.$strip>>>;
|
|
1224
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1225
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1226
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1227
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1228
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1229
|
+
}, z.core.$strip>>>;
|
|
1218
1230
|
}, z.core.$strip>>>;
|
|
1219
1231
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1220
1232
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -2007,6 +2019,12 @@ export declare const zColumnPercentConfig: z.ZodObject<{
|
|
|
2007
2019
|
areaLineDash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>>;
|
|
2008
2020
|
outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
|
|
2009
2021
|
}, z.core.$strip>>>;
|
|
2022
|
+
annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2023
|
+
lineColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2024
|
+
textColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2025
|
+
textFontSize: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
2026
|
+
textBackgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
2027
|
+
}, z.core.$strip>>>;
|
|
2010
2028
|
}, z.core.$strip>>>;
|
|
2011
2029
|
dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2012
2030
|
enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|