@visactor/vseed 0.1.40 → 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 (94) 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 +2788 -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/regressionLine/columnRegressionLine.d.ts +2 -0
  19. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +150 -0
  20. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -0
  21. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.d.ts +4 -0
  22. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js +21 -0
  23. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -0
  24. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.d.ts +2 -0
  25. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +98 -0
  26. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -0
  27. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.d.ts +4 -1
  28. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/index.js +4 -1
  29. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.d.ts +2 -0
  30. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +98 -0
  31. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -0
  32. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.d.ts +16 -0
  33. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +159 -0
  34. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -0
  35. package/dist/esm/theme/common/regressionLine.d.ts +8 -4
  36. package/dist/esm/theme/common/regressionLine.js +60 -8
  37. package/dist/esm/theme/common/regressionLine.js.map +1 -1
  38. package/dist/esm/theme/dark/dark.js +6 -4
  39. package/dist/esm/theme/dark/dark.js.map +1 -1
  40. package/dist/esm/theme/light/light.js +6 -4
  41. package/dist/esm/theme/light/light.js.map +1 -1
  42. package/dist/esm/types/advancedVSeed.d.ts +908 -37
  43. package/dist/esm/types/advancedVSeed.js +2 -2
  44. package/dist/esm/types/advancedVSeed.js.map +1 -1
  45. package/dist/esm/types/chartType/column/column.d.ts +6 -1
  46. package/dist/esm/types/chartType/column/zColumn.d.ts +25 -0
  47. package/dist/esm/types/chartType/column/zColumn.js +2 -1
  48. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  49. package/dist/esm/types/chartType/histogram/histogram.d.ts +7 -3
  50. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +19 -4
  51. package/dist/esm/types/chartType/histogram/zHistogram.js +3 -2
  52. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  53. package/dist/esm/types/chartType/scatter/scatter.d.ts +21 -1
  54. package/dist/esm/types/chartType/scatter/zScatter.d.ts +94 -0
  55. package/dist/esm/types/chartType/scatter/zScatter.js +5 -1
  56. package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
  57. package/dist/esm/types/properties/config/column.d.ts +132 -2
  58. package/dist/esm/types/properties/config/column.js +6 -3
  59. package/dist/esm/types/properties/config/column.js.map +1 -1
  60. package/dist/esm/types/properties/config/config.d.ts +389 -9
  61. package/dist/esm/types/properties/config/histogram.d.ts +129 -9
  62. package/dist/esm/types/properties/config/histogram.js +2 -2
  63. package/dist/esm/types/properties/config/histogram.js.map +1 -1
  64. package/dist/esm/types/properties/config/scatter.d.ts +130 -0
  65. package/dist/esm/types/properties/config/scatter.js +3 -1
  66. package/dist/esm/types/properties/config/scatter.js.map +1 -1
  67. package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.d.ts → ecdfRegressionLine.d.ts} +2 -7
  68. package/dist/esm/types/properties/regressionLine/index.d.ts +7 -2
  69. package/dist/esm/types/properties/regressionLine/index.js +1 -1
  70. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +40 -0
  71. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.js +0 -0
  72. package/dist/esm/types/properties/regressionLine/linearRegressionLine.d.ts +53 -0
  73. package/dist/esm/types/properties/regressionLine/linearRegressionLine.js +0 -0
  74. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.d.ts +53 -0
  75. package/dist/esm/types/properties/regressionLine/logisticRegressionLine.js +0 -0
  76. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.d.ts +53 -0
  77. package/dist/esm/types/properties/regressionLine/lowessRegressionLine.js +0 -0
  78. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.d.ts +57 -0
  79. package/dist/esm/types/properties/regressionLine/polynomialRegressionLine.js +0 -0
  80. package/dist/esm/types/properties/regressionLine/zRegressionLine.d.ts +199 -0
  81. package/dist/esm/types/properties/regressionLine/zRegressionLine.js +32 -0
  82. package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -0
  83. package/dist/esm/types/properties/theme/customTheme.d.ts +778 -18
  84. package/dist/esm/types/zVseed.d.ts +138 -4
  85. package/dist/umd/index.js +1144 -131
  86. package/dist/umd/index.js.map +1 -1
  87. package/package.json +1 -1
  88. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.d.ts +0 -2
  89. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js +0 -126
  90. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/histogramRegressionLine.js.map +0 -1
  91. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.d.ts +0 -11
  92. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js +0 -17
  93. package/dist/esm/types/properties/regressionLine/zHistogramRegressionLine.js.map +0 -1
  94. /package/dist/esm/types/properties/regressionLine/{histogramRegressionLine.js → ecdfRegressionLine.js} +0 -0
@@ -357,5 +357,135 @@ export declare const zScatterConfig: z.ZodObject<{
357
357
  outerPadding: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>>;
358
358
  }, z.core.$strip>>>;
359
359
  }, z.core.$strip>>>;
360
+ regressionLine: z.ZodOptional<z.ZodNullable<z.ZodObject<{
361
+ ecdfRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
362
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
364
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
365
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
368
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
369
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
370
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
372
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
373
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
376
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
377
+ }, z.core.$strip>>]>>>;
378
+ kdeRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
379
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
381
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
382
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
385
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
386
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
387
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
388
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
389
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
390
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
393
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
394
+ }, z.core.$strip>>]>>>;
395
+ linearRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
396
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
398
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
399
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
402
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
403
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
404
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
406
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
407
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
409
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
410
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
413
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
414
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
415
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
417
+ }, z.core.$strip>>]>>>;
418
+ lowessRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
419
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
420
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
421
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
422
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
425
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
426
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
427
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
429
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
430
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
432
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
433
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
436
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
437
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
438
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
440
+ }, z.core.$strip>>]>>>;
441
+ polynomialRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
442
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
444
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
445
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
448
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
449
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
450
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
452
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
453
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
454
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
456
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
457
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
460
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
461
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
462
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
464
+ degree: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
465
+ }, z.core.$strip>>]>>>;
466
+ logisticRegressionLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
467
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
469
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
470
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
473
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
474
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
475
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
476
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
477
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
478
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ lineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
480
+ lineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
481
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
484
+ textFontWeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
485
+ confidenceIntervalVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
486
+ confidenceIntervalColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
+ confidenceIntervalOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
488
+ }, z.core.$strip>>]>>>;
489
+ }, z.core.$strip>>>;
360
490
  }, z.core.$strip>;
361
491
  export type ScatterConfig = z.infer<typeof zScatterConfig>;
@@ -8,6 +8,7 @@ import { zLegend } from "./legend/legend.js";
8
8
  import { zTooltip } from "./tooltip/tooltip.js";
9
9
  import { zAnnotationConfig } from "./annotation/zAnnotaion.js";
10
10
  import { zPivotChartGridConfig } from "./pivotGrid/index.js";
11
+ import { zRegressionLine } from "../regressionLine/zRegressionLine.js";
11
12
  const zScatterConfig = z.object({
12
13
  backgroundColor: zBackgroundColor.nullish(),
13
14
  label: zLabel.nullish(),
@@ -20,7 +21,8 @@ const zScatterConfig = z.object({
20
21
  size: z.number().or(z.array(z.number())).nullish(),
21
22
  sizeRange: z.number().or(z.array(z.number())).nullish(),
22
23
  pivotGrid: zPivotChartGridConfig.nullish(),
23
- annotation: zAnnotationConfig.nullish()
24
+ annotation: zAnnotationConfig.nullish(),
25
+ regressionLine: zRegressionLine.nullish()
24
26
  });
25
27
  export { zScatterConfig };
26
28
 
@@ -1 +1 @@
1
- {"version":3,"file":"types/properties/config/scatter.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/scatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXLinearAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine } from './crosshair'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zAnnotationConfig } from './annotation/zAnnotaion'\nimport { zPivotChartGridConfig } from './pivotGrid'\n\nexport const zScatterConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n})\n\nexport type ScatterConfig = z.infer<typeof zScatterConfig>\n"],"names":["zScatterConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXLinearAxis","zYLinearAxis","zCrosshairLine","zPivotChartGridConfig","zAnnotationConfig"],"mappings":";;;;;;;;;;AAWO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IAEvB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,MAAMR,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,WAAWS,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;AACvC"}
1
+ {"version":3,"file":"types/properties/config/scatter.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/scatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXLinearAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine } from './crosshair'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zAnnotationConfig } from './annotation/zAnnotaion'\nimport { zPivotChartGridConfig } from './pivotGrid'\nimport { zRegressionLine } from '../regressionLine/zRegressionLine'\n\nexport const zScatterConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n regressionLine: zRegressionLine.nullish(),\n})\n\nexport type ScatterConfig = z.infer<typeof zScatterConfig>\n"],"names":["zScatterConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXLinearAxis","zYLinearAxis","zCrosshairLine","zPivotChartGridConfig","zAnnotationConfig","zRegressionLine"],"mappings":";;;;;;;;;;;AAYO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,SAASC,SAAS,OAAO;IACzB,QAAQC,QAAQ,OAAO;IAEvB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,MAAMR,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,WAAWS,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;IACrC,gBAAgBC,gBAAgB,OAAO;AACzC"}
@@ -1,12 +1,7 @@
1
1
  /**
2
- * @description 直方图回归线配置项
2
+ * @description 经验累积分布函数回归线配置项
3
3
  */
4
- export interface HistogramRegressionLine {
5
- /**
6
- * @description 回归线类型
7
- * 'kde'表示核密度估计回归线,'ecdf'表示经验累积分布函数回归线
8
- */
9
- type: 'kde' | 'ecdf';
4
+ export interface EcdfRegressionLine {
10
5
  /**
11
6
  * @description 回归线颜色
12
7
  * 用于设置回归线的颜色,如果不设置,默认使用图表的主颜色
@@ -1,2 +1,7 @@
1
- export * from './zHistogramRegressionLine';
2
- export type * from './histogramRegressionLine';
1
+ export type * from './kdeRegressionLine';
2
+ export type * from './ecdfRegressionLine';
3
+ export type * from './lowessRegressionLine';
4
+ export type * from './polynomialRegressionLine';
5
+ export type * from './logisticRegressionLine';
6
+ export type * from './linearRegressionLine';
7
+ export * from './zRegressionLine';
@@ -1 +1 @@
1
- export * from "./zHistogramRegressionLine.js";
1
+ export * from "./zRegressionLine.js";
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @description 核密度估计回归线配置项
3
+ */
4
+ export interface KdeRegressionLine {
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
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @description 线性回归线配置项
3
+ */
4
+ export interface LinearRegressionLine {
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,53 @@
1
+ /**
2
+ * @description Logistic回归线配置项
3
+ */
4
+ export interface LogisticRegressionLine {
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,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
+ }