@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,100 +1,20 @@
|
|
|
1
|
-
import { Tooltip } from '@unovis/ts';
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type: import("vue").PropType<boolean>;
|
|
12
|
-
};
|
|
13
|
-
allowHover: {
|
|
14
|
-
type: import("vue").PropType<boolean>;
|
|
15
|
-
};
|
|
16
|
-
horizontalPlacement: {
|
|
17
|
-
type: import("vue").PropType<string>;
|
|
18
|
-
};
|
|
19
|
-
horizontalShift: {
|
|
20
|
-
type: import("vue").PropType<number>;
|
|
21
|
-
};
|
|
22
|
-
verticalPlacement: {
|
|
23
|
-
type: import("vue").PropType<string>;
|
|
24
|
-
};
|
|
25
|
-
verticalShift: {
|
|
26
|
-
type: import("vue").PropType<number>;
|
|
27
|
-
};
|
|
28
|
-
triggers: {
|
|
29
|
-
type: import("vue").PropType<{
|
|
30
|
-
[selector: string]: (data: any, i: number, elements: (SVGElement | HTMLElement)[]) => string | void | HTMLElement;
|
|
31
|
-
}>;
|
|
32
|
-
};
|
|
33
|
-
attributes: {
|
|
34
|
-
type: import("vue").PropType<{
|
|
35
|
-
[attr: string]: string | number | boolean;
|
|
36
|
-
}>;
|
|
37
|
-
};
|
|
38
|
-
className: {
|
|
39
|
-
type: import("vue").PropType<string>;
|
|
40
|
-
};
|
|
41
|
-
hideDelay: {
|
|
42
|
-
type: import("vue").PropType<number>;
|
|
43
|
-
};
|
|
44
|
-
showDelay: {
|
|
45
|
-
type: import("vue").PropType<number>;
|
|
46
|
-
};
|
|
47
|
-
data: {
|
|
48
|
-
type: import("vue").PropType<never>;
|
|
49
|
-
};
|
|
50
|
-
}>, {
|
|
51
|
-
component: import("vue").Ref<Tooltip, Tooltip>;
|
|
52
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
-
components: {
|
|
54
|
-
type: import("vue").PropType<import("@unovis/ts").ComponentCore<unknown, import("@unovis/ts").ComponentConfigInterface>[]>;
|
|
55
|
-
};
|
|
56
|
-
container: {
|
|
57
|
-
type: import("vue").PropType<HTMLElement>;
|
|
58
|
-
};
|
|
59
|
-
followCursor: {
|
|
60
|
-
type: import("vue").PropType<boolean>;
|
|
61
|
-
};
|
|
62
|
-
allowHover: {
|
|
63
|
-
type: import("vue").PropType<boolean>;
|
|
64
|
-
};
|
|
65
|
-
horizontalPlacement: {
|
|
66
|
-
type: import("vue").PropType<string>;
|
|
67
|
-
};
|
|
68
|
-
horizontalShift: {
|
|
69
|
-
type: import("vue").PropType<number>;
|
|
70
|
-
};
|
|
71
|
-
verticalPlacement: {
|
|
72
|
-
type: import("vue").PropType<string>;
|
|
73
|
-
};
|
|
74
|
-
verticalShift: {
|
|
75
|
-
type: import("vue").PropType<number>;
|
|
76
|
-
};
|
|
77
|
-
triggers: {
|
|
78
|
-
type: import("vue").PropType<{
|
|
79
|
-
[selector: string]: (data: any, i: number, elements: (SVGElement | HTMLElement)[]) => string | void | HTMLElement;
|
|
80
|
-
}>;
|
|
81
|
-
};
|
|
82
|
-
attributes: {
|
|
83
|
-
type: import("vue").PropType<{
|
|
84
|
-
[attr: string]: string | number | boolean;
|
|
85
|
-
}>;
|
|
86
|
-
};
|
|
87
|
-
className: {
|
|
88
|
-
type: import("vue").PropType<string>;
|
|
89
|
-
};
|
|
90
|
-
hideDelay: {
|
|
91
|
-
type: import("vue").PropType<number>;
|
|
92
|
-
};
|
|
93
|
-
showDelay: {
|
|
94
|
-
type: import("vue").PropType<number>;
|
|
95
|
-
};
|
|
96
|
-
data: {
|
|
97
|
-
type: import("vue").PropType<never>;
|
|
98
|
-
};
|
|
99
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
import { TooltipConfigInterface, Tooltip } from '@unovis/ts';
|
|
2
|
+
|
|
3
|
+
export declare const VisTooltipSelectors: typeof import("@unovis/ts/components/tooltip/style");
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TooltipConfigInterface & {
|
|
5
|
+
data?: null;
|
|
6
|
+
}>>, {
|
|
7
|
+
component: import('vue').Ref<Tooltip, Tooltip>;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TooltipConfigInterface & {
|
|
9
|
+
data?: null;
|
|
10
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
100
11
|
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as i, inject as p, ref as m, onMounted as u, nextTick as d, onUnmounted as f, watch as v,
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const g = { "data-vis-tooltip": "" },
|
|
1
|
+
import { defineComponent as i, inject as p, ref as m, onMounted as u, nextTick as d, onUnmounted as f, watch as v, openBlock as h, createElementBlock as _ } from "vue";
|
|
2
|
+
import { Tooltip as a } from "@unovis/ts";
|
|
3
|
+
import { tooltipAccessorKey as y } from "../../utils/context.js";
|
|
4
|
+
import { useForwardProps as w, arePropsEqual as x } from "../../utils/props.js";
|
|
5
|
+
const g = { "data-vis-tooltip": "" }, S = a.selectors, T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
components: {},
|
|
@@ -20,25 +20,23 @@ const g = { "data-vis-tooltip": "" }, T = s.selectors, z = /* @__PURE__ */ i({
|
|
|
20
20
|
showDelay: {},
|
|
21
21
|
data: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
23
|
+
setup(s, { expose: l }) {
|
|
24
|
+
const c = s, t = p(y), o = w(c), e = m();
|
|
25
25
|
return u(() => {
|
|
26
26
|
d(() => {
|
|
27
|
-
|
|
27
|
+
e.value = new a(o.value), t.update(e.value);
|
|
28
28
|
});
|
|
29
29
|
}), f(() => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var a;
|
|
34
|
-
w(e, n) || (a = o.value) == null || a.setConfig(t.value);
|
|
30
|
+
e.value?.destroy(), t.destroy();
|
|
31
|
+
}), v(o, (r, n) => {
|
|
32
|
+
x(r, n) || (e.value?.setConfig(o.value), e.value?.render());
|
|
35
33
|
}), l({
|
|
36
|
-
component:
|
|
37
|
-
}), (
|
|
34
|
+
component: e
|
|
35
|
+
}), (r, n) => (h(), _("div", g));
|
|
38
36
|
}
|
|
39
37
|
});
|
|
40
38
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
S as VisTooltipSelectors,
|
|
40
|
+
T as default
|
|
43
41
|
};
|
|
44
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/tooltip/index.vue"],"sourcesContent":["<script setup lang=\"ts\"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/tooltip/index.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { TooltipConfigInterface } from '@unovis/ts'\nimport { Tooltip } from '@unovis/ts'\nimport { inject, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { tooltipAccessorKey } from '../../utils/context'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\nconst props = defineProps<Props & { data?: null }>()\n\nconst accessor = inject(tooltipAccessorKey)\n\n// data and required props\ntype Props = TooltipConfigInterface\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Tooltip>()\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Tooltip(config.value)\n\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n component.value?.render()\n }\n})\n\ndefineExpose({\n component,\n})\n</script>\n\n<script lang=\"ts\">\nexport const VisTooltipSelectors = Tooltip.selectors\n</script>\n\n<template>\n <div data-vis-tooltip />\n</template>\n"],"names":["VisTooltipSelectors","Tooltip","props","__props","accessor","inject","tooltipAccessorKey","config","useForwardProps","component","ref","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_openBlock","_createElementBlock","_hoisted_1"],"mappings":";;;;sCA8CaA,IAAsBC,EAAQ;;;;;;;;;;;;;;;;;;;AAtC3C,UAAMC,IAAQC,GAERC,IAAWC,EAAOC,CAAkB,GAKpCC,IAASC,EAAgBN,CAAK,GAG9BO,IAAYC,EAAA;AAElB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAAH,EAAU,QAAQ,IAAIR,EAAQM,EAAO,KAAK,GAE1CH,EAAS,OAAOK,EAAU,KAAK;AAAA,MACjC,CAAC;AAAA,IACH,CAAC,GAEDI,EAAY,MAAM;AAChB,MAAAJ,EAAU,OAAO,QAAA,GACjBL,EAAS,QAAA;AAAA,IACX,CAAC,GAEDU,EAAMP,GAAQ,CAACQ,GAAMC,MAAS;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MAC3BP,EAAU,OAAO,UAAUF,EAAO,KAAK,GACvCE,EAAU,OAAO,OAAA;AAAA,IAErB,CAAC,GAEDS,EAAa;AAAA,MACX,WAAAT;AAAA,IAAA,CACD,cAQCU,EAAA,GAAAC,EAAwB,OAAxBC,CAAwB;AAAA;;"}
|
|
@@ -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"),y=require("../../utils/context.cjs"),a=require("../../utils/props.cjs"),d={"data-vis-component":""},F=c.TopoJSONMap.selectors,m=t.defineComponent({__name:"index",props:{projection:{type:[Function,Object]},topojson:{},mapFeatureName:{},mapFitToPoints:{type:Boolean},zoomFactor:{},zoomToLocation:{},disableZoom:{type:Boolean},zoomExtent:{},zoomDuration:{},linkWidth:{type:[Function,Number,null]},linkColor:{type:[Function,String,Array,null]},linkCursor:{type:[Function,String,null]},linkId:{type:[Function,String,null]},linkSource:{type:Function},linkTarget:{type:Function},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]},enableFlowAnimation:{type:Boolean},onSourcePointClick:{type:Function},onSourcePointMouseEnter:{type:Function},onSourcePointMouseLeave:{type:Function},areaId:{type:[Function,String,null]},areaColor:{type:[Function,String,Array,null]},areaCursor:{type:[Function,String,null]},areaLabel:{type:[Function,String,null]},pointColor:{type:[Function,String,Array,null]},pointRadius:{type:[Function,Number,null]},pointStrokeWidth:{type:[Function,Number,null]},pointShape:{type:[Function,String,null]},pointRingWidth:{type:[Function,Number,null]},pointCursor:{type:[Function,String,null]},longitude:{type:[Function,Number,null]},latitude:{type:[Function,Number,null]},pointLabel:{type:[Function,String,null]},pointLabelColor:{type:[Function,String,Array,null]},pointLabelPosition:{},pointBottomLabel:{type:[Function,String,null]},pointLabelTextBrightnessRatio:{},pointId:{type:Function},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:{},clustering:{type:Boolean},heatmapMode:{type:Boolean},heatmapModeBlurStdDeviation:{},heatmapModeZoomLevelThreshold:{},colorMap:{},duration:{},events:{},attributes:{},data:{}},setup(p,{expose:s}){const l=p,e=t.inject(y.componentAccessorKey),o=t.computed(()=>e.data.value??l.data),u=a.useForwardProps(l),n=t.ref();return t.onMounted(()=>{t.nextTick(()=>{n.value=new c.TopoJSONMap(u.value),n.value?.setData(o.value),e.update(n.value)})}),t.onUnmounted(()=>{n.value?.destroy(),e.destroy()}),t.watch(u,(i,r)=>{a.arePropsEqual(i,r)||(n.value?.setConfig(u.value),n.value?.render())}),t.watch(o,()=>{n.value?.setData(o.value)}),s({component:n}),(i,r)=>(t.openBlock(),t.createElementBlock("div",d))}});exports.VisTopoJSONMapSelectors=F;exports.default=m;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/topojson-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"AreaDatum,PointDatum,LinkDatum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport {
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/topojson-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"AreaDatum, PointDatum, LinkDatum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { TopoJSONMapConfigInterface } from '@unovis/ts'\nimport { TopoJSONMap } from '@unovis/ts'\nimport { computed, inject, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { componentAccessorKey } from '../../utils/context'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\nconst props = defineProps<Props & { data?: { areas?: AreaDatum[], points?: PointDatum[], links?: LinkDatum[] } }>()\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\ntype Props = TopoJSONMapConfigInterface<AreaDatum, PointDatum, LinkDatum>\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<TopoJSONMap<AreaDatum, PointDatum, LinkDatum>>()\n\nonMounted(() => {\n nextTick(() => {\n component.value = new TopoJSONMap<AreaDatum, PointDatum, LinkDatum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n 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 VisTopoJSONMapSelectors = TopoJSONMap.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n"],"names":["VisTopoJSONMapSelectors","TopoJSONMap","props","__props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_openBlock","_createElementBlock","_hoisted_1"],"mappings":"+PAmDaA,EAA0BC,EAAAA,YAAY,kzEA3CnD,MAAMC,EAAQC,EAERC,EAAWC,EAAAA,OAAOC,sBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,OAASF,EAAM,IAAI,EAEvDO,EAASC,EAAAA,gBAAgBR,CAAK,EAG9BS,EAAYC,EAAAA,IAAA,EAElBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACbH,EAAU,MAAQ,IAAIV,cAA8CQ,EAAO,KAAK,EAChFE,EAAU,OAAO,QAAQJ,EAAK,KAAK,EACnCH,EAAS,OAAOO,EAAU,KAAK,CACjC,CAAC,CACH,CAAC,EAEDI,EAAAA,YAAY,IAAM,CAChBJ,EAAU,OAAO,QAAA,EACjBP,EAAS,QAAA,CACX,CAAC,EAEDY,EAAAA,MAAMP,EAAQ,CAACQ,EAAMC,IAAS,CACvBC,EAAAA,cAAcF,EAAMC,CAAI,IAC3BP,EAAU,OAAO,UAAUF,EAAO,KAAK,EACvCE,EAAU,OAAO,OAAA,EAErB,CAAC,EAEDK,EAAAA,MAAMT,EAAM,IAAM,CAChBI,EAAU,OAAO,QAAQJ,EAAK,KAAK,CACrC,CAAC,EAEDa,EAAa,CACX,UAAAT,CAAA,CACD,UAQCU,YAAA,EAAAC,qBAA0B,MAA1BC,CAA0B"}
|
|
@@ -1,89 +1,23 @@
|
|
|
1
|
-
import { TopoJSONMap } from '@unovis/ts';
|
|
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 { TopoJSONMapConfigInterface, TopoJSONMap } from '@unovis/ts';
|
|
2
|
+
|
|
3
|
+
export declare const VisTopoJSONMapSelectors: typeof import("@unovis/ts/components/topojson-map/style");
|
|
4
|
+
declare const _default: <AreaDatum, PointDatum, LinkDatum>(__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>) & (TopoJSONMapConfigInterface<AreaDatum, PointDatum, LinkDatum> & {
|
|
40
6
|
data?: {
|
|
41
7
|
areas?: AreaDatum[];
|
|
42
8
|
points?: PointDatum[];
|
|
43
9
|
links?: LinkDatum[];
|
|
44
10
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
zoomExtent?: number[];
|
|
49
|
-
linkCursor?: import("@unovis/ts").StringAccessor<LinkDatum>;
|
|
50
|
-
projection?: import("d3-geo").GeoProjection;
|
|
51
|
-
topojson?: import("topojson-specification").Topology<import("topojson-specification").Objects<{
|
|
52
|
-
[name: string]: any;
|
|
53
|
-
}>>;
|
|
54
|
-
mapFeatureName?: string;
|
|
55
|
-
mapFitToPoints?: boolean;
|
|
56
|
-
zoomFactor?: number;
|
|
57
|
-
zoomDuration?: number;
|
|
58
|
-
linkId?: import("@unovis/ts").StringAccessor<LinkDatum>;
|
|
59
|
-
linkSource?: (l: LinkDatum) => string | number | PointDatum;
|
|
60
|
-
linkTarget?: (l: LinkDatum) => string | number | PointDatum;
|
|
61
|
-
areaId?: import("@unovis/ts").StringAccessor<AreaDatum>;
|
|
62
|
-
areaColor?: import("@unovis/ts").ColorAccessor<AreaDatum>;
|
|
63
|
-
areaCursor?: import("@unovis/ts").StringAccessor<AreaDatum>;
|
|
64
|
-
pointColor?: import("@unovis/ts").ColorAccessor<PointDatum>;
|
|
65
|
-
pointRadius?: import("@unovis/ts").NumericAccessor<PointDatum>;
|
|
66
|
-
pointStrokeWidth?: import("@unovis/ts").NumericAccessor<PointDatum>;
|
|
67
|
-
pointCursor?: import("@unovis/ts").StringAccessor<PointDatum>;
|
|
68
|
-
longitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
|
|
69
|
-
latitude?: import("@unovis/ts").NumericAccessor<PointDatum>;
|
|
70
|
-
pointLabel?: import("@unovis/ts").StringAccessor<PointDatum>;
|
|
71
|
-
pointLabelPosition?: import("@unovis/ts").MapPointLabelPosition;
|
|
72
|
-
pointLabelTextBrightnessRatio?: number;
|
|
73
|
-
pointId?: (d: PointDatum, i: number) => string;
|
|
74
|
-
heatmapMode?: boolean;
|
|
75
|
-
heatmapModeBlurStdDeviation?: number;
|
|
76
|
-
heatmapModeZoomLevelThreshold?: number;
|
|
77
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
78
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
79
|
-
component: import("vue").Ref<TopoJSONMap<AreaDatum, PointDatum, LinkDatum>, TopoJSONMap<AreaDatum, PointDatum, LinkDatum>>;
|
|
11
|
+
}), keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
12
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
13
|
+
component: import('vue').Ref<TopoJSONMap<AreaDatum, PointDatum, LinkDatum>, TopoJSONMap<AreaDatum, PointDatum, LinkDatum>>;
|
|
80
14
|
}>): void;
|
|
81
15
|
attrs: any;
|
|
82
|
-
slots: {}
|
|
83
|
-
emit:
|
|
84
|
-
}>) => import(
|
|
16
|
+
slots: ReturnType<() => {}>;
|
|
17
|
+
emit: typeof __VLS_emit;
|
|
18
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
85
19
|
[key: string]: any;
|
|
86
20
|
}> & {
|
|
87
|
-
__ctx?:
|
|
21
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
88
22
|
};
|
|
89
23
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TopoJSONMap as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as s, inject as y, computed as m, ref as F, onMounted as d, nextTick as g, onUnmounted as S, watch as r, openBlock as b, createElementBlock as v } from "vue";
|
|
2
|
+
import { TopoJSONMap as a } from "@unovis/ts";
|
|
3
|
+
import { componentAccessorKey as N } from "../../utils/context.js";
|
|
4
|
+
import { useForwardProps as L, arePropsEqual as f } from "../../utils/props.js";
|
|
5
|
+
const C = { "data-vis-component": "" }, A = a.selectors, M = /* @__PURE__ */ s({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
projection: { type: [Function, Object] },
|
|
@@ -10,59 +10,86 @@ const T = { "data-vis-component": "" }, j = l.selectors, D = /* @__PURE__ */ d({
|
|
|
10
10
|
mapFeatureName: {},
|
|
11
11
|
mapFitToPoints: { type: Boolean },
|
|
12
12
|
zoomFactor: {},
|
|
13
|
+
zoomToLocation: {},
|
|
13
14
|
disableZoom: { type: Boolean },
|
|
14
15
|
zoomExtent: {},
|
|
15
16
|
zoomDuration: {},
|
|
16
|
-
linkWidth: {},
|
|
17
|
-
linkColor: {},
|
|
18
|
-
linkCursor: {},
|
|
19
|
-
linkId: {},
|
|
17
|
+
linkWidth: { type: [Function, Number, null] },
|
|
18
|
+
linkColor: { type: [Function, String, Array, null] },
|
|
19
|
+
linkCursor: { type: [Function, String, null] },
|
|
20
|
+
linkId: { type: [Function, String, null] },
|
|
20
21
|
linkSource: { type: Function },
|
|
21
22
|
linkTarget: { type: Function },
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
sourceLongitude: { type: [Function, Number, null] },
|
|
24
|
+
sourceLatitude: { type: [Function, Number, null] },
|
|
25
|
+
targetLongitude: { type: [Function, Number, null] },
|
|
26
|
+
targetLatitude: { type: [Function, Number, null] },
|
|
27
|
+
sourcePointRadius: { type: [Function, Number, null] },
|
|
28
|
+
sourcePointColor: { type: [Function, String, Array, null] },
|
|
29
|
+
flowParticleColor: { type: [Function, String, Array, null] },
|
|
30
|
+
flowParticleRadius: { type: [Function, Number, null] },
|
|
31
|
+
flowParticleSpeed: { type: [Function, Number, null] },
|
|
32
|
+
flowParticleDensity: { type: [Function, Number, null] },
|
|
33
|
+
enableFlowAnimation: { type: Boolean },
|
|
34
|
+
onSourcePointClick: { type: Function },
|
|
35
|
+
onSourcePointMouseEnter: { type: Function },
|
|
36
|
+
onSourcePointMouseLeave: { type: Function },
|
|
37
|
+
areaId: { type: [Function, String, null] },
|
|
38
|
+
areaColor: { type: [Function, String, Array, null] },
|
|
39
|
+
areaCursor: { type: [Function, String, null] },
|
|
40
|
+
areaLabel: { type: [Function, String, null] },
|
|
41
|
+
pointColor: { type: [Function, String, Array, null] },
|
|
42
|
+
pointRadius: { type: [Function, Number, null] },
|
|
43
|
+
pointStrokeWidth: { type: [Function, Number, null] },
|
|
44
|
+
pointShape: { type: [Function, String, null] },
|
|
45
|
+
pointRingWidth: { type: [Function, Number, null] },
|
|
46
|
+
pointCursor: { type: [Function, String, null] },
|
|
47
|
+
longitude: { type: [Function, Number, null] },
|
|
48
|
+
latitude: { type: [Function, Number, null] },
|
|
49
|
+
pointLabel: { type: [Function, String, null] },
|
|
50
|
+
pointLabelColor: { type: [Function, String, Array, null] },
|
|
32
51
|
pointLabelPosition: {},
|
|
52
|
+
pointBottomLabel: { type: [Function, String, null] },
|
|
33
53
|
pointLabelTextBrightnessRatio: {},
|
|
34
54
|
pointId: { type: Function },
|
|
55
|
+
clusterColor: { type: [Function, String, Array, null] },
|
|
56
|
+
clusterRadius: { type: [Function, Number, null] },
|
|
57
|
+
clusterLabel: { type: [Function, String, null] },
|
|
58
|
+
clusterLabelColor: { type: [Function, String, null] },
|
|
59
|
+
clusterBottomLabel: { type: [Function, String, null] },
|
|
60
|
+
clusterRingWidth: {},
|
|
61
|
+
clusterBackground: { type: Boolean },
|
|
62
|
+
clusterExpandOnClick: { type: Boolean },
|
|
63
|
+
clusteringDistance: {},
|
|
64
|
+
clustering: { type: Boolean },
|
|
35
65
|
heatmapMode: { type: Boolean },
|
|
36
66
|
heatmapModeBlurStdDeviation: {},
|
|
37
67
|
heatmapModeZoomLevelThreshold: {},
|
|
68
|
+
colorMap: {},
|
|
38
69
|
duration: {},
|
|
39
70
|
events: {},
|
|
40
71
|
attributes: {},
|
|
41
72
|
data: {}
|
|
42
73
|
},
|
|
43
|
-
setup(c, { expose:
|
|
44
|
-
const
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
e.value = new l(n.value), (o = e.value) == null || o.setData(a.value), t.update(e.value);
|
|
74
|
+
setup(c, { expose: p }) {
|
|
75
|
+
const u = c, n = y(N), e = m(() => n.data.value ?? u.data), o = L(u), t = F();
|
|
76
|
+
return d(() => {
|
|
77
|
+
g(() => {
|
|
78
|
+
t.value = new a(o.value), t.value?.setData(e.value), n.update(t.value);
|
|
49
79
|
});
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}), u({
|
|
60
|
-
component: e
|
|
61
|
-
}), (o, r) => (F(), C("div", T));
|
|
80
|
+
}), S(() => {
|
|
81
|
+
t.value?.destroy(), n.destroy();
|
|
82
|
+
}), r(o, (l, i) => {
|
|
83
|
+
f(l, i) || (t.value?.setConfig(o.value), t.value?.render());
|
|
84
|
+
}), r(e, () => {
|
|
85
|
+
t.value?.setData(e.value);
|
|
86
|
+
}), p({
|
|
87
|
+
component: t
|
|
88
|
+
}), (l, i) => (b(), v("div", C));
|
|
62
89
|
}
|
|
63
90
|
});
|
|
64
91
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
92
|
+
A as VisTopoJSONMapSelectors,
|
|
93
|
+
M as default
|
|
67
94
|
};
|
|
68
95
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/topojson-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"AreaDatum,PointDatum,LinkDatum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/topojson-map/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"AreaDatum, PointDatum, LinkDatum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { TopoJSONMapConfigInterface } from '@unovis/ts'\nimport { TopoJSONMap } from '@unovis/ts'\nimport { computed, inject, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { componentAccessorKey } from '../../utils/context'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\nconst props = defineProps<Props & { data?: { areas?: AreaDatum[], points?: PointDatum[], links?: LinkDatum[] } }>()\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\ntype Props = TopoJSONMapConfigInterface<AreaDatum, PointDatum, LinkDatum>\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<TopoJSONMap<AreaDatum, PointDatum, LinkDatum>>()\n\nonMounted(() => {\n nextTick(() => {\n component.value = new TopoJSONMap<AreaDatum, PointDatum, LinkDatum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n 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 VisTopoJSONMapSelectors = TopoJSONMap.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n"],"names":["VisTopoJSONMapSelectors","TopoJSONMap","props","__props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_openBlock","_createElementBlock","_hoisted_1"],"mappings":";;;;wCAmDaA,IAA0BC,EAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3CnD,UAAMC,IAAQC,GAERC,IAAWC,EAAOC,CAAoB,GAItCC,IAAOC,EAAS,MAAMJ,EAAS,KAAK,SAASF,EAAM,IAAI,GAEvDO,IAASC,EAAgBR,CAAK,GAG9BS,IAAYC,EAAA;AAElB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAAH,EAAU,QAAQ,IAAIV,EAA8CQ,EAAO,KAAK,GAChFE,EAAU,OAAO,QAAQJ,EAAK,KAAK,GACnCH,EAAS,OAAOO,EAAU,KAAK;AAAA,MACjC,CAAC;AAAA,IACH,CAAC,GAEDI,EAAY,MAAM;AAChB,MAAAJ,EAAU,OAAO,QAAA,GACjBP,EAAS,QAAA;AAAA,IACX,CAAC,GAEDY,EAAMP,GAAQ,CAACQ,GAAMC,MAAS;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MAC3BP,EAAU,OAAO,UAAUF,EAAO,KAAK,GACvCE,EAAU,OAAO,OAAA;AAAA,IAErB,CAAC,GAEDK,EAAMT,GAAM,MAAM;AAChB,MAAAI,EAAU,OAAO,QAAQJ,EAAK,KAAK;AAAA,IACrC,CAAC,GAEDa,EAAa;AAAA,MACX,WAAAT;AAAA,IAAA,CACD,cAQCU,EAAA,GAAAC,EAA0B,OAA1BC,CAA0B;AAAA;;"}
|
|
@@ -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 e=require("vue"),u=require("@unovis/ts"),d=require("../../utils/context.cjs"),s=require("../../utils/props.cjs"),m={"data-vis-component":""},v=u.Treemap.selectors,b=e.defineComponent({__name:"index",props:{id:{type:Function},value:{type:[Function,Number,null]},layers:{},numberFormat:{type:Function},tileLabel:{type:Function},tileColor:{type:[Function,String,Array,null]},tileFunction:{type:Function},tileSort:{type:[Function,null]},tilePadding:{},tilePaddingTop:{},tileShowHtmlTooltip:{type:Boolean},labelInternalNodes:{type:Boolean},labelOffsetX:{},labelOffsetY:{},labelFit:{},labelTrimMode:{},tileBorderRadius:{},tileBorderRadiusFactor:{},enableLightnessVariance:{type:Boolean},enableTileLabelFontSizeVariation:{type:Boolean},tileLabelSmallFontSize:{},tileLabelMediumFontSize:{},tileLabelLargeFontSize:{},showTileClickAffordance:{type:Boolean},lightnessVariationAmount:{},minTileSizeForLabel:{},duration:{},events:{},attributes:{},data:{}},setup(c,{expose:p}){const l=c,o=e.inject(d.componentAccessorKey),n=e.computed(()=>o.data.value??l.data),a=s.useForwardProps(l),t=e.ref();return e.onMounted(()=>{e.nextTick(()=>{t.value=new u.Treemap(a.value),t.value?.setData(n.value),o.update(t.value)})}),e.onUnmounted(()=>{t.value?.destroy(),o.destroy()}),e.watch(a,(i,r)=>{s.arePropsEqual(i,r)||(t.value?.setConfig(a.value),t.value?.render())}),e.watch(n,()=>{t.value?.setData(n.value)}),p({component:t}),(i,r)=>(e.openBlock(),e.createElementBlock("div",m))}});exports.VisTreemapSelectors=v;exports.default=b;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/treemap/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport {
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/treemap/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport type { TreemapConfigInterface } from '@unovis/ts'\nimport { Treemap } from '@unovis/ts'\nimport { computed, inject, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'\nimport { componentAccessorKey } from '../../utils/context'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\n\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\ntype Props = TreemapConfigInterface<Datum>\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Treemap<Datum>>()\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Treemap<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n 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 VisTreemapSelectors = Treemap.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n"],"names":["VisTreemapSelectors","Treemap","props","__props","accessor","inject","componentAccessorKey","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","onUnmounted","watch","curr","prev","arePropsEqual","__expose","_openBlock","_createElementBlock","_hoisted_1"],"mappings":"+PAmDaA,EAAsBC,EAAAA,QAAQ,0yBA3C3C,MAAMC,EAAQC,EAERC,EAAWC,EAAAA,OAAOC,sBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,OAASF,EAAM,IAAI,EAEvDO,EAASC,EAAAA,gBAAgBR,CAAK,EAG9BS,EAAYC,EAAAA,IAAA,EAElBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACbH,EAAU,MAAQ,IAAIV,UAAeQ,EAAO,KAAK,EACjDE,EAAU,OAAO,QAAQJ,EAAK,KAAK,EACnCH,EAAS,OAAOO,EAAU,KAAK,CACjC,CAAC,CACH,CAAC,EAEDI,EAAAA,YAAY,IAAM,CAChBJ,EAAU,OAAO,QAAA,EACjBP,EAAS,QAAA,CACX,CAAC,EAEDY,EAAAA,MAAMP,EAAQ,CAACQ,EAAMC,IAAS,CACvBC,EAAAA,cAAcF,EAAMC,CAAI,IAC3BP,EAAU,OAAO,UAAUF,EAAO,KAAK,EACvCE,EAAU,OAAO,OAAA,EAErB,CAAC,EAEDK,EAAAA,MAAMT,EAAM,IAAM,CAChBI,EAAU,OAAO,QAAQJ,EAAK,KAAK,CACrC,CAAC,EAEDa,EAAa,CACX,UAAAT,CAAA,CACD,UAQCU,YAAA,EAAAC,qBAA0B,MAA1BC,CAA0B"}
|
|
@@ -1,76 +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 { TreemapConfigInterface, Treemap } from '@unovis/ts';
|
|
2
|
+
|
|
3
|
+
export declare const VisTreemapSelectors: typeof import("@unovis/ts/components/treemap/style");
|
|
4
|
+
declare const _default: <Datum>(__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>) & (TreemapConfigInterface<Datum> & {
|
|
40
6
|
data?: Datum[];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
labelOffsetX?: number;
|
|
45
|
-
labelOffsetY?: number;
|
|
46
|
-
labelFit?: import("@unovis/ts").FitMode;
|
|
47
|
-
labelTrimMode?: import("@unovis/ts").TrimMode;
|
|
48
|
-
numberFormat?: (value: number) => string;
|
|
49
|
-
tileLabel?: (node: import("@unovis/ts").TreemapNode<Datum>) => string;
|
|
50
|
-
tileColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").TreemapNode<Datum>>;
|
|
51
|
-
tilePadding?: number;
|
|
52
|
-
tilePaddingTop?: number;
|
|
53
|
-
labelInternalNodes?: boolean;
|
|
54
|
-
tileBorderRadius?: number;
|
|
55
|
-
tileBorderRadiusFactor?: number;
|
|
56
|
-
enableLightnessVariance?: boolean;
|
|
57
|
-
enableTileLabelFontSizeVariation?: boolean;
|
|
58
|
-
tileLabelSmallFontSize?: number;
|
|
59
|
-
tileLabelMediumFontSize?: number;
|
|
60
|
-
tileLabelLargeFontSize?: number;
|
|
61
|
-
showTileClickAffordance?: boolean;
|
|
62
|
-
lightnessVariationAmount?: number;
|
|
63
|
-
minTileSizeForLabel?: number;
|
|
64
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
65
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
66
|
-
component: import("vue").Ref<Treemap<Datum>, Treemap<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<Treemap<Datum>, Treemap<Datum>>;
|
|
67
10
|
}>): void;
|
|
68
11
|
attrs: any;
|
|
69
|
-
slots: {}
|
|
70
|
-
emit:
|
|
71
|
-
}>) => import(
|
|
12
|
+
slots: ReturnType<() => {}>;
|
|
13
|
+
emit: typeof __VLS_emit;
|
|
14
|
+
}>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
72
15
|
[key: string]: any;
|
|
73
16
|
}> & {
|
|
74
|
-
__ctx?:
|
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
75
18
|
};
|
|
76
19
|
export default _default;
|