@unovis/vue 1.3.0-alpha.2 → 1.3.0-alpha.4
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/components/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +54 -5
- package/components/area/index.js +18 -16
- 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 +72 -5
- package/components/axis/index.js +18 -16
- package/components/axis/index.js.map +1 -1
- package/components/brush/index.cjs +1 -1
- package/components/brush/index.cjs.map +1 -1
- package/components/brush/index.d.ts +58 -5
- package/components/brush/index.js +17 -15
- 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 +56 -5
- package/components/chord-diagram/index.js +18 -16
- 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 +57 -5
- package/components/crosshair/index.js +18 -16
- 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 +58 -5
- package/components/donut/index.js +17 -15
- 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 +58 -5
- package/components/free-brush/index.js +18 -16
- 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 +107 -5
- package/components/graph/index.js +18 -16
- 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 +58 -5
- package/components/grouped-bar/index.js +18 -16
- package/components/grouped-bar/index.js.map +1 -1
- package/components/line/index.cjs +1 -1
- package/components/line/index.cjs.map +1 -1
- package/components/line/index.d.ts +55 -5
- package/components/line/index.js +18 -16
- 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 +60 -5
- package/components/nested-donut/index.js +18 -16
- package/components/nested-donut/index.js.map +1 -1
- package/components/sankey/index.cjs +1 -1
- package/components/sankey/index.cjs.map +1 -1
- package/components/sankey/index.d.ts +91 -5
- package/components/sankey/index.js +18 -16
- 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 +61 -5
- package/components/scatter/index.js +17 -15
- 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 +58 -5
- package/components/stacked-bar/index.js +18 -16
- 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 +56 -12
- package/components/timeline/index.js +18 -16
- 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 +4 -1
- package/components/tooltip/index.js +18 -16
- 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 +74 -5
- package/components/topojson-map/index.js +18 -16
- package/components/topojson-map/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 +62 -5
- package/components/xy-labels/index.js +18 -16
- package/components/xy-labels/index.js.map +1 -1
- package/containers/single-container/index.cjs +1 -1
- package/containers/single-container/index.cjs.map +1 -1
- package/containers/single-container/index.d.ts +23 -6
- package/containers/single-container/index.js +27 -31
- 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 +40 -6
- package/containers/xy-container/index.js +33 -41
- package/containers/xy-container/index.js.map +1 -1
- 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 +10 -2
- package/html-components/bullet-legend/index.js +17 -14
- package/html-components/bullet-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 +108 -5
- package/html-components/leaflet-flow-map/index.js +17 -15
- 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 +95 -5
- package/html-components/leaflet-map/index.js +17 -15
- package/html-components/leaflet-map/index.js.map +1 -1
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +6 -5
- package/utils/props.cjs +1 -1
- package/utils/props.cjs.map +1 -1
- package/utils/props.js +10 -9
- package/utils/props.js.map +1 -1
|
@@ -1,12 +1,115 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?:
|
|
3
|
-
|
|
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
|
-
|
|
43
|
+
tooltip?: import("@unovis/ts").Tooltip;
|
|
44
|
+
zoomDuration?: number;
|
|
45
|
+
pointColor?: import("@unovis/ts").ColorAccessor<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<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: {
|
|
111
|
+
component: import("vue").Ref<LeafletFlowMap<PointDatum, FlowDatum>>;
|
|
112
|
+
}): void;
|
|
10
113
|
attrs: any;
|
|
11
114
|
slots: {};
|
|
12
115
|
emit: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { LeafletFlowMap as
|
|
3
|
-
import { parseProps as
|
|
4
|
-
const
|
|
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({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
sourceLongitude: { type: [Function, Number, null] },
|
|
@@ -68,19 +68,21 @@ const w = /* @__PURE__ */ y({
|
|
|
68
68
|
attributes: {},
|
|
69
69
|
data: {}
|
|
70
70
|
},
|
|
71
|
-
setup(c) {
|
|
72
|
-
const i = c,
|
|
73
|
-
return
|
|
74
|
-
|
|
75
|
-
o.value && (
|
|
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));
|
|
76
76
|
});
|
|
77
|
-
}),
|
|
77
|
+
}), g(() => {
|
|
78
78
|
var t;
|
|
79
|
-
(t =
|
|
80
|
-
}),
|
|
79
|
+
(t = n.value) == null || t.destroy();
|
|
80
|
+
}), b(e, (t, u) => {
|
|
81
81
|
var l;
|
|
82
|
-
|
|
83
|
-
}), (
|
|
82
|
+
C(t, u) || (l = n.value) == null || l.setConfig(e.value);
|
|
83
|
+
}), p({
|
|
84
|
+
component: n
|
|
85
|
+
}), (t, u) => (S(), L("div", {
|
|
84
86
|
"data-vis-leaflet-flow-map": "",
|
|
85
87
|
ref_key: "elRef",
|
|
86
88
|
ref: o
|
|
@@ -88,6 +90,6 @@ const w = /* @__PURE__ */ y({
|
|
|
88
90
|
}
|
|
89
91
|
});
|
|
90
92
|
export {
|
|
91
|
-
|
|
93
|
+
B as default
|
|
92
94
|
};
|
|
93
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) {\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
|
|
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,EA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,EAAM,OAAOJ,EAAO,OAAOJ,EAAK,KAAK;AAAA,MAAA,CAGlG;AAAA,IAAA,CACF,GAEDY,EAAY,MAAM;;AAChB,OAAAC,IAAAP,EAAU,UAAV,QAAAO,EAAiB;AAAA,IAAQ,CAE1B,GAEKC,EAAAV,GAAQ,CAACW,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAP,EAAA,UAAA,QAAAO,EAAO,UAAUT,EAAO;AAAA,IACpC,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,2 +1,2 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),
|
|
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;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-map/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<LeafletMap<Datum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletMap<Datum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/html-components/leaflet-map/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any, { 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<LeafletMap<Datum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletMap<Datum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-leaflet-map\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","LeafletMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"+FAU4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,OAAQ,CAAC,EACT,cAAe,CAAC,EAChB,eAAgB,CAAC,EACjB,aAAc,CAAC,EACf,cAAe,CAAC,EAChB,kBAAmB,CAAC,EACpB,cAAe,CAAE,KAAM,OAAQ,EAC/B,gBAAiB,CAAE,KAAM,OAAQ,EACjC,MAAO,CAAC,EACR,eAAgB,CAAC,EACjB,YAAa,CAAC,EACd,YAAa,CAAC,EACd,SAAU,CAAC,EACX,iBAAkB,CAAE,KAAM,QAAS,EACnC,cAAe,CAAE,KAAM,QAAS,EAChC,eAAgB,CAAE,KAAM,QAAS,EACjC,aAAc,CAAE,KAAM,QAAS,EAC/B,eAAgB,CAAE,KAAM,QAAS,EACjC,aAAc,CAAE,KAAM,QAAS,EAC/B,WAAY,CAAE,KAAM,QAAS,EAC7B,eAAgB,CAAE,KAAM,CAAC,SAAU,OA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qBACXC,EAASH,WAAS,IAAMI,EAAA,WAAW,CAAE,GAAGN,CAAS,EAAAG,CAAQ,CAAC,EAG1DI,EAAYC,EAAAA,MACZC,EAAQD,EAAAA,MAEdE,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACVF,EAAM,QACCF,EAAA,MAAQ,IAAIK,EAAAA,WAAkBH,EAAM,MAAOJ,EAAO,MAAOJ,EAAK,KAAK,EAAA,CAG9E,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,uBAAwB,GACxB,QAAS,QACT,IAAKb,CAAA,EACJ,KAAM,GAAG,EAEd,CAEA,CAAC"}
|
|
@@ -1,9 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: <Datum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?:
|
|
3
|
-
|
|
1
|
+
import { LeafletMap, GenericDataRecord } from '@unovis/ts';
|
|
2
|
+
declare const _default: <Datum 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?: Datum[];
|
|
5
|
-
|
|
6
|
-
|
|
40
|
+
tooltip?: import("@unovis/ts").Tooltip;
|
|
41
|
+
zoomDuration?: number;
|
|
42
|
+
pointColor?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
43
|
+
pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
44
|
+
pointCursor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
45
|
+
pointLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
46
|
+
pointId?: import("@unovis/ts").StringAccessor<Datum>;
|
|
47
|
+
clusterLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
48
|
+
clusterLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
49
|
+
width?: string | number;
|
|
50
|
+
height?: string | number;
|
|
51
|
+
ariaLabel?: string;
|
|
52
|
+
flyToDuration?: number;
|
|
53
|
+
fitViewPadding?: [number, number];
|
|
54
|
+
initialBounds?: import("@unovis/ts").Bounds;
|
|
55
|
+
fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
|
|
56
|
+
fitViewOnInit?: boolean;
|
|
57
|
+
fitViewOnUpdate?: boolean;
|
|
58
|
+
styleDarkTheme?: string | import("maplibre-gl").StyleSpecification;
|
|
59
|
+
accessToken?: string;
|
|
60
|
+
attribution?: string[];
|
|
61
|
+
renderer?: string;
|
|
62
|
+
onMapInitialized?: () => void;
|
|
63
|
+
onMapMoveZoom?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
64
|
+
onMapMoveStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
65
|
+
onMapMoveEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
66
|
+
onMapZoomStart?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
67
|
+
onMapZoomEnd?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
68
|
+
onMapClick?: ({ mapCenter, zoomLevel, bounds }: import("@unovis/ts").MapZoomState) => void;
|
|
69
|
+
pointLongitude?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
70
|
+
pointLatitude?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
71
|
+
pointShape?: import("@unovis/ts").GenericAccessor<string, Datum>;
|
|
72
|
+
pointLabelColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
73
|
+
pointBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
74
|
+
pointRingWidth?: number;
|
|
75
|
+
selectedPointId?: string;
|
|
76
|
+
clusterColor?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
77
|
+
clusterRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
78
|
+
clusterBottomLabel?: import("@unovis/ts").StringAccessor<import("@unovis/ts").LeafletMapClusterDatum<Datum>>;
|
|
79
|
+
clusterRingWidth?: number;
|
|
80
|
+
clusterBackground?: boolean;
|
|
81
|
+
clusterExpandOnClick?: boolean;
|
|
82
|
+
clusteringDistance?: number;
|
|
83
|
+
colorMap?: import("@unovis/ts").LeafletMapPointStyles<Datum>;
|
|
84
|
+
topoJSONLayer?: {
|
|
85
|
+
sources: any;
|
|
86
|
+
featureName?: string;
|
|
87
|
+
fillProperty?: string;
|
|
88
|
+
strokeProperty?: string;
|
|
89
|
+
fillOpacity?: number;
|
|
90
|
+
strokeOpacity?: number;
|
|
91
|
+
strokeWidth?: number;
|
|
92
|
+
};
|
|
93
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
94
|
+
expose(exposed: {
|
|
95
|
+
component: import("vue").Ref<LeafletMap<Datum>>;
|
|
96
|
+
}): void;
|
|
7
97
|
attrs: any;
|
|
8
98
|
slots: {};
|
|
9
99
|
emit: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { LeafletMap as
|
|
3
|
-
import { parseProps as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as y, computed as a, getCurrentInstance as m, ref as r, onMounted as f, nextTick as F, onUnmounted as g, watch as v, openBlock as S, createElementBlock as b } from "vue";
|
|
2
|
+
import { LeafletMap as M } from "@unovis/ts";
|
|
3
|
+
import { parseProps as B, arePropsEqual as L } from "../../utils/props.js";
|
|
4
|
+
const _ = /* @__PURE__ */ y({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
width: {},
|
|
@@ -55,19 +55,21 @@ const k = /* @__PURE__ */ d({
|
|
|
55
55
|
attributes: {},
|
|
56
56
|
data: {}
|
|
57
57
|
},
|
|
58
|
-
setup(p) {
|
|
59
|
-
const i = p,
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
o.value && (
|
|
58
|
+
setup(p, { expose: c }) {
|
|
59
|
+
const i = p, s = a(() => i.data), d = m(), e = a(() => B({ ...i }, d)), n = r(), o = r();
|
|
60
|
+
return f(() => {
|
|
61
|
+
F(() => {
|
|
62
|
+
o.value && (n.value = new M(o.value, e.value, s.value));
|
|
63
63
|
});
|
|
64
|
-
}),
|
|
64
|
+
}), g(() => {
|
|
65
65
|
var t;
|
|
66
|
-
(t =
|
|
67
|
-
}),
|
|
66
|
+
(t = n.value) == null || t.destroy();
|
|
67
|
+
}), v(e, (t, l) => {
|
|
68
68
|
var u;
|
|
69
|
-
|
|
70
|
-
}), (
|
|
69
|
+
L(t, l) || (u = n.value) == null || u.setConfig(e.value);
|
|
70
|
+
}), c({
|
|
71
|
+
component: n
|
|
72
|
+
}), (t, l) => (S(), b("div", {
|
|
71
73
|
"data-vis-leaflet-map": "",
|
|
72
74
|
ref_key: "elRef",
|
|
73
75
|
ref: o
|
|
@@ -75,6 +77,6 @@ const k = /* @__PURE__ */ d({
|
|
|
75
77
|
}
|
|
76
78
|
});
|
|
77
79
|
export {
|
|
78
|
-
|
|
80
|
+
_ as default
|
|
79
81
|
};
|
|
80
82
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-map/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\n\nconst data = computed(() => props.data)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<LeafletMap<Datum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletMap<Datum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/html-components/leaflet-map/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { LeafletMap, LeafletMapConfigInterface, GenericDataRecord, MapLibreStyleSpecs } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\n\n\n// data and required props\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n width: {},\n height: {},\n flyToDuration: {},\n fitViewPadding: {},\n zoomDuration: {},\n initialBounds: {},\n fitBoundsOnUpdate: {},\n fitViewOnInit: { type: Boolean },\n fitViewOnUpdate: { type: Boolean },\n style: {},\n styleDarkTheme: {},\n accessToken: {},\n attribution: {},\n renderer: {},\n onMapInitialized: { type: Function },\n onMapMoveZoom: { type: Function },\n onMapMoveStart: { type: Function },\n onMapMoveEnd: { type: Function },\n onMapZoomStart: { type: Function },\n onMapZoomEnd: { type: Function },\n onMapClick: { type: Function },\n pointLongitude: { type: [Function, Number, null] },\n pointLatitude: { type: [Function, Number, null] },\n pointId: { type: [Function, String, null] },\n pointShape: { type: [Function, null] },\n pointColor: { type: [Function, String, Array, null] },\n pointRadius: { type: [Function, Number, null] },\n pointLabel: { type: [Function, String, null] },\n pointLabelColor: { type: [Function, String, null] },\n pointBottomLabel: { type: [Function, String, null] },\n pointCursor: { type: [Function, String, null] },\n pointRingWidth: {},\n selectedPointId: {},\n clusterColor: { type: [Function, String, Array, null] },\n clusterRadius: { type: [Function, Number, null] },\n clusterLabel: { type: [Function, String, null] },\n clusterLabelColor: { type: [Function, String, null] },\n clusterBottomLabel: { type: [Function, String, null] },\n clusterRingWidth: {},\n clusterBackground: { type: Boolean },\n clusterExpandOnClick: { type: Boolean },\n clusteringDistance: {},\n colorMap: {},\n topoJSONLayer: {},\n tooltip: {},\n ariaLabel: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any, { 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<LeafletMap<Datum>>()\nconst elRef = ref<HTMLDivElement>()\n\nonMounted(() => {\n nextTick(() => {\n if(elRef.value)\n component.value = new LeafletMap<Datum>(elRef.value, config.value, data.value)\n \n \n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n \n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n }\n})\n\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-leaflet-map\": \"\",\n ref_key: \"elRef\",\n ref: elRef\n }, null, 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","elRef","onMounted","nextTick","LeafletMap","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","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MAAM;;AAChB,OAAAC,IAAAP,EAAU,UAAV,QAAAO,EAAiB;AAAA,IAAQ,CAE1B,GAEKC,EAAAV,GAAQ,CAACW,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAP,EAAA,UAAA,QAAAO,EAAO,UAAUT,EAAO;AAAA,IACpC,CACD,GAEQN,EAAA;AAAA,MACP,WAAAQ;AAAA,IAAA,CACD,GAEM,CAACY,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,wBAAwB;AAAA,MACxB,SAAS;AAAA,MACT,KAAKb;AAAA,IAAA,GACJ,MAAM,GAAG;AAAA,EAEd;AAEA,CAAC;"}
|
package/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./containers/xy-container/index.cjs");require("./containers/xy-container/index2.cjs");const _=require("./containers/single-container/index.cjs");require("./containers/single-container/index2.cjs");const t=require("./components/line/index.cjs"),u=require("./components/area/index.cjs"),r=require("./components/axis/index.cjs"),i=require("./components/brush/index.cjs"),s=require("./components/free-brush/index.cjs"),n=require("./components/crosshair/index.cjs"),p=require("./components/grouped-bar/index.cjs"),c=require("./components/scatter/index.cjs"),v=require("./components/stacked-bar/index.cjs"),a=require("./components/timeline/index.cjs"),o=require("./components/xy-labels/index.cjs"),l=require("./components/donut/index.cjs"),d=require("./components/topojson-map/index.cjs"),g=require("./components/sankey/index.cjs"),q=require("./components/graph/index.cjs"),y=require("./components/chord-diagram/index.cjs"),x=require("./components/nested-donut/index.cjs"),V=require("./components/tooltip/index.cjs"),$=require("./html-components/leaflet-map/index.cjs");require("./html-components/leaflet-map/index2.cjs");const S=require("./html-components/leaflet-flow-map/index.cjs");require("./html-components/leaflet-flow-map/index2.cjs");const h=require("./html-components/bullet-legend/index.cjs");require("./html-components/bullet-legend/index2.cjs");exports.VisXYContainer=e;exports.VisSingleContainer=_;exports.VisLine=t;exports.VisArea=u;exports.VisAxis=r;exports.VisBrush=i;exports.VisFreeBrush=s;exports.VisCrosshair=n;exports.VisGroupedBar=p;exports.VisScatter=c;exports.VisStackedBar=v;exports.VisTimeline=a;exports.VisXYLabels=o;exports.VisDonut=l;exports.VisTopoJSONMap=d;exports.VisSankey=g;exports.VisGraph=q;exports.VisChordDiagram=y;exports.VisNestedDonut=x;exports.VisTooltip=V;exports.VisLeafletMap=$;exports.VisLeafletFlowMap=S;exports.VisBulletLegend=h;
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import { default as i } from "./containers/xy-container/index.js";
|
|
3
3
|
import "./containers/xy-container/index2.js";
|
|
4
4
|
import { default as l } from "./containers/single-container/index.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unovis/vue",
|
|
3
3
|
"description": "Modular data visualization framework for React, Angular, Svelte, Vue, and vanilla TypeScript or JavaScript",
|
|
4
|
-
"version": "1.3.0-alpha.
|
|
4
|
+
"version": "1.3.0-alpha.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/f5/unovis.git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"charts",
|
|
19
19
|
"graphs"
|
|
20
20
|
],
|
|
21
|
-
"author": "
|
|
21
|
+
"author": "Zernonia Kong <zernonia@gmail.com>",
|
|
22
22
|
"maintainers": [
|
|
23
23
|
"Nikita Rokotyan <nikita@f5.com> (https://rokotyan.com)",
|
|
24
24
|
"Rebecca Bol <r.bol@f5.com>"
|
|
@@ -47,10 +47,11 @@
|
|
|
47
47
|
"check": "vue-tsc --noEmit",
|
|
48
48
|
"generate": "rollup -c ./autogen/rollup.config.js; node .autogen.cjs; rm .autogen.cjs",
|
|
49
49
|
"publish:dist": "rm -rf dist/.cache; cp ./{LICENSE,README.md,package.json} ./dist; cd ./dist; npm publish",
|
|
50
|
+
"gallery": "vite build --mode gallery",
|
|
50
51
|
"dev": "vite"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
|
-
"@unovis/ts": "1.3.0-alpha.
|
|
54
|
+
"@unovis/ts": "1.3.0-alpha.4",
|
|
54
55
|
"vue": "^3"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
@@ -58,12 +59,12 @@
|
|
|
58
59
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
59
60
|
"@vitejs/plugin-vue": "^4.3.4",
|
|
60
61
|
"@vue/tsconfig": "^0.4.0",
|
|
62
|
+
"de-indent": "^1.0.2",
|
|
63
|
+
"jju": "^1.4.0",
|
|
61
64
|
"rollup": "^2.61.1",
|
|
62
65
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
63
66
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
64
|
-
"rollup-plugin-vue": "^6.0.0",
|
|
65
67
|
"tslib": "^2.3.1",
|
|
66
|
-
"ttypescript": "^1.5.13",
|
|
67
68
|
"typescript": "~4.2.4",
|
|
68
69
|
"vite": "^4.4.9",
|
|
69
70
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
package/utils/props.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@unovis/ts"),t=require("vue");function a(e,r){return u.isEqual(e,r)}function c(e,r){const o={},s=(r==null?void 0:r.vnode.props)??{};return Object.keys(s).forEach(p=>{o[t.camelize(p)]=s[p]}),o}exports.arePropsEqual=a;exports.parseProps=c;
|
|
2
2
|
//# sourceMappingURL=props.cjs.map
|
package/utils/props.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.cjs","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[key] =
|
|
1
|
+
{"version":3,"file":"props.cjs","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance, camelize } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[camelize(key)] = assignedProps[key]\n })\n return preservedProps\n}\n\n"],"names":["arePropsEqual","prevProps","nextProps","isEqual","parseProps","props","instance","preservedProps","assignedProps","key","camelize"],"mappings":"+HAGgB,SAAAA,EAA0BC,EAAsBC,EAA+B,CACtF,OAAAC,EAAA,QAAQF,EAAWC,CAAS,CACrC,CAGgB,SAAAE,EAA+BC,EAAUC,EAA4C,CACnG,MAAMC,EAAiB,CAAA,EACjBC,GAAgBF,GAAA,YAAAA,EAAU,MAAM,QAAS,CAAA,EAE/C,cAAO,KAAKE,CAAa,EAAE,QAAeC,GAAA,CACxCF,EAAeG,EAAS,SAAAD,CAAG,CAAC,EAAID,EAAcC,CAAG,CAAA,CAClD,EACMF,CACT"}
|
package/utils/props.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { isEqual as
|
|
2
|
-
|
|
3
|
-
return u(o, r);
|
|
4
|
-
}
|
|
1
|
+
import { isEqual as t } from "@unovis/ts";
|
|
2
|
+
import { camelize as u } from "vue";
|
|
5
3
|
function P(o, r) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
return t(o, r);
|
|
5
|
+
}
|
|
6
|
+
function a(o, r) {
|
|
7
|
+
const p = {}, s = (r == null ? void 0 : r.vnode.props) ?? {};
|
|
8
|
+
return Object.keys(s).forEach((e) => {
|
|
9
|
+
p[u(e)] = s[e];
|
|
9
10
|
}), p;
|
|
10
11
|
}
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
P as arePropsEqual,
|
|
14
|
+
a as parseProps
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=props.js.map
|
package/utils/props.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[key] =
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../src/utils/props.ts"],"sourcesContent":["import { isEqual } from '@unovis/ts'\nimport { ComponentInternalInstance, camelize } from 'vue'\n\nexport function arePropsEqual<PropTypes> (prevProps: PropTypes, nextProps: PropTypes): boolean {\n return isEqual(prevProps, nextProps)\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function parseProps <T extends object> (props: T, instance: ComponentInternalInstance | null) {\n const preservedProps = {} as T\n const assignedProps = instance?.vnode.props ?? {}\n\n Object.keys(assignedProps).forEach(key => {\n preservedProps[camelize(key)] = assignedProps[key]\n })\n return preservedProps\n}\n\n"],"names":["arePropsEqual","prevProps","nextProps","isEqual","parseProps","props","instance","preservedProps","assignedProps","key","camelize"],"mappings":";;AAGgB,SAAAA,EAA0BC,GAAsBC,GAA+B;AACtF,SAAAC,EAAQF,GAAWC,CAAS;AACrC;AAGgB,SAAAE,EAA+BC,GAAUC,GAA4C;AACnG,QAAMC,IAAiB,CAAA,GACjBC,KAAgBF,KAAA,gBAAAA,EAAU,MAAM,UAAS,CAAA;AAE/C,gBAAO,KAAKE,CAAa,EAAE,QAAQ,CAAOC,MAAA;AACxC,IAAAF,EAAeG,EAASD,CAAG,CAAC,IAAID,EAAcC,CAAG;AAAA,EAAA,CAClD,GACMF;AACT;"}
|