@primeui/vue-chart 0.0.1-alpha.1

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 (277) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +1 -0
  3. package/dist/Chart.parts.d.ts +39 -0
  4. package/dist/Chart.vue.d.ts +27 -0
  5. package/dist/ChartCanvas.mjs +14 -0
  6. package/dist/ChartCanvas.render.spec.d.ts +1 -0
  7. package/dist/ChartCanvas.vue.d.ts +23 -0
  8. package/dist/ChartStacked.spec.d.ts +1 -0
  9. package/dist/ChartSvg.axes.spec.d.ts +1 -0
  10. package/dist/ChartSvg.context.spec.d.ts +1 -0
  11. package/dist/ChartSvg.customizations.spec.d.ts +1 -0
  12. package/dist/ChartSvg.features.spec.d.ts +1 -0
  13. package/dist/ChartSvg.legend.spec.d.ts +1 -0
  14. package/dist/ChartSvg.mjs +14 -0
  15. package/dist/ChartSvg.registration.spec.d.ts +1 -0
  16. package/dist/ChartSvg.render.spec.d.ts +1 -0
  17. package/dist/ChartSvg.vue.d.ts +23 -0
  18. package/dist/_test/fixtures.d.ts +34 -0
  19. package/dist/bundle-discipline.spec.d.ts +1 -0
  20. package/dist/chunk-2D3PWFR2.mjs +214 -0
  21. package/dist/chunk-32XIRBZ7.mjs +87 -0
  22. package/dist/chunk-372K2BMN.mjs +1476 -0
  23. package/dist/chunk-42J32DPD.mjs +70 -0
  24. package/dist/chunk-44BAFHPK.mjs +51 -0
  25. package/dist/chunk-4CRHCZV3.mjs +142 -0
  26. package/dist/chunk-4NJ2PSHV.mjs +230 -0
  27. package/dist/chunk-4THCGGER.mjs +53 -0
  28. package/dist/chunk-4UVPCLJ7.mjs +70 -0
  29. package/dist/chunk-54DLUFIA.mjs +96 -0
  30. package/dist/chunk-56NMBNNX.mjs +52 -0
  31. package/dist/chunk-5DWO3G33.mjs +276 -0
  32. package/dist/chunk-5FTUGKPC.mjs +167 -0
  33. package/dist/chunk-5SRBQVU5.mjs +6 -0
  34. package/dist/chunk-62NGBLQ7.mjs +28 -0
  35. package/dist/chunk-644ROAHU.mjs +362 -0
  36. package/dist/chunk-6S4JMPKC.mjs +55 -0
  37. package/dist/chunk-72KINEJ6.mjs +52 -0
  38. package/dist/chunk-7P6ASYW6.mjs +7 -0
  39. package/dist/chunk-AAX7FOW3.mjs +210 -0
  40. package/dist/chunk-AUI5R4DA.mjs +84 -0
  41. package/dist/chunk-CDXF6ZTL.mjs +50 -0
  42. package/dist/chunk-CQHNYT2V.mjs +1692 -0
  43. package/dist/chunk-DLUFOM5K.mjs +218 -0
  44. package/dist/chunk-DOOXGOOB.mjs +123 -0
  45. package/dist/chunk-DYVFVVTO.mjs +97 -0
  46. package/dist/chunk-E2U4W5FW.mjs +288 -0
  47. package/dist/chunk-E4ROAOPT.mjs +291 -0
  48. package/dist/chunk-FFBK7Q3W.mjs +91 -0
  49. package/dist/chunk-FQTWLAVA.mjs +23 -0
  50. package/dist/chunk-FZ3PZ66C.mjs +12 -0
  51. package/dist/chunk-GA4VV5V4.mjs +21 -0
  52. package/dist/chunk-GFC24374.mjs +244 -0
  53. package/dist/chunk-GX2MK6VT.mjs +255 -0
  54. package/dist/chunk-HANSF33Z.mjs +169 -0
  55. package/dist/chunk-HTZVV6VV.mjs +550 -0
  56. package/dist/chunk-J2P5JBHC.mjs +26 -0
  57. package/dist/chunk-J43KLCZF.mjs +10 -0
  58. package/dist/chunk-JKK3D33U.mjs +64 -0
  59. package/dist/chunk-K326BBF7.mjs +276 -0
  60. package/dist/chunk-KOWFD2AE.mjs +72 -0
  61. package/dist/chunk-LD57I4SY.mjs +5 -0
  62. package/dist/chunk-MDA22SIZ.mjs +29 -0
  63. package/dist/chunk-NLXOJSKK.mjs +727 -0
  64. package/dist/chunk-O6L3PNFC.mjs +49 -0
  65. package/dist/chunk-PJVOZSPF.mjs +55 -0
  66. package/dist/chunk-PQV55JYI.mjs +38 -0
  67. package/dist/chunk-PSSXPTLQ.mjs +210 -0
  68. package/dist/chunk-RQURY2H3.mjs +40 -0
  69. package/dist/chunk-RRHYGSK6.mjs +29 -0
  70. package/dist/chunk-RSAZ7V5Z.mjs +42 -0
  71. package/dist/chunk-RSTIA3KM.mjs +41 -0
  72. package/dist/chunk-TEOO4OLV.mjs +6 -0
  73. package/dist/chunk-TIV2FI4S.mjs +53 -0
  74. package/dist/chunk-UO27BCRL.mjs +86 -0
  75. package/dist/chunk-VWABO23U.mjs +143 -0
  76. package/dist/chunk-W5M3BR6N.mjs +26 -0
  77. package/dist/chunk-WA735Y26.mjs +101 -0
  78. package/dist/chunk-WKSQR6L5.mjs +247 -0
  79. package/dist/chunk-WYV2MHP6.mjs +34 -0
  80. package/dist/chunk-XBDNMPF7.mjs +87 -0
  81. package/dist/chunk-YGHWUR7K.mjs +45 -0
  82. package/dist/chunk-YRKAI2R2.mjs +151 -0
  83. package/dist/chunk-ZHFL3RYO.mjs +228 -0
  84. package/dist/chunk-ZNINPVG7.mjs +30 -0
  85. package/dist/chunk-ZRCOVQQM.mjs +47 -0
  86. package/dist/components/charts/ChartBar.mjs +13 -0
  87. package/dist/components/charts/ChartBar.vue.d.ts +11 -0
  88. package/dist/components/charts/ChartCandlestick.mjs +11 -0
  89. package/dist/components/charts/ChartCandlestick.vue.d.ts +11 -0
  90. package/dist/components/charts/ChartHeatmap.mjs +11 -0
  91. package/dist/components/charts/ChartHeatmap.vue.d.ts +11 -0
  92. package/dist/components/charts/ChartLine.mjs +11 -0
  93. package/dist/components/charts/ChartLine.vue.d.ts +11 -0
  94. package/dist/components/charts/ChartPie.mjs +11 -0
  95. package/dist/components/charts/ChartPie.vue.d.ts +15 -0
  96. package/dist/components/charts/ChartPolar.mjs +11 -0
  97. package/dist/components/charts/ChartPolar.vue.d.ts +11 -0
  98. package/dist/components/charts/ChartRadar.mjs +11 -0
  99. package/dist/components/charts/ChartRadar.vue.d.ts +11 -0
  100. package/dist/components/charts/ChartScatter.mjs +11 -0
  101. package/dist/components/charts/ChartScatter.vue.d.ts +11 -0
  102. package/dist/components/charts/ChartTreemap.mjs +10 -0
  103. package/dist/components/charts/ChartTreemap.vue.d.ts +15 -0
  104. package/dist/components/charts/index.d.ts +2 -0
  105. package/dist/components/containers/ChartDecimation.mjs +6 -0
  106. package/dist/components/containers/ChartDecimation.vue.d.ts +29 -0
  107. package/dist/components/containers/ChartGroup.mjs +4 -0
  108. package/dist/components/containers/ChartGroup.vue.d.ts +13 -0
  109. package/dist/components/containers/ChartOverlap.mjs +5 -0
  110. package/dist/components/containers/ChartOverlap.vue.d.ts +13 -0
  111. package/dist/components/containers/ChartRange.mjs +6 -0
  112. package/dist/components/containers/ChartRange.vue.d.ts +13 -0
  113. package/dist/components/containers/ChartStacked.mjs +6 -0
  114. package/dist/components/containers/ChartStacked.vue.d.ts +21 -0
  115. package/dist/components/containers/ChartWaterfall.mjs +5 -0
  116. package/dist/components/containers/ChartWaterfall.vue.d.ts +17 -0
  117. package/dist/components/containers/keys.d.ts +5 -0
  118. package/dist/components/customizations/ChartAccessibility.mjs +9 -0
  119. package/dist/components/customizations/ChartAccessibility.vue.d.ts +28 -0
  120. package/dist/components/customizations/ChartAnnotation.mjs +5 -0
  121. package/dist/components/customizations/ChartAnnotation.vue.d.ts +8 -0
  122. package/dist/components/customizations/ChartAxisCategory.mjs +3 -0
  123. package/dist/components/customizations/ChartAxisCategory.vue.d.ts +4 -0
  124. package/dist/components/customizations/ChartAxisGroup.mjs +3 -0
  125. package/dist/components/customizations/ChartAxisGroup.vue.d.ts +14 -0
  126. package/dist/components/customizations/ChartBreadcrumb.mjs +6 -0
  127. package/dist/components/customizations/ChartBreadcrumb.vue.d.ts +15 -0
  128. package/dist/components/customizations/ChartCaption.mjs +9 -0
  129. package/dist/components/customizations/ChartCaption.vue.d.ts +4 -0
  130. package/dist/components/customizations/ChartColorLegend.mjs +9 -0
  131. package/dist/components/customizations/ChartColorLegend.vue.d.ts +47 -0
  132. package/dist/components/customizations/ChartDataLabels.mjs +9 -0
  133. package/dist/components/customizations/ChartDataLabels.vue.d.ts +53 -0
  134. package/dist/components/customizations/ChartExportMenu.mjs +9 -0
  135. package/dist/components/customizations/ChartExportMenu.vue.d.ts +29 -0
  136. package/dist/components/customizations/ChartHover.mjs +9 -0
  137. package/dist/components/customizations/ChartHover.vue.d.ts +4 -0
  138. package/dist/components/customizations/ChartLegend.mjs +9 -0
  139. package/dist/components/customizations/ChartLegend.vue.d.ts +7 -0
  140. package/dist/components/customizations/ChartNavigator.mjs +10 -0
  141. package/dist/components/customizations/ChartNavigator.vue.d.ts +4 -0
  142. package/dist/components/customizations/ChartReferenceBand.mjs +5 -0
  143. package/dist/components/customizations/ChartReferenceBand.vue.d.ts +4 -0
  144. package/dist/components/customizations/ChartReferenceLine.mjs +5 -0
  145. package/dist/components/customizations/ChartReferenceLine.vue.d.ts +4 -0
  146. package/dist/components/customizations/ChartResponsive.mjs +9 -0
  147. package/dist/components/customizations/ChartResponsive.vue.d.ts +12 -0
  148. package/dist/components/customizations/ChartTitle.mjs +9 -0
  149. package/dist/components/customizations/ChartTitle.vue.d.ts +4 -0
  150. package/dist/components/customizations/ChartTooltip.mjs +9 -0
  151. package/dist/components/customizations/ChartTooltip.vue.d.ts +6 -0
  152. package/dist/components/customizations/ChartXAxis.mjs +10 -0
  153. package/dist/components/customizations/ChartXAxis.vue.d.ts +24 -0
  154. package/dist/components/customizations/ChartYAxis.mjs +10 -0
  155. package/dist/components/customizations/ChartYAxis.vue.d.ts +23 -0
  156. package/dist/components/customizations/ChartZoom.mjs +9 -0
  157. package/dist/components/customizations/ChartZoom.vue.d.ts +4 -0
  158. package/dist/components/customizations/axisGroupKeys.d.ts +8 -0
  159. package/dist/components/customizations/index.d.ts +20 -0
  160. package/dist/components/items/ChartItem.mjs +3 -0
  161. package/dist/components/items/ChartItem.vue.d.ts +4 -0
  162. package/dist/components/items/ChartTreemapGroup.mjs +5 -0
  163. package/dist/components/items/ChartTreemapGroup.vue.d.ts +11 -0
  164. package/dist/components/items/index.d.ts +1 -0
  165. package/dist/components/renderers/CartesianRenderer.mjs +9 -0
  166. package/dist/components/renderers/CartesianRenderer.vue.d.ts +66 -0
  167. package/dist/components/renderers/ColorLegendRenderer.mjs +2 -0
  168. package/dist/components/renderers/ColorLegendRenderer.vue.d.ts +15 -0
  169. package/dist/components/renderers/LegendRenderer.mjs +3 -0
  170. package/dist/components/renderers/LegendRenderer.vue.d.ts +20 -0
  171. package/dist/components/renderers/NavigatorRenderer.mjs +5 -0
  172. package/dist/components/renderers/NavigatorRenderer.vue.d.ts +16 -0
  173. package/dist/components/renderers/RadialRenderer.mjs +9 -0
  174. package/dist/components/renderers/RadialRenderer.vue.d.ts +39 -0
  175. package/dist/components/renderers/RectRenderer.mjs +9 -0
  176. package/dist/components/renderers/RectRenderer.vue.d.ts +32 -0
  177. package/dist/components/renderers/TooltipRenderer.mjs +4 -0
  178. package/dist/components/renderers/TooltipRenderer.vue.d.ts +11 -0
  179. package/dist/components/renderers/layers/BarLayerCanvas.mjs +10 -0
  180. package/dist/components/renderers/layers/BarLayerCanvas.vue.d.ts +3 -0
  181. package/dist/components/renderers/layers/BarLayerSvg.mjs +10 -0
  182. package/dist/components/renderers/layers/BarLayerSvg.vue.d.ts +3 -0
  183. package/dist/components/renderers/layers/CandlestickLayer.mjs +9 -0
  184. package/dist/components/renderers/layers/CandlestickLayer.vue.d.ts +3 -0
  185. package/dist/components/renderers/layers/HeatmapLayer.mjs +9 -0
  186. package/dist/components/renderers/layers/HeatmapLayer.vue.d.ts +3 -0
  187. package/dist/components/renderers/layers/LineLayer.mjs +9 -0
  188. package/dist/components/renderers/layers/LineLayer.vue.d.ts +3 -0
  189. package/dist/components/renderers/layers/PieLayer.mjs +9 -0
  190. package/dist/components/renderers/layers/PieLayer.vue.d.ts +12 -0
  191. package/dist/components/renderers/layers/PolarLayer.mjs +9 -0
  192. package/dist/components/renderers/layers/PolarLayer.vue.d.ts +16 -0
  193. package/dist/components/renderers/layers/RadarLayer.mjs +9 -0
  194. package/dist/components/renderers/layers/RadarLayer.vue.d.ts +16 -0
  195. package/dist/components/renderers/layers/ScatterLayer.mjs +9 -0
  196. package/dist/components/renderers/layers/ScatterLayer.vue.d.ts +3 -0
  197. package/dist/composables/index.d.ts +35 -0
  198. package/dist/composables/useAnimationProps.d.ts +21 -0
  199. package/dist/composables/useAxisComponentBase.d.ts +11 -0
  200. package/dist/composables/useAxisRegistration.d.ts +7 -0
  201. package/dist/composables/useAxisTransition.d.ts +6 -0
  202. package/dist/composables/useBarLayer.d.ts +9 -0
  203. package/dist/composables/useBarRenderer.canvas.d.ts +2 -0
  204. package/dist/composables/useBarRenderer.svg.d.ts +2 -0
  205. package/dist/composables/useBarRendererBase.d.ts +3 -0
  206. package/dist/composables/useCandlestickRenderer.d.ts +2 -0
  207. package/dist/composables/useCartesianAnimation.d.ts +2 -0
  208. package/dist/composables/useCartesianFrame.d.ts +72 -0
  209. package/dist/composables/useCartesianLayout.d.ts +3 -0
  210. package/dist/composables/useChartContext.d.ts +40 -0
  211. package/dist/composables/useChartLayers.d.ts +31 -0
  212. package/dist/composables/useChartRefreshHook.d.ts +1 -0
  213. package/dist/composables/useChartSync.d.ts +2 -0
  214. package/dist/composables/useChartSyncCoordinator.d.ts +23 -0
  215. package/dist/composables/useControllerLifecycle.d.ts +18 -0
  216. package/dist/composables/useCustomizationRegistration.d.ts +18 -0
  217. package/dist/composables/useDatasetAnimationContext.d.ts +14 -0
  218. package/dist/composables/useDatasetRegistration.d.ts +6 -0
  219. package/dist/composables/useDrilldownState.d.ts +3 -0
  220. package/dist/composables/useFamilyRenderers.d.ts +10 -0
  221. package/dist/composables/useFamilyRenderers.spec.d.ts +1 -0
  222. package/dist/composables/useHeatmapRenderer.d.ts +2 -0
  223. package/dist/composables/useItemCollector.d.ts +2 -0
  224. package/dist/composables/useKeyboardController.d.ts +8 -0
  225. package/dist/composables/useKeyboardNavigation.d.ts +2 -0
  226. package/dist/composables/useLineRenderer.d.ts +2 -0
  227. package/dist/composables/useNavigatorRenderer.d.ts +7 -0
  228. package/dist/composables/usePieRenderer.d.ts +2 -0
  229. package/dist/composables/usePolarRenderer.d.ts +2 -0
  230. package/dist/composables/usePropertyAnimations.d.ts +4 -0
  231. package/dist/composables/useRadarRenderer.d.ts +2 -0
  232. package/dist/composables/useRadialFrame.d.ts +39 -0
  233. package/dist/composables/useResponsiveConfig.d.ts +8 -0
  234. package/dist/composables/useResponsiveDimensions.d.ts +2 -0
  235. package/dist/composables/useScatterRenderer.d.ts +2 -0
  236. package/dist/composables/useTreemapRenderer.d.ts +2 -0
  237. package/dist/composables/useZoomController.d.ts +9 -0
  238. package/dist/composables/useZoomPan.d.ts +2 -0
  239. package/dist/context/ChartContext.d.ts +21 -0
  240. package/dist/context/index.d.ts +4 -0
  241. package/dist/context/keys.d.ts +52 -0
  242. package/dist/context/syncKeys.d.ts +5 -0
  243. package/dist/index.d.ts +44 -0
  244. package/dist/index.mjs +67 -0
  245. package/dist/namespace.d.ts +1 -0
  246. package/dist/namespace.mjs +112 -0
  247. package/dist/release-date.d.ts +11 -0
  248. package/dist/types/animation.types.d.ts +38 -0
  249. package/dist/types/axes.types.d.ts +27 -0
  250. package/dist/types/axisComponentBase.types.d.ts +5 -0
  251. package/dist/types/axisGroup.types.d.ts +1 -0
  252. package/dist/types/bar.types.d.ts +42 -0
  253. package/dist/types/breadcrumb.types.d.ts +12 -0
  254. package/dist/types/candlestick.types.d.ts +41 -0
  255. package/dist/types/canvas.types.d.ts +5 -0
  256. package/dist/types/caption.types.d.ts +8 -0
  257. package/dist/types/cartesian.types.d.ts +22 -0
  258. package/dist/types/chart.types.d.ts +51 -0
  259. package/dist/types/heatmap.types.d.ts +58 -0
  260. package/dist/types/index.d.ts +27 -0
  261. package/dist/types/item.types.d.ts +25 -0
  262. package/dist/types/keyboard.types.d.ts +24 -0
  263. package/dist/types/layout.types.d.ts +35 -0
  264. package/dist/types/legend.types.d.ts +13 -0
  265. package/dist/types/line.types.d.ts +64 -0
  266. package/dist/types/pie.types.d.ts +49 -0
  267. package/dist/types/polar.types.d.ts +63 -0
  268. package/dist/types/radar.types.d.ts +56 -0
  269. package/dist/types/responsiveDimensions.types.d.ts +16 -0
  270. package/dist/types/scatter.types.d.ts +50 -0
  271. package/dist/types/svg.types.d.ts +44 -0
  272. package/dist/types/tooltip.types.d.ts +6 -0
  273. package/dist/types/treemap.types.d.ts +50 -0
  274. package/dist/types/zoom.types.d.ts +45 -0
  275. package/dist/utils/index.d.ts +3 -0
  276. package/dist/utils/styles.d.ts +10 -0
  277. package/package.json +63 -0
@@ -0,0 +1,727 @@
1
+ import { useChartMethods } from './chunk-HANSF33Z.mjs';
2
+ import { defineComponent, computed, ref, onBeforeUnmount, watch, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, createCommentVNode, toDisplayString, unref } from 'vue';
3
+ import { resolveNavigatorConfig, calculateNavigatorLayout, configureCanvasHiDPI, renderNavigatorCanvas, HANDLE_WIDTH, GRIP_LINE_GAP, computeNavigatorJump, computeNavigatorJumpY, hitTestNavigator, computeNavigatorPan, computeNavigatorResizeLeft, computeNavigatorResizeRight, computeNavigatorPanY, computeNavigatorResizeTop, computeNavigatorResizeBottom } from '@primeui/chart-core';
4
+
5
+ var _hoisted_1 = ["transform"];
6
+ var _hoisted_2 = [
7
+ "width",
8
+ "height",
9
+ "fill"
10
+ ];
11
+ var _hoisted_3 = ["id"];
12
+ var _hoisted_4 = ["width", "height"];
13
+ var _hoisted_5 = ["clip-path"];
14
+ var _hoisted_6 = [
15
+ "x1",
16
+ "x2",
17
+ "y2",
18
+ "stroke"
19
+ ];
20
+ var _hoisted_7 = ["clip-path"];
21
+ var _hoisted_8 = [
22
+ "cx",
23
+ "cy",
24
+ "fill"
25
+ ];
26
+ var _hoisted_9 = [
27
+ "x",
28
+ "y",
29
+ "width",
30
+ "height",
31
+ "fill",
32
+ "fill-opacity"
33
+ ];
34
+ var _hoisted_10 = [
35
+ "d",
36
+ "fill",
37
+ "fill-opacity"
38
+ ];
39
+ var _hoisted_11 = ["d", "stroke"];
40
+ var _hoisted_12 = ["clip-path"];
41
+ var _hoisted_13 = ["d", "stroke"];
42
+ var _hoisted_14 = ["clip-path"];
43
+ var _hoisted_15 = [
44
+ "x",
45
+ "y",
46
+ "fill"
47
+ ];
48
+ var _hoisted_16 = [
49
+ "width",
50
+ "height",
51
+ "fill"
52
+ ];
53
+ var _hoisted_17 = [
54
+ "y",
55
+ "width",
56
+ "height",
57
+ "fill"
58
+ ];
59
+ var _hoisted_18 = [
60
+ "y",
61
+ "width",
62
+ "height",
63
+ "fill"
64
+ ];
65
+ var _hoisted_19 = [
66
+ "x",
67
+ "y",
68
+ "width",
69
+ "height",
70
+ "fill"
71
+ ];
72
+ var _hoisted_20 = [
73
+ "x",
74
+ "y",
75
+ "width",
76
+ "height",
77
+ "fill",
78
+ "stroke"
79
+ ];
80
+ var _hoisted_21 = [
81
+ "x",
82
+ "y",
83
+ "width",
84
+ "height"
85
+ ];
86
+ var _hoisted_22 = [
87
+ "x",
88
+ "y",
89
+ "width",
90
+ "height"
91
+ ];
92
+ var _hoisted_23 = [
93
+ "x",
94
+ "y",
95
+ "width",
96
+ "height"
97
+ ];
98
+ var _hoisted_24 = [
99
+ "x",
100
+ "y",
101
+ "width",
102
+ "height"
103
+ ];
104
+ var _hoisted_25 = { "pointer-events": "none" };
105
+ var _hoisted_26 = [
106
+ "x1",
107
+ "y1",
108
+ "x2",
109
+ "y2",
110
+ "stroke"
111
+ ];
112
+ var _hoisted_27 = [
113
+ "x1",
114
+ "y1",
115
+ "x2",
116
+ "y2",
117
+ "stroke"
118
+ ];
119
+ var _hoisted_28 = [
120
+ "x1",
121
+ "y1",
122
+ "x2",
123
+ "y2",
124
+ "stroke"
125
+ ];
126
+ var _hoisted_29 = [
127
+ "x1",
128
+ "y1",
129
+ "x2",
130
+ "y2",
131
+ "stroke"
132
+ ];
133
+ var _hoisted_30 = [
134
+ "width",
135
+ "height",
136
+ "fill"
137
+ ];
138
+ var _hoisted_31 = [
139
+ "x",
140
+ "width",
141
+ "height",
142
+ "fill"
143
+ ];
144
+ var _hoisted_32 = [
145
+ "x",
146
+ "width",
147
+ "height",
148
+ "fill",
149
+ "stroke"
150
+ ];
151
+ var _hoisted_33 = [
152
+ "x",
153
+ "width",
154
+ "height"
155
+ ];
156
+ var _hoisted_34 = [
157
+ "x",
158
+ "width",
159
+ "height"
160
+ ];
161
+ var _hoisted_35 = { "pointer-events": "none" };
162
+ var _hoisted_36 = [
163
+ "x1",
164
+ "y1",
165
+ "x2",
166
+ "y2",
167
+ "stroke"
168
+ ];
169
+ var _hoisted_37 = [
170
+ "x1",
171
+ "y1",
172
+ "x2",
173
+ "y2",
174
+ "stroke"
175
+ ];
176
+ var _hoisted_38 = [
177
+ "x1",
178
+ "y1",
179
+ "x2",
180
+ "y2",
181
+ "stroke"
182
+ ];
183
+ var _hoisted_39 = [
184
+ "x1",
185
+ "y1",
186
+ "x2",
187
+ "y2",
188
+ "stroke"
189
+ ];
190
+ var _sfc_main = /* @__PURE__ */ defineComponent({
191
+ __name: "NavigatorRenderer",
192
+ props: {
193
+ area: {},
194
+ config: {},
195
+ datasets: {},
196
+ zoomState: {},
197
+ updateZoom: { type: Function },
198
+ chartId: {},
199
+ renderer: {},
200
+ locale: {},
201
+ isTimeAxis: { type: Boolean },
202
+ tickFormat: { type: [Function, String] }
203
+ },
204
+ setup(__props) {
205
+ const props = __props;
206
+ const ZONE_CURSORS = {
207
+ "resize-left": "ew-resize",
208
+ "resize-right": "ew-resize",
209
+ "resize-top": "ns-resize",
210
+ "resize-bottom": "ns-resize",
211
+ pan: "grab",
212
+ background: "pointer"
213
+ };
214
+ const methods = useChartMethods();
215
+ const resolved = computed(() => resolveNavigatorConfig(props.config, methods.theme));
216
+ const w = computed(() => props.area.width);
217
+ const h = computed(() => props.area.height);
218
+ const layout = computed(() => calculateNavigatorLayout({
219
+ x: 0,
220
+ y: 0,
221
+ width: w.value,
222
+ height: h.value
223
+ }, props.config, props.datasets, props.zoomState, props.isTimeAxis, props.tickFormat, props.locale, methods.theme));
224
+ const bgFill = computed(() => `var(--p-chart-band-fill, ${resolved.value.backgroundColor})`);
225
+ const gridStroke = computed(() => `var(--p-chart-grid, ${resolved.value.gridColor})`);
226
+ const labelFill = computed(() => `var(--p-chart-tick-label-color, ${resolved.value.labelColor})`);
227
+ const seriesFill = computed(() => `var(--p-chart-navigator-series, ${resolved.value.color})`);
228
+ const maskFill = computed(() => `var(--p-chart-navigator-mask, ${resolved.value.maskColor})`);
229
+ const selStroke = computed(() => `var(--p-chart-navigator-selection, ${resolved.value.selectionColor})`);
230
+ const selFill = computed(() => `var(--p-chart-navigator-selection-fill, ${resolved.value.selectionFill})`);
231
+ const data = computed(() => layout.value.data);
232
+ const scales = computed(() => layout.value.scales);
233
+ const paths = computed(() => layout.value.paths);
234
+ const selection = computed(() => layout.value.selection);
235
+ const ticks = computed(() => layout.value.ticks);
236
+ const additionalSeries = computed(() => layout.value.allSeries.slice(1));
237
+ const is2DNav = computed(() => data.value?.isNumericAxis ?? false);
238
+ const clipId = computed(() => `nav-clip-${props.chartId}`);
239
+ const gripY1 = computed(() => h.value * 0.3);
240
+ const gripY2 = computed(() => h.value * 0.7);
241
+ let dragCurrent = null;
242
+ const isDragging = ref(false);
243
+ function beginDrag(type, clientX, clientY, target, pointerId) {
244
+ if (!props.zoomState.x || !scales.value) return;
245
+ target.setPointerCapture(pointerId);
246
+ dragCurrent = {
247
+ type,
248
+ startClientX: clientX,
249
+ startClientY: clientY,
250
+ startMin: props.zoomState.x.min,
251
+ startMax: props.zoomState.x.max,
252
+ startMinY: props.zoomState.y?.min ?? 0,
253
+ startMaxY: props.zoomState.y?.max ?? 0
254
+ };
255
+ isDragging.value = true;
256
+ window.addEventListener("pointermove", handleWindowPointerMove);
257
+ window.addEventListener("pointerup", handleWindowPointerUp);
258
+ }
259
+ function handleWindowPointerMove(e) {
260
+ if (!dragCurrent || !scales.value || !data.value) return;
261
+ const deltaX = e.clientX - dragCurrent.startClientX;
262
+ const deltaY = e.clientY - dragCurrent.startClientY;
263
+ let xResult;
264
+ if (dragCurrent.type === "pan") {
265
+ xResult = computeNavigatorPan(dragCurrent.startMin, dragCurrent.startMax, deltaX, scales.value.x, data.value.xDomain);
266
+ } else if (dragCurrent.type === "resize-left") {
267
+ xResult = computeNavigatorResizeLeft(dragCurrent.startMin, dragCurrent.startMax, deltaX, scales.value.x, data.value.xDomain);
268
+ } else if (dragCurrent.type === "resize-right") {
269
+ xResult = computeNavigatorResizeRight(dragCurrent.startMin, dragCurrent.startMax, deltaX, scales.value.x, data.value.xDomain);
270
+ }
271
+ let yResult = props.zoomState.y;
272
+ if (is2DNav.value && data.value.yDomain) {
273
+ if (dragCurrent.type === "pan") {
274
+ const yr = computeNavigatorPanY(dragCurrent.startMinY, dragCurrent.startMaxY, deltaY, scales.value.y, data.value.yDomain);
275
+ yResult = {
276
+ min: yr.min,
277
+ max: yr.max
278
+ };
279
+ } else if (dragCurrent.type === "resize-top") {
280
+ const yr = computeNavigatorResizeTop(dragCurrent.startMinY, dragCurrent.startMaxY, deltaY, scales.value.y, data.value.yDomain);
281
+ yResult = {
282
+ min: yr.min,
283
+ max: yr.max
284
+ };
285
+ } else if (dragCurrent.type === "resize-bottom") {
286
+ const yr = computeNavigatorResizeBottom(dragCurrent.startMinY, dragCurrent.startMaxY, deltaY, scales.value.y, data.value.yDomain);
287
+ yResult = {
288
+ min: yr.min,
289
+ max: yr.max
290
+ };
291
+ }
292
+ }
293
+ props.updateZoom({
294
+ x: xResult ? {
295
+ min: xResult.min,
296
+ max: xResult.max
297
+ } : props.zoomState.x,
298
+ y: yResult
299
+ });
300
+ }
301
+ function handleWindowPointerUp() {
302
+ dragCurrent = null;
303
+ isDragging.value = false;
304
+ window.removeEventListener("pointermove", handleWindowPointerMove);
305
+ window.removeEventListener("pointerup", handleWindowPointerUp);
306
+ }
307
+ onBeforeUnmount(() => {
308
+ window.removeEventListener("pointermove", handleWindowPointerMove);
309
+ window.removeEventListener("pointerup", handleWindowPointerUp);
310
+ });
311
+ function startDragSvg(type, e) {
312
+ e.preventDefault();
313
+ e.stopPropagation();
314
+ beginDrag(type, e.clientX, e.clientY, e.target, e.pointerId);
315
+ }
316
+ function handleBackgroundClickSvg(e) {
317
+ if (!scales.value || !data.value) return;
318
+ const svg = e.target.closest("svg");
319
+ if (!svg) return;
320
+ const rect = svg.getBoundingClientRect();
321
+ const clickX = e.clientX - rect.left - props.area.x;
322
+ const clickY = e.clientY - rect.top - props.area.y;
323
+ const currentWidth = props.zoomState.x ? props.zoomState.x.max - props.zoomState.x.min : null;
324
+ const xResult = computeNavigatorJump(clickX, currentWidth, scales.value.x, data.value.xDomain);
325
+ let yResult = props.zoomState.y;
326
+ if (is2DNav.value && data.value.yDomain) {
327
+ const currentHeight = props.zoomState.y ? props.zoomState.y.max - props.zoomState.y.min : null;
328
+ yResult = computeNavigatorJumpY(clickY, currentHeight, scales.value.y, data.value.yDomain);
329
+ }
330
+ props.updateZoom({
331
+ x: {
332
+ min: xResult.min,
333
+ max: xResult.max
334
+ },
335
+ y: yResult
336
+ });
337
+ }
338
+ const canvasRef = ref(null);
339
+ watch([
340
+ canvasRef,
341
+ layout,
342
+ w,
343
+ h
344
+ ], () => {
345
+ if (props.renderer !== "canvas" || !canvasRef.value) return;
346
+ configureCanvasHiDPI(canvasRef.value, w.value, h.value);
347
+ const ctx = canvasRef.value.getContext("2d");
348
+ if (!ctx) return;
349
+ ctx.clearRect(0, 0, canvasRef.value.width, canvasRef.value.height);
350
+ renderNavigatorCanvas(ctx, layout.value);
351
+ }, { flush: "post" });
352
+ function handleCanvasPointerDown(e) {
353
+ if (!scales.value || !data.value) return;
354
+ e.preventDefault();
355
+ e.stopPropagation();
356
+ const rect = e.target.getBoundingClientRect();
357
+ const localX = e.clientX - rect.left;
358
+ const localY = e.clientY - rect.top;
359
+ const zone = hitTestNavigator(localX, selection.value, localY, resolved.value.handleWidth);
360
+ if (!zone) return;
361
+ if (zone === "background") {
362
+ const currentWidth = props.zoomState.x ? props.zoomState.x.max - props.zoomState.x.min : null;
363
+ const xResult = computeNavigatorJump(localX, currentWidth, scales.value.x, data.value.xDomain);
364
+ let yResult = props.zoomState.y;
365
+ if (is2DNav.value && data.value.yDomain) {
366
+ const currentHeight = props.zoomState.y ? props.zoomState.y.max - props.zoomState.y.min : null;
367
+ yResult = computeNavigatorJumpY(localY, currentHeight, scales.value.y, data.value.yDomain);
368
+ }
369
+ props.updateZoom({
370
+ x: {
371
+ min: xResult.min,
372
+ max: xResult.max
373
+ },
374
+ y: yResult
375
+ });
376
+ } else {
377
+ beginDrag(zone, e.clientX, e.clientY, e.target, e.pointerId);
378
+ }
379
+ }
380
+ function handleCanvasPointerMoveCursor(e) {
381
+ if (dragCurrent) {
382
+ const dt = dragCurrent.type;
383
+ e.target.style.cursor = dt === "pan" ? "grabbing" : dt === "resize-top" || dt === "resize-bottom" ? "ns-resize" : "ew-resize";
384
+ return;
385
+ }
386
+ const rect = e.target.getBoundingClientRect();
387
+ const localX = e.clientX - rect.left;
388
+ const localY = e.clientY - rect.top;
389
+ const zone = hitTestNavigator(localX, selection.value, localY, resolved.value.handleWidth);
390
+ e.target.style.cursor = zone ? ZONE_CURSORS[zone] : "default";
391
+ }
392
+ return (_ctx, _cache) => {
393
+ return __props.renderer === "canvas" ? (openBlock(), createElementBlock("canvas", {
394
+ key: 0,
395
+ ref: (el) => {
396
+ canvasRef.value = el;
397
+ },
398
+ style: normalizeStyle({
399
+ position: "absolute",
400
+ left: `${__props.area.x}px`,
401
+ top: `${__props.area.y}px`,
402
+ width: `${w.value}px`,
403
+ height: `${h.value}px`
404
+ }),
405
+ onPointerdown: handleCanvasPointerDown,
406
+ onPointermove: handleCanvasPointerMoveCursor
407
+ }, null, 36)) : (openBlock(), createElementBlock("g", {
408
+ key: 1,
409
+ class: "chart-navigator",
410
+ transform: `translate(${__props.area.x},${__props.area.y})`
411
+ }, [
412
+ createElementVNode("rect", {
413
+ width: w.value,
414
+ height: h.value,
415
+ fill: bgFill.value,
416
+ rx: "3"
417
+ }, null, 8, _hoisted_2),
418
+ createElementVNode("clipPath", { id: clipId.value }, [createElementVNode("rect", {
419
+ width: w.value,
420
+ height: h.value,
421
+ rx: "3"
422
+ }, null, 8, _hoisted_4)], 8, _hoisted_3),
423
+ createElementVNode("g", {
424
+ "clip-path": `url(#${clipId.value})`,
425
+ "pointer-events": "none"
426
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(ticks.value, (tick, i) => {
427
+ return openBlock(), createElementBlock("line", {
428
+ key: "g" + i,
429
+ x1: tick.px,
430
+ y1: 0,
431
+ x2: tick.px,
432
+ y2: h.value,
433
+ stroke: gridStroke.value,
434
+ "stroke-width": "1"
435
+ }, null, 8, _hoisted_6);
436
+ }), 128))], 8, _hoisted_5),
437
+ paths.value ? (openBlock(), createElementBlock("g", {
438
+ key: 0,
439
+ "clip-path": `url(#${clipId.value})`
440
+ }, [paths.value.dots ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(paths.value.dots, (dot, i) => {
441
+ return openBlock(), createElementBlock("circle", {
442
+ key: i,
443
+ cx: dot.px,
444
+ cy: dot.py,
445
+ r: "2",
446
+ fill: seriesFill.value,
447
+ opacity: "0.7"
448
+ }, null, 8, _hoisted_8);
449
+ }), 128)) : paths.value.bars ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(paths.value.bars, (bar, i) => {
450
+ return openBlock(), createElementBlock("rect", {
451
+ key: i,
452
+ x: bar.px,
453
+ y: bar.py,
454
+ width: bar.width,
455
+ height: bar.height,
456
+ fill: seriesFill.value,
457
+ "fill-opacity": resolved.value.opacity
458
+ }, null, 8, _hoisted_9);
459
+ }), 128)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createElementVNode("path", {
460
+ d: paths.value.areaPath,
461
+ fill: seriesFill.value,
462
+ "fill-opacity": resolved.value.opacity
463
+ }, null, 8, _hoisted_10), createElementVNode("path", {
464
+ d: paths.value.linePath,
465
+ stroke: seriesFill.value,
466
+ fill: "none",
467
+ "stroke-width": "1.5"
468
+ }, null, 8, _hoisted_11)], 64))], 8, _hoisted_7)) : createCommentVNode("", true),
469
+ (openBlock(true), createElementBlock(Fragment, null, renderList(additionalSeries.value, (entry, si) => {
470
+ return openBlock(), createElementBlock("g", {
471
+ key: "add-" + si,
472
+ "clip-path": `url(#${clipId.value})`,
473
+ "pointer-events": "none"
474
+ }, [entry.paths.linePath ? (openBlock(), createElementBlock("path", {
475
+ key: 0,
476
+ d: entry.paths.linePath,
477
+ stroke: entry.color,
478
+ fill: "none",
479
+ "stroke-width": "1.5"
480
+ }, null, 8, _hoisted_13)) : createCommentVNode("", true)], 8, _hoisted_12);
481
+ }), 128)),
482
+ createElementVNode("g", {
483
+ "clip-path": `url(#${clipId.value})`,
484
+ "pointer-events": "none"
485
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(ticks.value, (tick, i) => {
486
+ return openBlock(), createElementBlock("text", {
487
+ key: "t" + i,
488
+ x: tick.px + 3,
489
+ y: h.value - 3,
490
+ "font-size": "10",
491
+ "font-family": "sans-serif",
492
+ "dominant-baseline": "auto",
493
+ fill: labelFill.value,
494
+ "text-anchor": "start"
495
+ }, toDisplayString(tick.label), 9, _hoisted_15);
496
+ }), 128))], 8, _hoisted_14),
497
+ selection.value.isZoomed && selection.value.is2D && selection.value.y != null && selection.value.height != null ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
498
+ createElementVNode("rect", {
499
+ x: 0,
500
+ y: 0,
501
+ width: w.value,
502
+ height: selection.value.y,
503
+ fill: maskFill.value,
504
+ style: { "cursor": "pointer" },
505
+ "pointer-events": "all",
506
+ onPointerdown: handleBackgroundClickSvg
507
+ }, null, 40, _hoisted_16),
508
+ createElementVNode("rect", {
509
+ x: 0,
510
+ y: selection.value.y + selection.value.height,
511
+ width: w.value,
512
+ height: h.value - selection.value.y - selection.value.height,
513
+ fill: maskFill.value,
514
+ style: { "cursor": "pointer" },
515
+ "pointer-events": "all",
516
+ onPointerdown: handleBackgroundClickSvg
517
+ }, null, 40, _hoisted_17),
518
+ createElementVNode("rect", {
519
+ x: 0,
520
+ y: selection.value.y,
521
+ width: selection.value.x,
522
+ height: selection.value.height,
523
+ fill: maskFill.value,
524
+ style: { "cursor": "pointer" },
525
+ "pointer-events": "all",
526
+ onPointerdown: handleBackgroundClickSvg
527
+ }, null, 40, _hoisted_18),
528
+ createElementVNode("rect", {
529
+ x: selection.value.x + selection.value.width,
530
+ y: selection.value.y,
531
+ width: w.value - selection.value.x - selection.value.width,
532
+ height: selection.value.height,
533
+ fill: maskFill.value,
534
+ style: { "cursor": "pointer" },
535
+ "pointer-events": "all",
536
+ onPointerdown: handleBackgroundClickSvg
537
+ }, null, 40, _hoisted_19),
538
+ createElementVNode("rect", {
539
+ x: selection.value.x,
540
+ y: selection.value.y,
541
+ width: selection.value.width,
542
+ height: selection.value.height,
543
+ fill: selFill.value,
544
+ stroke: selStroke.value,
545
+ "stroke-width": "1",
546
+ style: normalizeStyle({ cursor: isDragging.value ? "grabbing" : "grab" }),
547
+ "pointer-events": "all",
548
+ onPointerdown: _cache[0] || (_cache[0] = (e) => startDragSvg("pan", e))
549
+ }, null, 44, _hoisted_20),
550
+ createElementVNode("rect", {
551
+ x: selection.value.x - unref(HANDLE_WIDTH) / 2,
552
+ y: selection.value.y,
553
+ width: unref(HANDLE_WIDTH),
554
+ height: selection.value.height,
555
+ fill: "transparent",
556
+ style: { "cursor": "ew-resize" },
557
+ "pointer-events": "all",
558
+ onPointerdown: _cache[1] || (_cache[1] = (e) => startDragSvg("resize-left", e))
559
+ }, null, 40, _hoisted_21),
560
+ createElementVNode("rect", {
561
+ x: selection.value.x + selection.value.width - unref(HANDLE_WIDTH) / 2,
562
+ y: selection.value.y,
563
+ width: unref(HANDLE_WIDTH),
564
+ height: selection.value.height,
565
+ fill: "transparent",
566
+ style: { "cursor": "ew-resize" },
567
+ "pointer-events": "all",
568
+ onPointerdown: _cache[2] || (_cache[2] = (e) => startDragSvg("resize-right", e))
569
+ }, null, 40, _hoisted_22),
570
+ createElementVNode("rect", {
571
+ x: selection.value.x,
572
+ y: selection.value.y - unref(HANDLE_WIDTH) / 2,
573
+ width: selection.value.width,
574
+ height: unref(HANDLE_WIDTH),
575
+ fill: "transparent",
576
+ style: { "cursor": "ns-resize" },
577
+ "pointer-events": "all",
578
+ onPointerdown: _cache[3] || (_cache[3] = (e) => startDragSvg("resize-top", e))
579
+ }, null, 40, _hoisted_23),
580
+ createElementVNode("rect", {
581
+ x: selection.value.x,
582
+ y: selection.value.y + selection.value.height - unref(HANDLE_WIDTH) / 2,
583
+ width: selection.value.width,
584
+ height: unref(HANDLE_WIDTH),
585
+ fill: "transparent",
586
+ style: { "cursor": "ns-resize" },
587
+ "pointer-events": "all",
588
+ onPointerdown: _cache[4] || (_cache[4] = (e) => startDragSvg("resize-bottom", e))
589
+ }, null, 40, _hoisted_24),
590
+ createElementVNode("g", _hoisted_25, [
591
+ createElementVNode("line", {
592
+ x1: selection.value.x,
593
+ y1: selection.value.y + selection.value.height / 2 - Math.min(selection.value.height * 0.3, 12),
594
+ x2: selection.value.x,
595
+ y2: selection.value.y + selection.value.height / 2 + Math.min(selection.value.height * 0.3, 12),
596
+ stroke: selStroke.value,
597
+ "stroke-width": "2",
598
+ "stroke-linecap": "round"
599
+ }, null, 8, _hoisted_26),
600
+ createElementVNode("line", {
601
+ x1: selection.value.x + selection.value.width,
602
+ y1: selection.value.y + selection.value.height / 2 - Math.min(selection.value.height * 0.3, 12),
603
+ x2: selection.value.x + selection.value.width,
604
+ y2: selection.value.y + selection.value.height / 2 + Math.min(selection.value.height * 0.3, 12),
605
+ stroke: selStroke.value,
606
+ "stroke-width": "2",
607
+ "stroke-linecap": "round"
608
+ }, null, 8, _hoisted_27),
609
+ createElementVNode("line", {
610
+ x1: selection.value.x + selection.value.width / 2 - Math.min(selection.value.width * 0.3, 12),
611
+ y1: selection.value.y,
612
+ x2: selection.value.x + selection.value.width / 2 + Math.min(selection.value.width * 0.3, 12),
613
+ y2: selection.value.y,
614
+ stroke: selStroke.value,
615
+ "stroke-width": "2",
616
+ "stroke-linecap": "round"
617
+ }, null, 8, _hoisted_28),
618
+ createElementVNode("line", {
619
+ x1: selection.value.x + selection.value.width / 2 - Math.min(selection.value.width * 0.3, 12),
620
+ y1: selection.value.y + selection.value.height,
621
+ x2: selection.value.x + selection.value.width / 2 + Math.min(selection.value.width * 0.3, 12),
622
+ y2: selection.value.y + selection.value.height,
623
+ stroke: selStroke.value,
624
+ "stroke-width": "2",
625
+ "stroke-linecap": "round"
626
+ }, null, 8, _hoisted_29)
627
+ ])
628
+ ], 64)) : createCommentVNode("", true),
629
+ selection.value.isZoomed && !selection.value.is2D ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
630
+ selection.value.x > 0 ? (openBlock(), createElementBlock("rect", {
631
+ key: 0,
632
+ x: 0,
633
+ width: selection.value.x,
634
+ height: h.value,
635
+ fill: maskFill.value,
636
+ rx: "3",
637
+ style: { "cursor": "pointer" },
638
+ "pointer-events": "all",
639
+ onPointerdown: handleBackgroundClickSvg
640
+ }, null, 40, _hoisted_30)) : createCommentVNode("", true),
641
+ selection.value.x + selection.value.width < w.value ? (openBlock(), createElementBlock("rect", {
642
+ key: 1,
643
+ x: selection.value.x + selection.value.width,
644
+ width: w.value - selection.value.x - selection.value.width,
645
+ height: h.value,
646
+ fill: maskFill.value,
647
+ style: { "cursor": "pointer" },
648
+ "pointer-events": "all",
649
+ onPointerdown: handleBackgroundClickSvg
650
+ }, null, 40, _hoisted_31)) : createCommentVNode("", true),
651
+ createElementVNode("rect", {
652
+ x: selection.value.x,
653
+ width: selection.value.width,
654
+ height: h.value,
655
+ fill: selFill.value,
656
+ stroke: selStroke.value,
657
+ "stroke-width": "1",
658
+ style: normalizeStyle({ cursor: isDragging.value ? "grabbing" : "grab" }),
659
+ "pointer-events": "all",
660
+ onPointerdown: _cache[5] || (_cache[5] = (e) => startDragSvg("pan", e))
661
+ }, null, 44, _hoisted_32),
662
+ createElementVNode("rect", {
663
+ x: selection.value.x - unref(HANDLE_WIDTH) / 2,
664
+ width: unref(HANDLE_WIDTH),
665
+ height: h.value,
666
+ fill: "transparent",
667
+ style: { "cursor": "ew-resize" },
668
+ "pointer-events": "all",
669
+ onPointerdown: _cache[6] || (_cache[6] = (e) => startDragSvg("resize-left", e))
670
+ }, null, 40, _hoisted_33),
671
+ createElementVNode("rect", {
672
+ x: selection.value.x + selection.value.width - unref(HANDLE_WIDTH) / 2,
673
+ width: unref(HANDLE_WIDTH),
674
+ height: h.value,
675
+ fill: "transparent",
676
+ style: { "cursor": "ew-resize" },
677
+ "pointer-events": "all",
678
+ onPointerdown: _cache[7] || (_cache[7] = (e) => startDragSvg("resize-right", e))
679
+ }, null, 40, _hoisted_34),
680
+ createElementVNode("g", _hoisted_35, [
681
+ createElementVNode("line", {
682
+ x1: selection.value.x,
683
+ y1: gripY1.value,
684
+ x2: selection.value.x,
685
+ y2: gripY2.value,
686
+ stroke: selStroke.value,
687
+ "stroke-width": "2",
688
+ "stroke-linecap": "round"
689
+ }, null, 8, _hoisted_36),
690
+ createElementVNode("line", {
691
+ x1: selection.value.x + unref(GRIP_LINE_GAP),
692
+ y1: gripY1.value + 2,
693
+ x2: selection.value.x + unref(GRIP_LINE_GAP),
694
+ y2: gripY2.value - 2,
695
+ stroke: selStroke.value,
696
+ "stroke-width": "1",
697
+ "stroke-linecap": "round",
698
+ opacity: "0.5"
699
+ }, null, 8, _hoisted_37),
700
+ createElementVNode("line", {
701
+ x1: selection.value.x + selection.value.width,
702
+ y1: gripY1.value,
703
+ x2: selection.value.x + selection.value.width,
704
+ y2: gripY2.value,
705
+ stroke: selStroke.value,
706
+ "stroke-width": "2",
707
+ "stroke-linecap": "round"
708
+ }, null, 8, _hoisted_38),
709
+ createElementVNode("line", {
710
+ x1: selection.value.x + selection.value.width - unref(GRIP_LINE_GAP),
711
+ y1: gripY1.value + 2,
712
+ x2: selection.value.x + selection.value.width - unref(GRIP_LINE_GAP),
713
+ y2: gripY2.value - 2,
714
+ stroke: selStroke.value,
715
+ "stroke-width": "1",
716
+ "stroke-linecap": "round",
717
+ opacity: "0.5"
718
+ }, null, 8, _hoisted_39)
719
+ ])
720
+ ], 64)) : createCommentVNode("", true)
721
+ ], 8, _hoisted_1));
722
+ };
723
+ }
724
+ });
725
+ var NavigatorRenderer_default = _sfc_main;
726
+
727
+ export { NavigatorRenderer_default };