@unovis/vue 1.3.0-alpha.0 → 1.3.0-alpha.2

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 (243) hide show
  1. package/components/area/index.cjs +2 -0
  2. package/components/area/index.cjs.map +1 -0
  3. package/components/area/index.js +44 -0
  4. package/components/area/index.js.map +1 -0
  5. package/components/area/index2.cjs +2 -0
  6. package/components/area/index2.cjs.map +1 -0
  7. package/components/area/index2.js +5 -0
  8. package/components/area/index2.js.map +1 -0
  9. package/components/axis/index.cjs +2 -0
  10. package/components/axis/index.cjs.map +1 -0
  11. package/components/axis/index.js +62 -0
  12. package/components/axis/index.js.map +1 -0
  13. package/components/axis/index2.cjs +2 -0
  14. package/components/axis/index2.cjs.map +1 -0
  15. package/components/axis/index2.js +5 -0
  16. package/components/axis/index2.js.map +1 -0
  17. package/components/brush/index.cjs +2 -0
  18. package/components/brush/index.cjs.map +1 -0
  19. package/components/brush/index.js +48 -0
  20. package/components/brush/index.js.map +1 -0
  21. package/components/brush/index2.cjs +2 -0
  22. package/components/brush/index2.cjs.map +1 -0
  23. package/components/brush/index2.js +5 -0
  24. package/components/brush/index2.js.map +1 -0
  25. package/components/chord-diagram/index.cjs +2 -0
  26. package/components/chord-diagram/index.cjs.map +1 -0
  27. package/components/chord-diagram/index.js +46 -0
  28. package/components/chord-diagram/index.js.map +1 -0
  29. package/components/chord-diagram/index2.cjs +2 -0
  30. package/components/chord-diagram/index2.cjs.map +1 -0
  31. package/components/chord-diagram/index2.js +5 -0
  32. package/components/chord-diagram/index2.js.map +1 -0
  33. package/components/crosshair/index.cjs +2 -0
  34. package/components/crosshair/index.cjs.map +1 -0
  35. package/components/crosshair/index.js +47 -0
  36. package/components/crosshair/index.js.map +1 -0
  37. package/components/crosshair/index2.cjs +2 -0
  38. package/components/crosshair/index2.cjs.map +1 -0
  39. package/components/crosshair/index2.js +5 -0
  40. package/components/crosshair/index2.js.map +1 -0
  41. package/components/donut/index.cjs +2 -0
  42. package/components/donut/index.cjs.map +1 -0
  43. package/components/donut/index.js +48 -0
  44. package/components/donut/index.js.map +1 -0
  45. package/components/donut/index2.cjs +2 -0
  46. package/components/donut/index2.cjs.map +1 -0
  47. package/components/donut/index2.js +5 -0
  48. package/components/donut/index2.js.map +1 -0
  49. package/components/free-brush/index.cjs +2 -0
  50. package/components/free-brush/index.cjs.map +1 -0
  51. package/components/free-brush/index.js +48 -0
  52. package/components/free-brush/index.js.map +1 -0
  53. package/components/free-brush/index2.cjs +2 -0
  54. package/components/free-brush/index2.cjs.map +1 -0
  55. package/components/free-brush/index2.js +5 -0
  56. package/components/free-brush/index2.js.map +1 -0
  57. package/components/graph/index.cjs +2 -0
  58. package/components/graph/index.cjs.map +1 -0
  59. package/components/graph/index.js +93 -0
  60. package/components/graph/index.js.map +1 -0
  61. package/components/graph/index2.cjs +2 -0
  62. package/components/graph/index2.cjs.map +1 -0
  63. package/components/graph/index2.js +5 -0
  64. package/components/graph/index2.js.map +1 -0
  65. package/components/grouped-bar/index.cjs +2 -0
  66. package/components/grouped-bar/index.cjs.map +1 -0
  67. package/components/grouped-bar/index.js +48 -0
  68. package/components/grouped-bar/index.js.map +1 -0
  69. package/components/grouped-bar/index2.cjs +2 -0
  70. package/components/grouped-bar/index2.cjs.map +1 -0
  71. package/components/grouped-bar/index2.js +5 -0
  72. package/components/grouped-bar/index2.js.map +1 -0
  73. package/components/line/index.cjs +2 -0
  74. package/components/line/index.cjs.map +1 -0
  75. package/components/line/index.js +45 -0
  76. package/components/line/index.js.map +1 -0
  77. package/components/line/index2.cjs +2 -0
  78. package/components/line/index2.cjs.map +1 -0
  79. package/components/line/index2.js +5 -0
  80. package/components/line/index2.js.map +1 -0
  81. package/components/nested-donut/index.cjs +2 -0
  82. package/components/nested-donut/index.cjs.map +1 -0
  83. package/components/nested-donut/index.js +50 -0
  84. package/components/nested-donut/index.js.map +1 -0
  85. package/components/nested-donut/index2.cjs +2 -0
  86. package/components/nested-donut/index2.cjs.map +1 -0
  87. package/components/nested-donut/index2.js +5 -0
  88. package/components/nested-donut/index2.js.map +1 -0
  89. package/components/sankey/index.cjs +2 -0
  90. package/components/sankey/index.cjs.map +1 -0
  91. package/components/sankey/index.js +76 -0
  92. package/components/sankey/index.js.map +1 -0
  93. package/components/sankey/index2.cjs +2 -0
  94. package/components/sankey/index2.cjs.map +1 -0
  95. package/components/sankey/index2.js +5 -0
  96. package/components/sankey/index2.js.map +1 -0
  97. package/components/scatter/index.cjs +2 -0
  98. package/components/scatter/index.cjs.map +1 -0
  99. package/components/scatter/index.js +51 -0
  100. package/components/scatter/index.js.map +1 -0
  101. package/components/scatter/index2.cjs +2 -0
  102. package/components/scatter/index2.cjs.map +1 -0
  103. package/components/scatter/index2.js +5 -0
  104. package/components/scatter/index2.js.map +1 -0
  105. package/components/stacked-bar/index.cjs +2 -0
  106. package/components/stacked-bar/index.cjs.map +1 -0
  107. package/components/stacked-bar/index.js +48 -0
  108. package/components/stacked-bar/index.js.map +1 -0
  109. package/components/stacked-bar/index2.cjs +2 -0
  110. package/components/stacked-bar/index2.cjs.map +1 -0
  111. package/components/stacked-bar/index2.js +5 -0
  112. package/components/stacked-bar/index2.js.map +1 -0
  113. package/components/timeline/index.cjs +2 -0
  114. package/components/timeline/index.cjs.map +1 -0
  115. package/components/timeline/index.js +51 -0
  116. package/components/timeline/index.js.map +1 -0
  117. package/components/timeline/index2.cjs +2 -0
  118. package/components/timeline/index2.cjs.map +1 -0
  119. package/components/timeline/index2.js +5 -0
  120. package/components/timeline/index2.js.map +1 -0
  121. package/components/tooltip/index.cjs +2 -0
  122. package/components/tooltip/index.cjs.map +1 -0
  123. package/components/tooltip/index.js +36 -0
  124. package/components/tooltip/index.js.map +1 -0
  125. package/components/tooltip/index2.cjs +2 -0
  126. package/components/tooltip/index2.cjs.map +1 -0
  127. package/components/tooltip/index2.js +5 -0
  128. package/components/tooltip/index2.js.map +1 -0
  129. package/components/topojson-map/index.cjs +2 -0
  130. package/components/topojson-map/index.cjs.map +1 -0
  131. package/components/topojson-map/index.js +62 -0
  132. package/components/topojson-map/index.js.map +1 -0
  133. package/components/topojson-map/index2.cjs +2 -0
  134. package/components/topojson-map/index2.cjs.map +1 -0
  135. package/components/topojson-map/index2.js +5 -0
  136. package/components/topojson-map/index2.js.map +1 -0
  137. package/components/xy-labels/index.cjs +2 -0
  138. package/components/xy-labels/index.cjs.map +1 -0
  139. package/components/xy-labels/index.js +52 -0
  140. package/components/xy-labels/index.js.map +1 -0
  141. package/components/xy-labels/index2.cjs +2 -0
  142. package/components/xy-labels/index2.cjs.map +1 -0
  143. package/components/xy-labels/index2.js +5 -0
  144. package/components/xy-labels/index2.js.map +1 -0
  145. package/components.d.ts +21 -21
  146. package/containers/single-container/index.cjs +2 -0
  147. package/containers/single-container/index.cjs.map +1 -0
  148. package/containers/single-container/index.js +64 -0
  149. package/containers/single-container/index.js.map +1 -0
  150. package/containers/single-container/index2.cjs +2 -0
  151. package/containers/single-container/index2.cjs.map +1 -0
  152. package/containers/single-container/index2.js +5 -0
  153. package/containers/single-container/index2.js.map +1 -0
  154. package/containers/single-container/index3.cjs +2 -0
  155. package/containers/single-container/index3.cjs.map +1 -0
  156. package/containers/single-container/index3.js +6 -0
  157. package/containers/single-container/index3.js.map +1 -0
  158. package/containers/xy-container/index.cjs +2 -0
  159. package/containers/xy-container/index.cjs.map +1 -0
  160. package/containers/xy-container/index.js +103 -0
  161. package/containers/xy-container/index.js.map +1 -0
  162. package/containers/xy-container/index2.cjs +2 -0
  163. package/containers/xy-container/index2.cjs.map +1 -0
  164. package/containers/xy-container/index2.js +5 -0
  165. package/containers/xy-container/index2.js.map +1 -0
  166. package/containers/xy-container/index3.cjs +2 -0
  167. package/containers/xy-container/index3.cjs.map +1 -0
  168. package/containers/xy-container/index3.js +6 -0
  169. package/containers/xy-container/index3.js.map +1 -0
  170. package/containers.d.ts +2 -2
  171. package/html-components/bullet-legend/index.cjs +2 -0
  172. package/html-components/bullet-legend/index.cjs.map +1 -0
  173. package/html-components/bullet-legend/index.js +39 -0
  174. package/html-components/bullet-legend/index.js.map +1 -0
  175. package/html-components/bullet-legend/index2.cjs +2 -0
  176. package/html-components/bullet-legend/index2.cjs.map +1 -0
  177. package/html-components/bullet-legend/index2.js +5 -0
  178. package/html-components/bullet-legend/index2.js.map +1 -0
  179. package/html-components/bullet-legend/index3.cjs +2 -0
  180. package/html-components/bullet-legend/index3.cjs.map +1 -0
  181. package/html-components/bullet-legend/index3.js +6 -0
  182. package/html-components/bullet-legend/index3.js.map +1 -0
  183. package/html-components/leaflet-flow-map/index.cjs +2 -0
  184. package/html-components/leaflet-flow-map/index.cjs.map +1 -0
  185. package/html-components/leaflet-flow-map/index.js +93 -0
  186. package/html-components/leaflet-flow-map/index.js.map +1 -0
  187. package/html-components/leaflet-flow-map/index2.cjs +2 -0
  188. package/html-components/leaflet-flow-map/index2.cjs.map +1 -0
  189. package/html-components/leaflet-flow-map/index2.js +5 -0
  190. package/html-components/leaflet-flow-map/index2.js.map +1 -0
  191. package/html-components/leaflet-flow-map/index3.cjs +2 -0
  192. package/html-components/leaflet-flow-map/index3.cjs.map +1 -0
  193. package/html-components/leaflet-flow-map/index3.js +6 -0
  194. package/html-components/leaflet-flow-map/index3.js.map +1 -0
  195. package/html-components/leaflet-map/index.cjs +2 -0
  196. package/html-components/leaflet-map/index.cjs.map +1 -0
  197. package/html-components/leaflet-map/index.js +80 -0
  198. package/html-components/leaflet-map/index.js.map +1 -0
  199. package/html-components/leaflet-map/index2.cjs +2 -0
  200. package/html-components/leaflet-map/index2.cjs.map +1 -0
  201. package/html-components/leaflet-map/index2.js +5 -0
  202. package/html-components/leaflet-map/index2.js.map +1 -0
  203. package/html-components/leaflet-map/index3.cjs +2 -0
  204. package/html-components/leaflet-map/index3.cjs.map +1 -0
  205. package/html-components/leaflet-map/index3.js +6 -0
  206. package/html-components/leaflet-map/index3.js.map +1 -0
  207. package/index.cjs +3 -0
  208. package/index.cjs.map +1 -0
  209. package/index.js +53 -1171
  210. package/index.js.map +1 -0
  211. package/package.json +15 -9
  212. package/utils/context.cjs +2 -0
  213. package/utils/context.cjs.map +1 -0
  214. package/utils/context.js +8 -0
  215. package/utils/context.js.map +1 -0
  216. package/utils/props.cjs +2 -0
  217. package/utils/props.cjs.map +1 -0
  218. package/utils/props.js +15 -0
  219. package/utils/props.js.map +1 -0
  220. package/index.umd.cjs +0 -2
  221. /package/components/area/{area.d.ts → index.d.ts} +0 -0
  222. /package/components/axis/{axis.d.ts → index.d.ts} +0 -0
  223. /package/components/brush/{brush.d.ts → index.d.ts} +0 -0
  224. /package/components/chord-diagram/{chord-diagram.d.ts → index.d.ts} +0 -0
  225. /package/components/crosshair/{crosshair.d.ts → index.d.ts} +0 -0
  226. /package/components/donut/{donut.d.ts → index.d.ts} +0 -0
  227. /package/components/free-brush/{free-brush.d.ts → index.d.ts} +0 -0
  228. /package/components/graph/{graph.d.ts → index.d.ts} +0 -0
  229. /package/components/grouped-bar/{grouped-bar.d.ts → index.d.ts} +0 -0
  230. /package/components/line/{line.d.ts → index.d.ts} +0 -0
  231. /package/components/nested-donut/{nested-donut.d.ts → index.d.ts} +0 -0
  232. /package/components/sankey/{sankey.d.ts → index.d.ts} +0 -0
  233. /package/components/scatter/{scatter.d.ts → index.d.ts} +0 -0
  234. /package/components/stacked-bar/{stacked-bar.d.ts → index.d.ts} +0 -0
  235. /package/components/timeline/{timeline.d.ts → index.d.ts} +0 -0
  236. /package/components/tooltip/{tooltip.d.ts → index.d.ts} +0 -0
  237. /package/components/topojson-map/{topojson-map.d.ts → index.d.ts} +0 -0
  238. /package/components/xy-labels/{xy-labels.d.ts → index.d.ts} +0 -0
  239. /package/containers/single-container/{single-container.d.ts → index.d.ts} +0 -0
  240. /package/containers/xy-container/{xy-container.d.ts → index.d.ts} +0 -0
  241. /package/html-components/bullet-legend/{bullet-legend.d.ts → index.d.ts} +0 -0
  242. /package/html-components/leaflet-flow-map/{leaflet-flow-map.d.ts → index.d.ts} +0 -0
  243. /package/html-components/leaflet-map/{leaflet-map.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,76 @@
1
+ import { defineComponent as s, inject as d, computed as a, getCurrentInstance as y, ref as b, onMounted as g, nextTick as m, onUnmounted as F, watch as h, openBlock as S, createElementBlock as v } from "vue";
2
+ import { Sankey as f } from "@unovis/ts";
3
+ import { parseProps as C, arePropsEqual as k } from "../../utils/props.js";
4
+ import { componentAccessorKey as x } from "../../utils/context.js";
5
+ const B = { "data-vis-component": "" }, H = /* @__PURE__ */ s({
6
+ __name: "index",
7
+ props: {
8
+ id: { type: Function },
9
+ heightNormalizationCoeff: {},
10
+ exitTransitionType: {},
11
+ enterTransitionType: {},
12
+ highlightSubtreeOnHover: { type: Boolean },
13
+ highlightDuration: {},
14
+ highlightDelay: {},
15
+ iterations: {},
16
+ nodeSort: { type: [Function, null] },
17
+ linkSort: { type: [Function, null] },
18
+ nodeWidth: {},
19
+ nodeAlign: {},
20
+ nodeHorizontalSpacing: {},
21
+ nodeMinHeight: {},
22
+ nodeMaxHeight: {},
23
+ nodePadding: {},
24
+ showSingleNode: { type: Boolean },
25
+ nodeCursor: { type: [Function, String, null] },
26
+ nodeIcon: { type: [Function, String, null] },
27
+ nodeColor: { type: [Function, String, Array, null] },
28
+ nodeFixedValue: { type: [Function, Number, null] },
29
+ nodeIconColor: { type: [Function, String, Array, null] },
30
+ linkColor: { type: [Function, String, null] },
31
+ linkValue: { type: [Function, Number, null] },
32
+ linkCursor: { type: [Function, String, null] },
33
+ label: { type: [Function, String, null] },
34
+ subLabel: { type: [Function, String, null] },
35
+ labelPosition: { type: [Function, null] },
36
+ labelVerticalAlign: {},
37
+ labelBackground: { type: Boolean },
38
+ labelFit: {},
39
+ labelMaxWidth: {},
40
+ labelExpandTrimmedOnHover: { type: Boolean },
41
+ labelTrimMode: {},
42
+ labelFontSize: {},
43
+ labelTextSeparator: {},
44
+ labelForceWordBreak: { type: Boolean },
45
+ labelColor: { type: [Function, String, Array, null] },
46
+ labelCursor: { type: [Function, String, null] },
47
+ labelVisibility: { type: Function },
48
+ subLabelFontSize: {},
49
+ subLabelColor: { type: [Function, String, Array, null] },
50
+ subLabelPlacement: {},
51
+ subLabelToLabelInlineWidthRatio: {},
52
+ duration: {},
53
+ events: {},
54
+ attributes: {},
55
+ data: {}
56
+ },
57
+ setup(r) {
58
+ const u = r, t = d(x), c = a(() => t.data.value), p = y(), o = a(() => C(u, p)), e = b();
59
+ return g(() => {
60
+ m(() => {
61
+ var n;
62
+ e.value = new f(o.value), (n = e.value) == null || n.setData(c.value), t.update(e.value);
63
+ });
64
+ }), F(() => {
65
+ var n;
66
+ (n = e.value) == null || n.destroy(), t.destroy();
67
+ }), h(o, (n, l) => {
68
+ var i;
69
+ k(n, l) || ((i = e.value) == null || i.setConfig(o.value), t.update(e.value));
70
+ }), (n, l) => (S(), v("div", B));
71
+ }
72
+ });
73
+ export {
74
+ H as default
75
+ };
76
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/sankey/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Sankey, SankeyConfigInterface, SankeyInputNode, SankeyInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n id: { type: Function },\n heightNormalizationCoeff: {},\n exitTransitionType: {},\n enterTransitionType: {},\n highlightSubtreeOnHover: { type: Boolean },\n highlightDuration: {},\n highlightDelay: {},\n iterations: {},\n nodeSort: { type: [Function, null] },\n linkSort: { type: [Function, null] },\n nodeWidth: {},\n nodeAlign: {},\n nodeHorizontalSpacing: {},\n nodeMinHeight: {},\n nodeMaxHeight: {},\n nodePadding: {},\n showSingleNode: { type: Boolean },\n nodeCursor: { type: [Function, String, null] },\n nodeIcon: { type: [Function, String, null] },\n nodeColor: { type: [Function, String, Array, null] },\n nodeFixedValue: { type: [Function, Number, null] },\n nodeIconColor: { type: [Function, String, Array, null] },\n linkColor: { type: [Function, String, null] },\n linkValue: { type: [Function, Number, null] },\n linkCursor: { type: [Function, String, null] },\n label: { type: [Function, String, null] },\n subLabel: { type: [Function, String, null] },\n labelPosition: { type: [Function, null] },\n labelVerticalAlign: {},\n labelBackground: { type: Boolean },\n labelFit: {},\n labelMaxWidth: {},\n labelExpandTrimmedOnHover: { type: Boolean },\n labelTrimMode: {},\n labelFontSize: {},\n labelTextSeparator: {},\n labelForceWordBreak: { type: Boolean },\n labelColor: { type: [Function, String, Array, null] },\n labelCursor: { type: [Function, String, null] },\n labelVisibility: { type: Function },\n subLabelFontSize: {},\n subLabelColor: { type: [Function, String, Array, null] },\n subLabelPlacement: {},\n subLabelToLabelInlineWidthRatio: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Sankey<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Sankey<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Sankey","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,IAAI,EAAE,MAAM,SAAS;AAAA,IACrB,0BAA0B,CAAC;AAAA,IAC3B,oBAAoB,CAAC;AAAA,IACrB,qBAAqB,CAAC;AAAA,IACtB,yBAAyB,EAAE,MAAM,QAAQ;AAAA,IACzC,mBAAmB,CAAC;AAAA,IACpB,gBAAgB,CAAC;AAAA,IACjB,YAAY,CAAC;AAAA,IACb,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACnC,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACnC,WAAW,CAAC;AAAA,IACZ,WAAW,CAAC;AAAA,IACZ,uBAAuB,CAAC;AAAA,IACxB,eAAe,CAAC;AAAA,IAChB,eAAe,CAAC;AAAA,IAChB,aAAa,CAAC;AAAA,IACd,gBAAgB,EAAE,MAAM,QAAQ;AAAA,IAChC,YAAY,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC7C,UAAU,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC3C,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IACnD,gBAAgB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACjD,eAAe,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IACvD,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC5C,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EA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AO,KAAK,IACrCO,IAAAL,EAAA,UAAA,QAAAK,EAAO,QAAQX,EAAK,QACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),y=require("@unovis/ts"),a=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),m={"data-vis-component":""},F=e.defineComponent({__name:"index",props:{size:{type:[Function,Number,null]},sizeScale:{type:[Object,Function]},sizeRange:{},shape:{type:[Function,String]},label:{type:[Function,String,null]},labelColor:{type:[Function,String,Array,null]},labelHideOverlapping:{type:Boolean},cursor:{type:[Function,String,null]},labelTextBrightnessRatio:{},labelPosition:{type:[Function,null]},strokeColor:{type:[Function,String,Array,null]},strokeWidth:{type:[Function,Number,null]},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(l){const i=l,o=e.inject(d.componentAccessorKey),s=e.computed(()=>o.data.value),p=e.getCurrentInstance(),c=e.computed(()=>a.parseProps(i,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new y.Scatter(c.value),(t=n.value)==null||t.setData(s.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(c,(t,u)=>{var r;a.arePropsEqual(t,u)||((r=n.value)==null||r.setConfig(c.value),o.update(n.value))}),(t,u)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=F;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/scatter/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Scatter, ScatterConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n size: { type: [Function, Number, null] },\n sizeScale: { type: [Object, Function] },\n sizeRange: {},\n shape: { type: [Function, String] },\n label: { type: [Function, String, null] },\n labelColor: { type: [Function, String, Array, null] },\n labelHideOverlapping: { type: Boolean },\n cursor: { type: [Function, String, null] },\n labelTextBrightnessRatio: {},\n labelPosition: { type: [Function, null] },\n strokeColor: { type: [Function, String, Array, null] },\n strokeWidth: { type: [Function, Number, null] },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Scatter<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Scatter<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Scatter","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,KAAM,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACvC,UAAW,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACtC,UAAW,CAAC,EACZ,MAAO,CAAE,KAAM,CAAC,SAAU,MAAM,CAAE,EAClC,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACxC,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACpD,qBAAsB,CAAE,KAAM,OAAQ,E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EKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { defineComponent as s, inject as y, computed as l, getCurrentInstance as m, ref as d, onMounted as F, nextTick as v, onUnmounted as b, watch as g, openBlock as f, createElementBlock as S } from "vue";
2
+ import { Scatter as x } from "@unovis/ts";
3
+ import { parseProps as _, arePropsEqual as h } from "../../utils/props.js";
4
+ import { componentAccessorKey as C } from "../../utils/context.js";
5
+ const k = { "data-vis-component": "" }, O = /* @__PURE__ */ s({
6
+ __name: "index",
7
+ props: {
8
+ size: { type: [Function, Number, null] },
9
+ sizeScale: { type: [Object, Function] },
10
+ sizeRange: {},
11
+ shape: { type: [Function, String] },
12
+ label: { type: [Function, String, null] },
13
+ labelColor: { type: [Function, String, Array, null] },
14
+ labelHideOverlapping: { type: Boolean },
15
+ cursor: { type: [Function, String, null] },
16
+ labelTextBrightnessRatio: {},
17
+ labelPosition: { type: [Function, null] },
18
+ strokeColor: { type: [Function, String, Array, null] },
19
+ strokeWidth: { type: [Function, Number, null] },
20
+ x: { type: [Function, Number, null] },
21
+ y: { type: [Function, Number, null, Array] },
22
+ id: { type: Function },
23
+ color: { type: [Function, String, Array, null] },
24
+ xScale: { type: [Object, Function] },
25
+ yScale: { type: [Object, Function] },
26
+ excludeFromDomainCalculation: { type: Boolean },
27
+ duration: {},
28
+ events: {},
29
+ attributes: {},
30
+ data: {}
31
+ },
32
+ setup(c) {
33
+ const u = c, n = y(C), i = l(() => n.data.value), p = m(), o = l(() => _(u, p)), t = d();
34
+ return F(() => {
35
+ v(() => {
36
+ var e;
37
+ t.value = new x(o.value), (e = t.value) == null || e.setData(i.value), n.update(t.value);
38
+ });
39
+ }), b(() => {
40
+ var e;
41
+ (e = t.value) == null || e.destroy(), n.destroy();
42
+ }), g(o, (e, a) => {
43
+ var r;
44
+ h(e, a) || ((r = t.value) == null || r.setConfig(o.value), n.update(t.value));
45
+ }), (e, a) => (f(), S("div", k));
46
+ }
47
+ });
48
+ export {
49
+ O as default
50
+ };
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/scatter/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Scatter, ScatterConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n size: { type: [Function, Number, null] },\n sizeScale: { type: [Object, Function] },\n sizeRange: {},\n shape: { type: [Function, String] },\n label: { type: [Function, String, null] },\n labelColor: { type: [Function, String, Array, null] },\n labelHideOverlapping: { type: Boolean },\n cursor: { type: [Function, String, null] },\n labelTextBrightnessRatio: {},\n labelPosition: { type: [Function, null] },\n strokeColor: { type: [Function, String, Array, null] },\n strokeWidth: { type: [Function, Number, null] },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Scatter<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Scatter<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Scatter","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,MAAM,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACvC,WAAW,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACtC,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,CAAC,UAAU,MAAM,EAAE;AAAA,IAClC,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACxC,YAAY,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IACpD,sBAAsB,EAAE,MAAM,QAAQ;AAAA,IACtC,QAAQ,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACzC,0BAA0B,CAAC;AAAA,IAC3B,eAAe,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACxC,aAAa,EAAE,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AA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),d=require("@unovis/ts"),u=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),m={"data-vis-component":""},v=e.defineComponent({__name:"index",props:{barWidth:{},barMaxWidth:{},dataStep:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},cursor:{type:[Function,String,null]},barMinHeight1Px:{type:Boolean},barMinHeightZeroValue:{},orientation:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(i){const s=i,o=e.inject(y.componentAccessorKey),l=e.computed(()=>o.data.value),p=e.getCurrentInstance(),a=e.computed(()=>u.parseProps(s,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.StackedBar(a.value),(t=n.value)==null||t.setData(l.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(a,(t,r)=>{var c;u.arePropsEqual(t,r)||((c=n.value)==null||c.setConfig(a.value),o.update(n.value))}),(t,r)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=v;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/stacked-bar/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { StackedBar, StackedBarConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n barWidth: {},\n barMaxWidth: {},\n dataStep: {},\n barPadding: {},\n roundedCorners: { type: [Number, Boolean] },\n cursor: { type: [Function, String, null] },\n barMinHeight1Px: { type: Boolean },\n barMinHeightZeroValue: {},\n orientation: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<StackedBar<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new StackedBar<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","StackedBar","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,SAAU,CAAC,EACX,YAAa,CAAC,EACd,SAAU,CAAC,EACX,WAAY,CAAC,EACb,eAAgB,CAAE,KAAM,CAAC,OAAQ,OAAO,CAAE,EAC1C,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,gBAAiB,CAAE,KAAM,OAAQ,EACjC,sBAAuB,CAAC,EACxB,YAAa,CAAC,EACd,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpC,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,KAAM,KAAK,CAAE,EAC3C,GAAI,CAAE,KAAM,QAAS,EACrB,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAkB,WAAAN,EAAO,KAAK,GAC1CO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { defineComponent as s, inject as d, computed as c, getCurrentInstance as m, ref as y, onMounted as v, nextTick as b, onUnmounted as f, watch as x, openBlock as g, createElementBlock as F } from "vue";
2
+ import { StackedBar as _ } from "@unovis/ts";
3
+ import { parseProps as h, arePropsEqual as B } from "../../utils/props.js";
4
+ import { componentAccessorKey as S } from "../../utils/context.js";
5
+ const C = { "data-vis-component": "" }, A = /* @__PURE__ */ s({
6
+ __name: "index",
7
+ props: {
8
+ barWidth: {},
9
+ barMaxWidth: {},
10
+ dataStep: {},
11
+ barPadding: {},
12
+ roundedCorners: { type: [Number, Boolean] },
13
+ cursor: { type: [Function, String, null] },
14
+ barMinHeight1Px: { type: Boolean },
15
+ barMinHeightZeroValue: {},
16
+ orientation: {},
17
+ x: { type: [Function, Number, null] },
18
+ y: { type: [Function, Number, null, Array] },
19
+ id: { type: Function },
20
+ color: { type: [Function, String, Array, null] },
21
+ xScale: { type: [Object, Function] },
22
+ yScale: { type: [Object, Function] },
23
+ excludeFromDomainCalculation: { type: Boolean },
24
+ duration: {},
25
+ events: {},
26
+ attributes: {},
27
+ data: {}
28
+ },
29
+ setup(u) {
30
+ const i = u, n = d(S), l = c(() => n.data.value), p = m(), o = c(() => h(i, p)), t = y();
31
+ return v(() => {
32
+ b(() => {
33
+ var e;
34
+ t.value = new _(o.value), (e = t.value) == null || e.setData(l.value), n.update(t.value);
35
+ });
36
+ }), f(() => {
37
+ var e;
38
+ (e = t.value) == null || e.destroy(), n.destroy();
39
+ }), x(o, (e, a) => {
40
+ var r;
41
+ B(e, a) || ((r = t.value) == null || r.setConfig(o.value), n.update(t.value));
42
+ }), (e, a) => (g(), F("div", C));
43
+ }
44
+ });
45
+ export {
46
+ A as default
47
+ };
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/stacked-bar/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { StackedBar, StackedBarConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n barWidth: {},\n barMaxWidth: {},\n dataStep: {},\n barPadding: {},\n roundedCorners: { type: [Number, Boolean] },\n cursor: { type: [Function, String, null] },\n barMinHeight1Px: { type: Boolean },\n barMinHeightZeroValue: {},\n orientation: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<StackedBar<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new StackedBar<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","StackedBar","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,UAAU,CAAC;AAAA,IACX,aAAa,CAAC;AAAA,IACd,UAAU,CAAC;AAAA,IACX,YAAY,CAAC;AAAA,IACb,gBAAgB,EAAE,MAAM,CAAC,QAAQ,OAAO,EAAE;AAAA,IAC1C,QAAQ,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACzC,iBAAiB,EAAE,MAAM,QAAQ;AAAA,IACjC,uBAAuB,CAAC;AAAA,IACxB,aAAa,CAAC;AAAA,IACd,GAAG,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACpC,GAAG,EA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1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),y=require("@unovis/ts"),l=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),m={"data-vis-component":""},v=e.defineComponent({__name:"index",props:{x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},lineWidth:{type:[Function,Number,null]},lineCap:{type:Boolean},rowHeight:{},length:{type:[Function,Number,null]},type:{type:[Function,String,null]},cursor:{type:[Function,String,null]},showLabels:{type:Boolean},labelWidth:{},maxLabelWidth:{},alternatingRowColors:{type:Boolean},onScroll:{type:Function},showEmptySegments:{type:Boolean},data:{}},setup(r){const i=r,o=e.inject(d.componentAccessorKey),s=e.computed(()=>o.data.value),p=e.getCurrentInstance(),c=e.computed(()=>l.parseProps(i,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new y.Timeline(c.value),(t=n.value)==null||t.setData(s.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(c,(t,a)=>{var u;l.arePropsEqual(t,a)||((u=n.value)==null||u.setConfig(c.value),o.update(n.value))}),(t,a)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=v;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/timeline/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Timeline, TimelineConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { XYComponentConfigInterface, StringAccessor } from \"@unovis/ts\"\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n lineWidth: { type: [Function, Number, null] },\n lineCap: { type: Boolean },\n rowHeight: {},\n length: { type: [Function, Number, null] },\n type: { type: [Function, String, null] },\n cursor: { type: [Function, String, null] },\n showLabels: { type: Boolean },\n labelWidth: {},\n maxLabelWidth: {},\n alternatingRowColors: { type: Boolean },\n onScroll: { type: Function },\n showEmptySegments: { type: Boolean },\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n// complex interface TimelineConfigInterface is causing compile issue in Vue 3.3.4\n // related issue: https://github.com/vuejs/core/issues/8412\n \nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Timeline<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Timeline<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Timeline","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IASfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpC,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,KAAM,KAAK,CAAE,EAC3C,GAAI,CAAE,KAAM,QAAS,EACrB,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC5C,QAAS,CAAE,KAAM,OAAQ,EACzB,UAAW,CAAC,EACZ,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,KAAM,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACvC,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,WAAY,CAAE,KAAM,OAAQ,EAC5B,WAAY,CAAC,EACb,cAAe,CAAC,EAChB,qBAAsB,CAAE,KAAM,OAAQ,EACtC,SAAU,CAAE,KAAM,QAAS,EAC3B,kBAAmB,CAAE,KAAM,OAAQ,EACnC,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAMtCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAgB,SAAAN,EAAO,KAAK,GACxCO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { defineComponent as s, inject as m, computed as c, getCurrentInstance as y, ref as d, onMounted as v, nextTick as F, onUnmounted as f, watch as b, openBlock as g, createElementBlock as h } from "vue";
2
+ import { Timeline as x } from "@unovis/ts";
3
+ import { parseProps as _, arePropsEqual as B } from "../../utils/props.js";
4
+ import { componentAccessorKey as S } from "../../utils/context.js";
5
+ const w = { "data-vis-component": "" }, A = /* @__PURE__ */ s({
6
+ __name: "index",
7
+ props: {
8
+ x: { type: [Function, Number, null] },
9
+ y: { type: [Function, Number, null, Array] },
10
+ id: { type: Function },
11
+ color: { type: [Function, String, Array, null] },
12
+ xScale: { type: [Object, Function] },
13
+ yScale: { type: [Object, Function] },
14
+ excludeFromDomainCalculation: { type: Boolean },
15
+ duration: {},
16
+ events: {},
17
+ attributes: {},
18
+ lineWidth: { type: [Function, Number, null] },
19
+ lineCap: { type: Boolean },
20
+ rowHeight: {},
21
+ length: { type: [Function, Number, null] },
22
+ type: { type: [Function, String, null] },
23
+ cursor: { type: [Function, String, null] },
24
+ showLabels: { type: Boolean },
25
+ labelWidth: {},
26
+ maxLabelWidth: {},
27
+ alternatingRowColors: { type: Boolean },
28
+ onScroll: { type: Function },
29
+ showEmptySegments: { type: Boolean },
30
+ data: {}
31
+ },
32
+ setup(r) {
33
+ const u = r, n = m(S), i = c(() => n.data.value), p = y(), o = c(() => _(u, p)), t = d();
34
+ return v(() => {
35
+ F(() => {
36
+ var e;
37
+ t.value = new x(o.value), (e = t.value) == null || e.setData(i.value), n.update(t.value);
38
+ });
39
+ }), f(() => {
40
+ var e;
41
+ (e = t.value) == null || e.destroy(), n.destroy();
42
+ }), b(o, (e, a) => {
43
+ var l;
44
+ B(e, a) || ((l = t.value) == null || l.setConfig(o.value), n.update(t.value));
45
+ }), (e, a) => (g(), h("div", w));
46
+ }
47
+ });
48
+ export {
49
+ A as default
50
+ };
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/timeline/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { Timeline, TimelineConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { XYComponentConfigInterface, StringAccessor } from \"@unovis/ts\"\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n lineWidth: { type: [Function, Number, null] },\n lineCap: { type: Boolean },\n rowHeight: {},\n length: { type: [Function, Number, null] },\n type: { type: [Function, String, null] },\n cursor: { type: [Function, String, null] },\n showLabels: { type: Boolean },\n labelWidth: {},\n maxLabelWidth: {},\n alternatingRowColors: { type: Boolean },\n onScroll: { type: Function },\n showEmptySegments: { type: Boolean },\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n// complex interface TimelineConfigInterface is causing compile issue in Vue 3.3.4\n // related issue: https://github.com/vuejs/core/issues/8412\n \nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Timeline<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Timeline<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Timeline","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_c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S,MAAMJ,EAAS,KAAK,KAAK,GAEzCK,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAWT,GAAOM,CAAQ,CAAC,GAGnDI,IAAYC;AAGlB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAII,EAAgBN,EAAO,KAAK,IACxCO,IAAAL,EAAA,UAAA,QAAAK,EAAO,QAAQX,EAAK,QACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),l=require("@unovis/ts"),a=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),v={"data-vis-tooltip":""},m=e.defineComponent({__name:"index",props:{components:{},container:{},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},data:{}},setup(i){const u=i,n=e.inject(d.tooltipAccessorKey),p=e.getCurrentInstance(),c=e.computed(()=>a.parseProps(u,p)),t=e.ref();return e.onMounted(()=>{e.nextTick(()=>{t.value=new l.Tooltip(c.value),n.update(t.value)})}),e.onUnmounted(()=>{var o;(o=t.value)==null||o.destroy(),n.destroy()}),e.watch(c,(o,r)=>{var s;a.arePropsEqual(o,r)||((s=t.value)==null||s.setConfig(c.value),n.update(t.value))}),(o,r)=>(e.openBlock(),e.createElementBlock("div",v))}});module.exports=m;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/tooltip/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-tooltip\": \"\" }\n\nimport { Tooltip, TooltipConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { tooltipAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n container: {},\n horizontalPlacement: {},\n horizontalShift: {},\n verticalPlacement: {},\n verticalShift: {},\n triggers: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(tooltipAccessorKey)\n\n// data and required props\n\n\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Tooltip>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Tooltip(config.value)\n \n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","tooltipAccessorKey","instance","getCurrentInstance","config","computed","parseProps","component","ref","onMounted","nextTick","Tooltip","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,mBAAoB,IAQbC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,WAAY,CAAC,EACb,UAAW,CAAC,EACZ,oBAAqB,CAAC,EACtB,gBAAiB,CAAC,EAClB,kBAAmB,CAAC,EACpB,cAAe,CAAC,EAChB,SAAU,CAAC,EACX,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,kBAAkB,EAMpCC,EAAWC,EAAAA,qBACXC,EAASC,EAAAA,SAAS,IAAMC,EAAW,WAAAR,EAAOI,CAAQ,CAAC,EAGnDK,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACbH,EAAU,MAAQ,IAAII,EAAQ,QAAAP,EAAO,KAAK,EAEjCL,EAAA,OAAOQ,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDK,EAAAA,YAAY,IAAM,QAChBC,EAAAN,EAAU,QAAV,MAAAM,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKe,EAAAA,MAAAV,EAAQ,CAACW,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBH,EAAAN,EAAA,QAAA,MAAAM,EAAO,UAAUT,EAAO,OACzBL,EAAA,OAAOQ,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO3B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { defineComponent as p, inject as l, getCurrentInstance as u, computed as m, ref as d, onMounted as f, nextTick as v, onUnmounted as _, watch as h, openBlock as g, createElementBlock as x } from "vue";
2
+ import { Tooltip as P } from "@unovis/ts";
3
+ import { parseProps as k, arePropsEqual as y } from "../../utils/props.js";
4
+ import { tooltipAccessorKey as C } from "../../utils/context.js";
5
+ const w = { "data-vis-tooltip": "" }, T = /* @__PURE__ */ p({
6
+ __name: "index",
7
+ props: {
8
+ components: {},
9
+ container: {},
10
+ horizontalPlacement: {},
11
+ horizontalShift: {},
12
+ verticalPlacement: {},
13
+ verticalShift: {},
14
+ triggers: {},
15
+ attributes: {},
16
+ data: {}
17
+ },
18
+ setup(c) {
19
+ const s = c, o = l(C), i = u(), n = m(() => k(s, i)), t = d();
20
+ return f(() => {
21
+ v(() => {
22
+ t.value = new P(n.value), o.update(t.value);
23
+ });
24
+ }), _(() => {
25
+ var e;
26
+ (e = t.value) == null || e.destroy(), o.destroy();
27
+ }), h(n, (e, r) => {
28
+ var a;
29
+ y(e, r) || ((a = t.value) == null || a.setConfig(n.value), o.update(t.value));
30
+ }), (e, r) => (g(), x("div", w));
31
+ }
32
+ });
33
+ export {
34
+ T as default
35
+ };
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/tooltip/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-tooltip\": \"\" }\n\nimport { Tooltip, TooltipConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { tooltipAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n container: {},\n horizontalPlacement: {},\n horizontalShift: {},\n verticalPlacement: {},\n verticalShift: {},\n triggers: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(tooltipAccessorKey)\n\n// data and required props\n\n\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Tooltip>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Tooltip(config.value)\n \n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","tooltipAccessorKey","instance","getCurrentInstance","config","computed","parseProps","component","ref","onMounted","nextTick","Tooltip","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,oBAAoB,MAQbC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,CAAC;AAAA,IACb,WAAW,CAAC;AAAA,IACZ,qBAAqB,CAAC;AAAA,IACtB,iBAAiB,CAAC;AAAA,IAClB,mBAAmB,CAAC;AAAA,IACpB,eAAe,CAAC;AAAA,IAChB,UAAU,CAAC;AAAA,IACX,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAGRE,IAAWC,EAAOC,CAAkB,GAMpCC,IAAWC,KACXC,IAASC,EAAS,MAAMC,EAAWR,GAAOI,CAAQ,CAAC,GAGnDK,IAAYC;AAGlB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAAH,EAAU,QAAQ,IAAII,EAAQP,EAAO,KAAK,GAEjCL,EAAA,OAAOQ,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAC,IAAAN,EAAU,UAAV,QAAAM,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKe,EAAAV,GAAQ,CAACW,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBH,IAAAN,EAAA,UAAA,QAAAM,EAAO,UAAUT,EAAO,QACzBL,EAAA,OAAOQ,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO3B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import f from "./index.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=index2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("vue"),d=require("@unovis/ts"),a=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),m={"data-vis-component":""},F=t.defineComponent({__name:"index",props:{projection:{type:[Function,Object]},topojson:{},mapFeatureName:{},mapFitToPoints:{type:Boolean},zoomFactor:{},disableZoom:{type:Boolean},zoomExtent:{},zoomDuration:{},linkWidth:{type:[Function,Number,null]},linkColor:{type:[Function,String,Array,null]},linkCursor:{type:[Function,String,null]},linkId:{type:[Function,String,null]},linkSource:{type:Function},linkTarget:{type:Function},areaId:{type:[Function,String,null]},areaColor:{type:[Function,String,Array,null]},areaCursor:{type:[Function,String,null]},pointColor:{type:[Function,String,Array,null]},pointRadius:{type:[Function,Number,null]},pointStrokeWidth:{type:[Function,Number,null]},pointCursor:{type:[Function,String,null]},longitude:{type:[Function,Number,null]},latitude:{type:[Function,Number,null]},pointLabel:{type:[Function,String,null]},pointLabelPosition:{},pointLabelTextBrightnessRatio:{},pointId:{type:Function},heatmapMode:{type:Boolean},heatmapModeBlurStdDeviation:{},heatmapModeZoomLevelThreshold:{},duration:{},events:{},attributes:{},data:{}},setup(l){const c=l,o=t.inject(y.componentAccessorKey),p=t.computed(()=>o.data.value),s=t.getCurrentInstance(),i=t.computed(()=>a.parseProps(c,s)),e=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var n;e.value=new d.TopoJSONMap(i.value),(n=e.value)==null||n.setData(p.value),o.update(e.value)})}),t.onUnmounted(()=>{var n;(n=e.value)==null||n.destroy(),o.destroy()}),t.watch(i,(n,u)=>{var r;a.arePropsEqual(n,u)||((r=e.value)==null||r.setConfig(i.value),o.update(e.value))}),(n,u)=>(t.openBlock(),t.createElementBlock("div",m))}});module.exports=F;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/topojson-map/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { TopoJSONMap, TopoJSONMapConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n projection: { type: [Function, Object] },\n topojson: {},\n mapFeatureName: {},\n mapFitToPoints: { type: Boolean },\n zoomFactor: {},\n disableZoom: { type: Boolean },\n zoomExtent: {},\n zoomDuration: {},\n linkWidth: { type: [Function, Number, null] },\n linkColor: { type: [Function, String, Array, null] },\n linkCursor: { type: [Function, String, null] },\n linkId: { type: [Function, String, null] },\n linkSource: { type: Function },\n linkTarget: { type: Function },\n areaId: { type: [Function, String, null] },\n areaColor: { type: [Function, String, Array, null] },\n areaCursor: { type: [Function, String, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointStrokeWidth: { type: [Function, Number, null] },\n pointCursor: { type: [Function, String, null] },\n longitude: { type: [Function, Number, null] },\n latitude: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelPosition: {},\n pointLabelTextBrightnessRatio: {},\n pointId: { type: Function },\n heatmapMode: { type: Boolean },\n heatmapModeBlurStdDeviation: {},\n heatmapModeZoomLevelThreshold: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<TopoJSONMap<AreaDatum, PointDatum, LinkDatum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new TopoJSONMap<AreaDatum, PointDatum, LinkDatum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","TopoJSONMap","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,WAAY,CAAE,KAAM,CAAC,SAAU,MAAM,CAAE,EACvC,SAAU,CAAC,EACX,eAAgB,CAAC,EACjB,eAAgB,CAAE,KAAM,OAAQ,EAChC,WAAY,CAAC,EACb,YAAa,CAAE,KAAM,OAAQ,EAC7B,WAAY,CAAC,EACb,aAAc,CAAC,EACf,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC5C,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACnD,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC7C,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,WAAY,CAAE,KAAM,QAAS,EAC7B,WAAY,CAAE,KAAM,QAAS,EAC7B,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACnD,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC7C,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACpD,YAAa,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC9C,iBAAkB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACnD,YAAa,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC9C,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC5C,SAAU,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC3C,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC7C,mBAAoB,CAAC,EACrB,8BAA+B,CAAC,EAChC,QAAS,CAAE,KAAM,QAAS,EAC1B,YAAa,CAAE,KAAM,OAAQ,EAC7B,4BAA6B,CAAC,EAC9B,8BAA+B,CAAC,EAChC,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAA8C,YAAAN,EAAO,KAAK,GACtEO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { defineComponent as s, inject as m, computed as r, getCurrentInstance as d, ref as y, onMounted as F, nextTick as g, onUnmounted as v, watch as S, openBlock as b, createElementBlock as f } from "vue";
2
+ import { TopoJSONMap as h } from "@unovis/ts";
3
+ import { parseProps as k, arePropsEqual as C } from "../../utils/props.js";
4
+ import { componentAccessorKey as _ } from "../../utils/context.js";
5
+ const B = { "data-vis-component": "" }, j = /* @__PURE__ */ s({
6
+ __name: "index",
7
+ props: {
8
+ projection: { type: [Function, Object] },
9
+ topojson: {},
10
+ mapFeatureName: {},
11
+ mapFitToPoints: { type: Boolean },
12
+ zoomFactor: {},
13
+ disableZoom: { type: Boolean },
14
+ zoomExtent: {},
15
+ zoomDuration: {},
16
+ linkWidth: { type: [Function, Number, null] },
17
+ linkColor: { type: [Function, String, Array, null] },
18
+ linkCursor: { type: [Function, String, null] },
19
+ linkId: { type: [Function, String, null] },
20
+ linkSource: { type: Function },
21
+ linkTarget: { type: Function },
22
+ areaId: { type: [Function, String, null] },
23
+ areaColor: { type: [Function, String, Array, null] },
24
+ areaCursor: { type: [Function, String, null] },
25
+ pointColor: { type: [Function, String, Array, null] },
26
+ pointRadius: { type: [Function, Number, null] },
27
+ pointStrokeWidth: { type: [Function, Number, null] },
28
+ pointCursor: { type: [Function, String, null] },
29
+ longitude: { type: [Function, Number, null] },
30
+ latitude: { type: [Function, Number, null] },
31
+ pointLabel: { type: [Function, String, null] },
32
+ pointLabelPosition: {},
33
+ pointLabelTextBrightnessRatio: {},
34
+ pointId: { type: Function },
35
+ heatmapMode: { type: Boolean },
36
+ heatmapModeBlurStdDeviation: {},
37
+ heatmapModeZoomLevelThreshold: {},
38
+ duration: {},
39
+ events: {},
40
+ attributes: {},
41
+ data: {}
42
+ },
43
+ setup(u) {
44
+ const l = u, o = m(_), p = r(() => o.data.value), c = d(), e = r(() => k(l, c)), n = y();
45
+ return F(() => {
46
+ g(() => {
47
+ var t;
48
+ n.value = new h(e.value), (t = n.value) == null || t.setData(p.value), o.update(n.value);
49
+ });
50
+ }), v(() => {
51
+ var t;
52
+ (t = n.value) == null || t.destroy(), o.destroy();
53
+ }), S(e, (t, i) => {
54
+ var a;
55
+ C(t, i) || ((a = n.value) == null || a.setConfig(e.value), o.update(n.value));
56
+ }), (t, i) => (b(), f("div", B));
57
+ }
58
+ });
59
+ export {
60
+ j as default
61
+ };
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/topojson-map/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-component\": \"\" }\n\nimport { TopoJSONMap, TopoJSONMapConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n projection: { type: [Function, Object] },\n topojson: {},\n mapFeatureName: {},\n mapFitToPoints: { type: Boolean },\n zoomFactor: {},\n disableZoom: { type: Boolean },\n zoomExtent: {},\n zoomDuration: {},\n linkWidth: { type: [Function, Number, null] },\n linkColor: { type: [Function, String, Array, null] },\n linkCursor: { type: [Function, String, null] },\n linkId: { type: [Function, String, null] },\n linkSource: { type: Function },\n linkTarget: { type: Function },\n areaId: { type: [Function, String, null] },\n areaColor: { type: [Function, String, Array, null] },\n areaCursor: { type: [Function, String, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointStrokeWidth: { type: [Function, Number, null] },\n pointCursor: { type: [Function, String, null] },\n longitude: { type: [Function, Number, null] },\n latitude: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelPosition: {},\n pointLabelTextBrightnessRatio: {},\n pointId: { type: Function },\n heatmapMode: { type: Boolean },\n heatmapModeBlurStdDeviation: {},\n heatmapModeZoomLevelThreshold: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<TopoJSONMap<AreaDatum, PointDatum, LinkDatum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new TopoJSONMap<AreaDatum, PointDatum, LinkDatum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","TopoJSONMap","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,EAAE,MAAM,CAAC,UAAU,MAAM,EAAE;AAAA,IACvC,UAAU,CAAC;AAAA,IACX,gBAAgB,CAAC;AAAA,IACjB,gBAAgB,EAAE,MAAM,QAAQ;AAAA,IAChC,YAAY,CAAC;AAAA,IACb,aAAa,EAAE,MAAM,QAAQ;AAAA,IAC7B,YAAY,CAAC;AAAA,IACb,cAAc,CAAC;AAAA,IACf,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC5C,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,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,EAAS,KAAK,KAAK,GAEzCK,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAWT,GAAOM,CAAQ,CAAC,GAGnDI,IAAYC;AAGlB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAII,EAA8CN,EAAO,KAAK,IACtEO,IAAAL,EAAA,UAAA,QAAAK,EAAO,QAAQX,EAAK,QACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./index.cjs");module.exports=e;
2
+ //# sourceMappingURL=index2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}