@unovis/vue 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/annotations/index.d.ts +1 -1
- package/components/annotations/index.js +2 -2
- package/components/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +2 -1
- package/components/area/index.js +12 -11
- package/components/area/index.js.map +1 -1
- package/components/axis/index.d.ts +2 -2
- package/components/axis/index.js +2 -2
- package/components/brush/index.d.ts +1 -1
- package/components/brush/index.js +2 -2
- package/components/chord-diagram/index.d.ts +1 -1
- package/components/chord-diagram/index.js +2 -2
- package/components/crosshair/index.d.ts +1 -1
- package/components/crosshair/index.js +2 -2
- package/components/donut/index.d.ts +1 -1
- package/components/donut/index.js +2 -2
- package/components/free-brush/index.d.ts +1 -1
- package/components/free-brush/index.js +2 -2
- package/components/graph/index.cjs +1 -1
- package/components/graph/index.cjs.map +1 -1
- package/components/graph/index.d.ts +5 -2
- package/components/graph/index.js +13 -10
- package/components/graph/index.js.map +1 -1
- package/components/grouped-bar/index.d.ts +1 -1
- package/components/grouped-bar/index.js +2 -2
- package/components/line/index.d.ts +1 -1
- package/components/line/index.js +2 -2
- package/components/nested-donut/index.d.ts +1 -1
- package/components/nested-donut/index.js +2 -2
- package/components/sankey/index.d.ts +1 -1
- package/components/sankey/index.js +2 -2
- package/components/scatter/index.d.ts +1 -1
- package/components/scatter/index.js +2 -2
- package/components/stacked-bar/index.d.ts +1 -1
- package/components/stacked-bar/index.js +2 -2
- package/components/timeline/index.d.ts +1 -1
- package/components/timeline/index.js +2 -2
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.cjs.map +1 -1
- package/components/tooltip/index.d.ts +13 -1
- package/components/tooltip/index.js +13 -11
- package/components/tooltip/index.js.map +1 -1
- package/components/topojson-map/index.d.ts +1 -1
- package/components/topojson-map/index.js +2 -2
- package/components/xy-labels/index.d.ts +1 -1
- package/components/xy-labels/index.js +2 -2
- package/containers/single-container/index.js +2 -2
- package/containers/xy-container/index.js +2 -2
- package/html-components/bullet-legend/index.d.ts +1 -1
- package/html-components/bullet-legend/index.js +2 -2
- package/html-components/leaflet-flow-map/index.d.ts +2 -2
- package/html-components/leaflet-flow-map/index.js +2 -2
- package/html-components/leaflet-map/index.d.ts +2 -2
- package/html-components/leaflet-map/index.js +2 -2
- package/package.json +8 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Annotations, AnnotationItem } from '@unovis/ts';
|
|
2
|
-
export declare const VisAnnotationsSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisAnnotationsSelectors: typeof import("@unovis/ts/dist/components/annotations/style");
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
items: {
|
|
5
5
|
type: import("vue").PropType<AnnotationItem[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as u, ref as m, onMounted as d, nextTick as l, onUnmounted as f, watch as v,
|
|
1
|
+
import { defineComponent as p, inject as u, ref as m, onMounted as d, nextTick as l, onUnmounted as f, watch as v, createElementBlock as _, openBlock as x } from "vue";
|
|
2
2
|
import { Annotations as a } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as h, arePropsEqual as k } from "../../utils/props.js";
|
|
4
4
|
import { annotationsAccessorKey as w } from "../../utils/context.js";
|
|
@@ -25,7 +25,7 @@ const y = { "data-vis-annotations": "" }, P = a.selectors, b = /* @__PURE__ */ p
|
|
|
25
25
|
k(e, s) || (r = o.value) == null || r.setConfig(t.value);
|
|
26
26
|
}), i({
|
|
27
27
|
component: o
|
|
28
|
-
}), (e, s) => (
|
|
28
|
+
}), (e, s) => (x(), _("div", y));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("@unovis/ts"),i=require("../../utils/props.cjs"),v=require("../../utils/context.cjs"),m={"data-vis-component":""},y=l.Area.selectors,_=t.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(p,{expose:d}){const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("@unovis/ts"),i=require("../../utils/props.cjs"),v=require("../../utils/context.cjs"),m={"data-vis-component":""},y=l.Area.selectors,_=t.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},minHeight:{},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(p,{expose:d}){const n=t.inject(v.componentAccessorKey),s=p,a=t.computed(()=>n.data.value??s.data),c=i.useForwardProps(s),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new l.Area(c.value),(e=o.value)==null||e.setData(a.value),n.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),n.destroy()}),t.watch(c,(e,r)=>{var u;i.arePropsEqual(e,r)||(u=o.value)==null||u.setConfig(c.value)}),t.watch(a,()=>{var e;(e=o.value)==null||e.setData(a.value)}),d({component:o}),(e,r)=>(t.openBlock(),t.createElementBlock("div",m))}});exports.VisAreaSelectors=y;exports.default=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = AreaConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 }\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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAmBC,EAAAA,KAAK
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = AreaConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 }\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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAmBC,EAAAA,KAAK,+VA3C/B,MAAAC,EAAWC,SAAOC,sBAAoB,EAItCC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMN,EAAS,KAAK,OAASG,EAAM,IAAI,EAEvDI,EAASC,kBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAiB,EAGnCC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAIV,OAAYQ,EAAO,KAAK,GACpCM,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,OACrBL,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDK,EAAAA,YAAY,IAAM,QAChBD,EAAAJ,EAAU,QAAV,MAAAI,EAAiB,UACjBb,EAAS,QAAQ,CAAA,CAClB,EAEKe,EAAAA,MAAAR,EAAQ,CAACS,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBJ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,UAAUN,EAAO,MACpC,CACD,EAEDQ,EAAA,MAAMV,EAAM,IAAM,QACNQ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,MAAK,CACpC,EAEYc,EAAA,CACX,UAAAV,CAAA,CACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Area, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisAreaSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisAreaSelectors: typeof import("@unovis/ts/dist/components/area/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -46,6 +46,7 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
46
46
|
opacity?: NumericAccessor<Datum[]>;
|
|
47
47
|
cursor?: import("@unovis/ts").StringAccessor<Datum[]>;
|
|
48
48
|
minHeight1Px?: boolean;
|
|
49
|
+
minHeight?: number;
|
|
49
50
|
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
50
51
|
xScale?: import("@unovis/ts").ContinuousScale;
|
|
51
52
|
yScale?: import("@unovis/ts").ContinuousScale;
|
package/components/area/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Area as
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
import { componentAccessorKey as
|
|
5
|
-
const j = { "data-vis-component": "" }, D =
|
|
1
|
+
import { defineComponent as m, inject as d, computed as v, ref as y, onMounted as f, nextTick as x, onUnmounted as _, watch as i, createElementBlock as h, openBlock as F } from "vue";
|
|
2
|
+
import { Area as u } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as b, arePropsEqual as g } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as B } from "../../utils/context.js";
|
|
5
|
+
const j = { "data-vis-component": "" }, D = u.selectors, P = /* @__PURE__ */ m({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
color: {},
|
|
@@ -11,6 +11,7 @@ const j = { "data-vis-component": "" }, D = i.selectors, P = /* @__PURE__ */ d({
|
|
|
11
11
|
opacity: {},
|
|
12
12
|
cursor: {},
|
|
13
13
|
minHeight1Px: { type: Boolean },
|
|
14
|
+
minHeight: {},
|
|
14
15
|
x: {},
|
|
15
16
|
y: {},
|
|
16
17
|
id: { type: Function },
|
|
@@ -23,24 +24,24 @@ const j = { "data-vis-component": "" }, D = i.selectors, P = /* @__PURE__ */ d({
|
|
|
23
24
|
data: {}
|
|
24
25
|
},
|
|
25
26
|
setup(l, { expose: p }) {
|
|
26
|
-
const o =
|
|
27
|
+
const o = d(B), c = l, a = v(() => o.data.value ?? c.data), n = b(c), t = y();
|
|
27
28
|
return f(() => {
|
|
28
29
|
x(() => {
|
|
29
30
|
var e;
|
|
30
|
-
t.value = new
|
|
31
|
+
t.value = new u(n.value), (e = t.value) == null || e.setData(a.value), o.update(t.value);
|
|
31
32
|
});
|
|
32
33
|
}), _(() => {
|
|
33
34
|
var e;
|
|
34
35
|
(e = t.value) == null || e.destroy(), o.destroy();
|
|
35
|
-
}),
|
|
36
|
+
}), i(n, (e, r) => {
|
|
36
37
|
var s;
|
|
37
|
-
|
|
38
|
-
}),
|
|
38
|
+
g(e, r) || (s = t.value) == null || s.setConfig(n.value);
|
|
39
|
+
}), i(a, () => {
|
|
39
40
|
var e;
|
|
40
41
|
(e = t.value) == null || e.setData(a.value);
|
|
41
42
|
}), p({
|
|
42
43
|
component: t
|
|
43
|
-
}), (e, r) => (F(),
|
|
44
|
+
}), (e, r) => (F(), h("div", j));
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = AreaConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 }\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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAmBC,EAAK
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/area/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"Datum\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Area, AreaConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = AreaConfigInterface<Datum>\nconst props = defineProps<Props & { data?: Datum[] }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Area<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Area<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 }\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 VisAreaSelectors = Area.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisAreaSelectors","Area","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAmBC,EAAK;;;;;;;;;;;;;;;;;;;;;;AA3C/B,UAAAC,IAAWC,EAAOC,CAAoB,GAItCC,IAAQC,GAERC,IAAOC,EAAS,MAAMN,EAAS,KAAK,SAASG,EAAM,IAAI,GAEvDI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAiB;AAGnC,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAIV,EAAYQ,EAAO,KAAK,IACpCM,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK,QACrBL,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAD,IAAAJ,EAAU,UAAV,QAAAI,EAAiB,WACjBb,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKe,EAAAR,GAAQ,CAACS,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBJ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,UAAUN,EAAO;AAAA,IACpC,CACD,GAEDQ,EAAMV,GAAM,MAAM;;AACN,OAAAQ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK;AAAA,IAAK,CACpC,GAEYc,EAAA;AAAA,MACX,WAAAV;AAAA,IAAA,CACD;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Axis } from '@unovis/ts';
|
|
2
|
-
export declare const VisAxisSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisAxisSelectors: typeof import("@unovis/ts/dist/components/axis/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -57,7 +57,7 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
57
57
|
domainLine?: boolean;
|
|
58
58
|
minMaxTicksOnly?: boolean;
|
|
59
59
|
minMaxTicksOnlyWhenWidthIsLess?: number;
|
|
60
|
-
tickFormat?: (
|
|
60
|
+
tickFormat?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string;
|
|
61
61
|
tickValues?: number[];
|
|
62
62
|
numTicks?: number;
|
|
63
63
|
tickTextFitMode?: string;
|
package/components/axis/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as x, computed as m, ref as y, onMounted as k, nextTick as T, onUnmounted as v, watch as s,
|
|
1
|
+
import { defineComponent as d, inject as x, computed as m, ref as y, onMounted as k, nextTick as T, onUnmounted as v, watch as s, createElementBlock as f, openBlock as B } from "vue";
|
|
2
2
|
import { Axis as r } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as F, arePropsEqual as g } from "../../utils/props.js";
|
|
4
4
|
import { axisAccessorKey as _ } from "../../utils/context.js";
|
|
@@ -61,7 +61,7 @@ const b = { "data-vis-axis": "" }, M = r.selectors, O = /* @__PURE__ */ d({
|
|
|
61
61
|
(e = t.value) == null || e.setData(n.value);
|
|
62
62
|
}), u({
|
|
63
63
|
component: t
|
|
64
|
-
}), (e, c) => (
|
|
64
|
+
}), (e, c) => (B(), f("div", b));
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Brush } from '@unovis/ts';
|
|
2
|
-
export declare const VisBrushSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisBrushSelectors: typeof import("@unovis/ts/dist/components/brush/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as B, watch as u,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as B, watch as u, createElementBlock as F, openBlock as x } from "vue";
|
|
2
2
|
import { Brush as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as g } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as b } from "../../utils/context.js";
|
|
@@ -44,7 +44,7 @@ const S = { "data-vis-component": "" }, D = i.selectors, E = /* @__PURE__ */ d({
|
|
|
44
44
|
(e = t.value) == null || e.setData(n.value);
|
|
45
45
|
}), p({
|
|
46
46
|
component: t
|
|
47
|
-
}), (e, s) => (
|
|
47
|
+
}), (e, s) => (x(), F("div", S));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChordDiagram, ChordInputNode, ChordInputLink } from '@unovis/ts';
|
|
2
|
-
export declare const VisChordDiagramSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisChordDiagramSelectors: typeof import("@unovis/ts/dist/components/chord-diagram/style");
|
|
3
3
|
declare const _default: <N extends ChordInputNode, L extends ChordInputLink>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as m, computed as v, ref as g, onMounted as h, nextTick as f, onUnmounted as _, watch as l,
|
|
1
|
+
import { defineComponent as p, inject as m, computed as v, ref as g, onMounted as h, nextTick as f, onUnmounted as _, watch as l, createElementBlock as C, openBlock as k } from "vue";
|
|
2
2
|
import { ChordDiagram as c } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as x, arePropsEqual as L } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as b } from "../../utils/context.js";
|
|
@@ -42,7 +42,7 @@ const D = { "data-vis-component": "" }, B = c.selectors, I = /* @__PURE__ */ p({
|
|
|
42
42
|
(e = o.value) == null || e.setData(a.value);
|
|
43
43
|
}), u({
|
|
44
44
|
component: o
|
|
45
|
-
}), (e, s) => (
|
|
45
|
+
}), (e, s) => (k(), C("div", D));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Crosshair, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisCrosshairSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisCrosshairSelectors: typeof import("@unovis/ts/dist/components/crosshair/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as f, onMounted as _, nextTick as h, onUnmounted as x, watch as u,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as f, onMounted as _, nextTick as h, onUnmounted as x, watch as u, createElementBlock as C, openBlock as k } from "vue";
|
|
2
2
|
import { Crosshair as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as w, arePropsEqual as y } from "../../utils/props.js";
|
|
4
4
|
import { crosshairAccessorKey as g } from "../../utils/context.js";
|
|
@@ -25,7 +25,7 @@ const B = { "data-vis-crosshair": "" }, q = i.selectors, A = /* @__PURE__ */ d({
|
|
|
25
25
|
(e = o.value) == null || e.setData(a.value);
|
|
26
26
|
}), p({
|
|
27
27
|
component: o
|
|
28
|
-
}), (e, n) => (
|
|
28
|
+
}), (e, n) => (k(), C("div", B));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Donut, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisDonutSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisDonutSelectors: typeof import("@unovis/ts/dist/components/donut/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, inject as m, computed as f, ref as v, onMounted as g, nextTick as y, onUnmounted as b, watch as l,
|
|
1
|
+
import { defineComponent as i, inject as m, computed as f, ref as v, onMounted as g, nextTick as y, onUnmounted as b, watch as l, createElementBlock as _, openBlock as h } from "vue";
|
|
2
2
|
import { Donut as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as B, arePropsEqual as k } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as w } from "../../utils/context.js";
|
|
@@ -46,7 +46,7 @@ const x = { "data-vis-component": "" }, F = u.selectors, E = /* @__PURE__ */ i({
|
|
|
46
46
|
(e = t.value) == null || e.setData(a.value);
|
|
47
47
|
}), d({
|
|
48
48
|
component: t
|
|
49
|
-
}), (e, c) => (
|
|
49
|
+
}), (e, c) => (h(), _("div", x));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FreeBrush } from '@unovis/ts';
|
|
2
|
-
export declare const VisFreeBrushSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisFreeBrushSelectors: typeof import("@unovis/ts/dist/components/free-brush/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as F, watch as u,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as h, nextTick as f, onUnmounted as F, watch as u, createElementBlock as B, openBlock as x } from "vue";
|
|
2
2
|
import { FreeBrush as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as S } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as b } from "../../utils/context.js";
|
|
@@ -44,7 +44,7 @@ const g = { "data-vis-component": "" }, D = i.selectors, E = /* @__PURE__ */ d({
|
|
|
44
44
|
(e = t.value) == null || e.setData(n.value);
|
|
45
45
|
}), p({
|
|
46
46
|
component: t
|
|
47
|
-
}), (e, s) => (
|
|
47
|
+
}), (e, s) => (x(), B("div", g));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),c=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),S={"data-vis-component":""},m=c.Graph.selectors,F=o.defineComponent({__name:"index",props:{zoomScaleExtent:{},disableZoom:{type:Boolean},zoomEventFilter:{type:Function},disableDrag:{type:Boolean},disableBrush:{type:Boolean},zoomThrottledUpdateNodeThreshold:{},layoutType:{},layoutAutofit:{type:Boolean},layoutAutofitTolerance:{},layoutNonConnectedAside:{type:Boolean},layoutNodeGroup:{},layoutGroupOrder:{},layoutParallelNodesPerColumn:{},layoutParallelNodeSubGroup:{},layoutParallelSubGroupsPerRow:{},layoutParallelGroupSpacing:{},layoutParallelSortConnectionsByGroup:{},forceLayoutSettings:{},dagreLayoutSettings:{},layoutElkSettings:{},layoutElkNodeGroups:{},layoutElkGetNodeShape:{type:Function},linkWidth:{},linkStyle:{},linkBandWidth:{},linkArrow:{},linkStroke:{},linkDisabled:{},linkFlow:{},linkFlowAnimDuration:{},linkFlowParticleSize:{},linkLabel:{},linkLabelShiftFromCenter:{},linkNeighborSpacing:{},linkCurvature:{},linkHighlightOnHover:{type:Boolean},linkSourcePointOffset:{},linkTargetPointOffset:{},selectedLinkId:{},nodeSize:{},nodeStrokeWidth:{},nodeShape:{},nodeGaugeValue:{},nodeGaugeFill:{},nodeGaugeAnimDuration:{},nodeIcon:{},nodeIconSize:{},nodeLabel:{},nodeLabelTrim:{},nodeLabelTrimMode:{},nodeLabelTrimLength:{},nodeSubLabel:{},nodeSubLabelTrim:{},nodeSubLabelTrimMode:{},nodeSubLabelTrimLength:{},nodeSideLabels:{},nodeBottomIcon:{},nodeDisabled:{},nodeFill:{},nodeStroke:{},nodeSort:{type:Function},nodeEnterPosition:{},nodeEnterScale:{},nodeExitPosition:{},nodeExitScale:{},nodeEnterCustomRenderFunction:{type:Function},nodeUpdateCustomRenderFunction:{type:Function},nodePartialUpdateCustomRenderFunction:{type:Function},nodeExitCustomRenderFunction:{type:Function},nodeOnZoomCustomRenderFunction:{type:Function},nodeSelectionHighlightMode:{},selectedNodeId:{},selectedNodeIds:{},panels:{},onNodeDragStart:{type:Function},onNodeDrag:{type:Function},onNodeDragEnd:{type:Function},onZoom:{type:Function},onZoomStart:{type:Function},onZoomEnd:{type:Function},onLayoutCalculated:{type:Function},onNodeSelectionBrush:{type:Function},onNodeSelectionDrag:{type:Function},onRenderComplete:{type:Function},shouldDataUpdate:{type:Function},duration:{},events:{},attributes:{},data:{}},setup(s,{expose:p}){const n=o.inject(y.componentAccessorKey),i=s,a=o.computed(()=>n.data.value??i.data),l=r.useForwardProps(i),t=o.ref();return o.onMounted(()=>{o.nextTick(()=>{var e;t.value=new c.Graph(l.value),(e=t.value)==null||e.setData(a.value),n.update(t.value)})}),o.onUnmounted(()=>{var e;(e=t.value)==null||e.destroy(),n.destroy()}),o.watch(l,(e,u)=>{var d;r.arePropsEqual(e,u)||(d=t.value)==null||d.setConfig(l.value)}),o.watch(a,()=>{var e;(e=t.value)==null||e.setData(a.value)}),p({component:t}),(e,u)=>(o.openBlock(),o.createElementBlock("div",S))}});exports.VisGraphSelectors=m;exports.default=F;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),c=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),S={"data-vis-component":""},m=c.Graph.selectors,F=o.defineComponent({__name:"index",props:{zoomScaleExtent:{},disableZoom:{type:Boolean},zoomEventFilter:{type:Function},disableDrag:{type:Boolean},disableBrush:{type:Boolean},zoomThrottledUpdateNodeThreshold:{},fitViewPadding:{},fitViewAlign:{},layoutType:{},layoutAutofit:{type:Boolean},layoutAutofitTolerance:{},layoutNonConnectedAside:{type:Boolean},layoutNodeGroup:{},layoutGroupOrder:{},layoutParallelNodesPerColumn:{},layoutParallelNodeSubGroup:{},layoutParallelSubGroupsPerRow:{},layoutParallelGroupSpacing:{},layoutParallelSortConnectionsByGroup:{},forceLayoutSettings:{},dagreLayoutSettings:{},layoutElkSettings:{},layoutElkNodeGroups:{},layoutElkGetNodeShape:{type:Function},linkWidth:{},linkStyle:{},linkBandWidth:{},linkArrow:{},linkStroke:{},linkDisabled:{},linkFlow:{},linkFlowAnimDuration:{},linkFlowParticleSize:{},linkFlowParticleSpeed:{},linkLabel:{},linkLabelShiftFromCenter:{},linkNeighborSpacing:{},linkCurvature:{},linkHighlightOnHover:{type:Boolean},linkSourcePointOffset:{},linkTargetPointOffset:{},selectedLinkId:{},nodeSize:{},nodeStrokeWidth:{},nodeShape:{},nodeGaugeValue:{},nodeGaugeFill:{},nodeGaugeAnimDuration:{},nodeIcon:{},nodeIconSize:{},nodeLabel:{},nodeLabelTrim:{},nodeLabelTrimMode:{},nodeLabelTrimLength:{},nodeSubLabel:{},nodeSubLabelTrim:{},nodeSubLabelTrimMode:{},nodeSubLabelTrimLength:{},nodeSideLabels:{},nodeBottomIcon:{},nodeDisabled:{},nodeFill:{},nodeStroke:{},nodeSort:{type:Function},nodeEnterPosition:{},nodeEnterScale:{},nodeExitPosition:{},nodeExitScale:{},nodeEnterCustomRenderFunction:{type:Function},nodeUpdateCustomRenderFunction:{type:Function},nodePartialUpdateCustomRenderFunction:{type:Function},nodeExitCustomRenderFunction:{type:Function},nodeOnZoomCustomRenderFunction:{type:Function},nodeSelectionHighlightMode:{},selectedNodeId:{},selectedNodeIds:{},panels:{},onNodeDragStart:{type:Function},onNodeDrag:{type:Function},onNodeDragEnd:{type:Function},onZoom:{type:Function},onZoomStart:{type:Function},onZoomEnd:{type:Function},onLayoutCalculated:{type:Function},onNodeSelectionBrush:{type:Function},onNodeSelectionDrag:{type:Function},onRenderComplete:{type:Function},shouldDataUpdate:{type:Function},duration:{},events:{},attributes:{},data:{}},setup(s,{expose:p}){const n=o.inject(y.componentAccessorKey),i=s,a=o.computed(()=>n.data.value??i.data),l=r.useForwardProps(i),t=o.ref();return o.onMounted(()=>{o.nextTick(()=>{var e;t.value=new c.Graph(l.value),(e=t.value)==null||e.setData(a.value),n.update(t.value)})}),o.onUnmounted(()=>{var e;(e=t.value)==null||e.destroy(),n.destroy()}),o.watch(l,(e,u)=>{var d;r.arePropsEqual(e,u)||(d=t.value)==null||d.setConfig(l.value)}),o.watch(a,()=>{var e;(e=t.value)==null||e.setData(a.value)}),p({component:t}),(e,u)=>(o.openBlock(),o.createElementBlock("div",S))}});exports.VisGraphSelectors=m;exports.default=F;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/graph/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"N extends GraphInputNode,L extends GraphInputLink\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = GraphConfigInterface<N, L>\nconst props = defineProps<Props & { data?: { nodes: N[]; links?: L[] } }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(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 }\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 VisGraphSelectors = Graph.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisGraphSelectors","Graph","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAoBC,EAAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/graph/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"N extends GraphInputNode,L extends GraphInputLink\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = GraphConfigInterface<N, L>\nconst props = defineProps<Props & { data?: { nodes: N[]; links?: L[] } }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(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 }\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 VisGraphSelectors = Graph.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisGraphSelectors","Graph","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":"+PAkDaA,EAAoBC,EAAAA,MAAM,osEA3CjC,MAAAC,EAAWC,SAAOC,sBAAoB,EAItCC,EAAQC,EAERC,EAAOC,EAAAA,SAAS,IAAMN,EAAS,KAAK,OAASG,EAAM,IAAI,EAEvDI,EAASC,kBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,IAAiB,EAGnCC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAIV,QAAYQ,EAAO,KAAK,GACpCM,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,OACrBL,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDK,EAAAA,YAAY,IAAM,QAChBD,EAAAJ,EAAU,QAAV,MAAAI,EAAiB,UACjBb,EAAS,QAAQ,CAAA,CAClB,EAEKe,EAAAA,MAAAR,EAAQ,CAACS,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBJ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,UAAUN,EAAO,MACpC,CACD,EAEDQ,EAAA,MAAMV,EAAM,IAAM,QACNQ,EAAAJ,EAAA,QAAA,MAAAI,EAAO,QAAQR,EAAK,MAAK,CACpC,EAEYc,EAAA,CACX,UAAAV,CAAA,CACD"}
|
|
@@ -70,6 +70,8 @@ declare const _default: <N extends GraphInputNode, L extends GraphInputLink>(__V
|
|
|
70
70
|
disableDrag?: boolean;
|
|
71
71
|
disableBrush?: boolean;
|
|
72
72
|
zoomThrottledUpdateNodeThreshold?: number;
|
|
73
|
+
fitViewPadding?: number | import("@unovis/ts").Spacing;
|
|
74
|
+
fitViewAlign?: import("@unovis/ts").GraphFitViewAlignment;
|
|
73
75
|
layoutType?: string;
|
|
74
76
|
layoutAutofit?: boolean;
|
|
75
77
|
layoutAutofitTolerance?: number;
|
|
@@ -93,8 +95,9 @@ declare const _default: <N extends GraphInputNode, L extends GraphInputLink>(__V
|
|
|
93
95
|
linkStroke?: import("@unovis/ts").ColorAccessor<L>;
|
|
94
96
|
linkDisabled?: import("@unovis/ts").BooleanAccessor<L>;
|
|
95
97
|
linkFlow?: import("@unovis/ts").BooleanAccessor<L>;
|
|
96
|
-
linkFlowAnimDuration?:
|
|
97
|
-
linkFlowParticleSize?:
|
|
98
|
+
linkFlowAnimDuration?: import("@unovis/ts").NumericAccessor<L>;
|
|
99
|
+
linkFlowParticleSize?: import("@unovis/ts").NumericAccessor<L>;
|
|
100
|
+
linkFlowParticleSpeed?: import("@unovis/ts").NumericAccessor<L>;
|
|
98
101
|
linkLabel?: import("@unovis/ts").GenericAccessor<import("@unovis/ts").GraphCircleLabel | import("@unovis/ts").GraphCircleLabel[], L>;
|
|
99
102
|
linkLabelShiftFromCenter?: import("@unovis/ts").BooleanAccessor<L>;
|
|
100
103
|
linkNeighborSpacing?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Graph as
|
|
1
|
+
import { defineComponent as s, inject as y, computed as m, ref as S, onMounted as F, nextTick as k, onUnmounted as g, watch as r, createElementBlock as b, openBlock as h } from "vue";
|
|
2
|
+
import { Graph as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as f, arePropsEqual as v } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as L } from "../../utils/context.js";
|
|
5
|
-
const
|
|
5
|
+
const P = { "data-vis-component": "" }, G = u.selectors, D = /* @__PURE__ */ s({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
zoomScaleExtent: {},
|
|
@@ -11,6 +11,8 @@ const E = { "data-vis-component": "" }, G = r.selectors, D = /* @__PURE__ */ p({
|
|
|
11
11
|
disableDrag: { type: Boolean },
|
|
12
12
|
disableBrush: { type: Boolean },
|
|
13
13
|
zoomThrottledUpdateNodeThreshold: {},
|
|
14
|
+
fitViewPadding: {},
|
|
15
|
+
fitViewAlign: {},
|
|
14
16
|
layoutType: {},
|
|
15
17
|
layoutAutofit: { type: Boolean },
|
|
16
18
|
layoutAutofitTolerance: {},
|
|
@@ -36,6 +38,7 @@ const E = { "data-vis-component": "" }, G = r.selectors, D = /* @__PURE__ */ p({
|
|
|
36
38
|
linkFlow: {},
|
|
37
39
|
linkFlowAnimDuration: {},
|
|
38
40
|
linkFlowParticleSize: {},
|
|
41
|
+
linkFlowParticleSpeed: {},
|
|
39
42
|
linkLabel: {},
|
|
40
43
|
linkLabelShiftFromCenter: {},
|
|
41
44
|
linkNeighborSpacing: {},
|
|
@@ -95,25 +98,25 @@ const E = { "data-vis-component": "" }, G = r.selectors, D = /* @__PURE__ */ p({
|
|
|
95
98
|
attributes: {},
|
|
96
99
|
data: {}
|
|
97
100
|
},
|
|
98
|
-
setup(c, { expose:
|
|
101
|
+
setup(c, { expose: p }) {
|
|
99
102
|
const n = y(L), l = c, t = m(() => n.data.value ?? l.data), a = f(l), o = S();
|
|
100
103
|
return F(() => {
|
|
101
104
|
k(() => {
|
|
102
105
|
var e;
|
|
103
|
-
o.value = new
|
|
106
|
+
o.value = new u(a.value), (e = o.value) == null || e.setData(t.value), n.update(o.value);
|
|
104
107
|
});
|
|
105
|
-
}),
|
|
108
|
+
}), g(() => {
|
|
106
109
|
var e;
|
|
107
110
|
(e = o.value) == null || e.destroy(), n.destroy();
|
|
108
|
-
}),
|
|
111
|
+
}), r(a, (e, i) => {
|
|
109
112
|
var d;
|
|
110
113
|
v(e, i) || (d = o.value) == null || d.setConfig(a.value);
|
|
111
|
-
}),
|
|
114
|
+
}), r(t, () => {
|
|
112
115
|
var e;
|
|
113
116
|
(e = o.value) == null || e.setData(t.value);
|
|
114
|
-
}),
|
|
117
|
+
}), p({
|
|
115
118
|
component: o
|
|
116
|
-
}), (e, i) => (
|
|
119
|
+
}), (e, i) => (h(), b("div", P));
|
|
117
120
|
}
|
|
118
121
|
});
|
|
119
122
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/graph/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"N extends GraphInputNode,L extends GraphInputLink\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = GraphConfigInterface<N, L>\nconst props = defineProps<Props & { data?: { nodes: N[]; links?: L[] } }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(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 }\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 VisGraphSelectors = Graph.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisGraphSelectors","Graph","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAoBC,EAAM
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/graph/index.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"N extends GraphInputNode,L extends GraphInputLink\">\n// !!! This code was automatically generated. You should not change it !!!\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\nconst accessor = inject(componentAccessorKey)\n\n// data and required props \ntype Props = GraphConfigInterface<N, L>\nconst props = defineProps<Props & { data?: { nodes: N[]; links?: L[] } }>()\n\nconst data = computed(() => accessor.data.value ?? props.data)\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(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 }\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 VisGraphSelectors = Graph.selectors\n</script>\n\n<template>\n <div data-vis-component />\n</template>\n\n\n"],"names":["VisGraphSelectors","Graph","accessor","inject","componentAccessorKey","props","__props","data","computed","config","useForwardProps","component","ref","onMounted","nextTick","_a","onUnmounted","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;wCAkDaA,IAAoBC,EAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3CjC,UAAAC,IAAWC,EAAOC,CAAoB,GAItCC,IAAQC,GAERC,IAAOC,EAAS,MAAMN,EAAS,KAAK,SAASG,EAAM,IAAI,GAEvDI,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC,EAAiB;AAGnC,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAIV,EAAYQ,EAAO,KAAK,IACpCM,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK,QACrBL,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAD,IAAAJ,EAAU,UAAV,QAAAI,EAAiB,WACjBb,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKe,EAAAR,GAAQ,CAACS,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBJ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,UAAUN,EAAO;AAAA,IACpC,CACD,GAEDQ,EAAMV,GAAM,MAAM;;AACN,OAAAQ,IAAAJ,EAAA,UAAA,QAAAI,EAAO,QAAQR,EAAK;AAAA,IAAK,CACpC,GAEYc,EAAA;AAAA,MACX,WAAAV;AAAA,IAAA,CACD;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GroupedBar, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisGroupedBarSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisGroupedBarSelectors: typeof import("@unovis/ts/dist/components/grouped-bar/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, inject as m, computed as v, ref as f, onMounted as y, nextTick as x, onUnmounted as g, watch as u,
|
|
1
|
+
import { defineComponent as l, inject as m, computed as v, ref as f, onMounted as y, nextTick as x, onUnmounted as g, watch as u, createElementBlock as _, openBlock as b } from "vue";
|
|
2
2
|
import { GroupedBar as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as h, arePropsEqual as B } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as F } from "../../utils/context.js";
|
|
@@ -44,7 +44,7 @@ const C = { "data-vis-component": "" }, w = i.selectors, D = /* @__PURE__ */ l({
|
|
|
44
44
|
(e = o.value) == null || e.setData(a.value);
|
|
45
45
|
}), p({
|
|
46
46
|
component: o
|
|
47
|
-
}), (e, c) => (
|
|
47
|
+
}), (e, c) => (b(), _("div", C));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Line, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisLineSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisLineSelectors: typeof import("@unovis/ts/dist/components/line/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
package/components/line/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as f, nextTick as h, onUnmounted as x, watch as i,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as f, nextTick as h, onUnmounted as x, watch as i, createElementBlock as _, openBlock as g } from "vue";
|
|
2
2
|
import { Line as l } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as B, arePropsEqual as D } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as F } from "../../utils/context.js";
|
|
@@ -42,7 +42,7 @@ const b = { "data-vis-component": "" }, O = l.selectors, S = /* @__PURE__ */ d({
|
|
|
42
42
|
(e = t.value) == null || e.setData(a.value);
|
|
43
43
|
}), p({
|
|
44
44
|
component: t
|
|
45
|
-
}), (e, r) => (
|
|
45
|
+
}), (e, r) => (g(), _("div", b));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NestedDonut, StringAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisNestedDonutSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisNestedDonutSelectors: typeof import("@unovis/ts/dist/components/nested-donut/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, inject as m, computed as g, ref as v, onMounted as y, nextTick as f, onUnmounted as b, watch as c,
|
|
1
|
+
import { defineComponent as i, inject as m, computed as g, ref as v, onMounted as y, nextTick as f, onUnmounted as b, watch as c, createElementBlock as B, openBlock as S } from "vue";
|
|
2
2
|
import { NestedDonut as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as h } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as w } from "../../utils/context.js";
|
|
@@ -47,7 +47,7 @@ const L = { "data-vis-component": "" }, E = u.selectors, P = /* @__PURE__ */ i({
|
|
|
47
47
|
(e = t.value) == null || e.setData(a.value);
|
|
48
48
|
}), d({
|
|
49
49
|
component: t
|
|
50
|
-
}), (e, r) => (
|
|
50
|
+
}), (e, r) => (S(), B("div", L));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Sankey } from '@unovis/ts';
|
|
2
|
-
export declare const VisSankeySelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisSankeySelectors: typeof import("@unovis/ts/dist/components/sankey/style");
|
|
3
3
|
declare const _default: <N extends import("@unovis/ts").GraphInputNode, L extends import("@unovis/ts").GraphInputLink>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as b, computed as m, ref as h, onMounted as y, nextTick as g, onUnmounted as v, watch as s,
|
|
1
|
+
import { defineComponent as p, inject as b, computed as m, ref as h, onMounted as y, nextTick as g, onUnmounted as v, watch as s, createElementBlock as f, openBlock as k } from "vue";
|
|
2
2
|
import { Sankey as d } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as x, arePropsEqual as C } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as S } from "../../utils/context.js";
|
|
@@ -72,7 +72,7 @@ const F = { "data-vis-component": "" }, H = d.selectors, M = /* @__PURE__ */ p({
|
|
|
72
72
|
(e = o.value) == null || e.setData(t.value);
|
|
73
73
|
}), c({
|
|
74
74
|
component: o
|
|
75
|
-
}), (e, i) => (
|
|
75
|
+
}), (e, i) => (k(), f("div", F));
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Scatter, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisScatterSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisScatterSelectors: typeof import("@unovis/ts/dist/components/scatter/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as f, nextTick as b, onUnmounted as x, watch as l,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as f, nextTick as b, onUnmounted as x, watch as l, createElementBlock as _, openBlock as F } from "vue";
|
|
2
2
|
import { Scatter as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as S, arePropsEqual as g } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as h } from "../../utils/context.js";
|
|
@@ -47,7 +47,7 @@ const k = { "data-vis-component": "" }, w = i.selectors, z = /* @__PURE__ */ d({
|
|
|
47
47
|
(e = t.value) == null || e.setData(a.value);
|
|
48
48
|
}), p({
|
|
49
49
|
component: t
|
|
50
|
-
}), (e, s) => (
|
|
50
|
+
}), (e, s) => (F(), _("div", k));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StackedBar, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisStackedBarSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisStackedBarSelectors: typeof import("@unovis/ts/dist/components/stacked-bar/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, inject as m, computed as v, ref as f, onMounted as y, nextTick as x, onUnmounted as b, watch as i,
|
|
1
|
+
import { defineComponent as p, inject as m, computed as v, ref as f, onMounted as y, nextTick as x, onUnmounted as b, watch as i, createElementBlock as _, openBlock as h } from "vue";
|
|
2
2
|
import { StackedBar as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as B, arePropsEqual as S } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as g } from "../../utils/context.js";
|
|
@@ -44,7 +44,7 @@ const k = { "data-vis-component": "" }, j = u.selectors, w = /* @__PURE__ */ p({
|
|
|
44
44
|
(e = t.value) == null || e.setData(a.value);
|
|
45
45
|
}), l({
|
|
46
46
|
component: t
|
|
47
|
-
}), (e, c) => (
|
|
47
|
+
}), (e, c) => (h(), _("div", k));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Timeline, NumericAccessor } from '@unovis/ts';
|
|
2
2
|
import { StringAccessor } from "@unovis/ts";
|
|
3
|
-
export declare const VisTimelineSelectors: typeof import("@unovis/ts/
|
|
3
|
+
export declare const VisTimelineSelectors: typeof import("@unovis/ts/dist/components/timeline/style");
|
|
4
4
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
5
5
|
attrs: any;
|
|
6
6
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, inject as d, computed as v, ref as f, onMounted as _, nextTick as x, onUnmounted as h, watch as u,
|
|
1
|
+
import { defineComponent as m, inject as d, computed as v, ref as f, onMounted as _, nextTick as x, onUnmounted as h, watch as u, createElementBlock as k, openBlock as w } from "vue";
|
|
2
2
|
import { Timeline as i } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as y, arePropsEqual as T } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as g } from "../../utils/context.js";
|
|
@@ -25,7 +25,7 @@ const B = { "data-vis-component": "" }, j = i.selectors, q = /* @__PURE__ */ m({
|
|
|
25
25
|
(e = o.value) == null || e.setData(a.value);
|
|
26
26
|
}), p({
|
|
27
27
|
component: o
|
|
28
|
-
}), (e, c) => (
|
|
28
|
+
}), (e, c) => (w(), k("div", B));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@unovis/ts"),l=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),v={"data-vis-tooltip":""},f=a.Tooltip.selectors,m=e.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},data:{}},setup(i,{expose:u}){const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@unovis/ts"),l=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),v={"data-vis-tooltip":""},f=a.Tooltip.selectors,m=e.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(i,{expose:u}){const n=e.inject(d.tooltipAccessorKey),p=i,s=l.useForwardProps(p),o=e.ref();return e.onMounted(()=>{e.nextTick(()=>{o.value=new a.Tooltip(s.value),n.update(o.value)})}),e.onUnmounted(()=>{var t;(t=o.value)==null||t.destroy(),n.destroy()}),e.watch(s,(t,r)=>{var c;l.arePropsEqual(t,r)||(c=o.value)==null||c.setConfig(s.value)}),u({component:o}),(t,r)=>(e.openBlock(),e.createElementBlock("div",v))}});exports.VisTooltipSelectors=f;exports.default=m;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/tooltip/index.vue"],"sourcesContent":["<script setup lang=\"ts\" >\n// !!! This code was automatically generated. You should not change it !!!\nimport { Tooltip, TooltipConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { tooltipAccessorKey } from '../../utils/context'\n\nconst accessor = inject(tooltipAccessorKey)\n\n// data and required props \ntype Props = TooltipConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\n\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Tooltip>()\n\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 }\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\n\n"],"names":["VisTooltipSelectors","Tooltip","accessor","inject","tooltipAccessorKey","props","__props","config","useForwardProps","component","ref","onMounted","nextTick","onUnmounted","_a","watch","curr","prev","arePropsEqual","__expose"],"mappings":"6PA+CaA,EAAsBC,EAAAA,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/tooltip/index.vue"],"sourcesContent":["<script setup lang=\"ts\" >\n// !!! This code was automatically generated. You should not change it !!!\nimport { Tooltip, TooltipConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { tooltipAccessorKey } from '../../utils/context'\n\nconst accessor = inject(tooltipAccessorKey)\n\n// data and required props \ntype Props = TooltipConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\n\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Tooltip>()\n\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 }\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\n\n"],"names":["VisTooltipSelectors","Tooltip","accessor","inject","tooltipAccessorKey","props","__props","config","useForwardProps","component","ref","onMounted","nextTick","onUnmounted","_a","watch","curr","prev","arePropsEqual","__expose"],"mappings":"6PA+CaA,EAAsBC,EAAAA,QAAQ,oTAxCrC,MAAAC,EAAWC,SAAOC,oBAAkB,EAIpCC,EAAQC,EAIRC,EAASC,kBAAgBH,CAAK,EAG9BI,EAAYC,EAAAA,IAAa,EAG/BC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACbH,EAAU,MAAQ,IAAIR,UAAQM,EAAO,KAAK,EAEjCL,EAAA,OAAOO,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDI,EAAAA,YAAY,IAAM,QAChBC,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBZ,EAAS,QAAQ,CAAA,CAClB,EAEKa,EAAAA,MAAAR,EAAQ,CAACS,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,MACpC,CACD,EAGYY,EAAA,CACX,UAAAV,CAAA,CACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tooltip } from '@unovis/ts';
|
|
2
|
-
export declare const VisTooltipSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisTooltipSelectors: typeof import("@unovis/ts/dist/components/tooltip/style");
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
components: {
|
|
5
5
|
type: import("vue").PropType<import("@unovis/ts").ComponentCore<unknown, import("@unovis/ts").ComponentConfigInterface>[]>;
|
|
@@ -38,6 +38,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
className: {
|
|
39
39
|
type: import("vue").PropType<string>;
|
|
40
40
|
};
|
|
41
|
+
hideDelay: {
|
|
42
|
+
type: import("vue").PropType<number>;
|
|
43
|
+
};
|
|
44
|
+
showDelay: {
|
|
45
|
+
type: import("vue").PropType<number>;
|
|
46
|
+
};
|
|
41
47
|
data: {
|
|
42
48
|
type: import("vue").PropType<never>;
|
|
43
49
|
};
|
|
@@ -81,6 +87,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
87
|
className: {
|
|
82
88
|
type: import("vue").PropType<string>;
|
|
83
89
|
};
|
|
90
|
+
hideDelay: {
|
|
91
|
+
type: import("vue").PropType<number>;
|
|
92
|
+
};
|
|
93
|
+
showDelay: {
|
|
94
|
+
type: import("vue").PropType<number>;
|
|
95
|
+
};
|
|
84
96
|
data: {
|
|
85
97
|
type: import("vue").PropType<never>;
|
|
86
98
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as i, inject as p, ref as m, onMounted as u, nextTick as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import { useForwardProps as
|
|
4
|
-
import { tooltipAccessorKey as
|
|
5
|
-
const g = { "data-vis-tooltip": "" }, T =
|
|
1
|
+
import { defineComponent as i, inject as p, ref as m, onMounted as u, nextTick as d, onUnmounted as f, watch as v, createElementBlock as h, openBlock as _ } from "vue";
|
|
2
|
+
import { Tooltip as s } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as y, arePropsEqual as w } from "../../utils/props.js";
|
|
4
|
+
import { tooltipAccessorKey as x } from "../../utils/context.js";
|
|
5
|
+
const g = { "data-vis-tooltip": "" }, T = s.selectors, z = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
components: {},
|
|
@@ -16,20 +16,22 @@ const g = { "data-vis-tooltip": "" }, T = a.selectors, z = /* @__PURE__ */ i({
|
|
|
16
16
|
triggers: {},
|
|
17
17
|
attributes: {},
|
|
18
18
|
className: {},
|
|
19
|
+
hideDelay: {},
|
|
20
|
+
showDelay: {},
|
|
19
21
|
data: {}
|
|
20
22
|
},
|
|
21
23
|
setup(c, { expose: l }) {
|
|
22
|
-
const r = p(
|
|
24
|
+
const r = p(x), t = y(c), o = m();
|
|
23
25
|
return u(() => {
|
|
24
|
-
|
|
25
|
-
o.value = new
|
|
26
|
+
d(() => {
|
|
27
|
+
o.value = new s(t.value), r.update(o.value);
|
|
26
28
|
});
|
|
27
|
-
}),
|
|
29
|
+
}), f(() => {
|
|
28
30
|
var e;
|
|
29
31
|
(e = o.value) == null || e.destroy(), r.destroy();
|
|
30
32
|
}), v(t, (e, n) => {
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
+
var a;
|
|
34
|
+
w(e, n) || (a = o.value) == null || a.setConfig(t.value);
|
|
33
35
|
}), l({
|
|
34
36
|
component: o
|
|
35
37
|
}), (e, n) => (_(), h("div", g));
|
|
@@ -1 +1 @@
|
|
|
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 { Tooltip, TooltipConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { tooltipAccessorKey } from '../../utils/context'\n\nconst accessor = inject(tooltipAccessorKey)\n\n// data and required props \ntype Props = TooltipConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\n\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Tooltip>()\n\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 }\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\n\n"],"names":["VisTooltipSelectors","Tooltip","accessor","inject","tooltipAccessorKey","config","useForwardProps","__props","component","ref","onMounted","nextTick","onUnmounted","_a","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;sCA+CaA,IAAsBC,EAAQ
|
|
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 { Tooltip, TooltipConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { tooltipAccessorKey } from '../../utils/context'\n\nconst accessor = inject(tooltipAccessorKey)\n\n// data and required props \ntype Props = TooltipConfigInterface\nconst props = defineProps<Props & { data?: null }>()\n\n\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Tooltip>()\n\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 }\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\n\n"],"names":["VisTooltipSelectors","Tooltip","accessor","inject","tooltipAccessorKey","config","useForwardProps","__props","component","ref","onMounted","nextTick","onUnmounted","_a","watch","curr","prev","arePropsEqual","__expose"],"mappings":";;;;sCA+CaA,IAAsBC,EAAQ;;;;;;;;;;;;;;;;;;;AAxCrC,UAAAC,IAAWC,EAAOC,CAAkB,GAQpCC,IAASC,EAJDC,CAIsB,GAG9BC,IAAYC,EAAa;AAG/B,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAAH,EAAU,QAAQ,IAAIP,EAAQI,EAAO,KAAK,GAEjCH,EAAA,OAAOM,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDI,EAAY,MAAM;;AAChB,OAAAC,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBX,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKY,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUR,EAAO;AAAA,IACpC,CACD,GAGYa,EAAA;AAAA,MACX,WAAAV;AAAA,IAAA,CACD;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TopoJSONMap } from '@unovis/ts';
|
|
2
|
-
export declare const VisTopoJSONMapSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisTopoJSONMapSelectors: typeof import("@unovis/ts/dist/components/topojson-map/style");
|
|
3
3
|
declare const _default: <AreaDatum, PointDatum, LinkDatum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as f, onMounted as h, nextTick as k, onUnmounted as y, watch as s,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as f, onMounted as h, nextTick as k, onUnmounted as y, watch as s, createElementBlock as C, openBlock as F } from "vue";
|
|
2
2
|
import { TopoJSONMap as l } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as _, arePropsEqual as x } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as B } from "../../utils/context.js";
|
|
@@ -58,7 +58,7 @@ const T = { "data-vis-component": "" }, j = l.selectors, D = /* @__PURE__ */ d({
|
|
|
58
58
|
(o = e.value) == null || o.setData(a.value);
|
|
59
59
|
}), u({
|
|
60
60
|
component: e
|
|
61
|
-
}), (o, r) => (
|
|
61
|
+
}), (o, r) => (F(), C("div", T));
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XYLabels, NumericAccessor } from '@unovis/ts';
|
|
2
|
-
export declare const VisXYLabelsSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisXYLabelsSelectors: typeof import("@unovis/ts/dist/components/xy-labels/style");
|
|
3
3
|
declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, inject as m, computed as v, ref as b, onMounted as f, nextTick as y, onUnmounted as x, watch as l,
|
|
1
|
+
import { defineComponent as d, inject as m, computed as v, ref as b, onMounted as f, nextTick as y, onUnmounted as x, watch as l, createElementBlock as g, openBlock as _ } from "vue";
|
|
2
2
|
import { XYLabels as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as C, arePropsEqual as F } from "../../utils/props.js";
|
|
4
4
|
import { componentAccessorKey as B } from "../../utils/context.js";
|
|
@@ -48,7 +48,7 @@ const k = { "data-vis-component": "" }, j = u.selectors, w = /* @__PURE__ */ d({
|
|
|
48
48
|
(e = o.value) == null || e.setData(a.value);
|
|
49
49
|
}), p({
|
|
50
50
|
component: o
|
|
51
|
-
}), (e, r) => (
|
|
51
|
+
}), (e, r) => (_(), g("div", k));
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, toRefs as m, reactive as u, ref as v, watchEffect as g, watch as y, onUnmounted as w, provide as a,
|
|
1
|
+
import { defineComponent as f, toRefs as m, reactive as u, ref as v, watchEffect as g, watch as y, onUnmounted as w, provide as a, createElementBlock as _, openBlock as h, renderSlot as C, toRaw as s } from "vue";
|
|
2
2
|
import { SingleContainer as R } from "@unovis/ts";
|
|
3
3
|
import { componentAccessorKey as k, tooltipAccessorKey as x, annotationsAccessorKey as A } from "../../utils/context.js";
|
|
4
4
|
import { useForwardProps as K } from "../../utils/props.js";
|
|
@@ -51,7 +51,7 @@ const b = /* @__PURE__ */ f({
|
|
|
51
51
|
}
|
|
52
52
|
}), d({
|
|
53
53
|
component: o
|
|
54
|
-
}), (t, B) => (
|
|
54
|
+
}), (t, B) => (h(), _("div", {
|
|
55
55
|
"data-vis-single-container": "",
|
|
56
56
|
ref_key: "elRef",
|
|
57
57
|
ref: i,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, toRefs as y, ref as p, reactive as v, watch as f, watchEffect as x, toRaw as r, onMounted as h, onUnmounted as D, provide as a,
|
|
1
|
+
import { defineComponent as u, toRefs as y, ref as p, reactive as v, watch as f, watchEffect as x, toRaw as r, onMounted as h, onUnmounted as D, provide as a, createElementBlock as g, openBlock as A, renderSlot as C } from "vue";
|
|
2
2
|
import { XYContainer as w } from "@unovis/ts";
|
|
3
3
|
import { componentAccessorKey as B, axisAccessorKey as M, crosshairAccessorKey as R, tooltipAccessorKey as _, annotationsAccessorKey as K } from "../../utils/context.js";
|
|
4
4
|
import { useForwardProps as b } from "../../utils/props.js";
|
|
@@ -87,7 +87,7 @@ const $ = /* @__PURE__ */ u({
|
|
|
87
87
|
}
|
|
88
88
|
}), l({
|
|
89
89
|
component: n
|
|
90
|
-
}), (o, i) => (
|
|
90
|
+
}), (o, i) => (A(), g("div", {
|
|
91
91
|
"data-vis-xy-container": "",
|
|
92
92
|
ref_key: "elRef",
|
|
93
93
|
ref: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BulletLegend, BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
-
export declare const VisBulletLegendSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisBulletLegendSelectors: typeof import("@unovis/ts/dist/components/bullet-legend/style");
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
items: {
|
|
5
5
|
type: import("vue").PropType<BulletLegendItemInterface[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as p, ref as d, onMounted as m, nextTick as f, onUnmounted as v, watch as _,
|
|
1
|
+
import { defineComponent as c, computed as p, ref as d, onMounted as m, nextTick as f, onUnmounted as v, watch as _, createElementBlock as b, openBlock as x } from "vue";
|
|
2
2
|
import { BulletLegend as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as g, arePropsEqual as k } from "../../utils/props.js";
|
|
4
4
|
const P = u.selectors, S = /* @__PURE__ */ c({
|
|
@@ -31,7 +31,7 @@ const P = u.selectors, S = /* @__PURE__ */ c({
|
|
|
31
31
|
k(e, a) || (r = o.value) == null || r.update(t.value);
|
|
32
32
|
}), i({
|
|
33
33
|
component: o
|
|
34
|
-
}), (e, a) => (
|
|
34
|
+
}), (e, a) => (x(), b("div", {
|
|
35
35
|
"data-vis-bullet-legend": "",
|
|
36
36
|
ref_key: "elRef",
|
|
37
37
|
ref: n
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeafletFlowMap, GenericDataRecord } from '@unovis/ts';
|
|
2
|
-
export declare const VisLeafletFlowMapSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisLeafletFlowMapSelectors: typeof import("@unovis/ts/dist/components/leaflet-map/style");
|
|
3
3
|
declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -43,6 +43,7 @@ declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends
|
|
|
43
43
|
};
|
|
44
44
|
width?: string | number;
|
|
45
45
|
tooltip?: import("@unovis/ts").Tooltip;
|
|
46
|
+
fitViewPadding?: [number, number];
|
|
46
47
|
zoomDuration?: number;
|
|
47
48
|
pointColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
48
49
|
pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<PointDatum>>;
|
|
@@ -67,7 +68,6 @@ declare const _default: <PointDatum extends GenericDataRecord, FlowDatum extends
|
|
|
67
68
|
onSourcePointMouseEnter?: (f: FlowDatum, x: number, y: number, event: MouseEvent) => void;
|
|
68
69
|
onSourcePointMouseLeave?: (f: FlowDatum, event: MouseEvent) => void;
|
|
69
70
|
flyToDuration?: number;
|
|
70
|
-
fitViewPadding?: [number, number];
|
|
71
71
|
initialBounds?: import("@unovis/ts").Bounds;
|
|
72
72
|
fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
|
|
73
73
|
fitViewOnInit?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as f, ref as r, onMounted as m, nextTick as y, onUnmounted as L, watch as M,
|
|
1
|
+
import { defineComponent as d, computed as f, ref as r, onMounted as m, nextTick as y, onUnmounted as L, watch as M, createElementBlock as v, openBlock as w } from "vue";
|
|
2
2
|
import { LeafletFlowMap as u } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as g, arePropsEqual as F } from "../../utils/props.js";
|
|
4
4
|
const k = u.selectors, b = /* @__PURE__ */ d({
|
|
@@ -82,7 +82,7 @@ const k = u.selectors, b = /* @__PURE__ */ d({
|
|
|
82
82
|
F(o, a) || (l = e.value) == null || l.setConfig(t.value);
|
|
83
83
|
}), p({
|
|
84
84
|
component: e
|
|
85
|
-
}), (o, a) => (
|
|
85
|
+
}), (o, a) => (w(), v("div", {
|
|
86
86
|
"data-vis-leaflet-flow-map": "",
|
|
87
87
|
ref_key: "elRef",
|
|
88
88
|
ref: n
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LeafletMap, GenericDataRecord } from '@unovis/ts';
|
|
2
|
-
export declare const VisLeafletMapSelectors: typeof import("@unovis/ts/
|
|
2
|
+
export declare const VisLeafletMapSelectors: typeof import("@unovis/ts/dist/components/leaflet-map/style");
|
|
3
3
|
declare const _default: <Datum extends GenericDataRecord>(__VLS_props: any, __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
5
5
|
emit: any;
|
|
@@ -40,6 +40,7 @@ declare const _default: <Datum extends GenericDataRecord>(__VLS_props: any, __VL
|
|
|
40
40
|
data?: Datum[];
|
|
41
41
|
width?: string | number;
|
|
42
42
|
tooltip?: import("@unovis/ts").Tooltip;
|
|
43
|
+
fitViewPadding?: [number, number];
|
|
43
44
|
zoomDuration?: number;
|
|
44
45
|
pointColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
45
46
|
pointRadius?: import("@unovis/ts").NumericAccessor<import("@unovis/ts").LeafletMapPointDatum<Datum>>;
|
|
@@ -51,7 +52,6 @@ declare const _default: <Datum extends GenericDataRecord>(__VLS_props: any, __VL
|
|
|
51
52
|
height?: string | number;
|
|
52
53
|
ariaLabel?: string;
|
|
53
54
|
flyToDuration?: number;
|
|
54
|
-
fitViewPadding?: [number, number];
|
|
55
55
|
initialBounds?: import("@unovis/ts").Bounds;
|
|
56
56
|
fitBoundsOnUpdate?: import("@unovis/ts").Bounds;
|
|
57
57
|
fitViewOnInit?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as f, ref as p, onMounted as m, nextTick as y, onUnmounted as v, watch as M,
|
|
1
|
+
import { defineComponent as d, computed as f, ref as p, onMounted as m, nextTick as y, onUnmounted as v, watch as M, createElementBlock as L, openBlock as B } from "vue";
|
|
2
2
|
import { LeafletMap as r } from "@unovis/ts";
|
|
3
3
|
import { useForwardProps as b, arePropsEqual as g } from "../../utils/props.js";
|
|
4
4
|
const F = r.selectors, w = /* @__PURE__ */ d({
|
|
@@ -69,7 +69,7 @@ const F = r.selectors, w = /* @__PURE__ */ d({
|
|
|
69
69
|
g(t, i) || (l = e.value) == null || l.setConfig(o.value);
|
|
70
70
|
}), c({
|
|
71
71
|
component: e
|
|
72
|
-
}), (t, i) => (
|
|
72
|
+
}), (t, i) => (B(), L("div", {
|
|
73
73
|
"data-vis-leaflet-map": "",
|
|
74
74
|
ref_key: "elRef",
|
|
75
75
|
ref: n
|
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.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"packageManager": "npm@10.9.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"author": "Zernonia Kong <zernonia@gmail.com>",
|
|
23
23
|
"maintainers": [
|
|
24
24
|
"Nikita Rokotyan <nikita@f5.com> (https://rokotyan.com)",
|
|
25
|
-
"
|
|
25
|
+
"Qian Liu <qi.liu@f5.com>",
|
|
26
|
+
"Surya Hanumandla <s.hanumandla@f5.com>"
|
|
26
27
|
],
|
|
27
28
|
"exports": {
|
|
28
29
|
".": {
|
|
@@ -44,21 +45,21 @@
|
|
|
44
45
|
"type": "module",
|
|
45
46
|
"sideEffects": false,
|
|
46
47
|
"scripts": {
|
|
47
|
-
"build": "vite build",
|
|
48
|
+
"build": "vite build; rm -rf dist/.cache; cp LICENSE README.md package.json ./dist",
|
|
48
49
|
"check": "vue-tsc --noEmit",
|
|
49
50
|
"generate": "rollup -c ./autogen/rollup.config.js; node .autogen.cjs; rm .autogen.cjs",
|
|
50
|
-
"publish:dist": "
|
|
51
|
+
"publish:dist": "cd ./dist; npm publish",
|
|
51
52
|
"build:gallery": "vite build --mode gallery",
|
|
52
53
|
"gallery": "vite"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
|
-
"@unovis/ts": "1.5.
|
|
56
|
+
"@unovis/ts": "1.5.2",
|
|
56
57
|
"vue": "^3"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@antfu/eslint-config": "^3.9.1",
|
|
60
61
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
61
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
62
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
62
63
|
"@vue/tsconfig": "^0.4.0",
|
|
63
64
|
"de-indent": "^1.0.2",
|
|
64
65
|
"jju": "^1.4.0",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
68
69
|
"tslib": "^2.3.1",
|
|
69
70
|
"typescript": "~4.2.4",
|
|
70
|
-
"vite": "^
|
|
71
|
+
"vite": "^6.2.4",
|
|
71
72
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
72
73
|
"vite-plugin-dts": "^3.5.3",
|
|
73
74
|
"vue": "^3.5.13",
|