vue-chrts 2.1.0-beta-8 → 2.1.0-beta-9

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 (168) hide show
  1. package/dist/components/AreaChart/AreaChart.d.ts +185 -0
  2. package/dist/components/AreaChart/AreaChart.js +1 -1
  3. package/dist/components/AreaChart/AreaChart.vue.d.ts +1 -1
  4. package/dist/components/AreaChart/index.d.ts +2 -0
  5. package/dist/components/BarChart/BarChart.d.ts +192 -0
  6. package/dist/components/BarChart/BarChart.js +1 -1
  7. package/dist/components/BarChart/BarChart.vue.d.ts +1 -1
  8. package/dist/components/BarChart/index.d.ts +2 -0
  9. package/dist/components/BubbleChart/BubbleChart.d.ts +173 -0
  10. package/dist/components/BubbleChart/BubbleChart.js +1 -1
  11. package/dist/components/BubbleChart/BubbleChart.vue.d.ts +1 -1
  12. package/dist/components/BubbleChart/index.d.ts +2 -0
  13. package/dist/components/DagreGraph/DagreGraph.d.ts +254 -0
  14. package/dist/components/DagreGraph/DagreGraph.js +1 -1
  15. package/dist/components/DagreGraph/DagreGraph.vue.d.ts +1 -1
  16. package/dist/components/DagreGraph/index.d.ts +2 -0
  17. package/dist/components/DagreGraph/types.d.ts +2 -1
  18. package/dist/components/DonutChart/DonutChart.d.ts +68 -0
  19. package/dist/components/DonutChart/DonutChart.js +4 -4
  20. package/dist/components/DonutChart/DonutChart.vue.d.ts +1 -1
  21. package/dist/components/DonutChart/DonutChart2.js +2 -2
  22. package/dist/components/DonutChart/DonutChart3.js +4 -0
  23. package/dist/components/DonutChart/index.d.ts +2 -0
  24. package/dist/components/DualChart/DualChart.d.ts +195 -0
  25. package/dist/components/DualChart/DualChart.js +1 -1
  26. package/dist/components/DualChart/DualChart.vue.d.ts +1 -1
  27. package/dist/components/DualChart/index.d.ts +2 -0
  28. package/dist/components/DualChart/types.d.ts +2 -2
  29. package/dist/components/GanttChart/GanttChart.d.ts +125 -0
  30. package/dist/components/GanttChart/GanttChart.js +1 -1
  31. package/dist/components/GanttChart/GanttChart.vue.d.ts +1 -1
  32. package/dist/components/GanttChart/index.d.ts +2 -0
  33. package/dist/components/LineChart/LineChart.d.ts +2 -0
  34. package/dist/components/LineChart/LineChart.vue.d.ts +1 -1
  35. package/dist/components/LineChart/index.d.ts +2 -0
  36. package/dist/components/Maps/DottedMap/DottedMap.vue.d.ts +2 -2
  37. package/dist/components/Maps/DottedMap/core.vue.d.ts +3 -3
  38. package/dist/components/Maps/DottedMap/mapUtils.js +22 -22
  39. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.js +1 -1
  40. package/dist/components/Maps/TopoJSONMap/TopoJSONMap.vue.d.ts +2 -2
  41. package/dist/components/Maps/TopoJSONMap/types.d.ts +2 -1
  42. package/dist/components/Maps/index.d.ts +5 -0
  43. package/dist/components/SankeyChart/SankeyChart.d.ts +117 -0
  44. package/dist/components/SankeyChart/SankeyChart.js +1 -1
  45. package/dist/components/SankeyChart/SankeyChart.vue.d.ts +1 -1
  46. package/dist/components/SankeyChart/index.d.ts +2 -0
  47. package/dist/components/SankeyChart/types.d.ts +2 -1
  48. package/dist/enums.d.ts +32 -0
  49. package/dist/enums.js +6 -0
  50. package/dist/index.d.ts +12 -14
  51. package/dist/index.js +31 -31
  52. package/dist/types.d.ts +57 -7
  53. package/package.json +12 -12
  54. package/dist/components/AreaChart/types.d.ts +0 -1
  55. package/dist/components/BarChart/types.d.ts +0 -1
  56. package/dist/components/BubbleChart/types.d.ts +0 -1
  57. package/dist/components/DonutChart/types.d.ts +0 -2
  58. package/dist/components/GanttChart/types.d.ts +0 -1
  59. package/dist/components/LineChart/types.d.ts +0 -1
  60. package/dist/node_modules/.pnpm/@turf_boolean-point-in-polygon@7.3.2/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +0 -28
  61. package/dist/node_modules/.pnpm/@turf_invariant@7.3.2/node_modules/@turf/invariant/dist/esm/index.js +0 -20
  62. package/dist/node_modules/.pnpm/mgrs@1.0.0/node_modules/mgrs/mgrs.js +0 -222
  63. package/dist/node_modules/.pnpm/point-in-polygon-hao@1.2.4/node_modules/point-in-polygon-hao/dist/esm/index.js +0 -25
  64. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Point.js +0 -24
  65. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/Proj.js +0 -46
  66. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/adjust_axis.js +0 -31
  67. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/checkSanity.js +0 -15
  68. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lat.js +0 -8
  69. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_lon.js +0 -8
  70. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/adjust_zone.js +0 -13
  71. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinhy.js +0 -9
  72. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/asinz.js +0 -6
  73. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens.js +0 -8
  74. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/clens_cmplx.js +0 -10
  75. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/cosh.js +0 -7
  76. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e0fn.js +0 -6
  77. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e1fn.js +0 -6
  78. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e2fn.js +0 -6
  79. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/e3fn.js +0 -6
  80. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gN.js +0 -7
  81. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/gatg.js +0 -8
  82. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/hypot.js +0 -8
  83. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/imlfn.js +0 -11
  84. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/iqsfnz.js +0 -13
  85. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/log1py.js +0 -7
  86. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/mlfn.js +0 -6
  87. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/msfnz.js +0 -7
  88. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/phi2z.js +0 -10
  89. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_enfn.js +0 -10
  90. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_inv_mlfn.js +0 -14
  91. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/pj_mlfn.js +0 -6
  92. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/qsfnz.js +0 -7
  93. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sign.js +0 -6
  94. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/sinh.js +0 -7
  95. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/srat.js +0 -6
  96. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/toPoint.js +0 -10
  97. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/tsfnz.js +0 -8
  98. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/common/vincenty.js +0 -33
  99. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Datum.js +0 -1278
  100. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/Ellipsoid.js +0 -226
  101. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/PrimeMeridian.js +0 -17
  102. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/units.js +0 -25
  103. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/constants/values.js +0 -22
  104. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/core.js +0 -65
  105. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum.js +0 -8
  106. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datumUtils.js +0 -82
  107. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/datum_transform.js +0 -94
  108. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/defs.js +0 -39
  109. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/deriveConstants.js +0 -30
  110. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/extend.js +0 -12
  111. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/global.js +0 -9
  112. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/index.js +0 -25
  113. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/match.js +0 -11
  114. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/nadgrid.js +0 -128
  115. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/parseCode.js +0 -47
  116. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projString.js +0 -119
  117. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aea.js +0 -43
  118. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/aeqd.js +0 -36
  119. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/bonne.js +0 -55
  120. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cass.js +0 -52
  121. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/cea.js +0 -36
  122. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqc.js +0 -27
  123. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqdc.js +0 -48
  124. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/eqearth.js +0 -30
  125. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/etmerc.js +0 -54
  126. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gauss.js +0 -27
  127. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geocent.js +0 -26
  128. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/geos.js +0 -49
  129. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/gnom.js +0 -28
  130. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/krovak.js +0 -31
  131. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/laea.js +0 -134
  132. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/lcc.js +0 -61
  133. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/longlat.js +0 -19
  134. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/merc.js +0 -49
  135. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/mill.js +0 -26
  136. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/moll.js +0 -37
  137. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/nzmg.js +0 -48
  138. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ob_tran.js +0 -173
  139. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/omerc.js +0 -58
  140. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/ortho.js +0 -28
  141. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/poly.js +0 -68
  142. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/qsc.js +0 -67
  143. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/robin.js +0 -104
  144. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sinu.js +0 -47
  145. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/somerc.js +0 -34
  146. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/stere.js +0 -46
  147. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/sterea.js +0 -33
  148. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tmerc.js +0 -60
  149. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/tpers.js +0 -110
  150. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/utm.js +0 -22
  151. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections/vandg.js +0 -34
  152. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/projections.js +0 -34
  153. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/lib/transform.js +0 -49
  154. package/dist/node_modules/.pnpm/proj4@2.20.2/node_modules/proj4/projs.js +0 -38
  155. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/orient2d.js +0 -23
  156. package/dist/node_modules/.pnpm/robust-predicates@3.0.2/node_modules/robust-predicates/esm/util.js +0 -30
  157. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2015.js +0 -9
  158. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilder2019.js +0 -20
  159. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/PROJJSONBuilderBase.js +0 -171
  160. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/buildPROJJSON.js +0 -11
  161. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/detectWKTVersion.js +0 -7
  162. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/index.js +0 -104
  163. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/parser.js +0 -117
  164. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/process.js +0 -89
  165. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/transformPROJJSON.js +0 -73
  166. package/dist/node_modules/.pnpm/wkt-parser@1.5.2/node_modules/wkt-parser/util.js +0 -12
  167. package/dist/packages/shared/dist/donut-chart.js +0 -7
  168. package/dist/packages/shared/dist/index.js +0 -19
@@ -0,0 +1,254 @@
1
+ import { BulletLegendItemInterface, TooltipConfig } from '../../types';
2
+ import { LegendPosition } from '../../enums';
3
+ /**
4
+ * Dagre layout direction options
5
+ */
6
+ export type DagreRankDir = "TB" | "BT" | "LR" | "RL";
7
+ /**
8
+ * Dagre layout alignment options
9
+ */
10
+ export type DagreAlign = "UL" | "UR" | "DL" | "DR";
11
+ /**
12
+ * Dagre ranking algorithm options
13
+ */
14
+ export type DagreRanker = "network-simplex" | "tight-tree" | "longest-path";
15
+ /**
16
+ * Node shape options
17
+ */
18
+ export type NodeShape = "circle" | "square" | "triangle" | "diamond";
19
+ /**
20
+ * Link arrow position options
21
+ */
22
+ export type LinkArrowPosition = "start" | "end" | "both" | "none";
23
+ /**
24
+ * Configuration for Dagre layout algorithm
25
+ */
26
+ export interface DagreLayoutSettings {
27
+ /**
28
+ * Direction of the layout: 'TB' (top-to-bottom), 'BT' (bottom-to-top),
29
+ * 'LR' (left-to-right), 'RL' (right-to-left)
30
+ * @default 'TB'
31
+ */
32
+ rankdir?: DagreRankDir;
33
+ /**
34
+ * Alignment of nodes: 'UL' (up-left), 'UR' (up-right), 'DL' (down-left), 'DR' (down-right)
35
+ */
36
+ align?: DagreAlign;
37
+ /**
38
+ * Horizontal spacing between nodes in pixels
39
+ * @default 50
40
+ */
41
+ nodesep?: number;
42
+ /**
43
+ * Spacing between edges in pixels
44
+ * @default 10
45
+ */
46
+ edgesep?: number;
47
+ /**
48
+ * Vertical spacing between ranks in pixels
49
+ * @default 50
50
+ */
51
+ ranksep?: number;
52
+ /**
53
+ * Algorithm to use for ranking nodes
54
+ * @default 'network-simplex'
55
+ */
56
+ ranker?: DagreRanker;
57
+ /**
58
+ * Horizontal margin in pixels
59
+ * @default 0
60
+ */
61
+ marginx?: number;
62
+ /**
63
+ * Vertical margin in pixels
64
+ * @default 0
65
+ */
66
+ marginy?: number;
67
+ }
68
+ /**
69
+ * Node data structure for the graph
70
+ */
71
+ export interface GraphNodeDatum {
72
+ /**
73
+ * Unique identifier for the node
74
+ */
75
+ id: string;
76
+ /**
77
+ * Display label for the node
78
+ */
79
+ label?: string;
80
+ /**
81
+ * Node level (for hierarchical data)
82
+ */
83
+ level?: number;
84
+ /**
85
+ * Additional data associated with the node
86
+ */
87
+ [key: string]: any;
88
+ }
89
+ /**
90
+ * Link/Edge data structure for the graph
91
+ */
92
+ export interface GraphLinkDatum {
93
+ /**
94
+ * Source node ID
95
+ */
96
+ source: string;
97
+ /**
98
+ * Target node ID
99
+ */
100
+ target: string;
101
+ /**
102
+ * Label for the link
103
+ */
104
+ label?: string;
105
+ /**
106
+ * Additional data associated with the link
107
+ */
108
+ [key: string]: any;
109
+ }
110
+ /**
111
+ * Graph data structure containing nodes and links
112
+ */
113
+ export interface GraphData<N = GraphNodeDatum, L = GraphLinkDatum> {
114
+ /**
115
+ * Array of node data
116
+ */
117
+ nodes: N[];
118
+ /**
119
+ * Array of link data
120
+ */
121
+ links: L[];
122
+ }
123
+ /**
124
+ * Props for the DagreGraph component
125
+ */
126
+ export interface DagreGraphProps<N = GraphNodeDatum, L = GraphLinkDatum> {
127
+ /**
128
+ * The graph data containing nodes and links
129
+ */
130
+ data: GraphData<N, L>;
131
+ /**
132
+ * The height of the graph container in pixels
133
+ * @default 600
134
+ */
135
+ height?: number;
136
+ /**
137
+ * The width of the graph container in pixels
138
+ * @default undefined (auto)
139
+ */
140
+ width?: number;
141
+ /**
142
+ * Dagre layout configuration
143
+ */
144
+ dagreLayoutSettings?: DagreLayoutSettings;
145
+ /**
146
+ * Function or value to determine node size
147
+ * @default 40
148
+ */
149
+ nodeSize?: number | ((node: N, index: number) => number);
150
+ /**
151
+ * Function to extract node label
152
+ */
153
+ nodeLabel?: (node: N, index: number) => string;
154
+ /**
155
+ * Function or value to determine node shape
156
+ */
157
+ nodeShape?: NodeShape | ((node: N, index: number) => NodeShape);
158
+ /**
159
+ * Function or value to determine node fill color
160
+ */
161
+ nodeFill?: string | ((node: N, index: number) => string);
162
+ /**
163
+ * Function or value to determine node stroke color
164
+ */
165
+ nodeStroke?: string | ((node: N, index: number) => string);
166
+ /**
167
+ * Function or value to determine node stroke width
168
+ */
169
+ nodeStrokeWidth?: number | ((node: N, index: number) => number);
170
+ /**
171
+ * Link arrow configuration
172
+ * @default 'end'
173
+ */
174
+ linkArrow?: LinkArrowPosition;
175
+ /**
176
+ * Function to extract link label
177
+ */
178
+ linkLabel?: (link: L, index: number) => string;
179
+ /**
180
+ * Function or value to determine link color
181
+ */
182
+ linkStroke?: string | ((link: L, index: number) => string);
183
+ /**
184
+ * Function or value to determine link width
185
+ */
186
+ linkWidth?: number | ((link: L, index: number) => number);
187
+ /**
188
+ * Link curvature amount (0-1)
189
+ * @default 0
190
+ */
191
+ linkCurvature?: number;
192
+ /**
193
+ * Optional padding applied to the graph
194
+ */
195
+ padding?: {
196
+ top: number;
197
+ right: number;
198
+ bottom: number;
199
+ left: number;
200
+ };
201
+ /**
202
+ * If true, hides the tooltip
203
+ */
204
+ hideTooltip?: boolean;
205
+ /**
206
+ * Enable zoom and pan controls
207
+ * @default true
208
+ */
209
+ zoomEnabled?: boolean;
210
+ /**
211
+ * Zoom scale extent [min, max]
212
+ * @default [0.1, 10]
213
+ */
214
+ zoomScaleExtent?: [number, number];
215
+ /**
216
+ * Enable node dragging
217
+ * @default false
218
+ */
219
+ nodeDraggingEnabled?: boolean;
220
+ /**
221
+ * If true, hides the legend
222
+ */
223
+ hideLegend?: boolean;
224
+ /**
225
+ * Legend position
226
+ * @default LegendPosition.BottomCenter
227
+ */
228
+ legendPosition?: LegendPosition;
229
+ /**
230
+ * Legend style
231
+ */
232
+ legendStyle?: string | Record<string, string>;
233
+ /**
234
+ * Legend items configuration
235
+ */
236
+ legendItems?: BulletLegendItemInterface[];
237
+ /**
238
+ * Custom formatter for tooltip titles
239
+ */
240
+ tooltipTitleFormatter?: (node: N) => string | number;
241
+ /**
242
+ * Custom formatter for tooltip content
243
+ */
244
+ tooltipContentFormatter?: (node: N) => string;
245
+ /**
246
+ * Configuration object for the chart tooltip.
247
+ */
248
+ tooltip?: TooltipConfig;
249
+ /**
250
+ * Animation duration in milliseconds
251
+ * @default 600
252
+ */
253
+ duration?: number;
254
+ }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as N, useSlots as V, useTemplateRef as P, ref as G, computed as l, openBlock as u, createElementBlock as c, normalizeStyle as f, createVNode as k, unref as d, withCtx as I, createBlock as Z, createCommentVNode as s, createElementVNode as g, renderSlot as m, toDisplayString as S } from "vue";
2
2
  import { VisSingleContainer as $, VisTooltip as j, VisGraph as R, VisBulletLegend as q } from "@unovis/vue";
3
3
  import { Graph as p, GraphLayoutType as H } from "@unovis/ts";
4
- import { LegendPosition as J } from "../../packages/shared/dist/index.js";
4
+ import { LegendPosition as J } from "../../enums.js";
5
5
  const K = {
6
6
  ref: "slotWrapper",
7
7
  style: { display: "none" }
@@ -1,4 +1,4 @@
1
- import { DagreGraphProps, GraphNodeDatum, GraphLinkDatum } from './types';
1
+ import { DagreGraphProps, GraphNodeDatum, GraphLinkDatum } from './DagreGraph';
2
2
  declare const _default: <N extends GraphNodeDatum = GraphNodeDatum, L extends GraphLinkDatum = GraphLinkDatum>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onNodeClick?: ((node: N, event?: MouseEvent | undefined) => any) | undefined;
@@ -0,0 +1,2 @@
1
+ export { default as DagreGraph } from './DagreGraph.vue';
2
+ export * from './DagreGraph';
@@ -1,4 +1,5 @@
1
- import { BulletLegendItemInterface, TooltipConfig, LegendPosition } from '../../../../shared/dist/index.d.ts';
1
+ import { BulletLegendItemInterface, TooltipConfig } from '../../types';
2
+ import { LegendPosition } from '../../enums';
2
3
  /**
3
4
  * Dagre layout direction options
4
5
  */
@@ -0,0 +1,68 @@
1
+ import { BulletLegendItemInterface, TooltipConfig } from '../../types';
2
+ import { LegendPosition } from '../../enums';
3
+ export declare enum DonutType {
4
+ Half = "half",
5
+ Full = "full"
6
+ }
7
+ export type DonutChartProps<T> = {
8
+ /**
9
+ * The type of donut chart to render.
10
+ * See `DonutType` for available options.
11
+ */
12
+ type?: DonutType;
13
+ /**
14
+ * The data to be displayed in the donut chart.
15
+ * Each number in the array represents a segment value.
16
+ */
17
+ data: number[];
18
+ /**
19
+ * The arc width of the chart in pixels.
20
+ */
21
+ arcWidth?: number;
22
+ /**
23
+ * The height of the chart in pixels.
24
+ */
25
+ height: number;
26
+ /**
27
+ * The radius of the donut in pixels.
28
+ */
29
+ radius: number;
30
+ /**
31
+ * If `true`, hides the chart legend.
32
+ */
33
+ hideLegend?: boolean;
34
+ /**
35
+ * Optional position for the legend, if applicable.
36
+ * See `LegendPosition` for available options.
37
+ */
38
+ legendPosition?: LegendPosition;
39
+ /**
40
+ * Optional style object for the legend container. Allows custom CSS styling.
41
+ */
42
+ legendStyle?: string | Record<string, string>;
43
+ /**
44
+ * A record mapping category keys to `BulletLegendItemInterface` objects.
45
+ * This defines the visual representation and labels for each category in the chart's legend.
46
+ */
47
+ categories: Record<string, BulletLegendItemInterface>;
48
+ /**
49
+ * Pad angle. Default: 0
50
+ */
51
+ padAngle?: number;
52
+ /**
53
+ * Use custom formatter for tooltip titles
54
+ */
55
+ tooltipTitleFormatter?: (data: T) => string | number;
56
+ /**
57
+ * If `true`, hides the chart tooltip.
58
+ */
59
+ hideTooltip?: boolean;
60
+ /**
61
+ * Configuration object for the chart tooltip.
62
+ */
63
+ tooltip?: TooltipConfig;
64
+ /**
65
+ * Animation duration in milliseconds.
66
+ */
67
+ duration?: number;
68
+ };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as L, useSlots as S, useTemplateRef as P, ref as W, computed as s, openBlock as d, createElementBlock as y, normalizeStyle as u, createVNode as a, unref as i, withCtx as b, createBlock as N, createCommentVNode as c, createElementVNode as h, renderSlot as f } from "vue";
2
2
  import { Donut as $ } from "@unovis/ts";
3
- import { LegendPosition as j } from "../../packages/shared/dist/index.js";
3
+ import { DonutType as j } from "./DonutChart2.js";
4
4
  import z from "../Tooltip.js";
5
5
  import { VisSingleContainer as H, VisTooltip as E, VisDonut as F, VisBulletLegend as O } from "@unovis/vue";
6
- import { DonutType as R } from "../../packages/shared/dist/donut-chart.js";
6
+ import { LegendPosition as R } from "../../enums.js";
7
7
  const M = { style: {
8
8
  position: "absolute",
9
9
  top: "50%",
@@ -21,7 +21,7 @@ const M = { style: {
21
21
  height: {},
22
22
  radius: {},
23
23
  hideLegend: { type: Boolean },
24
- legendPosition: { default: j.BottomCenter },
24
+ legendPosition: { default: R.BottomCenter },
25
25
  legendStyle: {},
26
26
  categories: {},
27
27
  padAngle: {},
@@ -34,7 +34,7 @@ const M = { style: {
34
34
  },
35
35
  emits: ["click"],
36
36
  setup(l, { emit: v }) {
37
- const C = v, e = l, w = S(), g = P("slotWrapper"), n = W(), k = (t) => t, T = e.type === R.Half;
37
+ const C = v, e = l, w = S(), g = P("slotWrapper"), n = W(), k = (t) => t, T = e.type === j.Half;
38
38
  function V(t) {
39
39
  const o = Object.values(e.categories)[t.index].name;
40
40
  return n.value = {
@@ -1,4 +1,4 @@
1
- import { DonutChartProps } from './types';
1
+ import { DonutChartProps } from './DonutChart';
2
2
  declare const _default: <T extends {}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onClick?: ((event: MouseEvent, values?: any) => any) | undefined;
@@ -1,4 +1,4 @@
1
- import f from "./DonutChart.js";
1
+ var r = /* @__PURE__ */ ((l) => (l.Half = "half", l.Full = "full", l))(r || {});
2
2
  export {
3
- f as default
3
+ r as DonutType
4
4
  };
@@ -0,0 +1,4 @@
1
+ import f from "./DonutChart.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DonutChart } from './DonutChart.vue';
2
+ export * from './DonutChart';
@@ -0,0 +1,195 @@
1
+ import { axisFormatter, CrosshairConfig, AxisConfig, BulletLegendItemInterface, TooltipConfig } from '../../types';
2
+ import { LegendPosition, Orientation, CurveType } from '../../enums';
3
+ export interface DualChartProps<T> {
4
+ /**
5
+ * The data to be displayed in the dual chart.
6
+ * Each element of the array represents a data point.
7
+ * The structure of 'T' should be compatible with the chart's rendering logic.
8
+ */
9
+ data: T[];
10
+ /**
11
+ * The height of the chart in pixels.
12
+ */
13
+ height: number;
14
+ /**
15
+ * Optional label for the x-axis.
16
+ */
17
+ xLabel?: string;
18
+ /**
19
+ * Optional label for the y-axis (used for both bar and line by default).
20
+ */
21
+ yLabel?: string;
22
+ /**
23
+ * Optional label for the secondary y-axis (line chart).
24
+ */
25
+ yLabelSecondary?: string;
26
+ /**
27
+ * Optional padding applied to the chart.
28
+ * Allows specifying individual padding values for the top, right, bottom, and left sides.
29
+ */
30
+ padding?: {
31
+ top: number;
32
+ right: number;
33
+ bottom: number;
34
+ left: number;
35
+ };
36
+ /**
37
+ * A record mapping bar category keys to `BulletLegendItemInterface` objects.
38
+ * This defines the visual representation and labels for bar categories in the chart's legend.
39
+ */
40
+ barCategories: Record<string, BulletLegendItemInterface>;
41
+ /**
42
+ * A record mapping line category keys to `BulletLegendItemInterface` objects.
43
+ * This defines the visual representation and labels for line categories in the chart's legend.
44
+ */
45
+ lineCategories: Record<string, BulletLegendItemInterface>;
46
+ /**
47
+ * An array of property keys from the data object type 'T' to be used for the bar chart y-axis values.
48
+ */
49
+ barYAxis: (keyof T)[];
50
+ /**
51
+ * An array of property keys from the data object type 'T' to be used for the line chart y-axis values.
52
+ */
53
+ lineYAxis: (keyof T)[];
54
+ /**
55
+ * @param {number|Date} tick - The value of the tick. This can be a number or a Date object depending on the scale of the x-axis.
56
+ * @param {number} i - The index of the tick in the `ticks` array.
57
+ * @param {(number[]|Date[])} ticks - An array of all tick values for the x-axis.
58
+ * @returns {string} The formatted string representation of the tick.
59
+ */
60
+ xFormatter?: axisFormatter;
61
+ /**
62
+ * @param {number|Date} tick - The value of the tick. This can be a number or a Date object depending on the scale of the y-axis.
63
+ * @param {number} i - The index of the tick in the `ticks` array.
64
+ * @param {(number[]|Date[])} ticks - An array of all tick values for the y-axis.
65
+ * @returns {string} The formatted string representation of the tick.
66
+ */
67
+ yFormatter?: axisFormatter;
68
+ /**
69
+ * Use custom formatter for tooltip titles
70
+ */
71
+ tooltipTitleFormatter?: (data: T) => string | number;
72
+ /**
73
+ * The type of curve to use for the line chart lines.
74
+ * See `CurveType` for available options.
75
+ */
76
+ curveType?: CurveType;
77
+ /**
78
+ * The width of the line in pixels. Default is 2px.
79
+ */
80
+ lineWidth?: number;
81
+ /**
82
+ * The desired number of ticks on the x-axis.
83
+ */
84
+ xNumTicks?: number;
85
+ /**
86
+ * Force specific ticks on the x-axis.
87
+ */
88
+ xExplicitTicks?: (number | string | Date)[];
89
+ /**
90
+ * Force only first and last ticks on the x-axis.
91
+ */
92
+ minMaxTicksOnly?: boolean;
93
+ /**
94
+ * The desired number of ticks on the y-axis.
95
+ */
96
+ yNumTicks?: number;
97
+ /**
98
+ * If `true`, hides the chart legend.
99
+ */
100
+ hideLegend?: boolean;
101
+ /**
102
+ * If `true`, hides the chart tooltip.
103
+ */
104
+ hideTooltip?: boolean;
105
+ /**
106
+ * Optional position for the legend, if applicable.
107
+ * See `LegendPosition` for available options.
108
+ */
109
+ legendPosition?: LegendPosition;
110
+ /**
111
+ * Optional style object for the legend container. Allows custom CSS styling.
112
+ */
113
+ legendStyle?: string | Record<string, string>;
114
+ /**
115
+ * If `true`, displays a domain line (axis line) along the x-axis.
116
+ */
117
+ xDomainLine?: boolean;
118
+ /**
119
+ * If `true`, displays a domain line (axis line) along the y-axis.
120
+ */
121
+ yDomainLine?: boolean;
122
+ /**
123
+ * If `true`, displays tick lines on the x-axis.
124
+ */
125
+ xTickLine?: boolean;
126
+ /**
127
+ * If `true`, displays tick lines on the y-axis.
128
+ */
129
+ yTickLine?: boolean;
130
+ /**
131
+ * If `true`, displays grid lines along the x-axis.
132
+ */
133
+ xGridLine?: boolean;
134
+ /**
135
+ * If `true`, displays grid lines along the y-axis.
136
+ */
137
+ yGridLine?: boolean;
138
+ /**
139
+ * If `true`, hide the x-axis.
140
+ */
141
+ hideXAxis?: boolean;
142
+ /**
143
+ * If `true`, hide the y-axis.
144
+ */
145
+ hideYAxis?: boolean;
146
+ /**
147
+ * Crosshair configuration object for customizing the appearance of the crosshair line.
148
+ */
149
+ crosshairConfig?: CrosshairConfig;
150
+ /**
151
+ * Axis configuration object for customizing the appearance of the axes.
152
+ */
153
+ xAxisConfig?: AxisConfig;
154
+ /**
155
+ * Axis configuration object for customizing the appearance of the axes.
156
+ */
157
+ yAxisConfig?: AxisConfig;
158
+ /**
159
+ * The domain for the y-axis, specified as a tuple of two values.
160
+ */
161
+ yDomain?: [number | undefined, number | undefined];
162
+ /**
163
+ * The domain for the x-axis, specified as a tuple of two values.
164
+ */
165
+ xDomain?: [number | undefined, number | undefined];
166
+ /**
167
+ * If `true`, creates stacked bars.
168
+ */
169
+ stacked?: boolean;
170
+ /**
171
+ * The padding between groups of bars in pixels.
172
+ */
173
+ groupPadding?: number;
174
+ /**
175
+ * Fractional padding between the bars in the range of [0,1). Default: 0.2
176
+ */
177
+ barPadding?: number;
178
+ /**
179
+ * Rounded corners for top bars. Boolean or number (to set the radius in pixels). Default: 2
180
+ */
181
+ radius?: number;
182
+ /**
183
+ * The orientation of the bars (vertical or horizontal).
184
+ * See `Orientation` for available options.
185
+ */
186
+ orientation?: Orientation;
187
+ /**
188
+ * Animation duration in milliseconds for the chart components.
189
+ */
190
+ duration?: number;
191
+ /**
192
+ * Configuration object for the chart tooltip.
193
+ */
194
+ tooltip?: TooltipConfig;
195
+ }
@@ -2,7 +2,7 @@ import { defineComponent as G, useSlots as z, useTemplateRef as H, ref as X, com
2
2
  import { Orientation as g, CurveType as Y, Position as w, StackedBar as U, GroupedBar as I } from "@unovis/ts";
3
3
  import { VisXYContainer as J, VisTooltip as K, VisGroupedBar as Q, VisStackedBar as Z, VisLine as _, VisAxis as P, VisCrosshair as ee, VisBulletLegend as te } from "@unovis/vue";
4
4
  import ie from "../Tooltip.js";
5
- import { LegendPosition as ae } from "../../packages/shared/dist/index.js";
5
+ import { LegendPosition as ae } from "../../enums.js";
6
6
  const ne = {
7
7
  ref: "slotWrapper",
8
8
  style: { display: "none" }
@@ -1,4 +1,4 @@
1
- import { DualChartProps } from './types';
1
+ import { DualChartProps } from './DualChart';
2
2
  declare const _default: <T extends {}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onClick?: ((event: MouseEvent, values?: T | undefined) => any) | undefined;
@@ -0,0 +1,2 @@
1
+ export { default as DualChart } from './DualChart.vue';
2
+ export * from './DualChart';
@@ -1,5 +1,5 @@
1
- import { axisFormatter, CrosshairConfig, AxisConfig, BulletLegendItemInterface, TooltipConfig, LegendPosition, Orientation } from '../../../../shared/dist/index.d.ts';
2
- import { CurveType } from '@unovis/ts';
1
+ import { axisFormatter, CrosshairConfig, AxisConfig, BulletLegendItemInterface, TooltipConfig } from '../../types';
2
+ import { LegendPosition, Orientation, CurveType } from '../../enums';
3
3
  export interface DualChartProps<T> {
4
4
  /**
5
5
  * The data to be displayed in the dual chart.