@unovis/vue 1.3.0-alpha.3 → 1.3.0-beta.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 (123) hide show
  1. package/components/area/index.cjs +1 -1
  2. package/components/area/index.cjs.map +1 -1
  3. package/components/area/index.d.ts +53 -6
  4. package/components/area/index.js +20 -17
  5. package/components/area/index.js.map +1 -1
  6. package/components/axis/index.cjs +1 -1
  7. package/components/axis/index.cjs.map +1 -1
  8. package/components/axis/index.d.ts +71 -6
  9. package/components/axis/index.js +20 -17
  10. package/components/axis/index.js.map +1 -1
  11. package/components/brush/index.cjs +1 -1
  12. package/components/brush/index.cjs.map +1 -1
  13. package/components/brush/index.d.ts +57 -6
  14. package/components/brush/index.js +19 -16
  15. package/components/brush/index.js.map +1 -1
  16. package/components/chord-diagram/index.cjs +1 -1
  17. package/components/chord-diagram/index.cjs.map +1 -1
  18. package/components/chord-diagram/index.d.ts +55 -6
  19. package/components/chord-diagram/index.js +20 -17
  20. package/components/chord-diagram/index.js.map +1 -1
  21. package/components/crosshair/index.cjs +1 -1
  22. package/components/crosshair/index.cjs.map +1 -1
  23. package/components/crosshair/index.d.ts +56 -6
  24. package/components/crosshair/index.js +20 -35
  25. package/components/crosshair/index.js.map +1 -1
  26. package/components/donut/index.cjs +1 -1
  27. package/components/donut/index.cjs.map +1 -1
  28. package/components/donut/index.d.ts +57 -6
  29. package/components/donut/index.js +21 -18
  30. package/components/donut/index.js.map +1 -1
  31. package/components/free-brush/index.cjs +1 -1
  32. package/components/free-brush/index.cjs.map +1 -1
  33. package/components/free-brush/index.d.ts +57 -6
  34. package/components/free-brush/index.js +21 -18
  35. package/components/free-brush/index.js.map +1 -1
  36. package/components/graph/index.cjs +1 -1
  37. package/components/graph/index.cjs.map +1 -1
  38. package/components/graph/index.d.ts +106 -6
  39. package/components/graph/index.js +24 -21
  40. package/components/graph/index.js.map +1 -1
  41. package/components/grouped-bar/index.cjs +1 -1
  42. package/components/grouped-bar/index.cjs.map +1 -1
  43. package/components/grouped-bar/index.d.ts +57 -6
  44. package/components/grouped-bar/index.js +21 -18
  45. package/components/grouped-bar/index.js.map +1 -1
  46. package/components/line/index.cjs +1 -1
  47. package/components/line/index.cjs.map +1 -1
  48. package/components/line/index.d.ts +54 -6
  49. package/components/line/index.js +20 -17
  50. package/components/line/index.js.map +1 -1
  51. package/components/nested-donut/index.cjs +1 -1
  52. package/components/nested-donut/index.cjs.map +1 -1
  53. package/components/nested-donut/index.d.ts +59 -6
  54. package/components/nested-donut/index.js +22 -19
  55. package/components/nested-donut/index.js.map +1 -1
  56. package/components/sankey/index.cjs +1 -1
  57. package/components/sankey/index.cjs.map +1 -1
  58. package/components/sankey/index.d.ts +90 -6
  59. package/components/sankey/index.js +28 -25
  60. package/components/sankey/index.js.map +1 -1
  61. package/components/scatter/index.cjs +1 -1
  62. package/components/scatter/index.cjs.map +1 -1
  63. package/components/scatter/index.d.ts +60 -6
  64. package/components/scatter/index.js +22 -19
  65. package/components/scatter/index.js.map +1 -1
  66. package/components/stacked-bar/index.cjs +1 -1
  67. package/components/stacked-bar/index.cjs.map +1 -1
  68. package/components/stacked-bar/index.d.ts +57 -6
  69. package/components/stacked-bar/index.js +22 -19
  70. package/components/stacked-bar/index.js.map +1 -1
  71. package/components/timeline/index.cjs +1 -1
  72. package/components/timeline/index.cjs.map +1 -1
  73. package/components/timeline/index.d.ts +54 -12
  74. package/components/timeline/index.js +22 -41
  75. package/components/timeline/index.js.map +1 -1
  76. package/components/tooltip/index.cjs +1 -1
  77. package/components/tooltip/index.cjs.map +1 -1
  78. package/components/tooltip/index.d.ts +2 -2
  79. package/components/tooltip/index.js +18 -18
  80. package/components/tooltip/index.js.map +1 -1
  81. package/components/topojson-map/index.cjs +1 -1
  82. package/components/topojson-map/index.cjs.map +1 -1
  83. package/components/topojson-map/index.d.ts +73 -6
  84. package/components/topojson-map/index.js +22 -19
  85. package/components/topojson-map/index.js.map +1 -1
  86. package/components/xy-labels/index.cjs +1 -1
  87. package/components/xy-labels/index.cjs.map +1 -1
  88. package/components/xy-labels/index.d.ts +61 -6
  89. package/components/xy-labels/index.js +27 -24
  90. package/components/xy-labels/index.js.map +1 -1
  91. package/containers/single-container/index.cjs +1 -1
  92. package/containers/single-container/index.cjs.map +1 -1
  93. package/containers/single-container/index.d.ts +21 -8
  94. package/containers/single-container/index.js +28 -29
  95. package/containers/single-container/index.js.map +1 -1
  96. package/containers/xy-container/index.cjs +1 -1
  97. package/containers/xy-container/index.cjs.map +1 -1
  98. package/containers/xy-container/index.d.ts +38 -8
  99. package/containers/xy-container/index.js +33 -33
  100. package/containers/xy-container/index.js.map +1 -1
  101. package/html-components/bullet-legend/index.cjs +1 -1
  102. package/html-components/bullet-legend/index.cjs.map +1 -1
  103. package/html-components/bullet-legend/index.d.ts +6 -0
  104. package/html-components/bullet-legend/index.js +19 -18
  105. package/html-components/bullet-legend/index.js.map +1 -1
  106. package/html-components/leaflet-flow-map/index.cjs +1 -1
  107. package/html-components/leaflet-flow-map/index.cjs.map +1 -1
  108. package/html-components/leaflet-flow-map/index.d.ts +107 -6
  109. package/html-components/leaflet-flow-map/index.js +18 -18
  110. package/html-components/leaflet-flow-map/index.js.map +1 -1
  111. package/html-components/leaflet-map/index.cjs +1 -1
  112. package/html-components/leaflet-map/index.cjs.map +1 -1
  113. package/html-components/leaflet-map/index.d.ts +94 -6
  114. package/html-components/leaflet-map/index.js +17 -17
  115. package/html-components/leaflet-map/index.js.map +1 -1
  116. package/index.cjs +1 -1
  117. package/index.js +1 -1
  118. package/package.json +5 -5
  119. package/utils/props.cjs +1 -1
  120. package/utils/props.cjs.map +1 -1
  121. package/utils/props.d.ts +3 -0
  122. package/utils/props.js +14 -11
  123. package/utils/props.js.map +1 -1
@@ -1,8 +1,8 @@
1
- import { defineComponent as v, toRefs as m, getCurrentInstance as y, computed as f, ref as i, watch as x, watchEffect as h, onMounted as D, onUnmounted as g, provide as a, openBlock as A, createElementBlock as C, renderSlot as B } from "vue";
2
- import { XYContainer as M } from "@unovis/ts";
3
- import { componentAccessorKey as _, axisAccessorKey as R, crosshairAccessorKey as w, tooltipAccessorKey as K } from "../../utils/context.js";
4
- import { parseProps as b } from "../../utils/props.js";
5
- const j = /* @__PURE__ */ v({
1
+ import { defineComponent as u, toRefs as y, ref as p, reactive as v, watch as f, watchEffect as x, toRaw as r, onMounted as h, onUnmounted as D, provide as i, openBlock as g, createElementBlock as A, renderSlot as C } from "vue";
2
+ import { XYContainer as w } from "@unovis/ts";
3
+ import { componentAccessorKey as B, axisAccessorKey as M, crosshairAccessorKey as R, tooltipAccessorKey as _ } from "../../utils/context.js";
4
+ import { useForwardProps as K } from "../../utils/props.js";
5
+ const S = /* @__PURE__ */ u({
6
6
  __name: "index",
7
7
  props: {
8
8
  components: {},
@@ -34,62 +34,62 @@ const j = /* @__PURE__ */ v({
34
34
  ariaLabel: {},
35
35
  data: {}
36
36
  },
37
- setup(l, { expose: p }) {
38
- const r = l, { data: t } = m(r), u = y(), d = f(() => b({ ...r }, u)), n = i(), o = i({
37
+ setup(d, { expose: l }) {
38
+ const c = d, { data: t } = y(c), m = K(c), n = p(), e = v({
39
39
  components: [],
40
40
  crosshair: void 0,
41
41
  tooltip: void 0,
42
42
  xAxis: void 0,
43
43
  yAxis: void 0
44
- }), s = i();
45
- return x(t, () => {
44
+ }), s = p();
45
+ return f(t, () => {
46
46
  n.value && n.value.setData(t.value, !0);
47
+ }), x(() => {
48
+ var o;
49
+ e.components.map((a) => a.config), (o = n.value) == null || o.updateContainer({ ...r(m.value), ...r(e) });
47
50
  }), h(() => {
48
- var e;
49
- (e = n.value) == null || e.updateContainer({ ...d.value, ...o.value });
51
+ s.value && (n.value = new w(s.value, { ...r(e) }, t.value));
50
52
  }), D(() => {
51
- s.value && (n.value = new M(s.value, o.value, t.value));
52
- }), g(() => {
53
- var e;
54
- return (e = n.value) == null ? void 0 : e.destroy();
55
- }), a(_, {
53
+ var o;
54
+ return (o = n.value) == null ? void 0 : o.destroy();
55
+ }), i(B, {
56
56
  data: t,
57
- update: (e) => o.value.components = [...o.value.components, e],
57
+ update: (o) => e.components = [...e.components, o],
58
58
  destroy: () => {
59
- var e;
60
- return o.value.components = (e = o.value.components) == null ? void 0 : e.filter((c) => !c.isDestroyed());
59
+ var o;
60
+ return e.components = (o = e.components) == null ? void 0 : o.filter((a) => !a.isDestroyed());
61
61
  }
62
- }), a(R, {
62
+ }), i(M, {
63
63
  data: t,
64
- update: (e) => o.value[`${e.config.type}Axis`] = e,
65
- destroy: (e) => {
66
- o.value[`${e}Axis`] = void 0;
64
+ update: (o) => e[`${o.config.type}Axis`] = o,
65
+ destroy: (o) => {
66
+ e[`${o}Axis`] = void 0;
67
67
  }
68
- }), a(w, {
68
+ }), i(R, {
69
69
  data: t,
70
- update: (e) => o.value.crosshair = e,
70
+ update: (o) => e.crosshair = o,
71
71
  destroy: () => {
72
- o.value.crosshair = void 0;
72
+ e.crosshair = void 0;
73
73
  }
74
- }), a(K, {
74
+ }), i(_, {
75
75
  data: t,
76
- update: (e) => o.value.tooltip = e,
76
+ update: (o) => e.tooltip = o,
77
77
  destroy: () => {
78
- o.value.tooltip = void 0;
78
+ e.tooltip = void 0;
79
79
  }
80
- }), p({
80
+ }), l({
81
81
  component: n
82
- }), (e, c) => (A(), C("div", {
82
+ }), (o, a) => (g(), A("div", {
83
83
  "data-vis-xy-container": "",
84
84
  ref_key: "elRef",
85
85
  ref: s,
86
86
  class: "unovis-xy-container"
87
87
  }, [
88
- B(e.$slots, "default")
88
+ C(o.$slots, "default")
89
89
  ], 512));
90
90
  }
91
91
  });
92
92
  export {
93
- j as default
93
+ S as default
94
94
  };
95
95
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, getCurrentInstance, computed, reactive, watchEffect, shallowRef, Ref } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey } from \"../../utils/context\"\nimport { parseProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst instance = getCurrentInstance()\nconst parsedProps = computed(() => parseProps({ ...props }, instance))\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config = ref({\n components: [],\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}) as Ref<XYContainerConfigInterface<T>>\nconst elRef = ref<HTMLDivElement>()\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n }\n})\n\nwatchEffect(() => {\n chart.value?.updateContainer({ ...parsedProps.value, ...config.value })\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, config.value, data.value)\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => config.value.components = [...config.value.components!, c],\n destroy: () => config.value.components = config.value.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => config.value[`${c.config.type}Axis`] = c,\n destroy: (c) => { config.value[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => config.value.crosshair = c,\n destroy: () => { config.value.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.value.tooltip = t,\n destroy: () => { config.value.tooltip = undefined },\n})\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","instance","getCurrentInstance","parsedProps","computed","parseProps","chart","ref","config","elRef","watch","watchEffect","_a","onMounted","XYContainer","onUnmounted","provide","componentAccessorKey","c","axisAccessorKey","crosshairAccessorKey","tooltipAccessorKey","t","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":";;;;AASA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,CAAC;AAAA,IACb,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,SAAS,CAAC;AAAA,IACV,sBAAsB,CAAC;AAAA,IACvB,sBAAsB,CAAC;AAAA,IACvB,QAAQ,CAAC;AAAA,IACT,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,SAAS,CAAC;AAAA,IACV,sBAAsB,CAAC;AAAA,IACvB,sBAAsB,CAAC;AAAA,IACvB,QAAQ,CAAC;AAAA,IACT,YAAY,CAAC;AAAA,IACb,OAAO,CAAC;AAAA,IACR,OAAO,C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,GAAsB;AAAA,MAC5B,MAAAlB;AAAA,MACA,QAAQ,CAACmB,MAA0BV,EAAO,MAAM,aAAa,CAAC,GAAGA,EAAO,MAAM,YAAaU,CAAC;AAAA,MAC5F,SAAS,MAAA;;AAAM,eAAAV,EAAO,MAAM,cAAaI,IAAAJ,EAAO,MAAM,eAAb,gBAAAI,EAAyB,OAAO,CAAA,MAAK,CAAC,EAAE;;IAAa,CAC/F,GAEDI,EAAQG,GAAiB;AAAA,MACvB,MAAApB;AAAA,MACA,QAAQ,CAACmB,MAAeV,EAAO,MAAM,GAAGU,EAAE,OAAO,IAAI,MAAM,IAAIA;AAAA,MAC/D,SAAS,CAACA,MAAM;AAAE,QAAAV,EAAO,MAAM,GAAGU,CAAC,MAAM,IAAI;AAAA,MAAU;AAAA,IAAA,CACxD,GAEDF,EAAQI,GAAsB;AAAA,MAC5B,MAAArB;AAAA,MACA,QAAQ,CAACmB,MAAoBV,EAAO,MAAM,YAAYU;AAAA,MACtD,SAAS,MAAM;AAAE,QAAAV,EAAO,MAAM,YAAY;AAAA,MAAU;AAAA,IAAA,CACrD,GAEDQ,EAAQK,GAAoB;AAAA,MAC1B,MAAAtB;AAAA,MACA,QAAQ,CAACuB,MAAed,EAAO,MAAM,UAAUc;AAAA,MAC/C,SAAS,MAAM;AAAE,QAAAd,EAAO,MAAM,UAAU;AAAA,MAAU;AAAA,IAAA,CACnD,GAEQX,EAAA;AAAA,MACP,WAAWS;AAAA,IAAA,CACZ,GAEM,CAACiB,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,yBAAyB;AAAA,MACzB,SAAS;AAAA,MACT,KAAKjB;AAAA,MACL,OAAO;AAAA,IAAA,GACN;AAAA,MACDkB,EAAYJ,EAAK,QAAQ,SAAS;AAAA,OACjC,GAAG;AAAA,EAER;AAEA,CAAC;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, reactive, watchEffect, toRaw } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey } from \"../../utils/context\"\nimport { useForwardProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst parsedProps = useForwardProps(props)\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config = reactive({\n components: [],\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}) as XYContainerConfigInterface<T>\nconst elRef = ref<HTMLDivElement>()\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n }\n})\n\nwatchEffect(() => {\n // watch deep changes in components config\n const t = config.components.map(i => i.config)\n chart.value?.updateContainer({ ...toRaw(parsedProps.value), ...toRaw(config) })\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, { ...toRaw(config) }, data.value)\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => config.components = [...config.components!, c],\n destroy: () => config.components = config.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => config[`${c.config.type}Axis`] = c,\n destroy: (c) => { config[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => config.crosshair = c,\n destroy: () => { config.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.tooltip = t,\n destroy: () => { config.tooltip = undefined },\n})\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","parsedProps","useForwardProps","chart","ref","config","reactive","elRef","watch","watchEffect","i","_a","toRaw","onMounted","XYContainer","onUnmounted","provide","componentAccessorKey","c","axisAccessorKey","crosshairAccessorKey","tooltipAccessorKey","t","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":";;;;AASA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,YAAY,CAAC;AAAA,IACb,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,SAAS,CAAC;AAAA,IACV,sBAAsB,CAAC;AAAA,IACvB,sBAAsB,CAAC;AAAA,IACvB,QAAQ,CAAC;AAAA,IACT,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,SAAS,CAAC;AAAA,IACV,sBAAsB,CAAC;AAAA,IACvB,sBAAsB,CAAC;AAAA,IACvB,QAAQ,CAAC;AAAA,IACT,YAAY,C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("vue"),d=require("@unovis/ts"),r=require("../../utils/props.cjs"),f=e.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},data:{}},setup(u,{expose:i}){const l=u;e.computed(()=>l.data);const p=e.getCurrentInstance(),o=e.computed(()=>r.parseProps({...l},p)),n=e.ref(),a=e.ref();return e.onMounted(()=>{e.nextTick(()=>{a.value&&(n.value=new d.BulletLegend(a.value,o.value))})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy()}),e.watch(o,(t,s)=>{var c;r.arePropsEqual(t,s)||(c=n.value)==null||c.update(o.value)}),i({component:n}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:a},null,512))}});module.exports=f;
1
+ "use strict";const e=require("vue"),p=require("@unovis/ts"),s=require("../../utils/props.cjs"),d=e.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},data:{}},setup(c,{expose:i}){const a=c;e.computed(()=>a.data);const o=s.useForwardProps(a),n=e.ref(),l=e.ref();return e.onMounted(()=>{e.nextTick(()=>{l.value&&(n.value=new p.BulletLegend(l.value,o.value))})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy()}),e.watch(o,(t,u)=>{var r;s.arePropsEqual(t,u)||(r=n.value)==null||r.update(o.value)}),i({component:n}),(t,u)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:l},null,512))}});module.exports=d;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/html-components/bullet-legend/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 { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } 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 items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\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<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.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?.update(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAU4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,eAAgB,CAAC,EACjB,kBAAmB,CAAE,KAAM,QAAS,EACpC,cAAe,CAAC,EAChB,cAAe,CAAC,EAChB,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAAE,OAAQC,GAAY,CAE5C,MAAMC,EAAQF,EAIDG,WAAS,IAAMD,EAAM,IAAI,EAEtC,MAAME,EAAWC,EAAAA,qBACXC,EAASH,WAAS,IAAMI,EAAA,WAAW,CAAE,GAAGL,CAAS,EAAAE,CAAQ,CAAC,EAG1DI,EAAYC,EAAAA,MACZC,EAAQD,EAAAA,MAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACTF,EAAU,MAAQ,IAAIK,EAAA,aAAaH,EAAM,MAAOJ,EAAO,KAAK,EAAA,CAG7D,CAAA,CACF,EAEDQ,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,OAAOT,EAAO,MACjC,CACD,EAEQL,EAAA,CACP,UAAAO,CAAA,CACD,EAEM,CAACY,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,yBAA0B,GAC1B,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/html-components/bullet-legend/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 { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n\n// data and required props \ninterface Props extends BulletLegendConfigInterface { }\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n bulletShape: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.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?.update(config.value)\n }\n})\n\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAW4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,eAAgB,CAAC,EACjB,kBAAmB,CAAE,KAAM,QAAS,EACpC,cAAe,CAAC,EAChB,cAAe,CAAC,EAChB,WAAY,CAAC,EACb,YAAa,CAAC,EACd,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAAE,OAAQC,GAAY,CAE5C,MAAMC,EAAQF,EAKDG,WAAS,IAAMD,EAAM,IAAI,EAEhC,MAAAE,EAASC,kBAAgBH,CAAK,EAG9BI,EAAYC,EAAAA,MACZC,EAAQD,EAAAA,MAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACTF,EAAU,MAAQ,IAAIK,EAAA,aAAaH,EAAM,MAAOJ,EAAO,KAAK,EAAA,CAG7D,CAAA,CACF,EAEDQ,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,OAAOT,EAAO,MACjC,CACD,EAGQH,EAAA,CACP,UAAAK,CAAA,CACD,EAEM,CAACY,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,yBAA0B,GAC1B,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
@@ -19,6 +19,9 @@ declare const _default: import("vue").DefineComponent<{
19
19
  bulletSize: {
20
20
  type: import("vue").PropType<string>;
21
21
  };
22
+ bulletShape: {
23
+ type: import("vue").PropType<import("@unovis/ts").BulletShape>;
24
+ };
22
25
  data: {
23
26
  type: import("vue").PropType<never>;
24
27
  };
@@ -44,6 +47,9 @@ declare const _default: import("vue").DefineComponent<{
44
47
  bulletSize: {
45
48
  type: import("vue").PropType<string>;
46
49
  };
50
+ bulletShape: {
51
+ type: import("vue").PropType<import("@unovis/ts").BulletShape>;
52
+ };
47
53
  data: {
48
54
  type: import("vue").PropType<never>;
49
55
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as d, computed as c, getCurrentInstance as m, ref as s, onMounted as f, nextTick as v, onUnmounted as _, watch as x, openBlock as b, createElementBlock as g } from "vue";
2
- import { BulletLegend as k } from "@unovis/ts";
3
- import { parseProps as C, arePropsEqual as h } from "../../utils/props.js";
4
- const z = /* @__PURE__ */ d({
1
+ import { defineComponent as s, computed as i, ref as u, onMounted as d, nextTick as m, onUnmounted as f, watch as v, openBlock as _, createElementBlock as b } from "vue";
2
+ import { BulletLegend as x } from "@unovis/ts";
3
+ import { useForwardProps as k, arePropsEqual as g } from "../../utils/props.js";
4
+ const B = /* @__PURE__ */ s({
5
5
  __name: "index",
6
6
  props: {
7
7
  items: {},
@@ -10,32 +10,33 @@ const z = /* @__PURE__ */ d({
10
10
  labelFontSize: {},
11
11
  labelMaxWidth: {},
12
12
  bulletSize: {},
13
+ bulletShape: {},
13
14
  data: {}
14
15
  },
15
- setup(u, { expose: i }) {
16
- const a = u;
17
- c(() => a.data);
18
- const p = m(), n = c(() => C({ ...a }, p)), t = s(), o = s();
19
- return f(() => {
20
- v(() => {
21
- o.value && (t.value = new k(o.value, n.value));
16
+ setup(c, { expose: p }) {
17
+ const n = c;
18
+ i(() => n.data);
19
+ const o = k(n), t = u(), l = u();
20
+ return d(() => {
21
+ m(() => {
22
+ l.value && (t.value = new x(l.value, o.value));
22
23
  });
23
- }), _(() => {
24
+ }), f(() => {
24
25
  var e;
25
26
  (e = t.value) == null || e.destroy();
26
- }), x(n, (e, l) => {
27
+ }), v(o, (e, a) => {
27
28
  var r;
28
- h(e, l) || (r = t.value) == null || r.update(n.value);
29
- }), i({
29
+ g(e, a) || (r = t.value) == null || r.update(o.value);
30
+ }), p({
30
31
  component: t
31
- }), (e, l) => (b(), g("div", {
32
+ }), (e, a) => (_(), b("div", {
32
33
  "data-vis-bullet-legend": "",
33
34
  ref_key: "elRef",
34
- ref: o
35
+ ref: l
35
36
  }, null, 512));
36
37
  }
37
38
  });
38
39
  export {
39
- z as default
40
+ B as default
40
41
  };
41
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/html-components/bullet-legend/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 { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } 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 items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\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<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.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?.update(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","BulletLegend","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,gBAAgB,CAAC;AAAA,IACjB,mBAAmB,EAAE,MAAM,SAAS;AAAA,IACpC,eAAe,CAAC;AAAA,IAChB,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc,EAAE,QAAQC,KAAY;AAE5C,UAAMC,IAAQF;AAID,IAAAG,EAAS,MAAMD,EAAM,IAAI;AAEtC,UAAME,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAW,EAAE,GAAGL,EAAS,GAAAE,CAAQ,CAAC,GAG1DI,IAAYC,KACZC,IAAQD;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACTF,EAAU,QAAQ,IAAIK,EAAaH,EAAM,OAAOJ,EAAO,KAAK;AAAA,MAAA,CAG7D;AAAA,IAAA,CACF,GAEDQ,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,OAAOT,EAAO;AAAA,IACjC,CACD,GAEQL,EAAA;AAAA,MACP,WAAAO;AAAA,IAAA,CACD,GAEM,CAACY,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,0BAA0B;AAAA,MAC1B,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/html-components/bullet-legend/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 { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n\n// data and required props \ninterface Props extends BulletLegendConfigInterface { }\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n labelClassName: {},\n onLegendItemClick: { type: Function },\n labelFontSize: {},\n labelMaxWidth: {},\n bulletSize: {},\n bulletShape: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<BulletLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new BulletLegend(elRef.value, config.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?.update(config.value)\n }\n})\n\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-bullet-legend\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","BulletLegend","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;AAWA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,gBAAgB,CAAC;AAAA,IACjB,mBAAmB,EAAE,MAAM,SAAS;AAAA,IACpC,eAAe,CAAC;AAAA,IAChB,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,aAAa,CAAC;AAAA,IACd,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc,EAAE,QAAQC,KAAY;AAE5C,UAAMC,IAAQF;AAKD,IAAAG,EAAS,MAAMD,EAAM,IAAI;AAEhC,UAAAE,IAASC,EAAgBH,CAAK,GAG9BI,IAAYC,KACZC,IAAQD;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAGF,EAAM,UACTF,EAAU,QAAQ,IAAIK,EAAaH,EAAM,OAAOJ,EAAO,KAAK;AAAA,MAAA,CAG7D;AAAA,IAAA,CACF,GAEDQ,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,OAAOT,EAAO;AAAA,IACjC,CACD,GAGQH,EAAA;AAAA,MACP,WAAAK;AAAA,IAAA,CACD,GAEM,CAACY,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,0BAA0B;AAAA,MAC1B,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("vue"),d=require("@unovis/ts"),c=require("../../utils/props.cjs"),F=t.defineComponent({__name:"index",props:{sourceLongitude:{type:[Function,Number,null]},sourceLatitude:{type:[Function,Number,null]},targetLongitude:{type:[Function,Number,null]},targetLatitude:{type:[Function,Number,null]},sourcePointRadius:{type:[Function,Number,null]},sourcePointColor:{type:[Function,String,Array,null]},flowParticleColor:{type:[Function,String,Array,null]},flowParticleRadius:{type:[Function,Number,null]},flowParticleSpeed:{type:[Function,Number,null]},flowParticleDensity:{type:[Function,Number,null]},onSourcePointClick:{type:Function},onSourcePointMouseEnter:{type:Function},onSourcePointMouseLeave:{type:Function},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(a,{expose:p}){const i=a,s=t.computed(()=>i.data),y=t.getCurrentInstance(),o=t.computed(()=>c.parseProps({...i},y)),e=t.ref(),u=t.ref();return t.onMounted(()=>{t.nextTick(()=>{u.value&&(e.value=new d.LeafletFlowMap(u.value,o.value,s.value))})}),t.onUnmounted(()=>{var n;(n=e.value)==null||n.destroy()}),t.watch(o,(n,l)=>{var r;c.arePropsEqual(n,l)||(r=e.value)==null||r.setConfig(o.value)}),p({component:e}),(n,l)=>(t.openBlock(),t.createElementBlock("div",{"data-vis-leaflet-flow-map":"",ref_key:"elRef",ref:u},null,512))}});module.exports=F;
1
+ "use strict";const t=require("vue"),y=require("@unovis/ts"),c=require("../../utils/props.cjs"),d=t.defineComponent({__name:"index",props:{sourceLongitude:{type:[Function,Number,null]},sourceLatitude:{type:[Function,Number,null]},targetLongitude:{type:[Function,Number,null]},targetLatitude:{type:[Function,Number,null]},sourcePointRadius:{type:[Function,Number,null]},sourcePointColor:{type:[Function,String,null]},flowParticleColor:{type:[Function,String,null]},flowParticleRadius:{type:[Function,Number,null]},flowParticleSpeed:{type:[Function,Number,null]},flowParticleDensity:{type:[Function,Number,null]},onSourcePointClick:{type:Function},onSourcePointMouseEnter:{type:Function},onSourcePointMouseLeave:{type:Function},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,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,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(a,{expose:p}){const i=a,s=t.computed(()=>i.data),o=c.useForwardProps(i),e=t.ref(),u=t.ref();return t.onMounted(()=>{t.nextTick(()=>{u.value&&(e.value=new y.LeafletFlowMap(u.value,o.value,s.value))})}),t.onUnmounted(()=>{var n;(n=e.value)==null||n.destroy()}),t.watch(o,(n,l)=>{var r;c.arePropsEqual(n,l)||(r=e.value)==null||r.setConfig(o.value)}),p({component:e}),(n,l)=>(t.openBlock(),t.createElementBlock("div",{"data-vis-leaflet-flow-map":"",ref_key:"elRef",ref:u},null,512))}});module.exports=d;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +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, { expose: __expose }) {\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__expose({\n component\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","__expose","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,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,gBAAiB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAClD,eAAgB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACjD,gBAAiB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE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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,MACpC,CACD,EAEQN,EAAA,CACP,UAAAQ,CAAA,CACD,EAEM,CAACY,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,4BAA6B,GAC7B,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
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, nextTick } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n\n// data and required props \ninterface Props extends LeafletFlowMapConfigInterface<PointDatum, FlowDatum> { }\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, null] },\n flowParticleColor: { type: [Function, String, 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, 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, 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, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\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\n__expose({\n component\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","__expose","props","data","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","LeafletFlowMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAW4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,gBAAiB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAClD,eAAgB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACjD,gBAAiB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAClD,eAAgB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACjD,kBAAmB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpD,iBAAkB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACnD,kBAAmB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpD,mBAAoB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACrD,kBAAmB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpD,oBAAqB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACtD,mBAAoB,CAAE,KAAM,QAAS,EACrC,wBAAyB,CAAE,KAAM,QAAS,EAC1C,wBAAyB,CAAE,KAAM,QAAS,EAC1C,MAAO,CAAC,EACR,OAAQ,CAAC,EACT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extends GenericDataRecord, FlowDatum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: Pick<any, "attrs" | "emit" | "slots">, __VLS_expose?: any, __VLS_setup?: Promise<{
3
- props: LeafletFlowMapConfigInterface<PointDatum, FlowDatum> & {
1
+ import { LeafletFlowMap, GenericDataRecord } from '@unovis/ts';
2
+ declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: {
3
+ attrs: any;
4
+ emit: any;
5
+ slots: any;
6
+ }, __VLS_expose?: any, __VLS_setup?: Promise<{
7
+ props: {
8
+ duration?: number;
9
+ events?: {
10
+ [selector: string]: {
11
+ touchstart?: import("@unovis/ts").VisEventCallback<any>;
12
+ touchmove?: import("@unovis/ts").VisEventCallback<any>;
13
+ touchend?: import("@unovis/ts").VisEventCallback<any>;
14
+ mouseover?: import("@unovis/ts").VisEventCallback<any>;
15
+ mousemove?: import("@unovis/ts").VisEventCallback<any>;
16
+ mousedown?: import("@unovis/ts").VisEventCallback<any>;
17
+ mouseup?: import("@unovis/ts").VisEventCallback<any>;
18
+ click?: import("@unovis/ts").VisEventCallback<any>;
19
+ auxclick?: import("@unovis/ts").VisEventCallback<any>;
20
+ contextmenu?: import("@unovis/ts").VisEventCallback<any>;
21
+ dblclick?: import("@unovis/ts").VisEventCallback<any>;
22
+ mouseenter?: import("@unovis/ts").VisEventCallback<any>;
23
+ mouseleave?: import("@unovis/ts").VisEventCallback<any>;
24
+ mouseout?: import("@unovis/ts").VisEventCallback<any>;
25
+ scroll?: import("@unovis/ts").VisEventCallback<any>;
26
+ select?: import("@unovis/ts").VisEventCallback<any>;
27
+ wheel?: import("@unovis/ts").VisEventCallback<any>;
28
+ pointerdown?: import("@unovis/ts").VisEventCallback<any>;
29
+ pointerup?: import("@unovis/ts").VisEventCallback<any>;
30
+ pointerout?: import("@unovis/ts").VisEventCallback<any>;
31
+ pointermove?: import("@unovis/ts").VisEventCallback<any>;
32
+ };
33
+ };
34
+ attributes?: {
35
+ [selector: string]: {
36
+ [attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
37
+ };
38
+ };
4
39
  data?: {
5
40
  points: PointDatum[];
6
41
  flows?: FlowDatum[];
7
42
  };
8
- };
9
- expose(exposed: {
43
+ tooltip?: import("@unovis/ts").Tooltip;
44
+ zoomDuration?: number;
45
+ pointColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
46
+ pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
47
+ pointCursor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
48
+ pointLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
49
+ pointId?: import("@unovis/ts").StringAccessor<PointDatum>;
50
+ clusterLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
51
+ clusterLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
52
+ width?: string | number;
53
+ height?: string | number;
54
+ ariaLabel?: string;
55
+ sourceLongitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
56
+ sourceLatitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
57
+ targetLongitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
58
+ targetLatitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
59
+ sourcePointRadius?: import("@unovis/ts").NumericAccessor<FlowDatum>;
60
+ sourcePointColor?: import("@unovis/ts").ColorAccessor<FlowDatum>;
61
+ flowParticleColor?: import("@unovis/ts").ColorAccessor<FlowDatum>;
62
+ flowParticleRadius?: import("@unovis/ts").NumericAccessor<FlowDatum>;
63
+ flowParticleSpeed?: import("@unovis/ts").NumericAccessor<FlowDatum>;
64
+ flowParticleDensity?: import("@unovis/ts").NumericAccessor<FlowDatum>;
65
+ onSourcePointClick?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
66
+ onSourcePointMouseEnter?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
67
+ onSourcePointMouseLeave?: (f: FlowDatum, event: MouseEvent) => void;
68
+ flyToDuration?: number;
69
+ fitViewPadding?: [number, number];
70
+ initialBounds?: import("@unovis/ts").Bounds;
71
+ fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
72
+ fitViewOnInit?: boolean;
73
+ fitViewOnUpdate?: boolean;
74
+ styleDarkTheme?: string | import("maplibre-gl").StyleSpecification;
75
+ accessToken?: string;
76
+ attribution?: string[];
77
+ renderer?: string;
78
+ onMapInitialized?: () => void;
79
+ onMapMoveZoom?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
80
+ onMapMoveStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
81
+ onMapMoveEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
82
+ onMapZoomStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
83
+ onMapZoomEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
84
+ onMapClick?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
85
+ pointLongitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
86
+ pointLatitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
87
+ pointShape?: import("@unovis/ts").GenericAccessor<string, PointDatum>;
88
+ pointLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
89
+ pointBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
90
+ pointRingWidth?: number;
91
+ selectedPointId?: string;
92
+ clusterColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
93
+ clusterRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
94
+ clusterBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
95
+ clusterRingWidth?: number;
96
+ clusterBackground?: boolean;
97
+ clusterExpandOnClick?: boolean;
98
+ clusteringDistance?: number;
99
+ colorMap?: import("@unovis/ts").LeafletMapPointStyles<PointDatum>;
100
+ topoJSONLayer?: {
101
+ sources: any;
102
+ featureName?: string;
103
+ fillProperty?: string;
104
+ strokeProperty?: string;
105
+ fillOpacity?: number;
106
+ strokeOpacity?: number;
107
+ strokeWidth?: number;
108
+ };
109
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
110
+ expose(exposed: import("vue").ShallowUnwrapRef<{
10
111
  component: import("vue").Ref<LeafletFlowMap<PointDatum, FlowDatum>>;
11
- }): void;
112
+ }>): void;
12
113
  attrs: any;
13
114
  slots: {};
14
115
  emit: any;
@@ -1,7 +1,7 @@
1
- import { defineComponent as d, computed as r, getCurrentInstance as F, ref as a, onMounted as m, nextTick as f, onUnmounted as g, watch as b, openBlock as S, createElementBlock as L } from "vue";
2
- import { LeafletFlowMap as v } from "@unovis/ts";
3
- import { parseProps as M, arePropsEqual as C } from "../../utils/props.js";
4
- const B = /* @__PURE__ */ d({
1
+ import { defineComponent as s, computed as y, ref as r, onMounted as d, nextTick as F, onUnmounted as m, watch as f, openBlock as g, createElementBlock as b } from "vue";
2
+ import { LeafletFlowMap as S } from "@unovis/ts";
3
+ import { useForwardProps as L, arePropsEqual as v } from "../../utils/props.js";
4
+ const P = /* @__PURE__ */ s({
5
5
  __name: "index",
6
6
  props: {
7
7
  sourceLongitude: { type: [Function, Number, null] },
@@ -9,8 +9,8 @@ const B = /* @__PURE__ */ d({
9
9
  targetLongitude: { type: [Function, Number, null] },
10
10
  targetLatitude: { type: [Function, Number, null] },
11
11
  sourcePointRadius: { type: [Function, Number, null] },
12
- sourcePointColor: { type: [Function, String, Array, null] },
13
- flowParticleColor: { type: [Function, String, Array, null] },
12
+ sourcePointColor: { type: [Function, String, null] },
13
+ flowParticleColor: { type: [Function, String, null] },
14
14
  flowParticleRadius: { type: [Function, Number, null] },
15
15
  flowParticleSpeed: { type: [Function, Number, null] },
16
16
  flowParticleDensity: { type: [Function, Number, null] },
@@ -42,7 +42,7 @@ const B = /* @__PURE__ */ d({
42
42
  pointLatitude: { type: [Function, Number, null] },
43
43
  pointId: { type: [Function, String, null] },
44
44
  pointShape: { type: [Function, null] },
45
- pointColor: { type: [Function, String, Array, null] },
45
+ pointColor: { type: [Function, String, null] },
46
46
  pointRadius: { type: [Function, Number, null] },
47
47
  pointLabel: { type: [Function, String, null] },
48
48
  pointLabelColor: { type: [Function, String, null] },
@@ -50,7 +50,7 @@ const B = /* @__PURE__ */ d({
50
50
  pointCursor: { type: [Function, String, null] },
51
51
  pointRingWidth: {},
52
52
  selectedPointId: {},
53
- clusterColor: { type: [Function, String, Array, null] },
53
+ clusterColor: { type: [Function, String, null] },
54
54
  clusterRadius: { type: [Function, Number, null] },
55
55
  clusterLabel: { type: [Function, String, null] },
56
56
  clusterLabelColor: { type: [Function, String, null] },
@@ -68,21 +68,21 @@ const B = /* @__PURE__ */ d({
68
68
  attributes: {},
69
69
  data: {}
70
70
  },
71
- setup(c, { expose: p }) {
72
- const i = c, s = r(() => i.data), y = F(), e = r(() => M({ ...i }, y)), n = a(), o = a();
73
- return m(() => {
74
- f(() => {
75
- o.value && (n.value = new v(o.value, e.value, s.value));
71
+ setup(a, { expose: p }) {
72
+ const u = a, c = y(() => u.data), e = L(u), n = r(), o = r();
73
+ return d(() => {
74
+ F(() => {
75
+ o.value && (n.value = new S(o.value, e.value, c.value));
76
76
  });
77
- }), g(() => {
77
+ }), m(() => {
78
78
  var t;
79
79
  (t = n.value) == null || t.destroy();
80
- }), b(e, (t, u) => {
80
+ }), f(e, (t, i) => {
81
81
  var l;
82
- C(t, u) || (l = n.value) == null || l.setConfig(e.value);
82
+ v(t, i) || (l = n.value) == null || l.setConfig(e.value);
83
83
  }), p({
84
84
  component: n
85
- }), (t, u) => (S(), L("div", {
85
+ }), (t, i) => (g(), b("div", {
86
86
  "data-vis-leaflet-flow-map": "",
87
87
  ref_key: "elRef",
88
88
  ref: o
@@ -90,6 +90,6 @@ const B = /* @__PURE__ */ d({
90
90
  }
91
91
  });
92
92
  export {
93
- B as default
93
+ P as default
94
94
  };
95
95
  //# sourceMappingURL=index.js.map
@@ -1 +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, { expose: __expose }) {\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__expose({\n component\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","__expose","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;AAAA,IACjB,cAAc,CAAC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C,CACD,GAEQN,EAAA;AAAA,MACP,WAAAQ;AAAA,IAAA,CACD,GAEM,CAACY,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;"}
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, nextTick } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n\n// data and required props \ninterface Props extends LeafletFlowMapConfigInterface<PointDatum, FlowDatum> { }\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, null] },\n flowParticleColor: { type: [Function, String, 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, 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, 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, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\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\n__expose({\n component\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","__expose","props","data","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","LeafletFlowMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;AAWA,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,IAAI,EAAE;AAAA,IACnD,mBAAmB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACpD,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;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;A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AAAA,EAEd;AAEA,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("vue"),y=require("@unovis/ts"),r=require("../../utils/props.cjs"),F=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,{expose:c}){const u=p,s=t.computed(()=>u.data),d=t.getCurrentInstance(),o=t.computed(()=>r.parseProps({...u},d)),e=t.ref(),i=t.ref();return t.onMounted(()=>{t.nextTick(()=>{i.value&&(e.value=new y.LeafletMap(i.value,o.value,s.value))})}),t.onUnmounted(()=>{var n;(n=e.value)==null||n.destroy()}),t.watch(o,(n,l)=>{var a;r.arePropsEqual(n,l)||(a=e.value)==null||a.setConfig(o.value)}),c({component:e}),(n,l)=>(t.openBlock(),t.createElementBlock("div",{"data-vis-leaflet-map":"",ref_key:"elRef",ref:i},null,512))}});module.exports=F;
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,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,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,{expose:c}){const u=p,s=t.computed(()=>u.data),o=r.useForwardProps(u),e=t.ref(),i=t.ref();return t.onMounted(()=>{t.nextTick(()=>{i.value&&(e.value=new d.LeafletMap(i.value,o.value,s.value))})}),t.onUnmounted(()=>{var n;(n=e.value)==null||n.destroy()}),t.watch(o,(n,l)=>{var a;r.arePropsEqual(n,l)||(a=e.value)==null||a.setConfig(o.value)}),c({component:e}),(n,l)=>(t.openBlock(),t.createElementBlock("div",{"data-vis-leaflet-map":"",ref_key:"elRef",ref:i},null,512))}});module.exports=y;
2
2
  //# sourceMappingURL=index.cjs.map