@visactor/vseed 0.4.24 → 0.4.26

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 (145) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/pipeline/advanced/chart/pipes/annotation/annotation.js +2 -1
  4. package/dist/esm/pipeline/advanced/chart/pipes/annotation/annotation.js.map +1 -1
  5. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +1 -0
  6. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +1 -0
  8. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -1
  9. package/dist/esm/pipeline/spec/chart/pipeline/area.js +5 -1
  10. package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
  11. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
  12. package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
  13. package/dist/esm/pipeline/spec/chart/pipeline/bar.js +5 -1
  14. package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
  15. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +5 -1
  16. package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
  17. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
  18. package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
  19. package/dist/esm/pipeline/spec/chart/pipeline/column.js +5 -1
  20. package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
  21. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +5 -1
  22. package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
  23. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
  24. package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
  25. package/dist/esm/pipeline/spec/chart/pipeline/line.js +5 -1
  26. package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
  27. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.d.ts +2 -0
  28. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js +218 -0
  29. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLine.js.map +1 -0
  30. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.d.ts +42 -0
  31. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js +213 -0
  32. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationDifferenceLineCommon.js.map +1 -0
  33. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.d.ts +1 -0
  34. package/dist/esm/pipeline/spec/chart/pipes/annotation/index.js +1 -0
  35. package/dist/esm/pipeline/spec/chart/pipes/region/index.d.ts +1 -0
  36. package/dist/esm/pipeline/spec/chart/pipes/region/index.js +1 -0
  37. package/dist/esm/pipeline/spec/chart/pipes/region/regionPadding.d.ts +2 -0
  38. package/dist/esm/pipeline/spec/chart/pipes/region/regionPadding.js +20 -0
  39. package/dist/esm/pipeline/spec/chart/pipes/region/regionPadding.js.map +1 -0
  40. package/dist/esm/theme/common/annotaion.d.ts +6 -1
  41. package/dist/esm/theme/common/annotaion.js +18 -1
  42. package/dist/esm/theme/common/annotaion.js.map +1 -1
  43. package/dist/esm/theme/dark/area.d.ts +2 -0
  44. package/dist/esm/theme/dark/bar.d.ts +3 -0
  45. package/dist/esm/theme/dark/boxPlot.d.ts +1 -0
  46. package/dist/esm/theme/dark/column.d.ts +3 -0
  47. package/dist/esm/theme/dark/dualAxis.d.ts +1 -0
  48. package/dist/esm/theme/dark/histogram.d.ts +1 -0
  49. package/dist/esm/theme/dark/line.d.ts +1 -0
  50. package/dist/esm/theme/dark/race.d.ts +3 -0
  51. package/dist/esm/theme/dark/raceLine.d.ts +1 -0
  52. package/dist/esm/theme/dark/scatter.d.ts +1 -0
  53. package/dist/esm/theme/light/area.d.ts +2 -0
  54. package/dist/esm/theme/light/bar.d.ts +3 -0
  55. package/dist/esm/theme/light/boxPlot.d.ts +1 -0
  56. package/dist/esm/theme/light/column.d.ts +3 -0
  57. package/dist/esm/theme/light/dualAxis.d.ts +1 -0
  58. package/dist/esm/theme/light/histogram.d.ts +1 -0
  59. package/dist/esm/theme/light/line.d.ts +1 -0
  60. package/dist/esm/theme/light/race.d.ts +3 -0
  61. package/dist/esm/theme/light/raceLine.d.ts +1 -0
  62. package/dist/esm/theme/light/scatter.d.ts +1 -0
  63. package/dist/esm/theme/tokenTheme.js +3 -0
  64. package/dist/esm/theme/tokenTheme.js.map +1 -1
  65. package/dist/esm/types/chartType/area/area.d.ts +11 -1
  66. package/dist/esm/types/chartType/area/zArea.d.ts +309 -0
  67. package/dist/esm/types/chartType/area/zArea.js +3 -1
  68. package/dist/esm/types/chartType/area/zArea.js.map +1 -1
  69. package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  70. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +6 -0
  71. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
  72. package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
  73. package/dist/esm/types/chartType/bar/bar.d.ts +11 -2
  74. package/dist/esm/types/chartType/bar/zBar.d.ts +309 -0
  75. package/dist/esm/types/chartType/bar/zBar.js +3 -1
  76. package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
  77. package/dist/esm/types/chartType/barParallel/barParallel.d.ts +10 -1
  78. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +309 -0
  79. package/dist/esm/types/chartType/barParallel/zBarParallel.js +3 -1
  80. package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
  81. package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
  82. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +6 -0
  83. package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
  84. package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
  85. package/dist/esm/types/chartType/column/column.d.ts +10 -1
  86. package/dist/esm/types/chartType/column/zColumn.d.ts +309 -0
  87. package/dist/esm/types/chartType/column/zColumn.js +3 -1
  88. package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
  89. package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +10 -1
  90. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +309 -0
  91. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +3 -1
  92. package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
  93. package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +6 -1
  94. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +6 -0
  95. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
  96. package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
  97. package/dist/esm/types/chartType/line/line.d.ts +11 -1
  98. package/dist/esm/types/chartType/line/zLine.d.ts +309 -0
  99. package/dist/esm/types/chartType/line/zLine.js +3 -1
  100. package/dist/esm/types/chartType/line/zLine.js.map +1 -1
  101. package/dist/esm/types/properties/annotation/annotation.d.ts +303 -0
  102. package/dist/esm/types/properties/annotation/annotation.js +3 -1
  103. package/dist/esm/types/properties/annotation/annotation.js.map +1 -1
  104. package/dist/esm/types/properties/annotation/annotationDifferenceLine.d.ts +51 -0
  105. package/dist/esm/types/properties/annotation/annotationDifferenceLine.js +0 -0
  106. package/dist/esm/types/properties/annotation/index.d.ts +2 -0
  107. package/dist/esm/types/properties/annotation/index.js +1 -0
  108. package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.d.ts +294 -0
  109. package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js +29 -0
  110. package/dist/esm/types/properties/annotation/zAnnotationDifferenceLine.js.map +1 -0
  111. package/dist/esm/types/properties/config/annotation/annotation.d.ts +2 -0
  112. package/dist/esm/types/properties/config/annotation/zAnnotation.d.ts +12 -0
  113. package/dist/esm/types/properties/config/annotation/zAnnotation.js +10 -2
  114. package/dist/esm/types/properties/config/annotation/zAnnotation.js.map +1 -1
  115. package/dist/esm/types/properties/config/area.d.ts +24 -0
  116. package/dist/esm/types/properties/config/area.js +2 -0
  117. package/dist/esm/types/properties/config/area.js.map +1 -1
  118. package/dist/esm/types/properties/config/bar.d.ts +36 -0
  119. package/dist/esm/types/properties/config/bar.js +2 -0
  120. package/dist/esm/types/properties/config/bar.js.map +1 -1
  121. package/dist/esm/types/properties/config/boxplot.d.ts +6 -0
  122. package/dist/esm/types/properties/config/column.d.ts +36 -0
  123. package/dist/esm/types/properties/config/column.js +2 -0
  124. package/dist/esm/types/properties/config/column.js.map +1 -1
  125. package/dist/esm/types/properties/config/config.d.ts +180 -0
  126. package/dist/esm/types/properties/config/dualAxis.d.ts +6 -0
  127. package/dist/esm/types/properties/config/histogram.d.ts +6 -0
  128. package/dist/esm/types/properties/config/line.d.ts +12 -0
  129. package/dist/esm/types/properties/config/line.js +2 -0
  130. package/dist/esm/types/properties/config/line.js.map +1 -1
  131. package/dist/esm/types/properties/config/race.d.ts +48 -0
  132. package/dist/esm/types/properties/config/scatter.d.ts +6 -0
  133. package/dist/esm/types/properties/index.d.ts +1 -0
  134. package/dist/esm/types/properties/index.js +1 -0
  135. package/dist/esm/types/properties/regionPadding/index.d.ts +2 -0
  136. package/dist/esm/types/properties/regionPadding/index.js +1 -0
  137. package/dist/esm/types/properties/regionPadding/regionPadding.d.ts +6 -0
  138. package/dist/esm/types/properties/regionPadding/regionPadding.js +0 -0
  139. package/dist/esm/types/properties/regionPadding/zRegionPadding.d.ts +7 -0
  140. package/dist/esm/types/properties/regionPadding/zRegionPadding.js +11 -0
  141. package/dist/esm/types/properties/regionPadding/zRegionPadding.js.map +1 -0
  142. package/dist/esm/types/properties/theme/customTheme.d.ts +360 -0
  143. package/dist/umd/index.js +560 -6
  144. package/dist/umd/index.js.map +1 -1
  145. package/package.json +1 -1
@@ -764,5 +764,308 @@ export declare const zAnnotation: z.ZodObject<{
764
764
  areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
765
765
  outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
766
766
  }, z.core.$strip>>]>>>;
767
+ annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
768
+ start: z.ZodObject<{
769
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
770
+ field: z.ZodString;
771
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
772
+ "=": "=";
773
+ "==": "==";
774
+ "!=": "!=";
775
+ ">": ">";
776
+ "<": "<";
777
+ ">=": ">=";
778
+ "<=": "<=";
779
+ between: "between";
780
+ }>>>;
781
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
782
+ "=": "=";
783
+ "==": "==";
784
+ "!=": "!=";
785
+ ">": ">";
786
+ "<": "<";
787
+ ">=": ">=";
788
+ "<=": "<=";
789
+ between: "between";
790
+ }>>>;
791
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
792
+ }, z.core.$strip>, z.ZodObject<{
793
+ field: z.ZodString;
794
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
795
+ in: "in";
796
+ "not in": "not in";
797
+ }>>>;
798
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
799
+ in: "in";
800
+ "not in": "not in";
801
+ }>>>;
802
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
803
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
804
+ field: z.ZodString;
805
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
806
+ "=": "=";
807
+ "==": "==";
808
+ "!=": "!=";
809
+ ">": ">";
810
+ "<": "<";
811
+ ">=": ">=";
812
+ "<=": "<=";
813
+ between: "between";
814
+ }>>>;
815
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
816
+ "=": "=";
817
+ "==": "==";
818
+ "!=": "!=";
819
+ ">": ">";
820
+ "<": "<";
821
+ ">=": ">=";
822
+ "<=": "<=";
823
+ between: "between";
824
+ }>>>;
825
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
826
+ }, z.core.$strip>, z.ZodObject<{
827
+ field: z.ZodString;
828
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
829
+ in: "in";
830
+ "not in": "not in";
831
+ }>>>;
832
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
833
+ in: "in";
834
+ "not in": "not in";
835
+ }>>>;
836
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
837
+ }, z.core.$strip>]>>]>;
838
+ }, z.core.$strip>;
839
+ end: z.ZodObject<{
840
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
841
+ field: z.ZodString;
842
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
843
+ "=": "=";
844
+ "==": "==";
845
+ "!=": "!=";
846
+ ">": ">";
847
+ "<": "<";
848
+ ">=": ">=";
849
+ "<=": "<=";
850
+ between: "between";
851
+ }>>>;
852
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
853
+ "=": "=";
854
+ "==": "==";
855
+ "!=": "!=";
856
+ ">": ">";
857
+ "<": "<";
858
+ ">=": ">=";
859
+ "<=": "<=";
860
+ between: "between";
861
+ }>>>;
862
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ field: z.ZodString;
865
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
866
+ in: "in";
867
+ "not in": "not in";
868
+ }>>>;
869
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
870
+ in: "in";
871
+ "not in": "not in";
872
+ }>>>;
873
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
874
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
875
+ field: z.ZodString;
876
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
877
+ "=": "=";
878
+ "==": "==";
879
+ "!=": "!=";
880
+ ">": ">";
881
+ "<": "<";
882
+ ">=": ">=";
883
+ "<=": "<=";
884
+ between: "between";
885
+ }>>>;
886
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
887
+ "=": "=";
888
+ "==": "==";
889
+ "!=": "!=";
890
+ ">": ">";
891
+ "<": "<";
892
+ ">=": ">=";
893
+ "<=": "<=";
894
+ between: "between";
895
+ }>>>;
896
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
897
+ }, z.core.$strip>, z.ZodObject<{
898
+ field: z.ZodString;
899
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
900
+ in: "in";
901
+ "not in": "not in";
902
+ }>>>;
903
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
904
+ in: "in";
905
+ "not in": "not in";
906
+ }>>>;
907
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
908
+ }, z.core.$strip>]>>]>;
909
+ }, z.core.$strip>;
910
+ differenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
911
+ percent: "percent";
912
+ absolute: "absolute";
913
+ }>>>;
914
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
915
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
916
+ textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
917
+ lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
918
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
919
+ start: z.ZodObject<{
920
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
921
+ field: z.ZodString;
922
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
923
+ "=": "=";
924
+ "==": "==";
925
+ "!=": "!=";
926
+ ">": ">";
927
+ "<": "<";
928
+ ">=": ">=";
929
+ "<=": "<=";
930
+ between: "between";
931
+ }>>>;
932
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
933
+ "=": "=";
934
+ "==": "==";
935
+ "!=": "!=";
936
+ ">": ">";
937
+ "<": "<";
938
+ ">=": ">=";
939
+ "<=": "<=";
940
+ between: "between";
941
+ }>>>;
942
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
943
+ }, z.core.$strip>, z.ZodObject<{
944
+ field: z.ZodString;
945
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
946
+ in: "in";
947
+ "not in": "not in";
948
+ }>>>;
949
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
950
+ in: "in";
951
+ "not in": "not in";
952
+ }>>>;
953
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
954
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
955
+ field: z.ZodString;
956
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
957
+ "=": "=";
958
+ "==": "==";
959
+ "!=": "!=";
960
+ ">": ">";
961
+ "<": "<";
962
+ ">=": ">=";
963
+ "<=": "<=";
964
+ between: "between";
965
+ }>>>;
966
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
967
+ "=": "=";
968
+ "==": "==";
969
+ "!=": "!=";
970
+ ">": ">";
971
+ "<": "<";
972
+ ">=": ">=";
973
+ "<=": "<=";
974
+ between: "between";
975
+ }>>>;
976
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
977
+ }, z.core.$strip>, z.ZodObject<{
978
+ field: z.ZodString;
979
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
980
+ in: "in";
981
+ "not in": "not in";
982
+ }>>>;
983
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
984
+ in: "in";
985
+ "not in": "not in";
986
+ }>>>;
987
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
988
+ }, z.core.$strip>]>>]>;
989
+ }, z.core.$strip>;
990
+ end: z.ZodObject<{
991
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
992
+ field: z.ZodString;
993
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
994
+ "=": "=";
995
+ "==": "==";
996
+ "!=": "!=";
997
+ ">": ">";
998
+ "<": "<";
999
+ ">=": ">=";
1000
+ "<=": "<=";
1001
+ between: "between";
1002
+ }>>>;
1003
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1004
+ "=": "=";
1005
+ "==": "==";
1006
+ "!=": "!=";
1007
+ ">": ">";
1008
+ "<": "<";
1009
+ ">=": ">=";
1010
+ "<=": "<=";
1011
+ between: "between";
1012
+ }>>>;
1013
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1014
+ }, z.core.$strip>, z.ZodObject<{
1015
+ field: z.ZodString;
1016
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1017
+ in: "in";
1018
+ "not in": "not in";
1019
+ }>>>;
1020
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1021
+ in: "in";
1022
+ "not in": "not in";
1023
+ }>>>;
1024
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1025
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1026
+ field: z.ZodString;
1027
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1028
+ "=": "=";
1029
+ "==": "==";
1030
+ "!=": "!=";
1031
+ ">": ">";
1032
+ "<": "<";
1033
+ ">=": ">=";
1034
+ "<=": "<=";
1035
+ between: "between";
1036
+ }>>>;
1037
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1038
+ "=": "=";
1039
+ "==": "==";
1040
+ "!=": "!=";
1041
+ ">": ">";
1042
+ "<": "<";
1043
+ ">=": ">=";
1044
+ "<=": "<=";
1045
+ between: "between";
1046
+ }>>>;
1047
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1048
+ }, z.core.$strip>, z.ZodObject<{
1049
+ field: z.ZodString;
1050
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1051
+ in: "in";
1052
+ "not in": "not in";
1053
+ }>>>;
1054
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1055
+ in: "in";
1056
+ "not in": "not in";
1057
+ }>>>;
1058
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1059
+ }, z.core.$strip>]>>]>;
1060
+ }, z.core.$strip>;
1061
+ differenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1062
+ percent: "percent";
1063
+ absolute: "absolute";
1064
+ }>>>;
1065
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1066
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1067
+ textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
+ lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1069
+ }, z.core.$strip>>]>>>;
767
1070
  }, z.core.$strip>;
768
1071
  export type Annotation = z.infer<typeof zAnnotation>;
@@ -3,11 +3,13 @@ import { zAnnotationPoint } from "./zAnnotationPoint.js";
3
3
  import { zAnnotationVerticalLine } from "./zAnnotationVerticalLine.js";
4
4
  import { zAnnotationHorizontalLine } from "./zAnnotationHorizontalLine.js";
5
5
  import { zAnnotationArea } from "./zAnnotationArea.js";
6
+ import { zAnnotationDifferenceLine } from "./zAnnotationDifferenceLine.js";
6
7
  const zAnnotation = z.object({
7
8
  annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).nullish(),
8
9
  annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).nullish(),
9
10
  annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).nullish(),
10
- annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish()
11
+ annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish(),
12
+ annotationDifferenceLine: zAnnotationDifferenceLine.or(z.array(zAnnotationDifferenceLine)).nullish()
11
13
  });
12
14
  export { zAnnotation };
13
15
 
@@ -1 +1 @@
1
- {"version":3,"file":"types/properties/annotation/annotation.js","sources":["../../../../../src/types/properties/annotation/annotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from './zAnnotationPoint'\nimport { zAnnotationVerticalLine } from './zAnnotationVerticalLine'\nimport { zAnnotationHorizontalLine } from './zAnnotationHorizontalLine'\nimport { zAnnotationArea } from './zAnnotationArea'\n\nexport const zAnnotation = z.object({\n annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).nullish(),\n annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).nullish(),\n annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish(),\n})\n\nexport type Annotation = z.infer<typeof zAnnotation>\n"],"names":["zAnnotation","z","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea"],"mappings":";;;;;AAMO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,iBAAiBC,iBAAiB,EAAE,CAACD,EAAE,KAAK,CAACC,mBAAmB,OAAO;IACvE,wBAAwBC,wBAAwB,EAAE,CAACF,EAAE,KAAK,CAACE,0BAA0B,OAAO;IAC5F,0BAA0BC,0BAA0B,EAAE,CAACH,EAAE,KAAK,CAACG,4BAA4B,OAAO;IAClG,gBAAgBC,gBAAgB,EAAE,CAACJ,EAAE,KAAK,CAACI,kBAAkB,OAAO;AACtE"}
1
+ {"version":3,"file":"types/properties/annotation/annotation.js","sources":["../../../../../src/types/properties/annotation/annotation.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zAnnotationPoint } from './zAnnotationPoint'\nimport { zAnnotationVerticalLine } from './zAnnotationVerticalLine'\nimport { zAnnotationHorizontalLine } from './zAnnotationHorizontalLine'\nimport { zAnnotationArea } from './zAnnotationArea'\nimport { zAnnotationDifferenceLine } from './zAnnotationDifferenceLine'\n\nexport const zAnnotation = z.object({\n annotationPoint: zAnnotationPoint.or(z.array(zAnnotationPoint)).nullish(),\n annotationVerticalLine: zAnnotationVerticalLine.or(z.array(zAnnotationVerticalLine)).nullish(),\n annotationHorizontalLine: zAnnotationHorizontalLine.or(z.array(zAnnotationHorizontalLine)).nullish(),\n annotationArea: zAnnotationArea.or(z.array(zAnnotationArea)).nullish(),\n annotationDifferenceLine: zAnnotationDifferenceLine.or(z.array(zAnnotationDifferenceLine)).nullish(),\n})\n\nexport type Annotation = z.infer<typeof zAnnotation>\n"],"names":["zAnnotation","z","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine"],"mappings":";;;;;;AAOO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,iBAAiBC,iBAAiB,EAAE,CAACD,EAAE,KAAK,CAACC,mBAAmB,OAAO;IACvE,wBAAwBC,wBAAwB,EAAE,CAACF,EAAE,KAAK,CAACE,0BAA0B,OAAO;IAC5F,0BAA0BC,0BAA0B,EAAE,CAACH,EAAE,KAAK,CAACG,4BAA4B,OAAO;IAClG,gBAAgBC,gBAAgB,EAAE,CAACJ,EAAE,KAAK,CAACI,kBAAkB,OAAO;IACpE,0BAA0BC,0BAA0B,EAAE,CAACL,EAAE,KAAK,CAACK,4BAA4B,OAAO;AACpG"}
@@ -0,0 +1,51 @@
1
+ import type { DimensionSelector, MeasureSelector, PartialDatumSelector } from '../../dataSelector';
2
+ /**
3
+ * @description 差异标注锚点选择器,仅支持能明确绑定到具体数据项的选择器类型。
4
+ */
5
+ export type DifferenceSelector = PartialDatumSelector | MeasureSelector | DimensionSelector;
6
+ /**
7
+ * @description 差异标注锚点配置,用于选择起始点或终止点绑定的数据。
8
+ */
9
+ export type DifferenceAnchor = {
10
+ /**
11
+ * @description 锚点选择器,必须最终定位到一个逻辑锚点。
12
+ * @example { year: '1930', type: 'Autocracies' }
13
+ * @example [{ field: 'year', operator: 'in', value: ['1930'] }, { field: 'type', operator: 'in', value: ['Autocracies'] }]
14
+ */
15
+ selector: DifferenceSelector | DifferenceSelector[];
16
+ };
17
+ /**
18
+ * @description 差异标注线配置,用于绑定两个数据锚点并展示它们的绝对差值或百分比差值。
19
+ */
20
+ export type AnnotationDifferenceLine = {
21
+ /**
22
+ * @description 差异标注线的起始锚点。
23
+ */
24
+ start: DifferenceAnchor;
25
+ /**
26
+ * @description 差异标注线的终止锚点。
27
+ */
28
+ end: DifferenceAnchor;
29
+ /**
30
+ * @description 差异值类型。
31
+ * - absolute: 显示绝对差值,计算方式为 end - start
32
+ * - percent: 显示百分比差值,计算方式为 (end - start) / start
33
+ */
34
+ differenceType?: 'absolute' | 'percent';
35
+ /**
36
+ * @description 文本字体大小。
37
+ */
38
+ textFontSize?: number;
39
+ /**
40
+ * @description 文本颜色。
41
+ */
42
+ textColor?: string;
43
+ /**
44
+ * @description 文本背景色。
45
+ */
46
+ textBackgroundColor?: string;
47
+ /**
48
+ * @description 线条颜色。
49
+ */
50
+ lineColor?: string;
51
+ };
@@ -2,8 +2,10 @@ export type * from './annotationPoint';
2
2
  export type * from './annotationHorizontalLine';
3
3
  export type * from './annotationVerticalLine';
4
4
  export type * from './annotationArea';
5
+ export type * from './annotationDifferenceLine';
5
6
  export * from './zAnnotationPoint';
6
7
  export * from './zAnnotationVerticalLine';
7
8
  export * from './zAnnotationHorizontalLine';
8
9
  export * from './zAnnotationArea';
10
+ export * from './zAnnotationDifferenceLine';
9
11
  export * from './annotation';
@@ -2,4 +2,5 @@ export * from "./zAnnotationPoint.js";
2
2
  export * from "./zAnnotationVerticalLine.js";
3
3
  export * from "./zAnnotationHorizontalLine.js";
4
4
  export * from "./zAnnotationArea.js";
5
+ export * from "./zAnnotationDifferenceLine.js";
5
6
  export * from "./annotation.js";