@visactor/vseed 0.1.39 → 0.1.41

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.
Files changed (110) hide show
  1. package/dist/cjs/index.cjs +3 -3
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +3028 -286
  4. package/dist/esm/pipeline/advanced/chart/pipeline/column.js +3 -2
  5. package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
  6. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +3 -2
  7. package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
  8. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +28 -1
  9. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -1
  10. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +0 -1
  11. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/column.js +5 -3
  13. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  14. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +5 -3
  15. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  16. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +9 -3
  17. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  18. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +7 -2
  19. package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +3 -0
  21. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  22. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.d.ts +2 -0
  23. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +150 -0
  24. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -0
  25. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.d.ts +4 -0
  26. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js +21 -0
  27. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -0
  28. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.d.ts +2 -0
  29. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +98 -0
  30. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -0
  31. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.d.ts +4 -1
  32. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.js +4 -1
  33. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.d.ts +2 -0
  34. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +98 -0
  35. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -0
  36. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.d.ts +16 -0
  37. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +159 -0
  38. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -0
  39. package/dist/esm/theme/common/regressionLine.d.ts +8 -4
  40. package/dist/esm/theme/common/regressionLine.js +60 -8
  41. package/dist/esm/theme/common/regressionLine.js.map +1 -1
  42. package/dist/esm/theme/dark/dark.js +6 -4
  43. package/dist/esm/theme/dark/dark.js.map +1 -1
  44. package/dist/esm/theme/light/light.js +6 -4
  45. package/dist/esm/theme/light/light.js.map +1 -1
  46. package/dist/esm/types/advancedVSeed.d.ts +988 -37
  47. package/dist/esm/types/advancedVSeed.js +2 -2
  48. package/dist/esm/types/advancedVSeed.js.map +1 -1
  49. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  50. package/dist/esm/types/chartType/column/zColumn.d.ts +25 -0
  51. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  52. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  53. package/dist/esm/types/chartType/histogram/histogram.d.ts +7 -3
  54. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +19 -4
  55. package/dist/esm/types/chartType/histogram/zHistogram.js +3 -2
  56. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  57. package/dist/esm/types/chartType/scatter/scatter.d.ts +21 -1
  58. package/dist/esm/types/chartType/scatter/zScatter.d.ts +94 -0
  59. package/dist/esm/types/chartType/scatter/zScatter.js +5 -1
  60. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  61. package/dist/esm/types/properties/config/area.d.ts +4 -0
  62. package/dist/esm/types/properties/config/bar.d.ts +6 -0
  63. package/dist/esm/types/properties/config/boxplot.d.ts +2 -0
  64. package/dist/esm/types/properties/config/column.d.ts +138 -2
  65. package/dist/esm/types/properties/config/column.js +6 -3
  66. package/dist/esm/types/properties/config/column.js.map +1 -1
  67. package/dist/esm/types/properties/config/config.d.ts +429 -9
  68. package/dist/esm/types/properties/config/dualAxis.d.ts +2 -0
  69. package/dist/esm/types/properties/config/funnel.d.ts +2 -0
  70. package/dist/esm/types/properties/config/heatmap.d.ts +2 -0
  71. package/dist/esm/types/properties/config/histogram.d.ts +131 -9
  72. package/dist/esm/types/properties/config/histogram.js +2 -2
  73. package/dist/esm/types/properties/config/histogram.js.map +1 -1
  74. package/dist/esm/types/properties/config/line.d.ts +2 -0
  75. package/dist/esm/types/properties/config/pie.d.ts +6 -0
  76. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +2 -0
  77. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +3 -1
  78. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
  79. package/dist/esm/types/properties/config/rose.d.ts +4 -0
  80. package/dist/esm/types/properties/config/scatter.d.ts +132 -0
  81. package/dist/esm/types/properties/config/scatter.js +3 -1
  82. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  83. package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.d.ts → ecdfRegressionLine.d.ts} +2 -7
  84. package/dist/esm/types/properties/regressionLine/index.d.ts +7 -2
  85. package/dist/esm/types/properties/regressionLine/index.js +1 -1
  86. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +40 -0
  87. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.js +0 -0
  88. package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +53 -0
  89. package/dist/esm/types/properties/regressionLine/linearRegressionLine.js +0 -0
  90. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +53 -0
  91. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.js +0 -0
  92. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +53 -0
  93. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.js +0 -0
  94. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +57 -0
  95. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.js +0 -0
  96. package/dist/esm/types/properties/regressionLine/zRegressionLine.d.ts +199 -0
  97. package/dist/esm/types/properties/regressionLine/zRegressionLine.js +32 -0
  98. package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -0
  99. package/dist/esm/types/properties/theme/customTheme.d.ts +858 -18
  100. package/dist/esm/types/zVseed.d.ts +138 -4
  101. package/dist/umd/index.js +1156 -134
  102. package/dist/umd/index.js.map +1 -1
  103. package/package.json +1 -1
  104. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.d.ts +0 -2
  105. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js +0 -126
  106. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js.map +0 -1
  107. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.d.ts +0 -11
  108. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js +0 -17
  109. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js.map +0 -1
  110. /package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.js → ecdfRegressionLine.js} +0 -0
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @description 局部加权回归线配置项
3
+ */
4
+ export interface LowessRegressionLine {
5
+ /**
6
+ * @description 回归线颜色
7
+ * 用于设置回归线的颜色,如果不设置,默认使用图表的主颜色
8
+ */
9
+ color?: string;
10
+ /**
11
+ * @description 回归线宽度
12
+ * 用于设置回归线的宽度,单位为像素,默认值为1
13
+ */
14
+ lineWidth?: number;
15
+ /**
16
+ * @description 回归线样式
17
+ * 用于设置回归线的样式,例如实线、虚线等,默认值为实线
18
+ */
19
+ lineDash?: number[];
20
+ /**
21
+ * @description 回归线标签文本
22
+ * 用于设置回归线的标签文本,空字符串表示不显示标签
23
+ */
24
+ text?: string;
25
+ /**
26
+ * @description 文本颜色
27
+ * @example 'red'
28
+ */
29
+ textColor?: string;
30
+ /**
31
+ * @description 文本字体大小
32
+ * @example 12
33
+ */
34
+ textFontSize?: number;
35
+ /**
36
+ * @description 文本字体重量
37
+ * @example 400
38
+ */
39
+ textFontWeight?: number;
40
+ /**
41
+ * @description 是否显示置信区间
42
+ */
43
+ confidenceIntervalVisible?: boolean;
44
+ /**
45
+ * @description 置信区间颜色
46
+ */
47
+ confidenceIntervalColor?: string;
48
+ /**
49
+ * @description 置信区间透明度
50
+ * @example 0.5
51
+ */
52
+ confidenceIntervalOpacity?: number;
53
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @description 多项式回归线配置
3
+ */
4
+ export interface PolynomialRegressionLine {
5
+ /**
6
+ * @description 回归线颜色
7
+ * 用于设置回归线的颜色,如果不设置,默认使用图表的主颜色
8
+ */
9
+ color?: string;
10
+ /**
11
+ * 多项式回归的阶数
12
+ */
13
+ degree?: number;
14
+ /**
15
+ * @description 回归线宽度
16
+ * 用于设置回归线的宽度,单位为像素,默认值为1
17
+ */
18
+ lineWidth?: number;
19
+ /**
20
+ * @description 回归线样式
21
+ * 用于设置回归线的样式,例如实线、虚线等,默认值为实线
22
+ */
23
+ lineDash?: number[];
24
+ /**
25
+ * @description 回归线标签文本
26
+ * 用于设置回归线的标签文本,空字符串表示不显示标签
27
+ */
28
+ text?: string;
29
+ /**
30
+ * @description 文本颜色
31
+ * @example 'red'
32
+ */
33
+ textColor?: string;
34
+ /**
35
+ * @description 文本字体大小
36
+ * @example 12
37
+ */
38
+ textFontSize?: number;
39
+ /**
40
+ * @description 文本字体重量
41
+ * @example 400
42
+ */
43
+ textFontWeight?: number;
44
+ /**
45
+ * @description 是否显示置信区间
46
+ */
47
+ confidenceIntervalVisible?: boolean;
48
+ /**
49
+ * @description 置信区间颜色
50
+ */
51
+ confidenceIntervalColor?: string;
52
+ /**
53
+ * @description 置信区间透明度
54
+ * @example 0.5
55
+ */
56
+ confidenceIntervalOpacity?: number;
57
+ }
@@ -0,0 +1,199 @@
1
+ import { z } from 'zod';
2
+ export declare const zEcdfRegressionLine: z.ZodObject<{
3
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
6
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ }, z.core.$strip>;
11
+ export declare const zKdeRegressionLine: z.ZodObject<{
12
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
15
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ }, z.core.$strip>;
20
+ export declare const zLinearRegressionLine: z.ZodObject<{
21
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
24
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ }, z.core.$strip>;
32
+ export declare const zLogisticRegressionLine: z.ZodObject<{
33
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
36
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
41
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ }, z.core.$strip>;
44
+ export declare const zLowessRegressionLine: z.ZodObject<{
45
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
48
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
53
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ }, z.core.$strip>;
56
+ export declare const zPolynomialRegressionLine: z.ZodObject<{
57
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
60
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
63
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
64
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
65
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
67
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
+ }, z.core.$strip>;
69
+ export declare const zRegressionLine: z.ZodObject<{
70
+ ecdfRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
71
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
73
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
74
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
79
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
82
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
85
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
86
+ }, z.core.$strip>>]>>>;
87
+ kdeRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
88
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
91
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
94
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
95
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
96
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
99
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
102
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
103
+ }, z.core.$strip>>]>>>;
104
+ linearRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
105
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
108
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
111
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
112
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
113
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
115
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
116
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
118
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
119
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
123
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
124
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
126
+ }, z.core.$strip>>]>>>;
127
+ lowessRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
128
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
130
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
131
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
132
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
134
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
135
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
136
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
138
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
139
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
141
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
142
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
145
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
146
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
147
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
149
+ }, z.core.$strip>>]>>>;
150
+ polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
151
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
153
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
154
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
157
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
158
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
161
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
162
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
163
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
165
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
166
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
171
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
173
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
174
+ }, z.core.$strip>>]>>>;
175
+ logisticRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
176
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
178
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
179
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
182
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
184
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
186
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
187
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
189
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
190
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
193
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
194
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
195
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
197
+ }, z.core.$strip>>]>>>;
198
+ }, z.core.$strip>;
199
+ export type RegressionLineConfig = z.infer<typeof zRegressionLine>;
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ const zEcdfRegressionLine = z.object({
3
+ color: z.string().nullish(),
4
+ lineWidth: z.number().nullish(),
5
+ lineDash: z.array(z.number()).nullish(),
6
+ text: z.string().nullish(),
7
+ textColor: z.string().nullish(),
8
+ textFontSize: z.number().nullish(),
9
+ textFontWeight: z.number().nullish()
10
+ });
11
+ const zKdeRegressionLine = zEcdfRegressionLine.extend({});
12
+ const zLinearRegressionLine = zEcdfRegressionLine.extend({
13
+ confidenceIntervalVisible: z.boolean().nullish(),
14
+ confidenceIntervalColor: z.string().nullish(),
15
+ confidenceIntervalOpacity: z.number().nullish()
16
+ });
17
+ const zLogisticRegressionLine = zLinearRegressionLine.extend({});
18
+ const zLowessRegressionLine = zLinearRegressionLine.extend({});
19
+ const zPolynomialRegressionLine = zLinearRegressionLine.extend({
20
+ degree: z.number().nullish()
21
+ });
22
+ const zRegressionLine = z.object({
23
+ ecdfRegressionLine: zEcdfRegressionLine.or(z.array(zEcdfRegressionLine)).nullish(),
24
+ kdeRegressionLine: zKdeRegressionLine.or(z.array(zKdeRegressionLine)).nullish(),
25
+ linearRegressionLine: zLinearRegressionLine.or(z.array(zLinearRegressionLine)).nullish(),
26
+ lowessRegressionLine: zLowessRegressionLine.or(z.array(zLowessRegressionLine)).nullish(),
27
+ polynomialRegressionLine: zPolynomialRegressionLine.or(z.array(zPolynomialRegressionLine)).nullish(),
28
+ logisticRegressionLine: zLogisticRegressionLine.or(z.array(zLogisticRegressionLine)).nullish()
29
+ });
30
+ export { zEcdfRegressionLine, zKdeRegressionLine, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zPolynomialRegressionLine, zRegressionLine };
31
+
32
+ //# sourceMappingURL=zRegressionLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types/properties/regressionLine/zRegressionLine.js","sources":["webpack://@visactor/vseed/./src/types/properties/regressionLine/zRegressionLine.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zEcdfRegressionLine = z.object({\n color: z.string().nullish(),\n lineWidth: z.number().nullish(),\n lineDash: z.array(z.number()).nullish(),\n text: z.string().nullish(),\n textColor: z.string().nullish(),\n textFontSize: z.number().nullish(),\n textFontWeight: z.number().nullish(),\n})\n\nexport const zKdeRegressionLine = zEcdfRegressionLine.extend({})\n\nexport const zLinearRegressionLine = zEcdfRegressionLine.extend({\n confidenceIntervalVisible: z.boolean().nullish(),\n confidenceIntervalColor: z.string().nullish(),\n confidenceIntervalOpacity: z.number().nullish(),\n})\n\nexport const zLogisticRegressionLine = zLinearRegressionLine.extend({})\nexport const zLowessRegressionLine = zLinearRegressionLine.extend({})\n\nexport const zPolynomialRegressionLine = zLinearRegressionLine.extend({\n degree: z.number().nullish(),\n})\n\nexport const zRegressionLine = z.object({\n ecdfRegressionLine: zEcdfRegressionLine.or(z.array(zEcdfRegressionLine)).nullish(),\n kdeRegressionLine: zKdeRegressionLine.or(z.array(zKdeRegressionLine)).nullish(),\n linearRegressionLine: zLinearRegressionLine.or(z.array(zLinearRegressionLine)).nullish(),\n lowessRegressionLine: zLowessRegressionLine.or(z.array(zLowessRegressionLine)).nullish(),\n polynomialRegressionLine: zPolynomialRegressionLine.or(z.array(zPolynomialRegressionLine)).nullish(),\n logisticRegressionLine: zLogisticRegressionLine.or(z.array(zLogisticRegressionLine)).nullish(),\n})\n\nexport type RegressionLineConfig = z.infer<typeof zRegressionLine>\n"],"names":["zEcdfRegressionLine","z","zKdeRegressionLine","zLinearRegressionLine","zLogisticRegressionLine","zLowessRegressionLine","zPolynomialRegressionLine","zRegressionLine"],"mappings":";AAEO,MAAMA,sBAAsBC,EAAE,MAAM,CAAC;IAC1C,OAAOA,EAAE,MAAM,GAAG,OAAO;IACzB,WAAWA,EAAE,MAAM,GAAG,OAAO;IAC7B,UAAUA,EAAE,KAAK,CAACA,EAAE,MAAM,IAAI,OAAO;IACrC,MAAMA,EAAE,MAAM,GAAG,OAAO;IACxB,WAAWA,EAAE,MAAM,GAAG,OAAO;IAC7B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,gBAAgBA,EAAE,MAAM,GAAG,OAAO;AACpC;AAEO,MAAMC,qBAAqBF,oBAAoB,MAAM,CAAC,CAAC;AAEvD,MAAMG,wBAAwBH,oBAAoB,MAAM,CAAC;IAC9D,2BAA2BC,EAAE,OAAO,GAAG,OAAO;IAC9C,yBAAyBA,EAAE,MAAM,GAAG,OAAO;IAC3C,2BAA2BA,EAAE,MAAM,GAAG,OAAO;AAC/C;AAEO,MAAMG,0BAA0BD,sBAAsB,MAAM,CAAC,CAAC;AAC9D,MAAME,wBAAwBF,sBAAsB,MAAM,CAAC,CAAC;AAE5D,MAAMG,4BAA4BH,sBAAsB,MAAM,CAAC;IACpE,QAAQF,EAAE,MAAM,GAAG,OAAO;AAC5B;AAEO,MAAMM,kBAAkBN,EAAE,MAAM,CAAC;IACtC,oBAAoBD,oBAAoB,EAAE,CAACC,EAAE,KAAK,CAACD,sBAAsB,OAAO;IAChF,mBAAmBE,mBAAmB,EAAE,CAACD,EAAE,KAAK,CAACC,qBAAqB,OAAO;IAC7E,sBAAsBC,sBAAsB,EAAE,CAACF,EAAE,KAAK,CAACE,wBAAwB,OAAO;IACtF,sBAAsBE,sBAAsB,EAAE,CAACJ,EAAE,KAAK,CAACI,wBAAwB,OAAO;IACtF,0BAA0BC,0BAA0B,EAAE,CAACL,EAAE,KAAK,CAACK,4BAA4B,OAAO;IAClG,wBAAwBF,wBAAwB,EAAE,CAACH,EAAE,KAAK,CAACG,0BAA0B,OAAO;AAC9F"}