@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 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-flow-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\nimport { LeafletFlowMap, LeafletFlowMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n sourceLongitude: { type: [Function, Number, null] },\n sourceLatitude: { type: [Function, Number, null] },\n targetLongitude: { type: [Function, Number, null] },\n targetLatitude: { type: [Function, Number, null] },\n sourcePointRadius: { type: [Function, Number, null] },\n sourcePointColor: { type: [Function, String, Array, null] },\n flowParticleColor: { type: [Function, String, Array, null] },\n flowParticleRadius: { type: [Function, Number, null] },\n flowParticleSpeed: { type: [Function, Number, null] },\n flowParticleDensity: { type: [Function, Number, null] },\n onSourcePointClick: { type: Function },\n onSourcePointMouseEnter: { type: Function },\n onSourcePointMouseLeave: { type: Function },\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\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 !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<LeafletFlowMap<PointDatum, FlowDatum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletFlowMap<PointDatum, FlowDatum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n \n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-leaflet-flow-map\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","LeafletFlowMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAU4BA,EAAiBC,kBA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AAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAN,EAAOG,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MACZC,EAAQD,EAAAA,MAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACCF,EAAA,MAAQ,IAAIK,EAAAA,eAAsCH,EAAM,MAAOJ,EAAO,MAAOJ,EAAK,KAAK,EAAA,CAGlG,CAAA,CACF,EAEDY,EAAAA,YAAY,IAAM,QAChBC,EAAAP,EAAU,QAAV,MAAAO,EAAiB,SAAQ,CAE1B,EAEKC,EAAAA,MAAAV,EAAQ,CAACW,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAP,EAAA,QAAA,MAAAO,EAAO,UAAUT,EAAO,MAEpC,CACD,EAEM,CAACc,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,4BAA6B,GAC7B,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
@@ -0,0 +1,93 @@
1
+ import { defineComponent as y, computed as r, getCurrentInstance as d, ref as a, onMounted as F, nextTick as m, onUnmounted as f, watch as g, openBlock as b, createElementBlock as S } from "vue";
2
+ import { LeafletFlowMap as L } from "@unovis/ts";
3
+ import { parseProps as v, arePropsEqual as M } from "../../utils/props.js";
4
+ const w = /* @__PURE__ */ y({
5
+ __name: "index",
6
+ props: {
7
+ sourceLongitude: { type: [Function, Number, null] },
8
+ sourceLatitude: { type: [Function, Number, null] },
9
+ targetLongitude: { type: [Function, Number, null] },
10
+ targetLatitude: { type: [Function, Number, null] },
11
+ sourcePointRadius: { type: [Function, Number, null] },
12
+ sourcePointColor: { type: [Function, String, Array, null] },
13
+ flowParticleColor: { type: [Function, String, Array, null] },
14
+ flowParticleRadius: { type: [Function, Number, null] },
15
+ flowParticleSpeed: { type: [Function, Number, null] },
16
+ flowParticleDensity: { type: [Function, Number, null] },
17
+ onSourcePointClick: { type: Function },
18
+ onSourcePointMouseEnter: { type: Function },
19
+ onSourcePointMouseLeave: { type: Function },
20
+ width: {},
21
+ height: {},
22
+ flyToDuration: {},
23
+ fitViewPadding: {},
24
+ zoomDuration: {},
25
+ initialBounds: {},
26
+ fitBoundsOnUpdate: {},
27
+ fitViewOnInit: { type: Boolean },
28
+ fitViewOnUpdate: { type: Boolean },
29
+ style: {},
30
+ styleDarkTheme: {},
31
+ accessToken: {},
32
+ attribution: {},
33
+ renderer: {},
34
+ onMapInitialized: { type: Function },
35
+ onMapMoveZoom: { type: Function },
36
+ onMapMoveStart: { type: Function },
37
+ onMapMoveEnd: { type: Function },
38
+ onMapZoomStart: { type: Function },
39
+ onMapZoomEnd: { type: Function },
40
+ onMapClick: { type: Function },
41
+ pointLongitude: { type: [Function, Number, null] },
42
+ pointLatitude: { type: [Function, Number, null] },
43
+ pointId: { type: [Function, String, null] },
44
+ pointShape: { type: [Function, null] },
45
+ pointColor: { type: [Function, String, Array, null] },
46
+ pointRadius: { type: [Function, Number, null] },
47
+ pointLabel: { type: [Function, String, null] },
48
+ pointLabelColor: { type: [Function, String, null] },
49
+ pointBottomLabel: { type: [Function, String, null] },
50
+ pointCursor: { type: [Function, String, null] },
51
+ pointRingWidth: {},
52
+ selectedPointId: {},
53
+ clusterColor: { type: [Function, String, Array, null] },
54
+ clusterRadius: { type: [Function, Number, null] },
55
+ clusterLabel: { type: [Function, String, null] },
56
+ clusterLabelColor: { type: [Function, String, null] },
57
+ clusterBottomLabel: { type: [Function, String, null] },
58
+ clusterRingWidth: {},
59
+ clusterBackground: { type: Boolean },
60
+ clusterExpandOnClick: { type: Boolean },
61
+ clusteringDistance: {},
62
+ colorMap: {},
63
+ topoJSONLayer: {},
64
+ tooltip: {},
65
+ ariaLabel: {},
66
+ duration: {},
67
+ events: {},
68
+ attributes: {},
69
+ data: {}
70
+ },
71
+ setup(c) {
72
+ const i = c, p = r(() => i.data), s = d(), n = r(() => v(i, s)), e = a(), o = a();
73
+ return F(() => {
74
+ m(() => {
75
+ o.value && (e.value = new L(o.value, n.value, p.value));
76
+ });
77
+ }), f(() => {
78
+ var t;
79
+ (t = e.value) == null || t.destroy();
80
+ }), g(n, (t, u) => {
81
+ var l;
82
+ M(t, u) || (l = e.value) == null || l.setConfig(n.value);
83
+ }), (t, u) => (b(), S("div", {
84
+ "data-vis-leaflet-flow-map": "",
85
+ ref_key: "elRef",
86
+ ref: o
87
+ }, null, 512));
88
+ }
89
+ });
90
+ export {
91
+ w as default
92
+ };
93
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-flow-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\nimport { LeafletFlowMap, LeafletFlowMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n sourceLongitude: { type: [Function, Number, null] },\n sourceLatitude: { type: [Function, Number, null] },\n targetLongitude: { type: [Function, Number, null] },\n targetLatitude: { type: [Function, Number, null] },\n sourcePointRadius: { type: [Function, Number, null] },\n sourcePointColor: { type: [Function, String, Array, null] },\n flowParticleColor: { type: [Function, String, Array, null] },\n flowParticleRadius: { type: [Function, Number, null] },\n flowParticleSpeed: { type: [Function, Number, null] },\n flowParticleDensity: { type: [Function, Number, null] },\n onSourcePointClick: { type: Function },\n onSourcePointMouseEnter: { type: Function },\n onSourcePointMouseLeave: { type: Function },\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\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 !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<LeafletFlowMap<PointDatum, FlowDatum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletFlowMap<PointDatum, FlowDatum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n \n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-leaflet-flow-map\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","LeafletFlowMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;AAUA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,iBAAiB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAClD,gBAAgB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACjD,iBAAiB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAClD,gBAAgB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACjD,mBAAmB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACpD,kBAAkB,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAC1D,mBAAmB,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAC3D,oBAAoB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACrD,mBAAmB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACpD,qBAAqB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACtD,oBAAoB,EAAE,MAAM,SAAS;AAAA,IACrC,yBAAyB,EAAE,MAAM,SAAS;AAAA,IAC1C,yBAAyB,EAAE,MAAM,SAAS;AAAA,IAC1C,OAAO,CAAC;AAAA,IACR,QAAQ,CAAC;AAAA,IACT,eAAe,CAAC;AAAA,IAChB,gBAAgB,CAAC;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CAACc,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,6BAA6B;AAAA,MAC7B,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e="";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
+ const e = "";
2
+ export {
3
+ e 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("./index.cjs");require("./index2.cjs");module.exports=e;
2
+ //# sourceMappingURL=index3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import o from "./index.js";
2
+ import "./index2.js";
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("vue"),d=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=t.defineComponent({__name:"index",props:{width:{},height:{},flyToDuration:{},fitViewPadding:{},zoomDuration:{},initialBounds:{},fitBoundsOnUpdate:{},fitViewOnInit:{type:Boolean},fitViewOnUpdate:{type:Boolean},style:{},styleDarkTheme:{},accessToken:{},attribution:{},renderer:{},onMapInitialized:{type:Function},onMapMoveZoom:{type:Function},onMapMoveStart:{type:Function},onMapMoveEnd:{type:Function},onMapZoomStart:{type:Function},onMapZoomEnd:{type:Function},onMapClick:{type:Function},pointLongitude:{type:[Function,Number,null]},pointLatitude:{type:[Function,Number,null]},pointId:{type:[Function,String,null]},pointShape:{type:[Function,null]},pointColor:{type:[Function,String,Array,null]},pointRadius:{type:[Function,Number,null]},pointLabel:{type:[Function,String,null]},pointLabelColor:{type:[Function,String,null]},pointBottomLabel:{type:[Function,String,null]},pointCursor:{type:[Function,String,null]},pointRingWidth:{},selectedPointId:{},clusterColor:{type:[Function,String,Array,null]},clusterRadius:{type:[Function,Number,null]},clusterLabel:{type:[Function,String,null]},clusterLabelColor:{type:[Function,String,null]},clusterBottomLabel:{type:[Function,String,null]},clusterRingWidth:{},clusterBackground:{type:Boolean},clusterExpandOnClick:{type:Boolean},clusteringDistance:{},colorMap:{},topoJSONLayer:{},tooltip:{},ariaLabel:{},duration:{},events:{},attributes:{},data:{}},setup(p){const u=p,c=t.computed(()=>u.data),s=t.getCurrentInstance(),e=t.computed(()=>r.parseProps(u,s)),o=t.ref(),i=t.ref();return t.onMounted(()=>{t.nextTick(()=>{i.value&&(o.value=new d.LeafletMap(i.value,e.value,c.value))})}),t.onUnmounted(()=>{var n;(n=o.value)==null||n.destroy()}),t.watch(e,(n,l)=>{var a;r.arePropsEqual(n,l)||(a=o.value)==null||a.setConfig(e.value)}),(n,l)=>(t.openBlock(),t.createElementBlock("div",{"data-vis-leaflet-map":"",ref_key:"elRef",ref:i},null,512))}});module.exports=y;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-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\nimport { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\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 !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<LeafletMap<Datum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletMap<Datum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n \n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-leaflet-map\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","LeafletMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAU4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,OAAQ,CAAC,EACT,cAAe,CAAC,EAChB,eAAgB,CAAC,EACjB,aAAc,CAAC,EACf,cAAe,CAAC,EAChB,kBAAmB,CAAC,EACpB,cAAe,CAAE,KAAM,OAAQ,EAC/B,gBAAiB,CAAE,KAAM,OAAQ,EACjC,MAAO,CAAC,EACR,eAAgB,CAAC,EACjB,YAAa,CAAC,EACd,YAAa,CAAC,EACd,SAAU,CAAC,EACX,iBAAkB,CAAE,KAAM,QAAS,EACnC,cAAe,CAAE,KAAM,QAAS,EAChC,eAAgB,CAAE,KAAM,QAAS,EACjC,aAAc,CAAE,KAAM,QAAS,EAC/B,eAAgB,CAAE,KAAM,QAAS,EACjC,aAAc,CAAE,KAAM,QAAS,EAC/B,WAAY,CAAE,KAAM,QAAS,EAC7B,eAAgB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACjD,cAAe,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAChD,QAAS,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC1C,WAAY,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACrC,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACpD,YAAa,CAAE,KAAM,CAAC,SAA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EDY,EAAAA,YAAY,IAAM,QAChBC,EAAAP,EAAU,QAAV,MAAAO,EAAiB,SAAQ,CAE1B,EAEKC,EAAAA,MAAAV,EAAQ,CAACW,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAP,EAAA,QAAA,MAAAO,EAAO,UAAUT,EAAO,MAEpC,CACD,EAEM,CAACc,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,uBAAwB,GACxB,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
@@ -0,0 +1,80 @@
1
+ import { defineComponent as d, computed as a, getCurrentInstance as y, ref as r, onMounted as m, nextTick as f, onUnmounted as F, watch as g, openBlock as v, createElementBlock as S } from "vue";
2
+ import { LeafletMap as b } from "@unovis/ts";
3
+ import { parseProps as M, arePropsEqual as B } from "../../utils/props.js";
4
+ const k = /* @__PURE__ */ d({
5
+ __name: "index",
6
+ props: {
7
+ width: {},
8
+ height: {},
9
+ flyToDuration: {},
10
+ fitViewPadding: {},
11
+ zoomDuration: {},
12
+ initialBounds: {},
13
+ fitBoundsOnUpdate: {},
14
+ fitViewOnInit: { type: Boolean },
15
+ fitViewOnUpdate: { type: Boolean },
16
+ style: {},
17
+ styleDarkTheme: {},
18
+ accessToken: {},
19
+ attribution: {},
20
+ renderer: {},
21
+ onMapInitialized: { type: Function },
22
+ onMapMoveZoom: { type: Function },
23
+ onMapMoveStart: { type: Function },
24
+ onMapMoveEnd: { type: Function },
25
+ onMapZoomStart: { type: Function },
26
+ onMapZoomEnd: { type: Function },
27
+ onMapClick: { type: Function },
28
+ pointLongitude: { type: [Function, Number, null] },
29
+ pointLatitude: { type: [Function, Number, null] },
30
+ pointId: { type: [Function, String, null] },
31
+ pointShape: { type: [Function, null] },
32
+ pointColor: { type: [Function, String, Array, null] },
33
+ pointRadius: { type: [Function, Number, null] },
34
+ pointLabel: { type: [Function, String, null] },
35
+ pointLabelColor: { type: [Function, String, null] },
36
+ pointBottomLabel: { type: [Function, String, null] },
37
+ pointCursor: { type: [Function, String, null] },
38
+ pointRingWidth: {},
39
+ selectedPointId: {},
40
+ clusterColor: { type: [Function, String, Array, null] },
41
+ clusterRadius: { type: [Function, Number, null] },
42
+ clusterLabel: { type: [Function, String, null] },
43
+ clusterLabelColor: { type: [Function, String, null] },
44
+ clusterBottomLabel: { type: [Function, String, null] },
45
+ clusterRingWidth: {},
46
+ clusterBackground: { type: Boolean },
47
+ clusterExpandOnClick: { type: Boolean },
48
+ clusteringDistance: {},
49
+ colorMap: {},
50
+ topoJSONLayer: {},
51
+ tooltip: {},
52
+ ariaLabel: {},
53
+ duration: {},
54
+ events: {},
55
+ attributes: {},
56
+ data: {}
57
+ },
58
+ setup(p) {
59
+ const i = p, c = a(() => i.data), s = y(), n = a(() => M(i, s)), e = r(), o = r();
60
+ return m(() => {
61
+ f(() => {
62
+ o.value && (e.value = new b(o.value, n.value, c.value));
63
+ });
64
+ }), F(() => {
65
+ var t;
66
+ (t = e.value) == null || t.destroy();
67
+ }), g(n, (t, l) => {
68
+ var u;
69
+ B(t, l) || (u = e.value) == null || u.setConfig(n.value);
70
+ }), (t, l) => (v(), S("div", {
71
+ "data-vis-leaflet-map": "",
72
+ ref_key: "elRef",
73
+ ref: o
74
+ }, null, 512));
75
+ }
76
+ });
77
+ export {
78
+ k as default
79
+ };
80
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-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\nimport { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\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 !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<LeafletMap<Datum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletMap<Datum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n \n }\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-leaflet-map\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","props","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","LeafletMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;AAUA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,QAAQ,CAAC;AAAA,IACT,eAAe,CAAC;AAAA,IAChB,gBAAgB,CAAC;AAAA,IACjB,cAAc,CAAC;AAAA,IACf,eAAe,CAAC;AAAA,IAChB,mBAAmB,CAAC;AAAA,IACpB,eAAe,EAAE,MAAM,QAAQ;AAAA,IAC/B,iBAAiB,EAAE,MAAM,QAAQ;AAAA,IACjC,OAAO,CAAC;AAAA,IACR,gBAAgB,CAAC;AAAA,IACjB,aAAa,CAAC;AAAA,IACd,aAAa,CAAC;AAAA,IACd,UAAU,CAAC;AAAA,IACX,kBAAkB,EAAE,MAAM,SAAS;AAAA,IACnC,eAAe,EAAE,MAAM,SAAS;AAAA,IAChC,gBAAgB,EAAE,MAAM,SAAS;AAAA,IACjC,cAAc,EAAE,MAAM,SAAS;AAAA,IAC/B,gBAAgB,EAAE,MAAM,SAAS;AAAA,IACjC,cAAc,EAAE,MAAM,SAAS;AAAA,IAC/B,YAAY,EAAE,MAAM,SAAS;AAAA,IAC7B,gBAAgB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACjD,eAAe,EAAE,MAAM,CAAC,UAAU,QAAQ,IA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Ac;AAEtB,UAAMC,IAAQD,GAIRE,IAAOC,EAAS,MAAMF,EAAM,IAAI,GAEhCG,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAWN,GAAOG,CAAQ,CAAC,GAGnDI,IAAYC,KACZC,IAAQD;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACCF,EAAA,QAAQ,IAAIK,EAAkBH,EAAM,OAAOJ,EAAO,OAAOJ,EAAK,KAAK;AAAA,MAAA,CAG9E;AAAA,IAAA,CACF,GAEDY,EAAY,MAAM;;AAChB,OAAAC,IAAAP,EAAU,UAAV,QAAAO,EAAiB;AAAA,IAAQ,CAE1B,GAEKC,EAAAV,GAAQ,CAACW,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAP,EAAA,UAAA,QAAAO,EAAO,UAAUT,EAAO;AAAA,IAEpC,CACD,GAEM,CAACc,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,wBAAwB;AAAA,MACxB,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e="";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
+ const e = "";
2
+ export {
3
+ e 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("./index.cjs");require("./index2.cjs");module.exports=e;
2
+ //# sourceMappingURL=index3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import o from "./index.js";
2
+ import "./index2.js";
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=index3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/index.cjs ADDED
@@ -0,0 +1,3 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-flow-map],[data-vis-leaflet-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./containers/xy-container/index.cjs");require("./containers/xy-container/index2.cjs");const _=require("./containers/single-container/index.cjs");require("./containers/single-container/index2.cjs");const t=require("./components/line/index.cjs"),u=require("./components/area/index.cjs"),r=require("./components/axis/index.cjs"),i=require("./components/brush/index.cjs"),s=require("./components/free-brush/index.cjs"),n=require("./components/crosshair/index.cjs"),p=require("./components/grouped-bar/index.cjs"),c=require("./components/scatter/index.cjs"),v=require("./components/stacked-bar/index.cjs"),a=require("./components/timeline/index.cjs"),o=require("./components/xy-labels/index.cjs"),l=require("./components/donut/index.cjs"),d=require("./components/topojson-map/index.cjs"),g=require("./components/sankey/index.cjs"),q=require("./components/graph/index.cjs"),y=require("./components/chord-diagram/index.cjs"),x=require("./components/nested-donut/index.cjs"),V=require("./components/tooltip/index.cjs"),$=require("./html-components/leaflet-map/index.cjs");require("./html-components/leaflet-map/index2.cjs");const S=require("./html-components/leaflet-flow-map/index.cjs");require("./html-components/leaflet-flow-map/index2.cjs");const h=require("./html-components/bullet-legend/index.cjs");require("./html-components/bullet-legend/index2.cjs");exports.VisXYContainer=e;exports.VisSingleContainer=_;exports.VisLine=t;exports.VisArea=u;exports.VisAxis=r;exports.VisBrush=i;exports.VisFreeBrush=s;exports.VisCrosshair=n;exports.VisGroupedBar=p;exports.VisScatter=c;exports.VisStackedBar=v;exports.VisTimeline=a;exports.VisXYLabels=o;exports.VisDonut=l;exports.VisTopoJSONMap=d;exports.VisSankey=g;exports.VisGraph=q;exports.VisChordDiagram=y;exports.VisNestedDonut=x;exports.VisTooltip=V;exports.VisLeafletMap=$;exports.VisLeafletFlowMap=S;exports.VisBulletLegend=h;
3
+ //# sourceMappingURL=index.cjs.map
package/index.cjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}