@visactor/vseed 0.1.51 → 0.2.0
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/builder/builder/builder.d.ts +334 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +1 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +3 -3
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js +8 -6
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/markStyle/markStyle.js +3 -1
- package/dist/esm/pipeline/advanced/chart/pipes/markStyle/markStyle.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/measures/buildMeasures.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +6 -5
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +15 -13
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/color/colorBoxPlotStyleFill.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/color/colorBoxPlotStyleFill.js +17 -0
- package/dist/esm/pipeline/spec/chart/pipes/color/colorBoxPlotStyleFill.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/color/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/color/index.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/horizontalCrosshairRect.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/crosshair/verticalCrosshairRect.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/pivot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js +52 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/boxPlotStyle.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js +67 -0
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/outlierStyle.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.js +7 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/areaStyleFilter.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.js +7 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/barStyleFilter.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/index.d.ts +4 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/index.js +4 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.js +7 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/lineStyleFilter.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.js +7 -0
- package/dist/esm/pipeline/spec/chart/pipes/pipeFilter/pointStyleFilter.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js +18 -20
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/dimensionLinkage.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js +5 -3
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/columnRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/common.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +6 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js +8 -3
- package/dist/esm/pipeline/spec/chart/pipes/regressionLine/linearRegressionLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js +2 -3
- package/dist/esm/pipeline/spec/chart/pipes/stack/stackCornerRadius.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.d.ts +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/index.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +16 -2
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
- package/dist/esm/pipeline/utils/measures/find.d.ts +1 -0
- package/dist/esm/pipeline/utils/measures/find.js +13 -1
- package/dist/esm/pipeline/utils/measures/find.js.map +1 -1
- package/dist/esm/theme/common/axes.js +4 -4
- package/dist/esm/theme/common/axes.js.map +1 -1
- package/dist/esm/theme/common/boxPlot.d.ts +5 -0
- package/dist/esm/theme/common/boxPlot.js +15 -0
- package/dist/esm/theme/common/boxPlot.js.map +1 -0
- package/dist/esm/theme/common/crosshair.js +4 -4
- package/dist/esm/theme/common/crosshair.js.map +1 -1
- package/dist/esm/theme/common/table.js +2 -0
- package/dist/esm/theme/common/table.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +4 -1
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/light/light.js +4 -1
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +358 -0
- package/dist/esm/types/chartType/boxplot/boxplot.d.ts +9 -1
- package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +316 -0
- package/dist/esm/types/chartType/boxplot/zBoxplot.js +3 -1
- package/dist/esm/types/chartType/boxplot/zBoxplot.js.map +1 -1
- package/dist/esm/types/properties/config/boxplot.d.ts +21 -0
- package/dist/esm/types/properties/config/boxplot.js +8 -1
- package/dist/esm/types/properties/config/boxplot.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +21 -0
- package/dist/esm/types/properties/markStyle/boxPlotStyle.d.ts +148 -0
- package/dist/esm/types/properties/markStyle/boxPlotStyle.js +14 -0
- package/dist/esm/types/properties/markStyle/boxPlotStyle.js.map +1 -0
- package/dist/esm/types/properties/markStyle/index.d.ts +2 -0
- package/dist/esm/types/properties/markStyle/index.js +2 -0
- package/dist/esm/types/properties/markStyle/markStyle.d.ts +316 -0
- package/dist/esm/types/properties/markStyle/markStyle.js +5 -1
- package/dist/esm/types/properties/markStyle/markStyle.js.map +1 -1
- package/dist/esm/types/properties/markStyle/outlierStyle.d.ts +161 -0
- package/dist/esm/types/properties/markStyle/outlierStyle.js +22 -0
- package/dist/esm/types/properties/markStyle/outlierStyle.js.map +1 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +42 -0
- package/dist/esm/types/zVseed.d.ts +316 -0
- package/dist/umd/index.js +330 -99
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -453,6 +453,322 @@ export declare const zBoxplot: z.ZodObject<{
|
|
|
453
453
|
labelVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
454
454
|
labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
455
455
|
}, z.core.$strip>>>;
|
|
456
|
+
boxPlotStyle: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
457
|
+
selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
458
|
+
field: z.ZodString;
|
|
459
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
460
|
+
"=": "=";
|
|
461
|
+
"==": "==";
|
|
462
|
+
"!=": "!=";
|
|
463
|
+
">": ">";
|
|
464
|
+
"<": "<";
|
|
465
|
+
">=": ">=";
|
|
466
|
+
"<=": "<=";
|
|
467
|
+
between: "between";
|
|
468
|
+
}>>>;
|
|
469
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
470
|
+
"=": "=";
|
|
471
|
+
"==": "==";
|
|
472
|
+
"!=": "!=";
|
|
473
|
+
">": ">";
|
|
474
|
+
"<": "<";
|
|
475
|
+
">=": ">=";
|
|
476
|
+
"<=": "<=";
|
|
477
|
+
between: "between";
|
|
478
|
+
}>>>;
|
|
479
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
480
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
|
+
field: z.ZodString;
|
|
482
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
483
|
+
in: "in";
|
|
484
|
+
"not in": "not in";
|
|
485
|
+
}>>>;
|
|
486
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
487
|
+
in: "in";
|
|
488
|
+
"not in": "not in";
|
|
489
|
+
}>>>;
|
|
490
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
491
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
492
|
+
field: z.ZodString;
|
|
493
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
494
|
+
"=": "=";
|
|
495
|
+
"==": "==";
|
|
496
|
+
"!=": "!=";
|
|
497
|
+
">": ">";
|
|
498
|
+
"<": "<";
|
|
499
|
+
">=": ">=";
|
|
500
|
+
"<=": "<=";
|
|
501
|
+
between: "between";
|
|
502
|
+
}>>>;
|
|
503
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
504
|
+
"=": "=";
|
|
505
|
+
"==": "==";
|
|
506
|
+
"!=": "!=";
|
|
507
|
+
">": ">";
|
|
508
|
+
"<": "<";
|
|
509
|
+
">=": ">=";
|
|
510
|
+
"<=": "<=";
|
|
511
|
+
between: "between";
|
|
512
|
+
}>>>;
|
|
513
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
514
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
515
|
+
field: z.ZodString;
|
|
516
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
517
|
+
in: "in";
|
|
518
|
+
"not in": "not in";
|
|
519
|
+
}>>>;
|
|
520
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
521
|
+
in: "in";
|
|
522
|
+
"not in": "not in";
|
|
523
|
+
}>>>;
|
|
524
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
525
|
+
}, z.core.$strip>]>>]>>>;
|
|
526
|
+
boxVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
527
|
+
boxColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
boxColorOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
529
|
+
boxBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
530
|
+
boxBorderWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
531
|
+
boxBorderOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
532
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
533
|
+
selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
534
|
+
field: z.ZodString;
|
|
535
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
536
|
+
"=": "=";
|
|
537
|
+
"==": "==";
|
|
538
|
+
"!=": "!=";
|
|
539
|
+
">": ">";
|
|
540
|
+
"<": "<";
|
|
541
|
+
">=": ">=";
|
|
542
|
+
"<=": "<=";
|
|
543
|
+
between: "between";
|
|
544
|
+
}>>>;
|
|
545
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
546
|
+
"=": "=";
|
|
547
|
+
"==": "==";
|
|
548
|
+
"!=": "!=";
|
|
549
|
+
">": ">";
|
|
550
|
+
"<": "<";
|
|
551
|
+
">=": ">=";
|
|
552
|
+
"<=": "<=";
|
|
553
|
+
between: "between";
|
|
554
|
+
}>>>;
|
|
555
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
+
field: z.ZodString;
|
|
558
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
559
|
+
in: "in";
|
|
560
|
+
"not in": "not in";
|
|
561
|
+
}>>>;
|
|
562
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
563
|
+
in: "in";
|
|
564
|
+
"not in": "not in";
|
|
565
|
+
}>>>;
|
|
566
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
567
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
568
|
+
field: z.ZodString;
|
|
569
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
570
|
+
"=": "=";
|
|
571
|
+
"==": "==";
|
|
572
|
+
"!=": "!=";
|
|
573
|
+
">": ">";
|
|
574
|
+
"<": "<";
|
|
575
|
+
">=": ">=";
|
|
576
|
+
"<=": "<=";
|
|
577
|
+
between: "between";
|
|
578
|
+
}>>>;
|
|
579
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
580
|
+
"=": "=";
|
|
581
|
+
"==": "==";
|
|
582
|
+
"!=": "!=";
|
|
583
|
+
">": ">";
|
|
584
|
+
"<": "<";
|
|
585
|
+
">=": ">=";
|
|
586
|
+
"<=": "<=";
|
|
587
|
+
between: "between";
|
|
588
|
+
}>>>;
|
|
589
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
591
|
+
field: z.ZodString;
|
|
592
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
593
|
+
in: "in";
|
|
594
|
+
"not in": "not in";
|
|
595
|
+
}>>>;
|
|
596
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
597
|
+
in: "in";
|
|
598
|
+
"not in": "not in";
|
|
599
|
+
}>>>;
|
|
600
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
601
|
+
}, z.core.$strip>]>>]>>>;
|
|
602
|
+
boxVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
603
|
+
boxColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
604
|
+
boxColorOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
605
|
+
boxBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
606
|
+
boxBorderWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
607
|
+
boxBorderOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
608
|
+
}, z.core.$strip>]>>>;
|
|
609
|
+
outlierStyle: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
610
|
+
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
611
|
+
field: z.ZodString;
|
|
612
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
613
|
+
"=": "=";
|
|
614
|
+
"==": "==";
|
|
615
|
+
"!=": "!=";
|
|
616
|
+
">": ">";
|
|
617
|
+
"<": "<";
|
|
618
|
+
">=": ">=";
|
|
619
|
+
"<=": "<=";
|
|
620
|
+
between: "between";
|
|
621
|
+
}>>>;
|
|
622
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
623
|
+
"=": "=";
|
|
624
|
+
"==": "==";
|
|
625
|
+
"!=": "!=";
|
|
626
|
+
">": ">";
|
|
627
|
+
"<": "<";
|
|
628
|
+
">=": ">=";
|
|
629
|
+
"<=": "<=";
|
|
630
|
+
between: "between";
|
|
631
|
+
}>>>;
|
|
632
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
+
field: z.ZodString;
|
|
635
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
636
|
+
in: "in";
|
|
637
|
+
"not in": "not in";
|
|
638
|
+
}>>>;
|
|
639
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
640
|
+
in: "in";
|
|
641
|
+
"not in": "not in";
|
|
642
|
+
}>>>;
|
|
643
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
644
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
645
|
+
field: z.ZodString;
|
|
646
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
647
|
+
"=": "=";
|
|
648
|
+
"==": "==";
|
|
649
|
+
"!=": "!=";
|
|
650
|
+
">": ">";
|
|
651
|
+
"<": "<";
|
|
652
|
+
">=": ">=";
|
|
653
|
+
"<=": "<=";
|
|
654
|
+
between: "between";
|
|
655
|
+
}>>>;
|
|
656
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
657
|
+
"=": "=";
|
|
658
|
+
"==": "==";
|
|
659
|
+
"!=": "!=";
|
|
660
|
+
">": ">";
|
|
661
|
+
"<": "<";
|
|
662
|
+
">=": ">=";
|
|
663
|
+
"<=": "<=";
|
|
664
|
+
between: "between";
|
|
665
|
+
}>>>;
|
|
666
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
668
|
+
field: z.ZodString;
|
|
669
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
670
|
+
in: "in";
|
|
671
|
+
"not in": "not in";
|
|
672
|
+
}>>>;
|
|
673
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
674
|
+
in: "in";
|
|
675
|
+
"not in": "not in";
|
|
676
|
+
}>>>;
|
|
677
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
678
|
+
}, z.core.$strip>]>>]>>;
|
|
679
|
+
pointVisible: z.ZodOptional<z.ZodBoolean>;
|
|
680
|
+
pointSize: z.ZodOptional<z.ZodNumber>;
|
|
681
|
+
pointColor: z.ZodOptional<z.ZodString>;
|
|
682
|
+
pointColorOpacity: z.ZodOptional<z.ZodNumber>;
|
|
683
|
+
pointBorderColor: z.ZodOptional<z.ZodString>;
|
|
684
|
+
pointBorderWidth: z.ZodOptional<z.ZodNumber>;
|
|
685
|
+
pointBorderStyle: z.ZodOptional<z.ZodEnum<{
|
|
686
|
+
solid: "solid";
|
|
687
|
+
dashed: "dashed";
|
|
688
|
+
dotted: "dotted";
|
|
689
|
+
}>>;
|
|
690
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
691
|
+
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
692
|
+
field: z.ZodString;
|
|
693
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
694
|
+
"=": "=";
|
|
695
|
+
"==": "==";
|
|
696
|
+
"!=": "!=";
|
|
697
|
+
">": ">";
|
|
698
|
+
"<": "<";
|
|
699
|
+
">=": ">=";
|
|
700
|
+
"<=": "<=";
|
|
701
|
+
between: "between";
|
|
702
|
+
}>>>;
|
|
703
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
704
|
+
"=": "=";
|
|
705
|
+
"==": "==";
|
|
706
|
+
"!=": "!=";
|
|
707
|
+
">": ">";
|
|
708
|
+
"<": "<";
|
|
709
|
+
">=": ">=";
|
|
710
|
+
"<=": "<=";
|
|
711
|
+
between: "between";
|
|
712
|
+
}>>>;
|
|
713
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
714
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
715
|
+
field: z.ZodString;
|
|
716
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
717
|
+
in: "in";
|
|
718
|
+
"not in": "not in";
|
|
719
|
+
}>>>;
|
|
720
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
721
|
+
in: "in";
|
|
722
|
+
"not in": "not in";
|
|
723
|
+
}>>>;
|
|
724
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
725
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
726
|
+
field: z.ZodString;
|
|
727
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
728
|
+
"=": "=";
|
|
729
|
+
"==": "==";
|
|
730
|
+
"!=": "!=";
|
|
731
|
+
">": ">";
|
|
732
|
+
"<": "<";
|
|
733
|
+
">=": ">=";
|
|
734
|
+
"<=": "<=";
|
|
735
|
+
between: "between";
|
|
736
|
+
}>>>;
|
|
737
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
738
|
+
"=": "=";
|
|
739
|
+
"==": "==";
|
|
740
|
+
"!=": "!=";
|
|
741
|
+
">": ">";
|
|
742
|
+
"<": "<";
|
|
743
|
+
">=": ">=";
|
|
744
|
+
"<=": "<=";
|
|
745
|
+
between: "between";
|
|
746
|
+
}>>>;
|
|
747
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
748
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
749
|
+
field: z.ZodString;
|
|
750
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
751
|
+
in: "in";
|
|
752
|
+
"not in": "not in";
|
|
753
|
+
}>>>;
|
|
754
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
755
|
+
in: "in";
|
|
756
|
+
"not in": "not in";
|
|
757
|
+
}>>>;
|
|
758
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
759
|
+
}, z.core.$strip>]>>]>>;
|
|
760
|
+
pointVisible: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
pointSize: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
pointColor: z.ZodOptional<z.ZodString>;
|
|
763
|
+
pointColorOpacity: z.ZodOptional<z.ZodNumber>;
|
|
764
|
+
pointBorderColor: z.ZodOptional<z.ZodString>;
|
|
765
|
+
pointBorderWidth: z.ZodOptional<z.ZodNumber>;
|
|
766
|
+
pointBorderStyle: z.ZodOptional<z.ZodEnum<{
|
|
767
|
+
solid: "solid";
|
|
768
|
+
dashed: "dashed";
|
|
769
|
+
dotted: "dotted";
|
|
770
|
+
}>>;
|
|
771
|
+
}, z.core.$strip>]>>>;
|
|
456
772
|
theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
457
773
|
whiskers: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>>;
|
|
458
774
|
annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zSort, zSortLegend, zTheme, zTooltip, zWhiskersConfig, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBoxPlotStyle, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasureTree, zOutlierStyle, zSort, zSortLegend, zTheme, zTooltip, zWhiskersConfig, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
4
4
|
const zBoxplot = z.object({
|
|
5
5
|
chartType: z.literal('boxPlot'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
@@ -17,6 +17,8 @@ const zBoxplot = z.object({
|
|
|
17
17
|
sort: zSort.nullish(),
|
|
18
18
|
sortLegent: zSortLegend.nullish(),
|
|
19
19
|
crosshairRect: zCrosshairRect.nullish(),
|
|
20
|
+
boxPlotStyle: z.array(zBoxPlotStyle).or(zBoxPlotStyle).nullish(),
|
|
21
|
+
outlierStyle: z.array(zOutlierStyle).or(zOutlierStyle).nullish(),
|
|
20
22
|
theme: zTheme.nullish(),
|
|
21
23
|
whiskers: zWhiskersConfig.nullish(),
|
|
22
24
|
annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/boxplot/zBoxplot.js","sources":["webpack://@visactor/vseed/./src/types/chartType/boxplot/zBoxplot.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zWhiskersConfig,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zBoxplot = z.object({\n chartType: z.literal('boxPlot'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n theme: zTheme.nullish(),\n whiskers: zWhiskersConfig.nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBoxplot","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zTheme","zWhiskersConfig","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/boxplot/zBoxplot.js","sources":["webpack://@visactor/vseed/./src/types/chartType/boxplot/zBoxplot.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBoxPlotStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zOutlierStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zWhiskersConfig,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zBoxplot = z.object({\n chartType: z.literal('boxPlot'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n sort: zSort.nullish(),\n sortLegent: zSortLegend.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n boxPlotStyle: z.array(zBoxPlotStyle).or(zBoxPlotStyle).nullish(),\n outlierStyle: z.array(zOutlierStyle).or(zOutlierStyle).nullish(),\n theme: zTheme.nullish(),\n whiskers: zWhiskersConfig.nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zBoxplot","z","zDataset","zEncoding","zDimensions","zMeasureTree","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXBandAxis","zYLinearAxis","zSort","zSortLegend","zCrosshairRect","zBoxPlotStyle","zOutlierStyle","zTheme","zWhiskersConfig","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA4BO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,eAAeC,eAAe,OAAO;IACrC,cAAcd,EAAE,KAAK,CAACe,eAAe,EAAE,CAACA,eAAe,OAAO;IAC9D,cAAcf,EAAE,KAAK,CAACgB,eAAe,EAAE,CAACA,eAAe,OAAO;IAC9D,OAAOC,OAAO,OAAO;IACrB,UAAUC,gBAAgB,OAAO;IACjC,iBAAiBlB,EAAE,KAAK,CAACmB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBnB,EAAE,KAAK,CAACoB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BpB,EAAE,KAAK,CAACqB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBrB,EAAE,KAAK,CAACsB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -416,5 +416,26 @@ export declare const zBoxplotConfig: z.ZodObject<{
|
|
|
416
416
|
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
417
417
|
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
418
418
|
}, z.core.$strip>>>;
|
|
419
|
+
boxPlotStyle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
420
|
+
boxVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
421
|
+
boxColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
422
|
+
boxColorOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
423
|
+
boxBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
boxBorderWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
425
|
+
boxBorderOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
426
|
+
}, z.core.$strip>>>;
|
|
427
|
+
outlierStyle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
428
|
+
pointVisible: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
pointSize: z.ZodOptional<z.ZodNumber>;
|
|
430
|
+
pointColor: z.ZodOptional<z.ZodString>;
|
|
431
|
+
pointColorOpacity: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
pointBorderColor: z.ZodOptional<z.ZodString>;
|
|
433
|
+
pointBorderWidth: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
pointBorderStyle: z.ZodOptional<z.ZodEnum<{
|
|
435
|
+
solid: "solid";
|
|
436
|
+
dashed: "dashed";
|
|
437
|
+
dotted: "dotted";
|
|
438
|
+
}>>;
|
|
439
|
+
}, z.core.$strip>>>;
|
|
419
440
|
}, z.core.$strip>;
|
|
420
441
|
export type BoxplotConfig = z.infer<typeof zBoxplotConfig>;
|
|
@@ -10,6 +10,7 @@ import { zAnnotationConfig } from "./annotation/zAnnotaion.js";
|
|
|
10
10
|
import { zPivotChartGridConfig } from "./pivotGrid/index.js";
|
|
11
11
|
import { zWhiskersConfig } from "./whiskers/index.js";
|
|
12
12
|
import { zDimensionLinkage } from "./dimensionLinkage/dimensionLinkage.js";
|
|
13
|
+
import { zBoxPlotStyle, zOutlierStyle } from "../markStyle/index.js";
|
|
13
14
|
const zBoxplotConfig = z.object({
|
|
14
15
|
backgroundColor: zBackgroundColor.nullish(),
|
|
15
16
|
label: zLabel.nullish(),
|
|
@@ -22,7 +23,13 @@ const zBoxplotConfig = z.object({
|
|
|
22
23
|
pivotGrid: zPivotChartGridConfig.nullish(),
|
|
23
24
|
annotation: zAnnotationConfig.nullish(),
|
|
24
25
|
whiskers: zWhiskersConfig.nullish(),
|
|
25
|
-
dimensionLinkage: zDimensionLinkage.nullish()
|
|
26
|
+
dimensionLinkage: zDimensionLinkage.nullish(),
|
|
27
|
+
boxPlotStyle: zBoxPlotStyle.omit({
|
|
28
|
+
selector: true
|
|
29
|
+
}).nullish(),
|
|
30
|
+
outlierStyle: zOutlierStyle.omit({
|
|
31
|
+
selector: true
|
|
32
|
+
}).nullish()
|
|
26
33
|
});
|
|
27
34
|
export { zBoxplotConfig };
|
|
28
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/config/boxplot.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/boxplot.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } 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 { zWhiskersConfig } from './whiskers'\nimport { zDimensionLinkage } from './dimensionLinkage/dimensionLinkage'\n\nexport const zBoxplotConfig = 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: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n\n whiskers: zWhiskersConfig.nullish(),\n\n dimensionLinkage: zDimensionLinkage.nullish(),\n})\n\nexport type BoxplotConfig = z.infer<typeof zBoxplotConfig>\n"],"names":["zBoxplotConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairRect","zPivotChartGridConfig","zAnnotationConfig","zWhiskersConfig","zDimensionLinkage"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/config/boxplot.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/boxplot.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYLinearAxis } from './axes'\nimport { zCrosshairRect } 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 { zWhiskersConfig } from './whiskers'\nimport { zDimensionLinkage } from './dimensionLinkage/dimensionLinkage'\nimport { zBoxPlotStyle, zOutlierStyle } from '../markStyle'\n\nexport const zBoxplotConfig = 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: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotationConfig.nullish(),\n\n whiskers: zWhiskersConfig.nullish(),\n\n dimensionLinkage: zDimensionLinkage.nullish(),\n\n boxPlotStyle: zBoxPlotStyle.omit({ selector: true }).nullish(),\n outlierStyle: zOutlierStyle.omit({ selector: true }).nullish(),\n})\n\nexport type BoxplotConfig = z.infer<typeof zBoxplotConfig>\n"],"names":["zBoxplotConfig","z","zBackgroundColor","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairRect","zPivotChartGridConfig","zAnnotationConfig","zWhiskersConfig","zDimensionLinkage","zBoxPlotStyle","zOutlierStyle"],"mappings":";;;;;;;;;;;;;AAcO,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,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,WAAWC,sBAAsB,OAAO;IACxC,YAAYC,kBAAkB,OAAO;IAErC,UAAUC,gBAAgB,OAAO;IAEjC,kBAAkBC,kBAAkB,OAAO;IAE3C,cAAcC,cAAc,IAAI,CAAC;QAAE,UAAU;IAAK,GAAG,OAAO;IAC5D,cAAcC,cAAc,IAAI,CAAC;QAAE,UAAU;IAAK,GAAG,OAAO;AAC9D"}
|
|
@@ -7093,6 +7093,27 @@ export declare const zConfig: z.ZodObject<{
|
|
|
7093
7093
|
showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7094
7094
|
showLabel: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7095
7095
|
}, z.core.$strip>>>;
|
|
7096
|
+
boxPlotStyle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7097
|
+
boxVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
7098
|
+
boxColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7099
|
+
boxColorOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7100
|
+
boxBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7101
|
+
boxBorderWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7102
|
+
boxBorderOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7103
|
+
}, z.core.$strip>>>;
|
|
7104
|
+
outlierStyle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7105
|
+
pointVisible: z.ZodOptional<z.ZodBoolean>;
|
|
7106
|
+
pointSize: z.ZodOptional<z.ZodNumber>;
|
|
7107
|
+
pointColor: z.ZodOptional<z.ZodString>;
|
|
7108
|
+
pointColorOpacity: z.ZodOptional<z.ZodNumber>;
|
|
7109
|
+
pointBorderColor: z.ZodOptional<z.ZodString>;
|
|
7110
|
+
pointBorderWidth: z.ZodOptional<z.ZodNumber>;
|
|
7111
|
+
pointBorderStyle: z.ZodOptional<z.ZodEnum<{
|
|
7112
|
+
solid: "solid";
|
|
7113
|
+
dashed: "dashed";
|
|
7114
|
+
dotted: "dotted";
|
|
7115
|
+
}>>;
|
|
7116
|
+
}, z.core.$strip>>>;
|
|
7096
7117
|
}, z.core.$strip>>>;
|
|
7097
7118
|
histogram: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7098
7119
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
|
3
|
+
export type BoxPlotStyle = {
|
|
4
|
+
/**
|
|
5
|
+
* 数据选择器
|
|
6
|
+
* @description
|
|
7
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
|
8
|
+
* 若未配置selector, 则样式全局生效.
|
|
9
|
+
* @type {Selector | Selectors}
|
|
10
|
+
* @example 数值选择器
|
|
11
|
+
* selector = "tool"
|
|
12
|
+
* selector = ["tool", "book"]
|
|
13
|
+
* selector = 100
|
|
14
|
+
* selector = [100, 200]
|
|
15
|
+
* @example 局部数据选择器
|
|
16
|
+
* selector = { profit: 100 }
|
|
17
|
+
* selector = [{ profit: 100 }, { profit: 200 }]
|
|
18
|
+
* @example 条件维度选择器
|
|
19
|
+
* selector = {
|
|
20
|
+
* field: 'category',
|
|
21
|
+
* operator: 'in',
|
|
22
|
+
* value: 'tool'
|
|
23
|
+
* }
|
|
24
|
+
* selector = {
|
|
25
|
+
* field: 'category',
|
|
26
|
+
* operator: 'not in',
|
|
27
|
+
* value: 'book'
|
|
28
|
+
* }
|
|
29
|
+
* @example 条件指标选择器
|
|
30
|
+
* selector = {
|
|
31
|
+
* field: 'profit',
|
|
32
|
+
* operator: '>=',
|
|
33
|
+
* value: 100
|
|
34
|
+
* }
|
|
35
|
+
* selector = {
|
|
36
|
+
* field: 'profit',
|
|
37
|
+
* operator: 'between'
|
|
38
|
+
* value: [100, 300]
|
|
39
|
+
* }
|
|
40
|
+
*/
|
|
41
|
+
selector?: Selector | Selectors;
|
|
42
|
+
/**
|
|
43
|
+
* @description boxPlot图元是否可见
|
|
44
|
+
*/
|
|
45
|
+
boxVisible?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @description boxPlot图元颜色
|
|
48
|
+
* @type {string}
|
|
49
|
+
*/
|
|
50
|
+
boxColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @description boxPlot图元颜色透明度
|
|
53
|
+
* @type {number}
|
|
54
|
+
*/
|
|
55
|
+
boxColorOpacity?: number;
|
|
56
|
+
/**
|
|
57
|
+
* @description boxPlot图元边框颜色
|
|
58
|
+
* @type {string}
|
|
59
|
+
*/
|
|
60
|
+
boxBorderColor?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @description boxPlot图元边框宽度
|
|
63
|
+
* @type {number}
|
|
64
|
+
*/
|
|
65
|
+
boxBorderWidth?: number;
|
|
66
|
+
/**
|
|
67
|
+
* @description boxPlot图元边框透明度
|
|
68
|
+
* @type {number}
|
|
69
|
+
*/
|
|
70
|
+
boxBorderOpacity?: number;
|
|
71
|
+
};
|
|
72
|
+
export declare const zBoxPlotStyle: z.ZodObject<{
|
|
73
|
+
selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<readonly [z.ZodString, z.ZodNumber, 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.ZodString, z.ZodNumber, 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
|
+
boxVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
143
|
+
boxColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
boxColorOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
145
|
+
boxBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
boxBorderWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
147
|
+
boxBorderOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
148
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { zSelector, zSelectors } from "../../dataSelector/index.js";
|
|
3
|
+
const zBoxPlotStyle = z.object({
|
|
4
|
+
selector: zSelector.or(zSelectors).nullish(),
|
|
5
|
+
boxVisible: z.boolean().nullish(),
|
|
6
|
+
boxColor: z.string().nullish(),
|
|
7
|
+
boxColorOpacity: z.number().min(0).max(1).nullish(),
|
|
8
|
+
boxBorderColor: z.string().nullish(),
|
|
9
|
+
boxBorderWidth: z.number().min(0).nullish(),
|
|
10
|
+
boxBorderOpacity: z.number().min(0).max(1).nullish()
|
|
11
|
+
});
|
|
12
|
+
export { zBoxPlotStyle };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=boxPlotStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types/properties/markStyle/boxPlotStyle.js","sources":["webpack://@visactor/vseed/./src/types/properties/markStyle/boxPlotStyle.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zSelector, zSelectors, type Selector, type Selectors } from '../../dataSelector'\n\nexport type BoxPlotStyle = {\n /**\n * 数据选择器\n * @description\n * 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力\n * 若未配置selector, 则样式全局生效.\n * @type {Selector | Selectors}\n * @example 数值选择器\n * selector = \"tool\"\n * selector = [\"tool\", \"book\"]\n * selector = 100\n * selector = [100, 200]\n * @example 局部数据选择器\n * selector = { profit: 100 }\n * selector = [{ profit: 100 }, { profit: 200 }]\n * @example 条件维度选择器\n * selector = {\n * field: 'category',\n * operator: 'in',\n * value: 'tool'\n * }\n * selector = {\n * field: 'category',\n * operator: 'not in',\n * value: 'book'\n * }\n * @example 条件指标选择器\n * selector = {\n * field: 'profit',\n * operator: '>=',\n * value: 100\n * }\n * selector = {\n * field: 'profit',\n * operator: 'between'\n * value: [100, 300]\n * }\n */\n selector?: Selector | Selectors\n\n /**\n * @description boxPlot图元是否可见\n */\n boxVisible?: boolean\n /**\n * @description boxPlot图元颜色\n * @type {string}\n */\n boxColor?: string\n /**\n * @description boxPlot图元颜色透明度\n * @type {number}\n */\n boxColorOpacity?: number\n /**\n * @description boxPlot图元边框颜色\n * @type {string}\n */\n boxBorderColor?: string\n /**\n * @description boxPlot图元边框宽度\n * @type {number}\n */\n boxBorderWidth?: number\n /**\n * @description boxPlot图元边框透明度\n * @type {number}\n */\n boxBorderOpacity?: number\n}\n\nexport const zBoxPlotStyle = z.object({\n selector: zSelector.or(zSelectors).nullish(),\n boxVisible: z.boolean().nullish(),\n boxColor: z.string().nullish(),\n boxColorOpacity: z.number().min(0).max(1).nullish(),\n boxBorderColor: z.string().nullish(),\n boxBorderWidth: z.number().min(0).nullish(),\n boxBorderOpacity: z.number().min(0).max(1).nullish(),\n})\n"],"names":["zBoxPlotStyle","z","zSelector","zSelectors"],"mappings":";;AA0EO,MAAMA,gBAAgBC,EAAE,MAAM,CAAC;IACpC,UAAUC,UAAU,EAAE,CAACC,YAAY,OAAO;IAC1C,YAAYF,EAAE,OAAO,GAAG,OAAO;IAC/B,UAAUA,EAAE,MAAM,GAAG,OAAO;IAC5B,iBAAiBA,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,OAAO;IACjD,gBAAgBA,EAAE,MAAM,GAAG,OAAO;IAClC,gBAAgBA,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,OAAO;IACzC,kBAAkBA,EAAE,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,OAAO;AACpD"}
|