@unovis/vue 1.7.0-pre.1 → 1.7.0
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.
- package/README.md +4 -0
- package/components/annotations/index.cjs +1 -1
- package/components/annotations/index.cjs.map +1 -1
- package/components/annotations/index.d.ts +18 -100
- package/components/annotations/index.js +18 -20
- package/components/annotations/index.js.map +1 -1
- package/components/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +12 -64
- package/components/area/index.js +31 -32
- package/components/area/index.js.map +1 -1
- package/components/axis/index.cjs +1 -1
- package/components/axis/index.cjs.map +1 -1
- package/components/axis/index.d.ts +12 -82
- package/components/axis/index.js +29 -28
- package/components/axis/index.js.map +1 -1
- package/components/boxplot/index.cjs +2 -0
- package/components/boxplot/index.cjs.map +1 -0
- package/components/boxplot/index.d.ts +19 -0
- package/components/boxplot/index.js +31 -0
- package/components/boxplot/index.js.map +1 -0
- package/components/boxplot/index2.cjs +2 -0
- package/components/boxplot/index2.cjs.map +1 -0
- package/components/boxplot/index2.js +7 -0
- package/components/boxplot/index2.js.map +1 -0
- package/components/brush/index.cjs +1 -1
- package/components/brush/index.cjs.map +1 -1
- package/components/brush/index.d.ts +12 -62
- package/components/brush/index.js +26 -28
- package/components/brush/index.js.map +1 -1
- package/components/chord-diagram/index.cjs +1 -1
- package/components/chord-diagram/index.cjs.map +1 -1
- package/components/chord-diagram/index.d.ts +12 -60
- package/components/chord-diagram/index.js +30 -32
- package/components/chord-diagram/index.js.map +1 -1
- package/components/crosshair/index.cjs +1 -1
- package/components/crosshair/index.cjs.map +1 -1
- package/components/crosshair/index.d.ts +12 -66
- package/components/crosshair/index.js +20 -24
- package/components/crosshair/index.js.map +1 -1
- package/components/donut/index.cjs +1 -1
- package/components/donut/index.cjs.map +1 -1
- package/components/donut/index.d.ts +12 -64
- package/components/donut/index.js +24 -26
- package/components/donut/index.js.map +1 -1
- package/components/free-brush/index.cjs +1 -1
- package/components/free-brush/index.cjs.map +1 -1
- package/components/free-brush/index.d.ts +12 -62
- package/components/free-brush/index.js +25 -28
- package/components/free-brush/index.js.map +1 -1
- package/components/graph/index.cjs +1 -1
- package/components/graph/index.cjs.map +1 -1
- package/components/graph/index.d.ts +11 -135
- package/components/graph/index.js +70 -66
- package/components/graph/index.js.map +1 -1
- package/components/grouped-bar/index.cjs +1 -1
- package/components/grouped-bar/index.cjs.map +1 -1
- package/components/grouped-bar/index.d.ts +12 -62
- package/components/grouped-bar/index.js +27 -28
- package/components/grouped-bar/index.js.map +1 -1
- package/components/heatmap/index.cjs +2 -0
- package/components/heatmap/index.cjs.map +1 -0
- package/components/heatmap/index.d.ts +19 -0
- package/components/heatmap/index.js +49 -0
- package/components/heatmap/index.js.map +1 -0
- package/components/heatmap/index2.cjs +2 -0
- package/components/heatmap/index2.cjs.map +1 -0
- package/components/heatmap/index2.js +7 -0
- package/components/heatmap/index2.js.map +1 -0
- package/components/line/index.cjs +1 -1
- package/components/line/index.cjs.map +1 -1
- package/components/line/index.d.ts +12 -60
- package/components/line/index.js +28 -30
- package/components/line/index.js.map +1 -1
- package/components/nested-donut/index.cjs +1 -1
- package/components/nested-donut/index.cjs.map +1 -1
- package/components/nested-donut/index.d.ts +12 -65
- package/components/nested-donut/index.js +26 -29
- package/components/nested-donut/index.js.map +1 -1
- package/components/plotband/index.cjs +1 -1
- package/components/plotband/index.cjs.map +1 -1
- package/components/plotband/index.d.ts +12 -63
- package/components/plotband/index.js +17 -18
- package/components/plotband/index.js.map +1 -1
- package/components/plotline/index.cjs +1 -1
- package/components/plotline/index.cjs.map +1 -1
- package/components/plotline/index.d.ts +12 -64
- package/components/plotline/index.js +18 -19
- package/components/plotline/index.js.map +1 -1
- package/components/radial-bar/index.cjs +2 -0
- package/components/radial-bar/index.cjs.map +1 -0
- package/components/radial-bar/index.d.ts +19 -0
- package/components/radial-bar/index.js +54 -0
- package/components/radial-bar/index.js.map +1 -0
- package/components/radial-bar/index2.cjs +2 -0
- package/components/radial-bar/index2.cjs.map +1 -0
- package/components/radial-bar/index2.js +7 -0
- package/components/radial-bar/index2.js.map +1 -0
- package/components/sankey/index.cjs +1 -1
- package/components/sankey/index.cjs.map +1 -1
- package/components/sankey/index.d.ts +12 -106
- package/components/sankey/index.js +42 -41
- package/components/sankey/index.js.map +1 -1
- package/components/scatter/index.cjs +1 -1
- package/components/scatter/index.cjs.map +1 -1
- package/components/scatter/index.d.ts +12 -65
- package/components/scatter/index.js +33 -35
- package/components/scatter/index.js.map +1 -1
- package/components/stacked-bar/index.cjs +1 -1
- package/components/stacked-bar/index.cjs.map +1 -1
- package/components/stacked-bar/index.d.ts +12 -62
- package/components/stacked-bar/index.js +29 -29
- package/components/stacked-bar/index.js.map +1 -1
- package/components/timeline/index.cjs +1 -1
- package/components/timeline/index.cjs.map +1 -1
- package/components/timeline/index.d.ts +12 -88
- package/components/timeline/index.js +20 -24
- package/components/timeline/index.js.map +1 -1
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.cjs.map +1 -1
- package/components/tooltip/index.d.ts +19 -99
- package/components/tooltip/index.js +15 -17
- package/components/tooltip/index.js.map +1 -1
- package/components/topojson-map/index.cjs +1 -1
- package/components/topojson-map/index.cjs.map +1 -1
- package/components/topojson-map/index.d.ts +12 -78
- package/components/topojson-map/index.js +66 -39
- package/components/topojson-map/index.js.map +1 -1
- package/components/treemap/index.cjs +1 -1
- package/components/treemap/index.cjs.map +1 -1
- package/components/treemap/index.d.ts +12 -69
- package/components/treemap/index.js +25 -26
- package/components/treemap/index.js.map +1 -1
- package/components/xy-labels/index.cjs +1 -1
- package/components/xy-labels/index.cjs.map +1 -1
- package/components/xy-labels/index.d.ts +12 -66
- package/components/xy-labels/index.js +36 -39
- package/components/xy-labels/index.js.map +1 -1
- package/components.d.ts +30 -27
- package/containers/single-container/index.cjs +1 -1
- package/containers/single-container/index.cjs.map +1 -1
- package/containers/single-container/index.d.ts +11 -26
- package/containers/single-container/index.js +26 -26
- package/containers/single-container/index.js.map +1 -1
- package/containers/xy-container/index.cjs +1 -1
- package/containers/xy-container/index.cjs.map +1 -1
- package/containers/xy-container/index.d.ts +12 -45
- package/containers/xy-container/index.js +25 -30
- package/containers/xy-container/index.js.map +1 -1
- package/containers.d.ts +2 -2
- package/html-components/bullet-legend/index.cjs +1 -1
- package/html-components/bullet-legend/index.cjs.map +1 -1
- package/html-components/bullet-legend/index.d.ts +18 -74
- package/html-components/bullet-legend/index.js +24 -25
- package/html-components/bullet-legend/index.js.map +1 -1
- package/html-components/flow-legend/index.cjs +1 -1
- package/html-components/flow-legend/index.cjs.map +1 -1
- package/html-components/flow-legend/index.d.ts +19 -85
- package/html-components/flow-legend/index.js +21 -23
- package/html-components/flow-legend/index.js.map +1 -1
- package/html-components/leaflet-flow-map/index.cjs +1 -1
- package/html-components/leaflet-flow-map/index.cjs.map +1 -1
- package/html-components/leaflet-flow-map/index.d.ts +12 -112
- package/html-components/leaflet-flow-map/index.js +46 -48
- package/html-components/leaflet-flow-map/index.js.map +1 -1
- package/html-components/leaflet-map/index.cjs +1 -1
- package/html-components/leaflet-map/index.cjs.map +1 -1
- package/html-components/leaflet-map/index.d.ts +12 -99
- package/html-components/leaflet-map/index.js +37 -39
- package/html-components/leaflet-map/index.js.map +1 -1
- package/html-components/rolling-pin-legend/index.cjs +1 -1
- package/html-components/rolling-pin-legend/index.cjs.map +1 -1
- package/html-components/rolling-pin-legend/index.d.ts +18 -50
- package/html-components/rolling-pin-legend/index.js +22 -24
- package/html-components/rolling-pin-legend/index.js.map +1 -1
- package/index.cjs +2 -2
- package/index.js +101 -92
- package/index.js.map +1 -1
- package/package.json +14 -13
- package/utils/context.cjs.map +1 -1
- package/utils/context.d.ts +1 -0
- package/utils/context.js +1 -1
- package/utils/context.js.map +1 -1
- package/utils/props.cjs +1 -1
- package/utils/props.cjs.map +1 -1
- package/utils/props.d.ts +2 -4
- package/utils/props.js +9 -9
- package/utils/props.js.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, computed as m, ref as a, onMounted as u, nextTick as p, onUnmounted as f, watch as v, openBlock as w, createElementBlock as g } from "vue";
|
|
2
2
|
import { FlowLegend as d } from "@unovis/ts";
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
const
|
|
3
|
+
import { useForwardProps as _, arePropsEqual as y } from "../../utils/props.js";
|
|
4
|
+
const F = d.selectors, b = /* @__PURE__ */ i({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
margin: {},
|
|
@@ -18,31 +18,29 @@ const b = d.selectors, P = /* @__PURE__ */ m({
|
|
|
18
18
|
renderIntoProvidedDomNode: { type: Boolean },
|
|
19
19
|
data: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const r =
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
setup(s, { expose: c }) {
|
|
22
|
+
const r = s;
|
|
23
|
+
m(() => r.data);
|
|
24
|
+
const o = _(r), e = a(), n = a();
|
|
25
|
+
return u(() => {
|
|
26
|
+
p(() => {
|
|
27
|
+
n.value && (e.value = new d(n.value, { ...o.value, renderIntoProvidedDomNode: !0 }));
|
|
28
28
|
});
|
|
29
|
-
}),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}),
|
|
36
|
-
component: o
|
|
37
|
-
}), (e, l) => (_(), g("div", {
|
|
38
|
-
"data-vis-flow-legend": "",
|
|
29
|
+
}), f(() => {
|
|
30
|
+
e.value?.destroy();
|
|
31
|
+
}), v(o, (t, l) => {
|
|
32
|
+
y(t, l) || (e.value?.setConfig(o.value), e.value?.render());
|
|
33
|
+
}), c({
|
|
34
|
+
component: e
|
|
35
|
+
}), (t, l) => (w(), g("div", {
|
|
39
36
|
ref_key: "elRef",
|
|
40
|
-
ref:
|
|
37
|
+
ref: n,
|
|
38
|
+
"data-vis-flow-legend": ""
|
|
41
39
|
}, null, 512));
|
|
42
40
|
}
|
|
43
41
|
});
|
|
44
42
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
F as VisFlowLegendSelectors,
|
|
44
|
+
b as default
|
|
47
45
|
};
|
|
48
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/html-components/flow-legend/index.vue"],"sourcesContent":["<script setup lang=\"ts\"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/html-components/flow-legend/index.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { FlowLegendConfigInterface } from '@unovis/ts'\nimport { FlowLegend } from '@unovis/ts'\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n// data and required props\ntype Props = FlowLegendConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<FlowLegend>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if (elRef.value)\n component.value = new FlowLegend(elRef.value, { ...config.value, renderIntoProvidedDomNode: true })\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\n }\n})\n\ndefineExpose({\n component,\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisFlowLegendSelectors = FlowLegend.selectors\n</script>\n\n<template>\n <div ref=\"elRef\" data-vis-flow-legend />\n</template>\n\n<style>\n [data-vis-flow-legend] {\n display:block;\n }\n</style>\n"],"names":["VisFlowLegendSelectors","FlowLegend","props","__props","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_createElementBlock"],"mappings":";;;AA2CO,MAAMA,IAAyBC,EAAW;;;;;;;;;;;;;;;;;;AAlCjD,UAAMC,IAAQC;AAED,IAAAC,EAAS,MAAMF,EAAM,IAAI;AAEtC,UAAMG,IAASC,EAAgBJ,CAAK,GAG9BK,IAAYC,EAAA,GACZC,IAAQD,EAAA;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAIF,EAAM,UACRF,EAAU,QAAQ,IAAIN,EAAWQ,EAAM,OAAO,EAAE,GAAGJ,EAAO,OAAO,2BAA2B,GAAA,CAAM;AAAA,MACtG,CAAC;AAAA,IACH,CAAC,GAEDO,EAAY,MAAM;AAChB,MAAAL,EAAU,OAAO,QAAA;AAAA,IACnB,CAAC,GAEDM,EAAMR,GAAQ,CAACS,GAAMC,MAAS;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MAC3BR,EAAU,OAAO,UAAUF,EAAO,KAAK,GACvCE,EAAU,OAAO,OAAA;AAAA,IAErB,CAAC,GAEDU,EAAa;AAAA,MACX,WAAAV;AAAA,IAAA,CACD,mBAQCW,EAAwC,OAAA;AAAA,eAA/B;AAAA,MAAJ,KAAIT;AAAA,MAAQ,wBAAA;AAAA,IAAA;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),c=require("@unovis/ts"),a=require("../../utils/props.cjs"),y=c.LeafletFlowMap.selectors,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,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:{},preserveDrawingBuffer:{type:Boolean},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,String,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:s}){const l=p,n=t.computed(()=>l.data),o=a.useForwardProps(l),e=t.ref(),u=t.ref();return t.onMounted(()=>{t.nextTick(()=>{u.value&&(e.value=new c.LeafletFlowMap(u.value,o.value,n.value))})}),t.onUnmounted(()=>{e.value?.destroy()}),t.watch(o,(i,r)=>{a.arePropsEqual(i,r)||(e.value?.setConfig(o.value),e.value?.render())}),t.watch(n,()=>{e.value?.setData(n.value)}),s({component:e}),(i,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"elRef",ref:u,"data-vis-leaflet-flow-map":""},null,512))}});exports.VisLeafletFlowMapSelectors=y;exports.default=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-flow-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"PointDatum extends GenericDataRecord,FlowDatum extends GenericDataRecord\">\n// !!! This code was automatically generated. You should not change it !!!\nimport {
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-flow-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { GenericDataRecord, LeafletFlowMapConfigInterface } from '@unovis/ts'\nimport { LeafletFlowMap } from '@unovis/ts'\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n// data and required props\ntype Props = LeafletFlowMapConfigInterface<PointDatum, FlowDatum>\nconst props = defineProps<Props & { data?: { points: PointDatum[], flows?: FlowDatum[] } }>()\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\nonUnmounted(() => {\n component.value?.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component,\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisLeafletFlowMapSelectors = LeafletFlowMap.selectors\n</script>\n\n<template>\n <div ref=\"elRef\" data-vis-leaflet-flow-map />\n</template>\n\n<style>\n [data-vis-leaflet-flow-map] {\n display:block;\n position:relative;\n }\n</style>\n"],"names":["VisLeafletFlowMapSelectors","LeafletFlowMap","props","__props","data","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_createElementBlock"],"mappings":"8LA+CaA,EAA6BC,EAAAA,eAAe,ohEAtCzD,MAAMC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMH,EAAM,IAAI,EAEhCI,EAASC,EAAAA,gBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAA,EACZC,EAAQD,EAAAA,IAAA,EAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACTF,EAAM,QACRF,EAAU,MAAQ,IAAIP,EAAAA,eAAsCS,EAAM,MAAOJ,EAAO,MAAOF,EAAK,KAAK,EACrG,CAAC,CACH,CAAC,EAEDS,EAAAA,YAAY,IAAM,CAChBL,EAAU,OAAO,QAAA,CACnB,CAAC,EAEDM,EAAAA,MAAMR,EAAQ,CAACS,EAAMC,IAAS,CACvBC,EAAAA,cAAcF,EAAMC,CAAI,IAC3BR,EAAU,OAAO,UAAUF,EAAO,KAAK,EACvCE,EAAU,OAAO,OAAA,EAErB,CAAC,EAEDM,EAAAA,MAAMV,EAAM,IAAM,CAChBI,EAAU,OAAO,QAAQJ,EAAK,KAAK,CACrC,CAAC,EAEDc,EAAa,CACX,UAAAV,CAAA,CACD,wBAQCW,EAAAA,mBAA6C,MAAA,SAApC,QAAJ,IAAIT,EAAQ,4BAAA,EAAA"}
|
|
@@ -1,122 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
slots: any;
|
|
7
|
-
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
8
|
-
props: {
|
|
9
|
-
duration?: number;
|
|
10
|
-
events?: {
|
|
11
|
-
[selector: string]: {
|
|
12
|
-
touchstart?: import("@unovis/ts").VisEventCallback<any>;
|
|
13
|
-
touchmove?: import("@unovis/ts").VisEventCallback<any>;
|
|
14
|
-
touchend?: import("@unovis/ts").VisEventCallback<any>;
|
|
15
|
-
mouseover?: import("@unovis/ts").VisEventCallback<any>;
|
|
16
|
-
mousemove?: import("@unovis/ts").VisEventCallback<any>;
|
|
17
|
-
mousedown?: import("@unovis/ts").VisEventCallback<any>;
|
|
18
|
-
mouseup?: import("@unovis/ts").VisEventCallback<any>;
|
|
19
|
-
click?: import("@unovis/ts").VisEventCallback<any>;
|
|
20
|
-
auxclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
21
|
-
contextmenu?: import("@unovis/ts").VisEventCallback<any>;
|
|
22
|
-
dblclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
23
|
-
mouseenter?: import("@unovis/ts").VisEventCallback<any>;
|
|
24
|
-
mouseleave?: import("@unovis/ts").VisEventCallback<any>;
|
|
25
|
-
mouseout?: import("@unovis/ts").VisEventCallback<any>;
|
|
26
|
-
scroll?: import("@unovis/ts").VisEventCallback<any>;
|
|
27
|
-
select?: import("@unovis/ts").VisEventCallback<any>;
|
|
28
|
-
wheel?: import("@unovis/ts").VisEventCallback<any>;
|
|
29
|
-
pointerdown?: import("@unovis/ts").VisEventCallback<any>;
|
|
30
|
-
pointerup?: import("@unovis/ts").VisEventCallback<any>;
|
|
31
|
-
pointerout?: import("@unovis/ts").VisEventCallback<any>;
|
|
32
|
-
pointermove?: import("@unovis/ts").VisEventCallback<any>;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
attributes?: {
|
|
36
|
-
[selector: string]: {
|
|
37
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
38
|
-
};
|
|
39
|
-
};
|
|
1
|
+
import { GenericDataRecord, LeafletFlowMapConfigInterface, LeafletFlowMap } from '@unovis/ts';
|
|
2
|
+
|
|
3
|
+
export declare const VisLeafletFlowMapSelectors: typeof import("@unovis/ts/components/leaflet-map/style");
|
|
4
|
+
declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & (LeafletFlowMapConfigInterface<PointDatum, FlowDatum> & {
|
|
40
6
|
data?: {
|
|
41
7
|
points: PointDatum[];
|
|
42
8
|
flows?: FlowDatum[];
|
|
43
9
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
zoomDuration?: number;
|
|
48
|
-
pointColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
49
|
-
pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
50
|
-
pointCursor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
51
|
-
pointLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
52
|
-
pointId?: import("@unovis/ts").StringAccessor<PointDatum>;
|
|
53
|
-
clusterLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
|
|
54
|
-
clusterLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
|
|
55
|
-
height?: string | number;
|
|
56
|
-
ariaLabel?: string;
|
|
57
|
-
sourceLongitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
58
|
-
sourceLatitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
59
|
-
targetLongitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
60
|
-
targetLatitude?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
61
|
-
sourcePointRadius?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
62
|
-
sourcePointColor?: import("@unovis/ts").ColorAccessor<FlowDatum>;
|
|
63
|
-
flowParticleColor?: import("@unovis/ts").ColorAccessor<FlowDatum>;
|
|
64
|
-
flowParticleRadius?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
65
|
-
flowParticleSpeed?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
66
|
-
flowParticleDensity?: import("@unovis/ts").NumericAccessor<FlowDatum>;
|
|
67
|
-
onSourcePointClick?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
|
|
68
|
-
onSourcePointMouseEnter?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
|
|
69
|
-
onSourcePointMouseLeave?: (f: FlowDatum, event: MouseEvent) => void;
|
|
70
|
-
flyToDuration?: number;
|
|
71
|
-
initialBounds?: import("@unovis/ts").Bounds;
|
|
72
|
-
fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
|
|
73
|
-
fitViewOnInit?: boolean;
|
|
74
|
-
fitViewOnUpdate?: boolean;
|
|
75
|
-
styleDarkTheme?: string | import("maplibre-gl").StyleSpecification;
|
|
76
|
-
accessToken?: string;
|
|
77
|
-
attribution?: string[];
|
|
78
|
-
renderer?: string;
|
|
79
|
-
onMapInitialized?: () => void;
|
|
80
|
-
onMapMoveZoom?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
81
|
-
onMapMoveStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
82
|
-
onMapMoveEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
83
|
-
onMapZoomStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
84
|
-
onMapZoomEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
85
|
-
onMapClick?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
86
|
-
pointLongitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
|
|
87
|
-
pointLatitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
|
|
88
|
-
pointShape?: import("@unovis/ts").GenericAccessor<string, PointDatum>;
|
|
89
|
-
pointLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
90
|
-
pointBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
91
|
-
pointRingWidth?: number;
|
|
92
|
-
selectedPointId?: string;
|
|
93
|
-
clusterColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
|
|
94
|
-
clusterRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
|
|
95
|
-
clusterBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<PointDatum>>;
|
|
96
|
-
clusterRingWidth?: number;
|
|
97
|
-
clusterBackground?: boolean;
|
|
98
|
-
clusterExpandOnClick?: boolean;
|
|
99
|
-
clusteringDistance?: number;
|
|
100
|
-
colorMap?: import("@unovis/ts").LeafletMapPointStyles<PointDatum>;
|
|
101
|
-
topoJSONLayer?: {
|
|
102
|
-
sources: any;
|
|
103
|
-
featureName?: string;
|
|
104
|
-
fillProperty?: string;
|
|
105
|
-
strokeProperty?: string;
|
|
106
|
-
fillOpacity?: number;
|
|
107
|
-
strokeOpacity?: number;
|
|
108
|
-
strokeWidth?: number;
|
|
109
|
-
};
|
|
110
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
111
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
112
|
-
component: import("vue").Ref<LeafletFlowMap<PointDatum, FlowDatum>, LeafletFlowMap<PointDatum, FlowDatum>>;
|
|
10
|
+
}), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
11
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
12
|
+
component: import('vue').Ref<LeafletFlowMap<PointDatum, FlowDatum>, LeafletFlowMap<PointDatum, FlowDatum>>;
|
|
113
13
|
}>): void;
|
|
114
14
|
attrs: any;
|
|
115
|
-
slots: {}
|
|
116
|
-
emit:
|
|
117
|
-
}>) => import(
|
|
15
|
+
slots: ReturnType<() => {}>;
|
|
16
|
+
emit: typeof __VLS_emit;
|
|
17
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
118
18
|
[key: string]: any;
|
|
119
19
|
}> & {
|
|
120
|
-
__ctx?:
|
|
20
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
121
21
|
};
|
|
122
22
|
export default _default;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, computed as d, ref as r, onMounted as F, nextTick as m, onUnmounted as f, watch as a, openBlock as g, createElementBlock as S } from "vue";
|
|
2
2
|
import { LeafletFlowMap as p } from "@unovis/ts";
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
const
|
|
3
|
+
import { useForwardProps as b, arePropsEqual as v } from "../../utils/props.js";
|
|
4
|
+
const B = p.selectors, N = /* @__PURE__ */ y({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
|
-
sourceLongitude: {},
|
|
8
|
-
sourceLatitude: {},
|
|
9
|
-
targetLongitude: {},
|
|
10
|
-
targetLatitude: {},
|
|
11
|
-
sourcePointRadius: {},
|
|
12
|
-
sourcePointColor: {},
|
|
13
|
-
flowParticleColor: {},
|
|
14
|
-
flowParticleRadius: {},
|
|
15
|
-
flowParticleSpeed: {},
|
|
16
|
-
flowParticleDensity: {},
|
|
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
17
|
onSourcePointClick: { type: Function },
|
|
18
18
|
onSourcePointMouseEnter: { type: Function },
|
|
19
19
|
onSourcePointMouseLeave: { type: Function },
|
|
@@ -31,6 +31,7 @@ const k = p.selectors, b = /* @__PURE__ */ f({
|
|
|
31
31
|
accessToken: {},
|
|
32
32
|
attribution: {},
|
|
33
33
|
renderer: {},
|
|
34
|
+
preserveDrawingBuffer: { type: Boolean },
|
|
34
35
|
onMapInitialized: { type: Function },
|
|
35
36
|
onMapMoveZoom: { type: Function },
|
|
36
37
|
onMapMoveStart: { type: Function },
|
|
@@ -38,23 +39,23 @@ const k = p.selectors, b = /* @__PURE__ */ f({
|
|
|
38
39
|
onMapZoomStart: { type: Function },
|
|
39
40
|
onMapZoomEnd: { type: Function },
|
|
40
41
|
onMapClick: { type: Function },
|
|
41
|
-
pointLongitude: {},
|
|
42
|
-
pointLatitude: {},
|
|
43
|
-
pointId: {},
|
|
44
|
-
pointShape: {},
|
|
45
|
-
pointColor: {},
|
|
46
|
-
pointRadius: {},
|
|
47
|
-
pointLabel: {},
|
|
48
|
-
pointLabelColor: {},
|
|
49
|
-
pointBottomLabel: {},
|
|
50
|
-
pointCursor: {},
|
|
42
|
+
pointLongitude: { type: [Function, Number, null] },
|
|
43
|
+
pointLatitude: { type: [Function, Number, null] },
|
|
44
|
+
pointId: { type: [Function, String, null] },
|
|
45
|
+
pointShape: { type: [Function, String, null] },
|
|
46
|
+
pointColor: { type: [Function, String, Array, null] },
|
|
47
|
+
pointRadius: { type: [Function, Number, null] },
|
|
48
|
+
pointLabel: { type: [Function, String, null] },
|
|
49
|
+
pointLabelColor: { type: [Function, String, null] },
|
|
50
|
+
pointBottomLabel: { type: [Function, String, null] },
|
|
51
|
+
pointCursor: { type: [Function, String, null] },
|
|
51
52
|
pointRingWidth: {},
|
|
52
53
|
selectedPointId: {},
|
|
53
|
-
clusterColor: {},
|
|
54
|
-
clusterRadius: {},
|
|
55
|
-
clusterLabel: {},
|
|
56
|
-
clusterLabelColor: {},
|
|
57
|
-
clusterBottomLabel: {},
|
|
54
|
+
clusterColor: { type: [Function, String, Array, null] },
|
|
55
|
+
clusterRadius: { type: [Function, Number, null] },
|
|
56
|
+
clusterLabel: { type: [Function, String, null] },
|
|
57
|
+
clusterLabelColor: { type: [Function, String, null] },
|
|
58
|
+
clusterBottomLabel: { type: [Function, String, null] },
|
|
58
59
|
clusterRingWidth: {},
|
|
59
60
|
clusterBackground: { type: Boolean },
|
|
60
61
|
clusterExpandOnClick: { type: Boolean },
|
|
@@ -68,32 +69,29 @@ const k = p.selectors, b = /* @__PURE__ */ f({
|
|
|
68
69
|
attributes: {},
|
|
69
70
|
data: {}
|
|
70
71
|
},
|
|
71
|
-
setup(
|
|
72
|
-
const
|
|
73
|
-
return
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
setup(c, { expose: s }) {
|
|
73
|
+
const u = c, n = d(() => u.data), e = b(u), t = r(), o = r();
|
|
74
|
+
return F(() => {
|
|
75
|
+
m(() => {
|
|
76
|
+
o.value && (t.value = new p(o.value, e.value, n.value));
|
|
76
77
|
});
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
var e;
|
|
85
|
-
(e = t.value) == null || e.setData(o.value);
|
|
86
|
-
}), d({
|
|
78
|
+
}), f(() => {
|
|
79
|
+
t.value?.destroy();
|
|
80
|
+
}), a(e, (i, l) => {
|
|
81
|
+
v(i, l) || (t.value?.setConfig(e.value), t.value?.render());
|
|
82
|
+
}), a(n, () => {
|
|
83
|
+
t.value?.setData(n.value);
|
|
84
|
+
}), s({
|
|
87
85
|
component: t
|
|
88
|
-
}), (
|
|
89
|
-
"data-vis-leaflet-flow-map": "",
|
|
86
|
+
}), (i, l) => (g(), S("div", {
|
|
90
87
|
ref_key: "elRef",
|
|
91
|
-
ref:
|
|
88
|
+
ref: o,
|
|
89
|
+
"data-vis-leaflet-flow-map": ""
|
|
92
90
|
}, null, 512));
|
|
93
91
|
}
|
|
94
92
|
});
|
|
95
93
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
B as VisLeafletFlowMapSelectors,
|
|
95
|
+
N as default
|
|
98
96
|
};
|
|
99
97
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-flow-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"PointDatum extends GenericDataRecord,FlowDatum extends GenericDataRecord\">\n// !!! This code was automatically generated. You should not change it !!!\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-flow-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { GenericDataRecord, LeafletFlowMapConfigInterface } from '@unovis/ts'\nimport { LeafletFlowMap } from '@unovis/ts'\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n// data and required props\ntype Props = LeafletFlowMapConfigInterface<PointDatum, FlowDatum>\nconst props = defineProps<Props & { data?: { points: PointDatum[], flows?: FlowDatum[] } }>()\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\nonUnmounted(() => {\n component.value?.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component,\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisLeafletFlowMapSelectors = LeafletFlowMap.selectors\n</script>\n\n<template>\n <div ref=\"elRef\" data-vis-leaflet-flow-map />\n</template>\n\n<style>\n [data-vis-leaflet-flow-map] {\n display:block;\n position:relative;\n }\n</style>\n"],"names":["VisLeafletFlowMapSelectors","LeafletFlowMap","props","__props","data","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_createElementBlock"],"mappings":";;;AA+CO,MAAMA,IAA6BC,EAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtCzD,UAAMC,IAAQC,GAERC,IAAOC,EAAS,MAAMH,EAAM,IAAI,GAEhCI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAA,GACZC,IAAQD,EAAA;AAEd,WAAAE,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAIF,EAAM,UACRF,EAAU,QAAQ,IAAIP,EAAsCS,EAAM,OAAOJ,EAAO,OAAOF,EAAK,KAAK;AAAA,MACrG,CAAC;AAAA,IACH,CAAC,GAEDS,EAAY,MAAM;AAChB,MAAAL,EAAU,OAAO,QAAA;AAAA,IACnB,CAAC,GAEDM,EAAMR,GAAQ,CAACS,GAAMC,MAAS;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MAC3BR,EAAU,OAAO,UAAUF,EAAO,KAAK,GACvCE,EAAU,OAAO,OAAA;AAAA,IAErB,CAAC,GAEDM,EAAMV,GAAM,MAAM;AAChB,MAAAI,EAAU,OAAO,QAAQJ,EAAK,KAAK;AAAA,IACrC,CAAC,GAEDc,EAAa;AAAA,MACX,WAAAV;AAAA,IAAA,CACD,mBAQCW,EAA6C,OAAA;AAAA,eAApC;AAAA,MAAJ,KAAIT;AAAA,MAAQ,6BAAA;AAAA,IAAA;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@unovis/ts"),r=require("../../utils/props.cjs"),d=p.LeafletMap.selectors,y=e.defineComponent({__name:"index",props:{width:{},height:{},flyToDuration:{},fitViewPadding:{},zoomDuration:{},initialBounds:{},fitBoundsOnUpdate:{},fitViewOnInit:{type:Boolean},fitViewOnUpdate:{type:Boolean},style:{},styleDarkTheme:{},accessToken:{},attribution:{},renderer:{},preserveDrawingBuffer:{type:Boolean},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,String,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(c,{expose:s}){const l=c,n=e.computed(()=>l.data),o=r.useForwardProps(l),t=e.ref(),i=e.ref();return e.onMounted(()=>{e.nextTick(()=>{i.value&&(t.value=new p.LeafletMap(i.value,o.value,n.value))})}),e.onUnmounted(()=>{t.value?.destroy()}),e.watch(o,(u,a)=>{r.arePropsEqual(u,a)||(t.value?.setConfig(o.value),t.value?.render())}),e.watch(n,()=>{t.value?.setData(n.value)}),s({component:t}),(u,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:i,"data-vis-leaflet-map":""},null,512))}});exports.VisLeafletMapSelectors=d;exports.default=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum extends GenericDataRecord\">\n// !!! This code was automatically generated. You should not change it !!!\nimport {
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum extends GenericDataRecord\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { GenericDataRecord, LeafletMapConfigInterface } from '@unovis/ts'\nimport { LeafletMap } from '@unovis/ts'\nimport { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\n// data and required props\ntype Props = LeafletMapConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => props.data)\n// config\nconst config = useForwardProps(props)\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\nonUnmounted(() => {\n component.value?.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\n }\n})\n\nwatch(data, () => {\n component.value?.setData(data.value)\n})\n\ndefineExpose({\n component,\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisLeafletMapSelectors = LeafletMap.selectors\n</script>\n\n<template>\n <div ref=\"elRef\" data-vis-leaflet-map />\n</template>\n\n<style>\n [data-vis-leaflet-map] {\n display:block;\n position:relative;\n }\n</style>\n"],"names":["VisLeafletMapSelectors","LeafletMap","props","__props","data","computed","config","useForwardProps","component","ref","elRef","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_createElementBlock"],"mappings":"8LA+CaA,EAAyBC,EAAAA,WAAW,67CAtCjD,MAAMC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMH,EAAM,IAAI,EAEhCI,EAASC,EAAAA,gBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAA,EACZC,EAAQD,EAAAA,IAAA,EAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACTF,EAAM,QACRF,EAAU,MAAQ,IAAIP,EAAAA,WAAkBS,EAAM,MAAOJ,EAAO,MAAOF,EAAK,KAAK,EACjF,CAAC,CACH,CAAC,EAEDS,EAAAA,YAAY,IAAM,CAChBL,EAAU,OAAO,QAAA,CACnB,CAAC,EAEDM,EAAAA,MAAMR,EAAQ,CAACS,EAAMC,IAAS,CACvBC,EAAAA,cAAcF,EAAMC,CAAI,IAC3BR,EAAU,OAAO,UAAUF,EAAO,KAAK,EACvCE,EAAU,OAAO,OAAA,EAErB,CAAC,EAEDM,EAAAA,MAAMV,EAAM,IAAM,CAChBI,EAAU,OAAO,QAAQJ,EAAK,KAAK,CACrC,CAAC,EAEDc,EAAa,CACX,UAAAV,CAAA,CACD,wBAQCW,EAAAA,mBAAwC,MAAA,SAA/B,QAAJ,IAAIT,EAAQ,uBAAA,EAAA"}
|
|
@@ -1,106 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
slots: any;
|
|
7
|
-
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
8
|
-
props: {
|
|
9
|
-
duration?: number;
|
|
10
|
-
events?: {
|
|
11
|
-
[selector: string]: {
|
|
12
|
-
touchstart?: import("@unovis/ts").VisEventCallback<any>;
|
|
13
|
-
touchmove?: import("@unovis/ts").VisEventCallback<any>;
|
|
14
|
-
touchend?: import("@unovis/ts").VisEventCallback<any>;
|
|
15
|
-
mouseover?: import("@unovis/ts").VisEventCallback<any>;
|
|
16
|
-
mousemove?: import("@unovis/ts").VisEventCallback<any>;
|
|
17
|
-
mousedown?: import("@unovis/ts").VisEventCallback<any>;
|
|
18
|
-
mouseup?: import("@unovis/ts").VisEventCallback<any>;
|
|
19
|
-
click?: import("@unovis/ts").VisEventCallback<any>;
|
|
20
|
-
auxclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
21
|
-
contextmenu?: import("@unovis/ts").VisEventCallback<any>;
|
|
22
|
-
dblclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
23
|
-
mouseenter?: import("@unovis/ts").VisEventCallback<any>;
|
|
24
|
-
mouseleave?: import("@unovis/ts").VisEventCallback<any>;
|
|
25
|
-
mouseout?: import("@unovis/ts").VisEventCallback<any>;
|
|
26
|
-
scroll?: import("@unovis/ts").VisEventCallback<any>;
|
|
27
|
-
select?: import("@unovis/ts").VisEventCallback<any>;
|
|
28
|
-
wheel?: import("@unovis/ts").VisEventCallback<any>;
|
|
29
|
-
pointerdown?: import("@unovis/ts").VisEventCallback<any>;
|
|
30
|
-
pointerup?: import("@unovis/ts").VisEventCallback<any>;
|
|
31
|
-
pointerout?: import("@unovis/ts").VisEventCallback<any>;
|
|
32
|
-
pointermove?: import("@unovis/ts").VisEventCallback<any>;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
attributes?: {
|
|
36
|
-
[selector: string]: {
|
|
37
|
-
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
38
|
-
};
|
|
39
|
-
};
|
|
1
|
+
import { GenericDataRecord, LeafletMapConfigInterface, LeafletMap } from '@unovis/ts';
|
|
2
|
+
|
|
3
|
+
export declare const VisLeafletMapSelectors: typeof import("@unovis/ts/components/leaflet-map/style");
|
|
4
|
+
declare const _default: <Datum extends GenericDataRecord>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & (LeafletMapConfigInterface<Datum> & {
|
|
40
6
|
data?: Datum[];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
zoomDuration?: number;
|
|
45
|
-
pointColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
46
|
-
pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
47
|
-
pointCursor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
48
|
-
pointLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
49
|
-
pointId?: import("@unovis/ts").StringAccessor<Datum>;
|
|
50
|
-
clusterLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
51
|
-
clusterLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
52
|
-
height?: string | number;
|
|
53
|
-
ariaLabel?: string;
|
|
54
|
-
flyToDuration?: number;
|
|
55
|
-
initialBounds?: import("@unovis/ts").Bounds;
|
|
56
|
-
fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
|
|
57
|
-
fitViewOnInit?: boolean;
|
|
58
|
-
fitViewOnUpdate?: boolean;
|
|
59
|
-
styleDarkTheme?: string | import("maplibre-gl").StyleSpecification;
|
|
60
|
-
accessToken?: string;
|
|
61
|
-
attribution?: string[];
|
|
62
|
-
renderer?: string;
|
|
63
|
-
onMapInitialized?: () => void;
|
|
64
|
-
onMapMoveZoom?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
65
|
-
onMapMoveStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
66
|
-
onMapMoveEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
67
|
-
onMapZoomStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
68
|
-
onMapZoomEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
69
|
-
onMapClick?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
70
|
-
pointLongitude?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
71
|
-
pointLatitude?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
72
|
-
pointShape?: import("@unovis/ts").GenericAccessor<string, Datum>;
|
|
73
|
-
pointLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
74
|
-
pointBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
75
|
-
pointRingWidth?: number;
|
|
76
|
-
selectedPointId?: string;
|
|
77
|
-
clusterColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
78
|
-
clusterRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
79
|
-
clusterBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
80
|
-
clusterRingWidth?: number;
|
|
81
|
-
clusterBackground?: boolean;
|
|
82
|
-
clusterExpandOnClick?: boolean;
|
|
83
|
-
clusteringDistance?: number;
|
|
84
|
-
colorMap?: import("@unovis/ts").LeafletMapPointStyles<Datum>;
|
|
85
|
-
topoJSONLayer?: {
|
|
86
|
-
sources: any;
|
|
87
|
-
featureName?: string;
|
|
88
|
-
fillProperty?: string;
|
|
89
|
-
strokeProperty?: string;
|
|
90
|
-
fillOpacity?: number;
|
|
91
|
-
strokeOpacity?: number;
|
|
92
|
-
strokeWidth?: number;
|
|
93
|
-
};
|
|
94
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
95
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
96
|
-
component: import("vue").Ref<LeafletMap<Datum>, LeafletMap<Datum>>;
|
|
7
|
+
}), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
8
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
9
|
+
component: import('vue').Ref<LeafletMap<Datum>, LeafletMap<Datum>>;
|
|
97
10
|
}>): void;
|
|
98
11
|
attrs: any;
|
|
99
|
-
slots: {}
|
|
100
|
-
emit:
|
|
101
|
-
}>) => import(
|
|
12
|
+
slots: ReturnType<() => {}>;
|
|
13
|
+
emit: typeof __VLS_emit;
|
|
14
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
102
15
|
[key: string]: any;
|
|
103
16
|
}> & {
|
|
104
|
-
__ctx?:
|
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
105
18
|
};
|
|
106
19
|
export default _default;
|