@visactor/vseed 0.1.14 → 0.1.15

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 (119) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +1113 -9
  4. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +1 -3
  5. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  6. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -3
  7. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  8. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +9 -3
  9. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  10. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +9 -3
  11. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  12. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +8 -3
  13. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  14. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +8 -3
  15. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  16. package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipes/label/index.js +2 -2
  18. package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +5 -1
  19. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +40 -32
  20. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +15 -52
  22. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipes/label/{labelColorInversion.d.ts → labelScatter.d.ts} +1 -1
  24. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js +19 -0
  25. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -0
  26. package/dist/esm/pipeline/spec/chart/pipes/series/series.js +1 -0
  27. package/dist/esm/pipeline/spec/chart/pipes/series/series.js.map +1 -1
  28. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +3 -3
  29. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +13 -30
  30. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +6 -6
  32. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  33. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js +6 -18
  34. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +6 -18
  36. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  37. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js +8 -11
  38. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
  39. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js +8 -13
  40. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
  41. package/dist/esm/pipeline/utils/constant.d.ts +1 -0
  42. package/dist/esm/pipeline/utils/constant.js +2 -1
  43. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  44. package/dist/esm/pipeline/utils/format/createFormatter.d.ts +1 -1
  45. package/dist/esm/pipeline/utils/format/createFormatter.js +3 -2
  46. package/dist/esm/pipeline/utils/format/createFormatter.js.map +1 -1
  47. package/dist/esm/pipeline/utils/format/createFormatterByMeasure.d.ts +2 -0
  48. package/dist/esm/pipeline/utils/format/createFormatterByMeasure.js +13 -0
  49. package/dist/esm/pipeline/utils/format/createFormatterByMeasure.js.map +1 -0
  50. package/dist/esm/pipeline/utils/format/createNumFormatter.d.ts +1 -1
  51. package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
  52. package/dist/esm/pipeline/utils/format/index.d.ts +1 -0
  53. package/dist/esm/pipeline/utils/format/index.js +1 -0
  54. package/dist/esm/theme/dark.js +5 -1
  55. package/dist/esm/theme/dark.js.map +1 -1
  56. package/dist/esm/theme/light.js +23 -4
  57. package/dist/esm/theme/light.js.map +1 -1
  58. package/dist/esm/types/advancedVSeed.d.ts +947 -17
  59. package/dist/esm/types/chartType/area/zArea.d.ts +60 -0
  60. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +60 -0
  61. package/dist/esm/types/chartType/bar/zBar.d.ts +60 -0
  62. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +60 -0
  63. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +60 -0
  64. package/dist/esm/types/chartType/column/zColumn.d.ts +60 -0
  65. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +60 -0
  66. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +60 -0
  67. package/dist/esm/types/chartType/donut/zDonut.d.ts +30 -0
  68. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +270 -0
  69. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +30 -0
  70. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +30 -0
  71. package/dist/esm/types/chartType/line/zLine.d.ts +60 -0
  72. package/dist/esm/types/chartType/pie/zPie.d.ts +30 -0
  73. package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +30 -0
  74. package/dist/esm/types/chartType/radar/zRadar.d.ts +30 -0
  75. package/dist/esm/types/chartType/rose/zRose.d.ts +30 -0
  76. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +30 -0
  77. package/dist/esm/types/chartType/scatter/zScatter.d.ts +210 -0
  78. package/dist/esm/types/chartType/table/zTable.d.ts +30 -0
  79. package/dist/esm/types/properties/config/axes/bandAxis.d.ts +146 -3
  80. package/dist/esm/types/properties/config/axes/index.d.ts +0 -2
  81. package/dist/esm/types/properties/config/axes/index.js +0 -1
  82. package/dist/esm/types/properties/config/axes/linearAxis.d.ts +149 -3
  83. package/dist/esm/types/properties/config/axes/zLinearAxis.d.ts +60 -0
  84. package/dist/esm/types/properties/config/axes/zLinearAxis.js +2 -0
  85. package/dist/esm/types/properties/config/axes/zLinearAxis.js.map +1 -1
  86. package/dist/esm/types/properties/config/config.d.ts +916 -16
  87. package/dist/esm/types/properties/config/label/label.d.ts +2 -2
  88. package/dist/esm/types/properties/config/label/zLabel.js +1 -1
  89. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  90. package/dist/esm/types/properties/format/numFormat.js.map +1 -0
  91. package/dist/esm/types/properties/index.d.ts +1 -0
  92. package/dist/esm/types/properties/index.js +1 -0
  93. package/dist/esm/types/properties/measures/index.d.ts +0 -1
  94. package/dist/esm/types/properties/measures/index.js +0 -1
  95. package/dist/esm/types/properties/measures/measures.d.ts +6 -2
  96. package/dist/esm/types/properties/measures/zDualMeasures.d.ts +240 -0
  97. package/dist/esm/types/properties/measures/zMeasures.d.ts +90 -0
  98. package/dist/esm/types/properties/measures/zMeasures.js +2 -1
  99. package/dist/esm/types/properties/measures/zMeasures.js.map +1 -1
  100. package/dist/esm/types/properties/measures/zScatterMeasures.d.ts +240 -0
  101. package/dist/esm/types/properties/theme/customTheme.d.ts +916 -16
  102. package/dist/esm/types/zVseed.d.ts +1389 -99
  103. package/dist/umd/index.js +181 -252
  104. package/dist/umd/index.js.map +1 -1
  105. package/package.json +1 -1
  106. package/dist/esm/pipeline/spec/chart/pipes/label/labelColorInversion.js +0 -13
  107. package/dist/esm/pipeline/spec/chart/pipes/label/labelColorInversion.js.map +0 -1
  108. package/dist/esm/types/properties/config/axes/axis.d.ts +0 -208
  109. package/dist/esm/types/properties/config/axes/axis.js +0 -0
  110. package/dist/esm/types/properties/config/axes/zAxis.d.ts +0 -47
  111. package/dist/esm/types/properties/config/axes/zAxis.js +0 -54
  112. package/dist/esm/types/properties/config/axes/zAxis.js.map +0 -1
  113. package/dist/esm/types/properties/measures/format/numFormat.js.map +0 -1
  114. /package/dist/esm/types/properties/{measures/format → format}/formatter.d.ts +0 -0
  115. /package/dist/esm/types/properties/{measures/format → format}/formatter.js +0 -0
  116. /package/dist/esm/types/properties/{measures/format → format}/index.d.ts +0 -0
  117. /package/dist/esm/types/properties/{measures/format → format}/index.js +0 -0
  118. /package/dist/esm/types/properties/{measures/format → format}/numFormat.d.ts +0 -0
  119. /package/dist/esm/types/properties/{measures/format → format}/numFormat.js +0 -0
@@ -35,6 +35,36 @@ export declare const zRoseParallel: z.ZodObject<{
35
35
  id: z.ZodString;
36
36
  alias: z.ZodOptional<z.ZodString>;
37
37
  autoFormat: z.ZodDefault<z.ZodBoolean>;
38
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
39
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
40
+ number: "number";
41
+ percent: "percent";
42
+ permille: "permille";
43
+ scientific: "scientific";
44
+ }>>>;
45
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
46
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
47
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
48
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
49
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
50
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
51
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
52
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
53
+ morePrecision: "morePrecision";
54
+ lessPrecision: "lessPrecision";
55
+ }>>>;
56
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
57
+ floor: "floor";
58
+ ceil: "ceil";
59
+ expand: "expand";
60
+ trunc: "trunc";
61
+ halfCeil: "halfCeil";
62
+ halfFloor: "halfFloor";
63
+ halfExpand: "halfExpand";
64
+ halfTrunc: "halfTrunc";
65
+ halfEven: "halfEven";
66
+ }>>>;
67
+ }, z.core.$strip>>>;
38
68
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
39
69
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
40
70
  number: "number";
@@ -35,6 +35,36 @@ export declare const zScatter: z.ZodObject<{
35
35
  id: z.ZodString;
36
36
  alias: z.ZodOptional<z.ZodString>;
37
37
  autoFormat: z.ZodDefault<z.ZodBoolean>;
38
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
39
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
40
+ number: "number";
41
+ percent: "percent";
42
+ permille: "permille";
43
+ scientific: "scientific";
44
+ }>>>;
45
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
46
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
47
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
48
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
49
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
50
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
51
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
52
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
53
+ morePrecision: "morePrecision";
54
+ lessPrecision: "lessPrecision";
55
+ }>>>;
56
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
57
+ floor: "floor";
58
+ ceil: "ceil";
59
+ expand: "expand";
60
+ trunc: "trunc";
61
+ halfCeil: "halfCeil";
62
+ halfFloor: "halfFloor";
63
+ halfExpand: "halfExpand";
64
+ halfTrunc: "halfTrunc";
65
+ halfEven: "halfEven";
66
+ }>>>;
67
+ }, z.core.$strip>>>;
38
68
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
39
69
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
40
70
  number: "number";
@@ -87,6 +117,36 @@ export declare const zScatter: z.ZodObject<{
87
117
  id: z.ZodString;
88
118
  alias: z.ZodOptional<z.ZodString>;
89
119
  autoFormat: z.ZodDefault<z.ZodBoolean>;
120
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
121
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
122
+ number: "number";
123
+ percent: "percent";
124
+ permille: "permille";
125
+ scientific: "scientific";
126
+ }>>>;
127
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
128
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
129
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
130
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
131
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
132
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
133
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
134
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
135
+ morePrecision: "morePrecision";
136
+ lessPrecision: "lessPrecision";
137
+ }>>>;
138
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
139
+ floor: "floor";
140
+ ceil: "ceil";
141
+ expand: "expand";
142
+ trunc: "trunc";
143
+ halfCeil: "halfCeil";
144
+ halfFloor: "halfFloor";
145
+ halfExpand: "halfExpand";
146
+ halfTrunc: "halfTrunc";
147
+ halfEven: "halfEven";
148
+ }>>>;
149
+ }, z.core.$strip>>>;
90
150
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
91
151
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
92
152
  number: "number";
@@ -136,6 +196,36 @@ export declare const zScatter: z.ZodObject<{
136
196
  id: z.ZodString;
137
197
  alias: z.ZodOptional<z.ZodString>;
138
198
  autoFormat: z.ZodDefault<z.ZodBoolean>;
199
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
200
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
201
+ number: "number";
202
+ percent: "percent";
203
+ permille: "permille";
204
+ scientific: "scientific";
205
+ }>>>;
206
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
207
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
208
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
209
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
210
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
211
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
212
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
213
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
214
+ morePrecision: "morePrecision";
215
+ lessPrecision: "lessPrecision";
216
+ }>>>;
217
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
218
+ floor: "floor";
219
+ ceil: "ceil";
220
+ expand: "expand";
221
+ trunc: "trunc";
222
+ halfCeil: "halfCeil";
223
+ halfFloor: "halfFloor";
224
+ halfExpand: "halfExpand";
225
+ halfTrunc: "halfTrunc";
226
+ halfEven: "halfEven";
227
+ }>>>;
228
+ }, z.core.$strip>>>;
139
229
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
140
230
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
141
231
  number: "number";
@@ -186,6 +276,36 @@ export declare const zScatter: z.ZodObject<{
186
276
  id: z.ZodString;
187
277
  alias: z.ZodOptional<z.ZodString>;
188
278
  autoFormat: z.ZodDefault<z.ZodBoolean>;
279
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
280
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
281
+ number: "number";
282
+ percent: "percent";
283
+ permille: "permille";
284
+ scientific: "scientific";
285
+ }>>>;
286
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
287
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
288
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
289
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
290
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
291
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
292
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
293
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
294
+ morePrecision: "morePrecision";
295
+ lessPrecision: "lessPrecision";
296
+ }>>>;
297
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
298
+ floor: "floor";
299
+ ceil: "ceil";
300
+ expand: "expand";
301
+ trunc: "trunc";
302
+ halfCeil: "halfCeil";
303
+ halfFloor: "halfFloor";
304
+ halfExpand: "halfExpand";
305
+ halfTrunc: "halfTrunc";
306
+ halfEven: "halfEven";
307
+ }>>>;
308
+ }, z.core.$strip>>>;
189
309
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
190
310
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
191
311
  number: "number";
@@ -235,6 +355,36 @@ export declare const zScatter: z.ZodObject<{
235
355
  id: z.ZodString;
236
356
  alias: z.ZodOptional<z.ZodString>;
237
357
  autoFormat: z.ZodDefault<z.ZodBoolean>;
358
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
359
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
360
+ number: "number";
361
+ percent: "percent";
362
+ permille: "permille";
363
+ scientific: "scientific";
364
+ }>>>;
365
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
366
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
367
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
368
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
369
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
370
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
371
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
372
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
373
+ morePrecision: "morePrecision";
374
+ lessPrecision: "lessPrecision";
375
+ }>>>;
376
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
377
+ floor: "floor";
378
+ ceil: "ceil";
379
+ expand: "expand";
380
+ trunc: "trunc";
381
+ halfCeil: "halfCeil";
382
+ halfFloor: "halfFloor";
383
+ halfExpand: "halfExpand";
384
+ halfTrunc: "halfTrunc";
385
+ halfEven: "halfEven";
386
+ }>>>;
387
+ }, z.core.$strip>>>;
238
388
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
239
389
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
240
390
  number: "number";
@@ -398,6 +548,36 @@ export declare const zScatter: z.ZodObject<{
398
548
  log: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
399
549
  logBase: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
400
550
  inverse: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
551
+ numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
552
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
553
+ number: "number";
554
+ percent: "percent";
555
+ permille: "permille";
556
+ scientific: "scientific";
557
+ }>>>;
558
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
559
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
560
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
561
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
562
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
563
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
564
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
565
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
566
+ morePrecision: "morePrecision";
567
+ lessPrecision: "lessPrecision";
568
+ }>>>;
569
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
570
+ floor: "floor";
571
+ ceil: "ceil";
572
+ expand: "expand";
573
+ trunc: "trunc";
574
+ halfCeil: "halfCeil";
575
+ halfFloor: "halfFloor";
576
+ halfExpand: "halfExpand";
577
+ halfTrunc: "halfTrunc";
578
+ halfEven: "halfEven";
579
+ }>>>;
580
+ }, z.core.$strip>>>>;
401
581
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
402
582
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
403
583
  labelColor: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
@@ -438,6 +618,36 @@ export declare const zScatter: z.ZodObject<{
438
618
  log: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
439
619
  logBase: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
440
620
  inverse: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
621
+ numFormat: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
622
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
623
+ number: "number";
624
+ percent: "percent";
625
+ permille: "permille";
626
+ scientific: "scientific";
627
+ }>>>;
628
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
629
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
630
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
631
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
632
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
633
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
634
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
635
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
636
+ morePrecision: "morePrecision";
637
+ lessPrecision: "lessPrecision";
638
+ }>>>;
639
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
640
+ floor: "floor";
641
+ ceil: "ceil";
642
+ expand: "expand";
643
+ trunc: "trunc";
644
+ halfCeil: "halfCeil";
645
+ halfFloor: "halfFloor";
646
+ halfExpand: "halfExpand";
647
+ halfTrunc: "halfTrunc";
648
+ halfEven: "halfEven";
649
+ }>>>;
650
+ }, z.core.$strip>>>>;
441
651
  label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
442
652
  visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
443
653
  labelColor: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
@@ -21,6 +21,36 @@ export declare const zTable: z.ZodObject<{
21
21
  id: z.ZodString;
22
22
  alias: z.ZodOptional<z.ZodString>;
23
23
  autoFormat: z.ZodDefault<z.ZodBoolean>;
24
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
25
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
26
+ number: "number";
27
+ percent: "percent";
28
+ permille: "permille";
29
+ scientific: "scientific";
30
+ }>>>;
31
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
32
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
33
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
34
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
35
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
36
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
37
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
38
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
39
+ morePrecision: "morePrecision";
40
+ lessPrecision: "lessPrecision";
41
+ }>>>;
42
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
43
+ floor: "floor";
44
+ ceil: "ceil";
45
+ expand: "expand";
46
+ trunc: "trunc";
47
+ halfCeil: "halfCeil";
48
+ halfFloor: "halfFloor";
49
+ halfExpand: "halfExpand";
50
+ halfTrunc: "halfTrunc";
51
+ halfEven: "halfEven";
52
+ }>>>;
53
+ }, z.core.$strip>>>;
24
54
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
25
55
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
26
56
  number: "number";
@@ -1,3 +1,146 @@
1
- import type { Axis } from './axis';
2
- export type XBandAxis = Omit<Axis, 'min' | 'max' | 'nice' | 'zero' | 'log' | 'logBase'>;
3
- export type YBandAxis = Omit<Axis, 'min' | 'max' | 'nice' | 'zero' | 'log' | 'logBase'>;
1
+ export type XBandAxis = {
2
+ /**
3
+ * @description 轴是否可见
4
+ */
5
+ visible?: boolean;
6
+ /**
7
+ * @description 轴是否反向展示, 仅对数值轴生效
8
+ */
9
+ inverse?: boolean;
10
+ /**
11
+ * @description 是否在坐标轴上强制显示 0 值, 当配置了 min 和 max, 该配置项失效, 仅对数值轴生效
12
+ */
13
+ zero?: boolean;
14
+ /**
15
+ * @description 轴标签, 自动隐藏, 2个标签若重叠(间隔小于autoHideGap), 则自动隐藏导致重叠的标签. 仅对类目轴生效.
16
+ */
17
+ labelAutoHide?: boolean;
18
+ /**
19
+ * @description 轴标签, 自动隐藏间隔, 若2个文本标签的间隔小于autoHideGap, 则自动隐藏导致重叠的标签. 仅对类目轴生效.
20
+ * autoHide开启时, 使用autoHide, 设置在autoHideSeparation上
21
+ * autoHide关闭时, 使用sampling采样, 设置在minGap上
22
+ */
23
+ labelAutoHideGap?: number;
24
+ /**
25
+ * @description 轴标签, 自动旋转, 当标签宽度超过轴长度时, 自动旋转标签. 仅对类目轴生效.
26
+ */
27
+ labelAutoRotate?: boolean;
28
+ /**
29
+ * @description 轴标签, 自动旋转角度范围, 当自动旋转开启时, 标签旋转角度范围. 仅对类目轴生效.
30
+ */
31
+ labelAutoRotateAngleRange?: number[];
32
+ /**
33
+ * @description 轴标签, 自动限制长度, 当标签宽度超过轴长度时, 超出部分省略号表示, 鼠标悬浮后可见标签, 自动限制标签宽度. 仅对类目轴生效.
34
+ */
35
+ labelAutoLimit?: boolean;
36
+ /**
37
+ * @description 轴标签, 自动限制长度的最大长度, 当标签文本长度超过最大长度时, 超出部分省略号表示, 鼠标悬浮后可见标签. 仅对类目轴生效.
38
+ */
39
+ labelAutoLimitLength?: number;
40
+ /**
41
+ * @description X轴刻度标签
42
+ */
43
+ label?: {
44
+ /**
45
+ * @description 标签是否可见
46
+ */
47
+ visible?: boolean;
48
+ /**
49
+ * @description 标签颜色
50
+ */
51
+ labelColor?: string;
52
+ /**
53
+ * @description 标签字体大小
54
+ */
55
+ labelFontSize?: number;
56
+ /**
57
+ * @description 标签字体粗细
58
+ */
59
+ labelFontWeight?: number;
60
+ /**
61
+ * @description 标签旋转角度
62
+ */
63
+ labelAngle?: number;
64
+ };
65
+ /**
66
+ * @description X轴线
67
+ */
68
+ line?: {
69
+ /**
70
+ * @description 轴线是否可见
71
+ */
72
+ visible?: boolean;
73
+ /**
74
+ * @description 轴线颜色
75
+ */
76
+ lineColor?: string;
77
+ /**
78
+ * @description 轴线宽度
79
+ */
80
+ lineWidth?: number;
81
+ };
82
+ /**
83
+ * @description X轴刻度
84
+ */
85
+ tick?: {
86
+ /**
87
+ * 刻度是否可见
88
+ * @default true
89
+ */
90
+ visible?: boolean;
91
+ /**
92
+ * 刻度是否朝内
93
+ * @default false
94
+ */
95
+ tickInside?: boolean;
96
+ /**
97
+ * 刻度颜色
98
+ */
99
+ tickColor?: string;
100
+ /**
101
+ * 刻度尺寸
102
+ */
103
+ tickSize?: number;
104
+ };
105
+ /**
106
+ * @description X轴标题
107
+ */
108
+ title?: {
109
+ /**
110
+ * 标题是否可见
111
+ * @default false
112
+ */
113
+ visible?: boolean;
114
+ /**
115
+ * 标题文本, 默认跟随字段配置
116
+ */
117
+ titleText?: string;
118
+ /**
119
+ * 标题颜色
120
+ */
121
+ titleColor?: string;
122
+ /**
123
+ * 标题字体大小
124
+ */
125
+ titleFontSize?: number;
126
+ /**
127
+ * 标题字体粗细
128
+ */
129
+ titleFontWeight?: number;
130
+ };
131
+ /**
132
+ * @description X轴网格线
133
+ */
134
+ grid?: {
135
+ visible?: boolean;
136
+ /**
137
+ * 网格线颜色
138
+ */
139
+ gridColor?: string;
140
+ /**
141
+ * 网格线宽度
142
+ */
143
+ gridWidth?: number;
144
+ };
145
+ };
146
+ export type YBandAxis = XBandAxis;
@@ -1,6 +1,4 @@
1
- export type * from './axis';
2
1
  export type * from './bandAxis';
3
2
  export type * from './linearAxis';
4
- export * from './zAxis';
5
3
  export * from './zLinearAxis';
6
4
  export * from './zBandAxis';
@@ -1,3 +1,2 @@
1
- export * from "./zAxis.js";
2
1
  export * from "./zLinearAxis.js";
3
2
  export * from "./zBandAxis.js";
@@ -1,3 +1,149 @@
1
- import { type Axis } from './axis';
2
- export type XLinearAxis = Omit<Axis, 'labelAutoHide' | 'labelAutoHideGap' | 'labelAutoRotate' | 'labelAutoRotateAngleRange' | 'labelAutoLimit' | 'labelAutoLimitLength'>;
3
- export type YLinearAxis = Omit<Axis, 'labelAutoHide' | 'labelAutoHideGap' | 'labelAutoRotate' | 'labelAutoRotateAngleRange' | 'labelAutoLimit' | 'labelAutoLimitLength'>;
1
+ import type { NumFormat } from "../../format";
2
+ export type XLinearAxis = {
3
+ /**
4
+ * @description 轴是否可见
5
+ */
6
+ visible?: boolean;
7
+ /**
8
+ * @description 轴的最小值, 优先级高于 nice 与 zero
9
+ */
10
+ min?: number;
11
+ /**
12
+ * @description 轴的最大值, 优先级高于 nice 与 zero
13
+ */
14
+ max?: number;
15
+ /**
16
+ * @description 是否使用对数轴, 仅对数值轴生效
17
+ */
18
+ log?: boolean;
19
+ /**
20
+ * @description 对数轴的底数, 仅对数值轴生效
21
+ */
22
+ logBase?: number;
23
+ /**
24
+ * @description 是否自动调整轴的刻度间隔,使刻度标签更易读, 当配置了 min 和 max, 该配置项失效, 仅对数值轴生效
25
+ */
26
+ nice?: boolean;
27
+ /**
28
+ * @description 轴是否反向展示, 仅对数值轴生效
29
+ */
30
+ inverse?: boolean;
31
+ /**
32
+ * @description 是否在坐标轴上强制显示 0 值, 当配置了 min 和 max, 该配置项失效, 仅对数值轴生效
33
+ */
34
+ zero?: boolean;
35
+ /**
36
+ * @description 是否自动格式化数值轴的刻度标签, 仅对数值轴生效, 当配置了 numFormat 时, 该配置项失效
37
+ */
38
+ autoFormat?: boolean;
39
+ /**
40
+ * @description 数值轴的数字格式化, 仅对数值轴生效
41
+ */
42
+ numFormat?: NumFormat;
43
+ /**
44
+ * @description X轴刻度标签
45
+ */
46
+ label?: {
47
+ /**
48
+ * @description 标签是否可见
49
+ */
50
+ visible?: boolean;
51
+ /**
52
+ * @description 标签颜色
53
+ */
54
+ labelColor?: string;
55
+ /**
56
+ * @description 标签字体大小
57
+ */
58
+ labelFontSize?: number;
59
+ /**
60
+ * @description 标签字体粗细
61
+ */
62
+ labelFontWeight?: number;
63
+ /**
64
+ * @description 标签旋转角度
65
+ */
66
+ labelAngle?: number;
67
+ };
68
+ /**
69
+ * @description X轴线
70
+ */
71
+ line?: {
72
+ /**
73
+ * @description 轴线是否可见
74
+ */
75
+ visible?: boolean;
76
+ /**
77
+ * @description 轴线颜色
78
+ */
79
+ lineColor?: string;
80
+ /**
81
+ * @description 轴线宽度
82
+ */
83
+ lineWidth?: number;
84
+ };
85
+ /**
86
+ * @description X轴刻度
87
+ */
88
+ tick?: {
89
+ /**
90
+ * 刻度是否可见
91
+ * @default true
92
+ */
93
+ visible?: boolean;
94
+ /**
95
+ * 刻度是否朝内
96
+ * @default false
97
+ */
98
+ tickInside?: boolean;
99
+ /**
100
+ * 刻度颜色
101
+ */
102
+ tickColor?: string;
103
+ /**
104
+ * 刻度尺寸
105
+ */
106
+ tickSize?: number;
107
+ };
108
+ /**
109
+ * @description X轴标题
110
+ */
111
+ title?: {
112
+ /**
113
+ * 标题是否可见
114
+ * @default false
115
+ */
116
+ visible?: boolean;
117
+ /**
118
+ * 标题文本, 默认跟随字段配置
119
+ */
120
+ titleText?: string;
121
+ /**
122
+ * 标题颜色
123
+ */
124
+ titleColor?: string;
125
+ /**
126
+ * 标题字体大小
127
+ */
128
+ titleFontSize?: number;
129
+ /**
130
+ * 标题字体粗细
131
+ */
132
+ titleFontWeight?: number;
133
+ };
134
+ /**
135
+ * @description X轴网格线
136
+ */
137
+ grid?: {
138
+ visible?: boolean;
139
+ /**
140
+ * 网格线颜色
141
+ */
142
+ gridColor?: string;
143
+ /**
144
+ * 网格线宽度
145
+ */
146
+ gridWidth?: number;
147
+ };
148
+ };
149
+ export type YLinearAxis = XLinearAxis;