@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
@@ -418,6 +418,12 @@ export declare const zBarParallel: z.ZodObject<{
418
418
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
419
419
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
420
420
  }, z.core.$strip>>>;
421
+ regionPadding: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
422
+ top: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
423
+ right: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
424
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
425
+ left: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
426
+ }, z.core.$strip>]>>>;
421
427
  tooltip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
422
428
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
423
429
  borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1683,6 +1689,309 @@ export declare const zBarParallel: z.ZodObject<{
1683
1689
  areaLineDash: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1684
1690
  outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
1685
1691
  }, z.core.$strip>]>>>;
1692
+ annotationDifferenceLine: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
1693
+ start: z.ZodObject<{
1694
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1695
+ field: z.ZodString;
1696
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1697
+ "=": "=";
1698
+ "==": "==";
1699
+ "!=": "!=";
1700
+ ">": ">";
1701
+ "<": "<";
1702
+ ">=": ">=";
1703
+ "<=": "<=";
1704
+ between: "between";
1705
+ }>>>;
1706
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1707
+ "=": "=";
1708
+ "==": "==";
1709
+ "!=": "!=";
1710
+ ">": ">";
1711
+ "<": "<";
1712
+ ">=": ">=";
1713
+ "<=": "<=";
1714
+ between: "between";
1715
+ }>>>;
1716
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1717
+ }, z.core.$strip>, z.ZodObject<{
1718
+ field: z.ZodString;
1719
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1720
+ in: "in";
1721
+ "not in": "not in";
1722
+ }>>>;
1723
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1724
+ in: "in";
1725
+ "not in": "not in";
1726
+ }>>>;
1727
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1728
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1729
+ field: z.ZodString;
1730
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1731
+ "=": "=";
1732
+ "==": "==";
1733
+ "!=": "!=";
1734
+ ">": ">";
1735
+ "<": "<";
1736
+ ">=": ">=";
1737
+ "<=": "<=";
1738
+ between: "between";
1739
+ }>>>;
1740
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1741
+ "=": "=";
1742
+ "==": "==";
1743
+ "!=": "!=";
1744
+ ">": ">";
1745
+ "<": "<";
1746
+ ">=": ">=";
1747
+ "<=": "<=";
1748
+ between: "between";
1749
+ }>>>;
1750
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1751
+ }, z.core.$strip>, z.ZodObject<{
1752
+ field: z.ZodString;
1753
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1754
+ in: "in";
1755
+ "not in": "not in";
1756
+ }>>>;
1757
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1758
+ in: "in";
1759
+ "not in": "not in";
1760
+ }>>>;
1761
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1762
+ }, z.core.$strip>]>>]>;
1763
+ }, z.core.$strip>;
1764
+ end: z.ZodObject<{
1765
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1766
+ field: z.ZodString;
1767
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1768
+ "=": "=";
1769
+ "==": "==";
1770
+ "!=": "!=";
1771
+ ">": ">";
1772
+ "<": "<";
1773
+ ">=": ">=";
1774
+ "<=": "<=";
1775
+ between: "between";
1776
+ }>>>;
1777
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1778
+ "=": "=";
1779
+ "==": "==";
1780
+ "!=": "!=";
1781
+ ">": ">";
1782
+ "<": "<";
1783
+ ">=": ">=";
1784
+ "<=": "<=";
1785
+ between: "between";
1786
+ }>>>;
1787
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1788
+ }, z.core.$strip>, z.ZodObject<{
1789
+ field: z.ZodString;
1790
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1791
+ in: "in";
1792
+ "not in": "not in";
1793
+ }>>>;
1794
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1795
+ in: "in";
1796
+ "not in": "not in";
1797
+ }>>>;
1798
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1799
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1800
+ field: z.ZodString;
1801
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1802
+ "=": "=";
1803
+ "==": "==";
1804
+ "!=": "!=";
1805
+ ">": ">";
1806
+ "<": "<";
1807
+ ">=": ">=";
1808
+ "<=": "<=";
1809
+ between: "between";
1810
+ }>>>;
1811
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1812
+ "=": "=";
1813
+ "==": "==";
1814
+ "!=": "!=";
1815
+ ">": ">";
1816
+ "<": "<";
1817
+ ">=": ">=";
1818
+ "<=": "<=";
1819
+ between: "between";
1820
+ }>>>;
1821
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1822
+ }, z.core.$strip>, z.ZodObject<{
1823
+ field: z.ZodString;
1824
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1825
+ in: "in";
1826
+ "not in": "not in";
1827
+ }>>>;
1828
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1829
+ in: "in";
1830
+ "not in": "not in";
1831
+ }>>>;
1832
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1833
+ }, z.core.$strip>]>>]>;
1834
+ }, z.core.$strip>;
1835
+ differenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1836
+ percent: "percent";
1837
+ absolute: "absolute";
1838
+ }>>>;
1839
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1840
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1841
+ textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1842
+ lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1843
+ }, z.core.$strip>>, z.ZodObject<{
1844
+ start: z.ZodObject<{
1845
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1846
+ field: z.ZodString;
1847
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1848
+ "=": "=";
1849
+ "==": "==";
1850
+ "!=": "!=";
1851
+ ">": ">";
1852
+ "<": "<";
1853
+ ">=": ">=";
1854
+ "<=": "<=";
1855
+ between: "between";
1856
+ }>>>;
1857
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1858
+ "=": "=";
1859
+ "==": "==";
1860
+ "!=": "!=";
1861
+ ">": ">";
1862
+ "<": "<";
1863
+ ">=": ">=";
1864
+ "<=": "<=";
1865
+ between: "between";
1866
+ }>>>;
1867
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1868
+ }, z.core.$strip>, z.ZodObject<{
1869
+ field: z.ZodString;
1870
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1871
+ in: "in";
1872
+ "not in": "not in";
1873
+ }>>>;
1874
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1875
+ in: "in";
1876
+ "not in": "not in";
1877
+ }>>>;
1878
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1879
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1880
+ field: z.ZodString;
1881
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1882
+ "=": "=";
1883
+ "==": "==";
1884
+ "!=": "!=";
1885
+ ">": ">";
1886
+ "<": "<";
1887
+ ">=": ">=";
1888
+ "<=": "<=";
1889
+ between: "between";
1890
+ }>>>;
1891
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1892
+ "=": "=";
1893
+ "==": "==";
1894
+ "!=": "!=";
1895
+ ">": ">";
1896
+ "<": "<";
1897
+ ">=": ">=";
1898
+ "<=": "<=";
1899
+ between: "between";
1900
+ }>>>;
1901
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1902
+ }, z.core.$strip>, z.ZodObject<{
1903
+ field: z.ZodString;
1904
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1905
+ in: "in";
1906
+ "not in": "not in";
1907
+ }>>>;
1908
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1909
+ in: "in";
1910
+ "not in": "not in";
1911
+ }>>>;
1912
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1913
+ }, z.core.$strip>]>>]>;
1914
+ }, z.core.$strip>;
1915
+ end: z.ZodObject<{
1916
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1917
+ field: z.ZodString;
1918
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1919
+ "=": "=";
1920
+ "==": "==";
1921
+ "!=": "!=";
1922
+ ">": ">";
1923
+ "<": "<";
1924
+ ">=": ">=";
1925
+ "<=": "<=";
1926
+ between: "between";
1927
+ }>>>;
1928
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1929
+ "=": "=";
1930
+ "==": "==";
1931
+ "!=": "!=";
1932
+ ">": ">";
1933
+ "<": "<";
1934
+ ">=": ">=";
1935
+ "<=": "<=";
1936
+ between: "between";
1937
+ }>>>;
1938
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1939
+ }, z.core.$strip>, z.ZodObject<{
1940
+ field: z.ZodString;
1941
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1942
+ in: "in";
1943
+ "not in": "not in";
1944
+ }>>>;
1945
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1946
+ in: "in";
1947
+ "not in": "not in";
1948
+ }>>>;
1949
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1950
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>, z.ZodObject<{
1951
+ field: z.ZodString;
1952
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1953
+ "=": "=";
1954
+ "==": "==";
1955
+ "!=": "!=";
1956
+ ">": ">";
1957
+ "<": "<";
1958
+ ">=": ">=";
1959
+ "<=": "<=";
1960
+ between: "between";
1961
+ }>>>;
1962
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1963
+ "=": "=";
1964
+ "==": "==";
1965
+ "!=": "!=";
1966
+ ">": ">";
1967
+ "<": "<";
1968
+ ">=": ">=";
1969
+ "<=": "<=";
1970
+ between: "between";
1971
+ }>>>;
1972
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1973
+ }, z.core.$strip>, z.ZodObject<{
1974
+ field: z.ZodString;
1975
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1976
+ in: "in";
1977
+ "not in": "not in";
1978
+ }>>>;
1979
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1980
+ in: "in";
1981
+ "not in": "not in";
1982
+ }>>>;
1983
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
1984
+ }, z.core.$strip>]>>]>;
1985
+ }, z.core.$strip>;
1986
+ differenceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1987
+ percent: "percent";
1988
+ absolute: "absolute";
1989
+ }>>>;
1990
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1991
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1992
+ textBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1993
+ lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1994
+ }, z.core.$strip>]>>>;
1686
1995
  dimensionLinkage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1687
1996
  enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1688
1997
  showTooltip: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -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, zBarGapInGroup, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationDifferenceLine, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarGapInGroup, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
4
4
  const zBarParallel = z.object({
5
5
  chartType: z.literal('barParallel'),
6
6
  dataset: zDataset.nullish(),
@@ -11,6 +11,7 @@ const zBarParallel = z.object({
11
11
  color: zColor.nullish(),
12
12
  label: zLabel.nullish(),
13
13
  legend: zLegend.nullish(),
14
+ regionPadding: zRegionPadding.nullish(),
14
15
  tooltip: zTooltip.nullish(),
15
16
  brush: zBrush.nullish(),
16
17
  xAxis: zXLinearAxis.nullish(),
@@ -25,6 +26,7 @@ const zBarParallel = z.object({
25
26
  annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
26
27
  annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
27
28
  annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
29
+ annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),
28
30
  dimensionLinkage: zDimensionLinkage.nullish(),
29
31
  locale: zLocale.nullish(),
30
32
  page: zPage.nullish()
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/barParallel/zBarParallel.js","sources":["../../../../../src/types/chartType/barParallel/zBarParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nexport const zBarParallel = z.object({\n chartType: z.literal('barParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).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 page: zPage.nullish(),\n})\n"],"names":["zBarParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale","zPage"],"mappings":";;;AA6BO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,UAAUjB,EAAE,KAAK,CAACkB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,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;IACvB,MAAMC,MAAM,OAAO;AACrB"}
1
+ {"version":3,"file":"types/chartType/barParallel/zBarParallel.js","sources":["../../../../../src/types/chartType/barParallel/zBarParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationDifferenceLine,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarGapInGroup,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nexport const zBarParallel = z.object({\n chartType: z.literal('barParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n barGapInGroup: zBarGapInGroup.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).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 annotationDifferenceLine: z.array(zAnnotationDifferenceLine).or(zAnnotationDifferenceLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n page: zPage.nullish(),\n})\n"],"names":["zBarParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zBarGapInGroup","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zAnnotationDifferenceLine","zDimensionLinkage","zLocale","zPage"],"mappings":";;;AA+BO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,UAAUlB,EAAE,KAAK,CAACmB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBnB,EAAE,KAAK,CAACoB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBpB,EAAE,KAAK,CAACqB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BrB,EAAE,KAAK,CAACsB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBtB,EAAE,KAAK,CAACuB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,0BAA0BvB,EAAE,KAAK,CAACwB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;IACvB,MAAMC,MAAM,OAAO;AACrB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, BarDimension, BarMeasure, Page } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, Sort, SortLegend, BarMaxWidth, DimensionLinkage, BarDimension, BarMeasure, Page, RegionPadding } from '../../properties';
3
3
  /**
4
4
  * @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
5
5
  * 适用场景:
@@ -71,6 +71,11 @@ export interface BarPercent {
71
71
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
72
72
  */
73
73
  legend?: Legend;
74
+ /**
75
+ * 绘图区内边距
76
+ * @description 映射到 VChart 的 region[0].padding,用于为标注、标签等绘图区外扩元素预留空间。
77
+ */
78
+ regionPadding?: RegionPadding;
74
79
  /**
75
80
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
76
81
  */
@@ -422,6 +422,12 @@ export declare const zBarPercent: z.ZodObject<{
422
422
  labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
423
423
  labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
424
424
  }, z.core.$strip>>>;
425
+ regionPadding: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
426
+ top: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
427
+ right: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
428
+ bottom: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
429
+ left: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
430
+ }, z.core.$strip>]>>>;
425
431
  tooltip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
426
432
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
427
433
  borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -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, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
3
+ import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBarMaxWidth, zBarStyle, zBrush, zColor, zCrosshairRect, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zRegionPadding, zStackCornerRadius, zTheme, zTooltip, zXLinearAxis, zYBandAxis } from "../../properties/index.js";
4
4
  const zBarPercent = z.object({
5
5
  chartType: z.literal('barPercent'),
6
6
  dataset: zDataset.nullish(),
@@ -12,6 +12,7 @@ const zBarPercent = z.object({
12
12
  color: zColor.nullish(),
13
13
  label: zLabel.nullish(),
14
14
  legend: zLegend.nullish(),
15
+ regionPadding: zRegionPadding.nullish(),
15
16
  tooltip: zTooltip.nullish(),
16
17
  brush: zBrush.nullish(),
17
18
  xAxis: zXLinearAxis.nullish(),
@@ -1 +1 @@
1
- {"version":3,"file":"types/chartType/barPercent/zBarPercent.js","sources":["../../../../../src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).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":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA4BO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUjB,EAAE,KAAK,CAACkB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,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"}
1
+ {"version":3,"file":"types/chartType/barPercent/zBarPercent.js","sources":["../../../../../src/types/chartType/barPercent/zBarPercent.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zBarMaxWidth,\n zBarStyle,\n zColor,\n zCrosshairRect,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zRegionPadding,\n zStackCornerRadius,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYBandAxis,\n zPage,\n} from '../../properties'\n\nexport const zBarPercent = z.object({\n chartType: z.literal('barPercent'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n regionPadding: zRegionPadding.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n barMaxWidth: zBarMaxWidth.nullish(),\n theme: zTheme.nullish(),\n barStyle: z.array(zBarStyle).or(zBarStyle).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":["zBarPercent","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zRegionPadding","zTooltip","zBrush","zXLinearAxis","zYBandAxis","zCrosshairRect","zStackCornerRadius","zBarMaxWidth","zTheme","zBarStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA6BO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,eAAeC,eAAe,OAAO;IACrC,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,WAAW,OAAO;IACzB,eAAeC,eAAe,OAAO;IACrC,mBAAmBC,mBAAmB,OAAO;IAC7C,aAAaC,aAAa,OAAO;IACjC,OAAOC,OAAO,OAAO;IACrB,UAAUlB,EAAE,KAAK,CAACmB,WAAW,EAAE,CAACA,WAAW,OAAO;IAClD,iBAAiBnB,EAAE,KAAK,CAACoB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBpB,EAAE,KAAK,CAACqB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BrB,EAAE,KAAK,CAACsB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBtB,EAAE,KAAK,CAACuB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine, DimensionLinkage, ColumnMeasure, ColumnDimension, Page } from '../../properties';
2
+ import type { AnnotationArea, AnnotationDifferenceLine, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, Sort, SortLegend, BarMaxWidth, PolynomialRegressionLine, DimensionLinkage, ColumnMeasure, ColumnDimension, Page, RegionPadding } from '../../properties';
3
3
  /**
4
4
  * @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
5
5
  * 适用场景:
@@ -68,6 +68,11 @@ export interface Column {
68
68
  * @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
69
69
  */
70
70
  legend?: Legend;
71
+ /**
72
+ * 绘图区内边距
73
+ * @description 映射到 VChart 的 region[0].padding,用于为标注、标签等绘图区外扩元素预留空间。
74
+ */
75
+ regionPadding?: RegionPadding;
71
76
  /**
72
77
  * @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
73
78
  */
@@ -154,6 +159,10 @@ export interface Column {
154
159
  * @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
155
160
  */
156
161
  annotationArea?: AnnotationArea | AnnotationArea[];
162
+ /**
163
+ * @description 差异标注线配置,用于绑定两个数据锚点并展示绝对差值或百分比差值。
164
+ */
165
+ annotationDifferenceLine?: AnnotationDifferenceLine | AnnotationDifferenceLine[];
157
166
  /**
158
167
  * 多项式回归线
159
168
  * @description 多项式回归线配置, 包括多项式的阶数、回归线的样式等.