@unovis/vue 1.3.4-beta.2 → 1.4.0-beta.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/components/annotations/index.cjs +2 -0
- package/components/annotations/index.cjs.map +1 -0
- package/components/annotations/index.d.ts +95 -0
- package/components/annotations/index.js +34 -0
- package/components/annotations/index.js.map +1 -0
- package/components/annotations/index2.cjs +2 -0
- package/components/annotations/index2.cjs.map +1 -0
- package/components/annotations/index2.js +5 -0
- package/components/annotations/index2.js.map +1 -0
- package/components/area/index.d.ts +12 -12
- package/components/axis/index.d.ts +7 -7
- package/components/brush/index.d.ts +7 -7
- package/components/crosshair/index.d.ts +8 -8
- package/components/donut/index.d.ts +3 -3
- package/components/free-brush/index.d.ts +7 -7
- package/components/grouped-bar/index.d.ts +8 -8
- package/components/line/index.d.ts +9 -9
- package/components/nested-donut/index.d.ts +1 -1
- package/components/sankey/index.d.ts +1 -1
- package/components/scatter/index.d.ts +8 -8
- package/components/stacked-bar/index.d.ts +8 -8
- package/components/timeline/index.d.ts +8 -8
- package/components/xy-labels/index.d.ts +8 -8
- package/components.d.ts +1 -0
- package/containers/single-container/index.cjs +1 -1
- package/containers/single-container/index.cjs.map +1 -1
- package/containers/single-container/index.d.ts +2 -1
- package/containers/single-container/index.js +29 -21
- 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 +4 -3
- package/containers/xy-container/index.js +21 -13
- package/containers/xy-container/index.js.map +1 -1
- package/index.cjs +2 -2
- package/index.js +15 -13
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/context.cjs +1 -1
- package/utils/context.cjs.map +1 -1
- package/utils/context.d.ts +6 -1
- package/utils/context.js +2 -1
- package/utils/context.js.map +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("@unovis/ts"),a=require("../../utils/props.cjs"),l=require("../../utils/context.cjs"),v={"data-vis-annotations":""},_=e.defineComponent({__name:"index",props:{items:{},duration:{},events:{},attributes:{},data:{}},setup(i,{expose:u}){const p=i,s=e.inject(l.annotationsAccessorKey),o=a.useForwardProps(p),t=e.ref();return e.onMounted(()=>{e.nextTick(()=>{t.value=new d.Annotations(o.value),s.update(t.value)})}),e.onUnmounted(()=>{var n;(n=t.value)==null||n.destroy(),s.destroy()}),e.watch(o,(n,r)=>{var c;a.arePropsEqual(n,r)||(c=t.value)==null||c.setConfig(o.value)}),u({component:t}),(n,r)=>(e.openBlock(),e.createElementBlock("div",v))}});module.exports=_;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/annotations/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-annotations\": \"\" }\n\nimport { Annotations, AnnotationsConfigInterface, AnnotationItem } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { annotationsAccessorKey } from '../../utils/context'\n\ninterface Props extends AnnotationsConfigInterface { }\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(annotationsAccessorKey)\n\n// data and required props \n\n\n\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Annotations>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Annotations(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\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","annotationsAccessorKey","config","useForwardProps","component","ref","onMounted","nextTick","Annotations","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,uBAAwB,IASjBC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,MAAO,CAAC,EACR,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAAE,OAAQC,GAAY,CAE5C,MAAMC,EAAQF,EAGRG,EAAWC,SAAOC,EAAAA,sBAAsB,EAOxCC,EAASC,kBAAgBL,CAAK,EAG9BM,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,CACbH,EAAU,MAAQ,IAAII,EAAY,YAAAN,EAAO,KAAK,EAErCH,EAAA,OAAOK,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDK,EAAAA,YAAY,IAAM,QAChBC,EAAAN,EAAU,QAAV,MAAAM,EAAiB,UACjBX,EAAS,QAAQ,CAAA,CAClB,EAEKY,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,IACjBH,EAAAN,EAAA,QAAA,MAAAM,EAAO,UAAUR,EAAO,MACpC,CACD,EAGQL,EAAA,CACP,UAAAO,CAAA,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAOzB,CAAU,EAE7D,CAEA,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Annotations, AnnotationItem } from '@unovis/ts';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
items: {
|
|
4
|
+
type: import("vue").PropType<AnnotationItem[]>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
duration: {
|
|
8
|
+
type: import("vue").PropType<number>;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
type: import("vue").PropType<{
|
|
12
|
+
[selector: string]: {
|
|
13
|
+
touchstart?: import("@unovis/ts").VisEventCallback<any>;
|
|
14
|
+
touchmove?: import("@unovis/ts").VisEventCallback<any>;
|
|
15
|
+
touchend?: import("@unovis/ts").VisEventCallback<any>;
|
|
16
|
+
mouseover?: import("@unovis/ts").VisEventCallback<any>;
|
|
17
|
+
mousemove?: import("@unovis/ts").VisEventCallback<any>;
|
|
18
|
+
mousedown?: import("@unovis/ts").VisEventCallback<any>;
|
|
19
|
+
mouseup?: import("@unovis/ts").VisEventCallback<any>;
|
|
20
|
+
click?: import("@unovis/ts").VisEventCallback<any>;
|
|
21
|
+
auxclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
22
|
+
contextmenu?: import("@unovis/ts").VisEventCallback<any>;
|
|
23
|
+
dblclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
24
|
+
mouseenter?: import("@unovis/ts").VisEventCallback<any>;
|
|
25
|
+
mouseleave?: import("@unovis/ts").VisEventCallback<any>;
|
|
26
|
+
mouseout?: import("@unovis/ts").VisEventCallback<any>;
|
|
27
|
+
scroll?: import("@unovis/ts").VisEventCallback<any>;
|
|
28
|
+
select?: import("@unovis/ts").VisEventCallback<any>;
|
|
29
|
+
wheel?: import("@unovis/ts").VisEventCallback<any>;
|
|
30
|
+
pointerdown?: import("@unovis/ts").VisEventCallback<any>;
|
|
31
|
+
pointerup?: import("@unovis/ts").VisEventCallback<any>;
|
|
32
|
+
pointerout?: import("@unovis/ts").VisEventCallback<any>;
|
|
33
|
+
pointermove?: import("@unovis/ts").VisEventCallback<any>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
attributes: {
|
|
38
|
+
type: import("vue").PropType<{
|
|
39
|
+
[selector: string]: {
|
|
40
|
+
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
44
|
+
data: {
|
|
45
|
+
type: import("vue").PropType<never>;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
component: import("vue").Ref<Annotations>;
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
items: {
|
|
51
|
+
type: import("vue").PropType<AnnotationItem[]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
duration: {
|
|
55
|
+
type: import("vue").PropType<number>;
|
|
56
|
+
};
|
|
57
|
+
events: {
|
|
58
|
+
type: import("vue").PropType<{
|
|
59
|
+
[selector: string]: {
|
|
60
|
+
touchstart?: import("@unovis/ts").VisEventCallback<any>;
|
|
61
|
+
touchmove?: import("@unovis/ts").VisEventCallback<any>;
|
|
62
|
+
touchend?: import("@unovis/ts").VisEventCallback<any>;
|
|
63
|
+
mouseover?: import("@unovis/ts").VisEventCallback<any>;
|
|
64
|
+
mousemove?: import("@unovis/ts").VisEventCallback<any>;
|
|
65
|
+
mousedown?: import("@unovis/ts").VisEventCallback<any>;
|
|
66
|
+
mouseup?: import("@unovis/ts").VisEventCallback<any>;
|
|
67
|
+
click?: import("@unovis/ts").VisEventCallback<any>;
|
|
68
|
+
auxclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
69
|
+
contextmenu?: import("@unovis/ts").VisEventCallback<any>;
|
|
70
|
+
dblclick?: import("@unovis/ts").VisEventCallback<any>;
|
|
71
|
+
mouseenter?: import("@unovis/ts").VisEventCallback<any>;
|
|
72
|
+
mouseleave?: import("@unovis/ts").VisEventCallback<any>;
|
|
73
|
+
mouseout?: import("@unovis/ts").VisEventCallback<any>;
|
|
74
|
+
scroll?: import("@unovis/ts").VisEventCallback<any>;
|
|
75
|
+
select?: import("@unovis/ts").VisEventCallback<any>;
|
|
76
|
+
wheel?: import("@unovis/ts").VisEventCallback<any>;
|
|
77
|
+
pointerdown?: import("@unovis/ts").VisEventCallback<any>;
|
|
78
|
+
pointerup?: import("@unovis/ts").VisEventCallback<any>;
|
|
79
|
+
pointerout?: import("@unovis/ts").VisEventCallback<any>;
|
|
80
|
+
pointermove?: import("@unovis/ts").VisEventCallback<any>;
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
};
|
|
84
|
+
attributes: {
|
|
85
|
+
type: import("vue").PropType<{
|
|
86
|
+
[selector: string]: {
|
|
87
|
+
[attr: string]: string | number | boolean | ((datum: any) => string | number | boolean);
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
data: {
|
|
92
|
+
type: import("vue").PropType<never>;
|
|
93
|
+
};
|
|
94
|
+
}>>, {}, {}>;
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as p, inject as u, ref as m, onMounted as d, nextTick as f, onUnmounted as l, watch as v, openBlock as _, createElementBlock as x } from "vue";
|
|
2
|
+
import { Annotations as h } from "@unovis/ts";
|
|
3
|
+
import { useForwardProps as k, arePropsEqual as w } from "../../utils/props.js";
|
|
4
|
+
import { annotationsAccessorKey as y } from "../../utils/context.js";
|
|
5
|
+
const g = { "data-vis-annotations": "" }, P = /* @__PURE__ */ p({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
items: {},
|
|
9
|
+
duration: {},
|
|
10
|
+
events: {},
|
|
11
|
+
attributes: {},
|
|
12
|
+
data: {}
|
|
13
|
+
},
|
|
14
|
+
setup(r, { expose: c }) {
|
|
15
|
+
const i = r, n = u(y), t = k(i), o = m();
|
|
16
|
+
return d(() => {
|
|
17
|
+
f(() => {
|
|
18
|
+
o.value = new h(t.value), n.update(o.value);
|
|
19
|
+
});
|
|
20
|
+
}), l(() => {
|
|
21
|
+
var e;
|
|
22
|
+
(e = o.value) == null || e.destroy(), n.destroy();
|
|
23
|
+
}), v(t, (e, s) => {
|
|
24
|
+
var a;
|
|
25
|
+
w(e, s) || (a = o.value) == null || a.setConfig(t.value);
|
|
26
|
+
}), c({
|
|
27
|
+
component: o
|
|
28
|
+
}), (e, s) => (_(), x("div", g));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
P as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/annotations/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { \"data-vis-annotations\": \"\" }\n\nimport { Annotations, AnnotationsConfigInterface, AnnotationItem } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, nextTick, inject } from 'vue'\nimport { arePropsEqual, useForwardProps } from '../../utils/props'\nimport { annotationsAccessorKey } from '../../utils/context'\n\ninterface Props extends AnnotationsConfigInterface { }\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n items: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(annotationsAccessorKey)\n\n// data and required props \n\n\n\n// config\nconst config = useForwardProps(props)\n\n// component declaration\nconst component = ref<Annotations>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Annotations(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\n__expose({\n component\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1))\n}\n}\n\n})"],"names":["_hoisted_1","_sfc_main","_defineComponent","__props","__expose","props","accessor","inject","annotationsAccessorKey","config","useForwardProps","component","ref","onMounted","nextTick","Annotations","onUnmounted","_a","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,wBAAwB,MASjBC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAC;AAAA,IACR,UAAU,CAAC;AAAA,IACX,QAAQ,CAAC;AAAA,IACT,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc,EAAE,QAAQC,KAAY;AAE5C,UAAMC,IAAQF,GAGRG,IAAWC,EAAOC,CAAsB,GAOxCC,IAASC,EAAgBL,CAAK,GAG9BM,IAAYC;AAGlB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;AACb,QAAAH,EAAU,QAAQ,IAAII,EAAYN,EAAO,KAAK,GAErCH,EAAA,OAAOK,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDK,EAAY,MAAM;;AAChB,OAAAC,IAAAN,EAAU,UAAV,QAAAM,EAAiB,WACjBX,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKY,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,MACjBH,IAAAN,EAAA,UAAA,QAAAM,EAAO,UAAUR,EAAO;AAAA,IACpC,CACD,GAGQL,EAAA;AAAA,MACP,WAAAO;AAAA,IAAA,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAOzB,CAAU;AAAA,EAE7D;AAEA,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -5,18 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: import("@unovis/ts").ColorAccessor<Datum[]>;
|
|
9
|
-
curveType?: import("@unovis/ts").CurveType;
|
|
10
|
-
baseline?: NumericAccessor<Datum>;
|
|
11
|
-
opacity?: NumericAccessor<Datum[]>;
|
|
12
|
-
cursor?: import("@unovis/ts").StringAccessor<Datum[]>;
|
|
13
|
-
minHeight1Px?: boolean;
|
|
14
|
-
x: NumericAccessor<Datum>;
|
|
15
|
-
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
16
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
17
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
18
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
19
|
-
excludeFromDomainCalculation?: boolean;
|
|
20
8
|
duration?: number;
|
|
21
9
|
events?: {
|
|
22
10
|
[selector: string]: {
|
|
@@ -49,6 +37,18 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
49
37
|
};
|
|
50
38
|
};
|
|
51
39
|
data?: Datum[];
|
|
40
|
+
color?: import("@unovis/ts").ColorAccessor<Datum[]>;
|
|
41
|
+
curveType?: string;
|
|
42
|
+
baseline?: NumericAccessor<Datum>;
|
|
43
|
+
opacity?: NumericAccessor<Datum[]>;
|
|
44
|
+
cursor?: import("@unovis/ts").StringAccessor<Datum[]>;
|
|
45
|
+
minHeight1Px?: boolean;
|
|
46
|
+
x: NumericAccessor<Datum>;
|
|
47
|
+
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
48
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
49
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
50
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
51
|
+
excludeFromDomainCalculation?: boolean;
|
|
52
52
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
53
53
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
54
54
|
component: import("vue").Ref<Area<Datum>>;
|
|
@@ -5,13 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: string | string[] | ((d: Datum, i: number, ...any: unknown[]) => string) | ((d: Datum[], i: number, ...any: unknown[]) => string);
|
|
9
|
-
x?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
10
|
-
y?: import("@unovis/ts").NumericAccessor<Datum> | import("@unovis/ts").NumericAccessor<Datum>[];
|
|
11
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
12
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
13
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
excludeFromDomainCalculation?: boolean;
|
|
15
8
|
duration?: number;
|
|
16
9
|
events?: {
|
|
17
10
|
[selector: string]: {
|
|
@@ -45,6 +38,13 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
45
38
|
};
|
|
46
39
|
data?: Datum[];
|
|
47
40
|
label?: string;
|
|
41
|
+
color?: string | string[] | ((d: Datum, i: number, ...any: unknown[]) => string) | ((d: Datum[], i: number, ...any: unknown[]) => string);
|
|
42
|
+
x?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
43
|
+
y?: import("@unovis/ts").NumericAccessor<Datum> | import("@unovis/ts").NumericAccessor<Datum>[];
|
|
44
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
45
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
46
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
47
|
+
excludeFromDomainCalculation?: boolean;
|
|
48
48
|
position?: string;
|
|
49
49
|
type?: string;
|
|
50
50
|
fullSize?: boolean;
|
|
@@ -5,13 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: string | string[] | ((d: Datum, i: number, ...any: unknown[]) => string) | ((d: Datum[], i: number, ...any: unknown[]) => string);
|
|
9
|
-
x?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
10
|
-
y?: import("@unovis/ts").NumericAccessor<Datum> | import("@unovis/ts").NumericAccessor<Datum>[];
|
|
11
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
12
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
13
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
excludeFromDomainCalculation?: boolean;
|
|
15
8
|
duration?: number;
|
|
16
9
|
events?: {
|
|
17
10
|
[selector: string]: {
|
|
@@ -44,6 +37,13 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
44
37
|
};
|
|
45
38
|
};
|
|
46
39
|
data?: Datum[];
|
|
40
|
+
color?: string | string[] | ((d: Datum, i: number, ...any: unknown[]) => string) | ((d: Datum[], i: number, ...any: unknown[]) => string);
|
|
41
|
+
x?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
42
|
+
y?: import("@unovis/ts").NumericAccessor<Datum> | import("@unovis/ts").NumericAccessor<Datum>[];
|
|
43
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
44
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
45
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
46
|
+
excludeFromDomainCalculation?: boolean;
|
|
47
47
|
onBrush?: (selection: [number, number], event: import("d3-brush").D3BrushEvent<Datum>, userDriven: boolean) => void;
|
|
48
48
|
onBrushStart?: (selection: [number, number], event: import("d3-brush").D3BrushEvent<Datum>, userDriven: boolean) => void;
|
|
49
49
|
onBrushMove?: (selection: [number, number], event: import("d3-brush").D3BrushEvent<Datum>, userDriven: boolean) => void;
|
|
@@ -5,14 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
9
|
-
baseline?: NumericAccessor<Datum>;
|
|
10
|
-
x?: NumericAccessor<Datum>;
|
|
11
|
-
y?: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
12
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
13
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
15
|
-
excludeFromDomainCalculation?: boolean;
|
|
16
8
|
duration?: number;
|
|
17
9
|
events?: {
|
|
18
10
|
[selector: string]: {
|
|
@@ -46,6 +38,14 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
46
38
|
};
|
|
47
39
|
data?: Datum[];
|
|
48
40
|
template?: (data: Datum, x: number | Date) => string | HTMLElement;
|
|
41
|
+
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
42
|
+
baseline?: NumericAccessor<Datum>;
|
|
43
|
+
x?: NumericAccessor<Datum>;
|
|
44
|
+
y?: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
45
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
46
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
47
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
48
|
+
excludeFromDomainCalculation?: boolean;
|
|
49
49
|
yStacked?: NumericAccessor<Datum>[];
|
|
50
50
|
tooltip?: import("@unovis/ts").Tooltip;
|
|
51
51
|
hideWhenFarFromPointer?: boolean;
|
|
@@ -5,9 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
value: NumericAccessor<Datum>;
|
|
9
|
-
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
10
|
-
id?: (d: Datum, i: number, ...any: unknown[]) => string | number;
|
|
11
8
|
duration?: number;
|
|
12
9
|
events?: {
|
|
13
10
|
[selector: string]: {
|
|
@@ -40,6 +37,9 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
39
|
data?: Datum[];
|
|
40
|
+
value: NumericAccessor<Datum>;
|
|
41
|
+
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
42
|
+
id?: (d: Datum, i: number, ...any: unknown[]) => string | number;
|
|
43
43
|
angleRange?: [number, number];
|
|
44
44
|
cornerRadius?: number;
|
|
45
45
|
padAngle?: number;
|
|
@@ -5,13 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: string | string[] | ((d: Datum, i: number, ...any: unknown[]) => string) | ((d: Datum[], i: number, ...any: unknown[]) => string);
|
|
9
|
-
x?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
10
|
-
y?: import("@unovis/ts").NumericAccessor<Datum> | import("@unovis/ts").NumericAccessor<Datum>[];
|
|
11
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
12
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
13
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
excludeFromDomainCalculation?: boolean;
|
|
15
8
|
duration?: number;
|
|
16
9
|
events?: {
|
|
17
10
|
[selector: string]: {
|
|
@@ -44,6 +37,13 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
44
37
|
};
|
|
45
38
|
};
|
|
46
39
|
data?: Datum[];
|
|
40
|
+
color?: string | string[] | ((d: Datum, i: number, ...any: unknown[]) => string) | ((d: Datum[], i: number, ...any: unknown[]) => string);
|
|
41
|
+
x?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
42
|
+
y?: import("@unovis/ts").NumericAccessor<Datum> | import("@unovis/ts").NumericAccessor<Datum>[];
|
|
43
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
44
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
45
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
46
|
+
excludeFromDomainCalculation?: boolean;
|
|
47
47
|
onBrush?: (selection: import("@unovis/ts").FreeBrushSelection, event: import("d3-brush").D3BrushEvent<unknown>, userDriven: boolean) => void;
|
|
48
48
|
onBrushStart?: (selection: import("@unovis/ts").FreeBrushSelection, event: import("d3-brush").D3BrushEvent<unknown>, userDriven: boolean) => void;
|
|
49
49
|
onBrushMove?: (selection: import("@unovis/ts").FreeBrushSelection, event: import("d3-brush").D3BrushEvent<unknown>, userDriven: boolean) => void;
|
|
@@ -5,14 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
9
|
-
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
10
|
-
x: NumericAccessor<Datum>;
|
|
11
|
-
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
12
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
13
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
15
|
-
excludeFromDomainCalculation?: boolean;
|
|
16
8
|
duration?: number;
|
|
17
9
|
events?: {
|
|
18
10
|
[selector: string]: {
|
|
@@ -45,6 +37,14 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
45
37
|
};
|
|
46
38
|
};
|
|
47
39
|
data?: Datum[];
|
|
40
|
+
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
41
|
+
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
42
|
+
x: NumericAccessor<Datum>;
|
|
43
|
+
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
44
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
45
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
46
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
47
|
+
excludeFromDomainCalculation?: boolean;
|
|
48
48
|
groupWidth?: number;
|
|
49
49
|
groupMaxWidth?: number;
|
|
50
50
|
dataStep?: number;
|
|
@@ -5,15 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: import("@unovis/ts").ColorAccessor<Datum[]>;
|
|
9
|
-
curveType?: import("@unovis/ts").CurveType;
|
|
10
|
-
cursor?: import("@unovis/ts").StringAccessor<Datum[]>;
|
|
11
|
-
x: NumericAccessor<Datum>;
|
|
12
|
-
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
13
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
14
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
15
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
16
|
-
excludeFromDomainCalculation?: boolean;
|
|
17
8
|
duration?: number;
|
|
18
9
|
events?: {
|
|
19
10
|
[selector: string]: {
|
|
@@ -46,6 +37,15 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
46
37
|
};
|
|
47
38
|
};
|
|
48
39
|
data?: Datum[];
|
|
40
|
+
color?: import("@unovis/ts").ColorAccessor<Datum[]>;
|
|
41
|
+
curveType?: import("@unovis/ts").CurveType;
|
|
42
|
+
cursor?: import("@unovis/ts").StringAccessor<Datum[]>;
|
|
43
|
+
x: NumericAccessor<Datum>;
|
|
44
|
+
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
45
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
46
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
47
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
48
|
+
excludeFromDomainCalculation?: boolean;
|
|
49
49
|
lineWidth?: number;
|
|
50
50
|
lineDashArray?: import("@unovis/ts").GenericAccessor<number[], Datum[]>;
|
|
51
51
|
fallbackValue?: number;
|
|
@@ -5,7 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
value?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
9
8
|
duration?: number;
|
|
10
9
|
events?: {
|
|
11
10
|
[selector: string]: {
|
|
@@ -38,6 +37,7 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
38
37
|
};
|
|
39
38
|
};
|
|
40
39
|
data?: Datum[];
|
|
40
|
+
value?: import("@unovis/ts").NumericAccessor<Datum>;
|
|
41
41
|
angleRange?: [number, number];
|
|
42
42
|
cornerRadius?: number;
|
|
43
43
|
centralLabel?: string;
|
|
@@ -5,7 +5,6 @@ declare const _default: <N extends import("@unovis/ts").GraphInputNode, L extend
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
id?: (d: import("@unovis/ts").GraphInputNode | import("@unovis/ts").GraphInputLink, i: number, ...any: unknown[]) => string;
|
|
9
8
|
duration?: number;
|
|
10
9
|
events?: {
|
|
11
10
|
[selector: string]: {
|
|
@@ -42,6 +41,7 @@ declare const _default: <N extends import("@unovis/ts").GraphInputNode, L extend
|
|
|
42
41
|
links?: L[];
|
|
43
42
|
};
|
|
44
43
|
label?: import("@unovis/ts").StringAccessor<import("@unovis/ts").SankeyNode<N, L>>;
|
|
44
|
+
id?: (d: import("@unovis/ts").GraphInputNode | import("@unovis/ts").GraphInputLink, i: number, ...any: unknown[]) => string;
|
|
45
45
|
labelFontSize?: number;
|
|
46
46
|
labelColor?: import("@unovis/ts").ColorAccessor<import("@unovis/ts").SankeyNode<N, L>>;
|
|
47
47
|
linkColor?: import("@unovis/ts").StringAccessor<import("@unovis/ts").SankeyLink<N, L>>;
|
|
@@ -5,14 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
9
|
-
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
10
|
-
x: NumericAccessor<Datum>;
|
|
11
|
-
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
12
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
13
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
15
|
-
excludeFromDomainCalculation?: boolean;
|
|
16
8
|
duration?: number;
|
|
17
9
|
events?: {
|
|
18
10
|
[selector: string]: {
|
|
@@ -46,6 +38,14 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
46
38
|
};
|
|
47
39
|
data?: Datum[];
|
|
48
40
|
label?: import("@unovis/ts").StringAccessor<Datum>;
|
|
41
|
+
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
42
|
+
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
43
|
+
x: NumericAccessor<Datum>;
|
|
44
|
+
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
45
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
46
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
47
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
48
|
+
excludeFromDomainCalculation?: boolean;
|
|
49
49
|
labelColor?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
50
50
|
labelPosition?: import("@unovis/ts").GenericAccessor<string, Datum>;
|
|
51
51
|
size?: NumericAccessor<Datum>;
|
|
@@ -5,14 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
9
|
-
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
10
|
-
x: NumericAccessor<Datum>;
|
|
11
|
-
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
12
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
13
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
15
|
-
excludeFromDomainCalculation?: boolean;
|
|
16
8
|
duration?: number;
|
|
17
9
|
events?: {
|
|
18
10
|
[selector: string]: {
|
|
@@ -45,6 +37,14 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
45
37
|
};
|
|
46
38
|
};
|
|
47
39
|
data?: Datum[];
|
|
40
|
+
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
41
|
+
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
42
|
+
x: NumericAccessor<Datum>;
|
|
43
|
+
y: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
44
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
45
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
46
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
47
|
+
excludeFromDomainCalculation?: boolean;
|
|
48
48
|
dataStep?: number;
|
|
49
49
|
barPadding?: number;
|
|
50
50
|
roundedCorners?: number | boolean;
|
|
@@ -6,14 +6,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
6
6
|
slots: any;
|
|
7
7
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
8
8
|
props: {
|
|
9
|
-
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
10
|
-
cursor?: StringAccessor<Datum>;
|
|
11
|
-
x: NumericAccessor<Datum>;
|
|
12
|
-
y?: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
13
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
14
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
15
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
16
|
-
excludeFromDomainCalculation?: boolean;
|
|
17
9
|
duration?: number;
|
|
18
10
|
events?: {
|
|
19
11
|
[selector: string]: {
|
|
@@ -48,6 +40,14 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
48
40
|
data?: Datum[];
|
|
49
41
|
length?: NumericAccessor<Datum>;
|
|
50
42
|
onScroll?: (scrollTop: number) => void;
|
|
43
|
+
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
44
|
+
cursor?: StringAccessor<Datum>;
|
|
45
|
+
x: NumericAccessor<Datum>;
|
|
46
|
+
y?: NumericAccessor<Datum> | NumericAccessor<Datum>[];
|
|
47
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
48
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
49
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
50
|
+
excludeFromDomainCalculation?: boolean;
|
|
51
51
|
type?: StringAccessor<Datum>;
|
|
52
52
|
showEmptySegments?: boolean;
|
|
53
53
|
lineWidth?: NumericAccessor<Datum>;
|
|
@@ -5,14 +5,6 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
9
|
-
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
10
|
-
x: NumericAccessor<Datum>;
|
|
11
|
-
y: NumericAccessor<Datum>;
|
|
12
|
-
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
13
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
14
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
15
|
-
excludeFromDomainCalculation?: boolean;
|
|
16
8
|
duration?: number;
|
|
17
9
|
events?: {
|
|
18
10
|
[selector: string]: {
|
|
@@ -46,6 +38,14 @@ declare const _default: <Datum>(__VLS_props: any, __VLS_ctx?: {
|
|
|
46
38
|
};
|
|
47
39
|
data?: Datum[];
|
|
48
40
|
label?: import("@unovis/ts").StringAccessor<Datum>;
|
|
41
|
+
color?: import("@unovis/ts").ColorAccessor<Datum>;
|
|
42
|
+
cursor?: import("@unovis/ts").StringAccessor<Datum>;
|
|
43
|
+
x: NumericAccessor<Datum>;
|
|
44
|
+
y: NumericAccessor<Datum>;
|
|
45
|
+
id?: (d: Datum, i: number, ...any: any[]) => string;
|
|
46
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
47
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
48
|
+
excludeFromDomainCalculation?: boolean;
|
|
49
49
|
labelFontSize?: NumericAccessor<Datum>;
|
|
50
50
|
labelTextBrightnessRatio?: number;
|
|
51
51
|
xPositioning?: import("@unovis/ts").GenericAccessor<string, Datum>;
|
package/components.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { default as VisGraph } from "./components/graph/index";
|
|
|
16
16
|
export { default as VisChordDiagram } from "./components/chord-diagram/index";
|
|
17
17
|
export { default as VisNestedDonut } from "./components/nested-donut/index";
|
|
18
18
|
export { default as VisTooltip } from "./components/tooltip/index";
|
|
19
|
+
export { default as VisAnnotations } from "./components/annotations/index";
|
|
19
20
|
export { default as VisLeafletMap } from "./html-components/leaflet-map/index";
|
|
20
21
|
export { default as VisLeafletFlowMap } from "./html-components/leaflet-flow-map/index";
|
|
21
22
|
export { default as VisBulletLegend } from "./html-components/bullet-legend/index";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),u=require("@unovis/ts"),
|
|
1
|
+
"use strict";const e=require("vue"),u=require("@unovis/ts"),a=require("../../utils/context.cjs"),v=require("../../utils/props.cjs"),f=e.defineComponent({__name:"index",props:{component:{},tooltip:{},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(p,{expose:d}){const r=p,{data:s}=e.toRefs(r),l=v.useForwardProps(r);let o;const t=e.reactive({component:void 0,tooltip:void 0,annotations:void 0}),i=e.ref(),c=()=>{o||i.value&&t.component&&(o=new u.SingleContainer(i.value,{...e.toRaw(t)},s.value))};return e.watchEffect(()=>{var n;c(),(n=t.component)==null||n.config,o==null||o.updateContainer({...e.toRaw(l.value),...e.toRaw(t)})}),e.watch(s,()=>{o?o.setData(s.value,!0):c()}),e.onUnmounted(()=>o==null?void 0:o.destroy()),e.provide(a.componentAccessorKey,{data:s,update:n=>t.component=n,destroy:()=>t.component=void 0}),e.provide(a.tooltipAccessorKey,{data:s,update:n=>t.tooltip=n,destroy:()=>{t.tooltip=void 0}}),e.provide(a.annotationsAccessorKey,{data:s,update:n=>t.annotations=n,destroy:()=>{t.annotations=void 0}}),d({component:o}),(n,m)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-single-container":"",ref_key:"elRef",ref:i,class:"unovis-single-container"},[e.renderSlot(n.$slots,"default")],512))}});module.exports=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/containers/single-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { SingleContainer, ComponentCore, SingleContainerConfigInterface, Tooltip } from '@unovis/ts'\nimport { onUnmounted, ref, provide, watch, toRefs, watchEffect, reactive, toRaw } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/containers/single-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { SingleContainer, ComponentCore, SingleContainerConfigInterface, Tooltip, Annotations } from '@unovis/ts'\nimport { onUnmounted, ref, provide, watch, toRefs, watchEffect, reactive, toRaw } from 'vue'\nimport { annotationsAccessorKey, componentAccessorKey, tooltipAccessorKey, } from \"../../utils/context\"\nimport { useForwardProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n component: {},\n tooltip: {},\n annotations: {},\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst parsedProps = useForwardProps(props)\n\nlet chart: SingleContainer<T>\nconst config = reactive({\n component: undefined,\n tooltip: undefined,\n annotations: undefined,\n}) as SingleContainerConfigInterface<T>\nconst elRef = ref<HTMLDivElement>()\n\nconst initChart = () => {\n if (chart) return\n if (elRef.value && config.component)\n chart = new SingleContainer(elRef.value, { ...toRaw(config) }, data.value)\n}\n\nwatchEffect(() => {\n initChart()\n // watch deep changes in components config\n const t = config.component?.config\n chart?.updateContainer({ ...toRaw(parsedProps.value), ...toRaw(config) })\n})\n\nwatch(data, () => {\n if (chart) {\n chart.setData(data.value, true)\n } else {\n initChart()\n }\n})\n\nonUnmounted(() => chart?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: ComponentCore<T>) => config.component = c,\n destroy: () => config.component = undefined,\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.tooltip = t,\n destroy: () => { config.tooltip = undefined },\n})\n\nprovide(annotationsAccessorKey, {\n data,\n update: (a: Annotations) => config.annotations = a,\n destroy: () => { config.annotations = undefined },\n})\n\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-single-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-single-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","parsedProps","useForwardProps","chart","config","reactive","elRef","ref","initChart","SingleContainer","toRaw","watchEffect","_a","watch","onUnmounted","provide","componentAccessorKey","c","tooltipAccessorKey","t","annotationsAccessorKey","a","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":"oIAS4BA,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,UAAW,CAAC,EACZ,QAAS,CAAC,EACV,YAAa,CAAC,EACd,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,QAAS,CAAC,EACV,OAAQ,CAAC,EACT,MAAO,CAAC,EACR,OAAQ,CAAC,EACT,QAAS,CAAC,EACV,UAAW,CAAC,EACZ,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAAE,OAAQC,GAAY,CAE5C,MAAMC,EAAQF,EAGR,CAAE,KAAAG,CAAA,EAASC,EAAA,OAAOF,CAAK,EACvBG,EAAcC,kBAAgBJ,CAAK,EAErC,IAAAK,EACJ,MAAMC,EAASC,EAAAA,SAAS,CACtB,UAAW,OACX,QAAS,OACT,YAAa,MAAA,CACd,EACKC,EAAQC,EAAAA,MAERC,EAAY,IAAM,CAClBL,GACAG,EAAM,OAASF,EAAO,YAChBD,EAAA,IAAIM,EAAAA,gBAAgBH,EAAM,MAAO,CAAE,GAAGI,EAAA,MAAMN,CAAM,CAAA,EAAKL,EAAK,KAAK,EAAA,EAG7EY,OAAAA,EAAAA,YAAY,IAAM,OACNH,KAEAI,EAAAR,EAAO,YAAP,MAAAQ,EAAkB,OACrBT,GAAA,MAAAA,EAAA,gBAAgB,CAAE,GAAGO,EAAAA,MAAMT,EAAY,KAAK,EAAG,GAAGS,EAAA,MAAMN,CAAM,CAAA,EAAG,CACzE,EAEDS,EAAA,MAAMd,EAAM,IAAM,CACZI,EACIA,EAAA,QAAQJ,EAAK,MAAO,EAAI,EAEpBS,GACZ,CACD,EAEWM,EAAAA,YAAA,IAAMX,GAAA,YAAAA,EAAO,SAAS,EAElCY,EAAAA,QAAQC,EAAAA,qBAAsB,CAC5B,KAAAjB,EACA,OAASkB,GAAwBb,EAAO,UAAYa,EACpD,QAAS,IAAMb,EAAO,UAAY,MAAA,CACnC,EAEDW,EAAAA,QAAQG,EAAAA,mBAAoB,CAC1B,KAAAnB,EACA,OAASoB,GAAef,EAAO,QAAUe,EACzC,QAAS,IAAM,CAAEf,EAAO,QAAU,MAAU,CAAA,CAC7C,EAEDW,EAAAA,QAAQK,EAAAA,uBAAwB,CAC9B,KAAArB,EACA,OAASsB,GAAmBjB,EAAO,YAAciB,EACjD,QAAS,IAAM,CAAEjB,EAAO,YAAc,MAAU,CAAA,CACjD,EAGQP,EAAA,CACP,UAAWM,CAAA,CACZ,EAEM,CAACmB,EAAUC,KACRC,EAAA,UAAA,EAAcC,EAAA,mBAAoB,MAAO,CAC/C,4BAA6B,GAC7B,QAAS,QACT,IAAKnB,EACL,MAAO,yBAAA,EACN,CACDoB,aAAYJ,EAAK,OAAQ,SAAS,GACjC,GAAG,EAER,CAEA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SingleContainer, ComponentCore, Tooltip } from '@unovis/ts';
|
|
1
|
+
import { SingleContainer, ComponentCore, Tooltip, Annotations } from '@unovis/ts';
|
|
2
2
|
declare const _default: <T>(__VLS_props: any, __VLS_ctx?: {
|
|
3
3
|
attrs: any;
|
|
4
4
|
emit: any;
|
|
@@ -9,6 +9,7 @@ declare const _default: <T>(__VLS_props: any, __VLS_ctx?: {
|
|
|
9
9
|
data?: T;
|
|
10
10
|
tooltip?: Tooltip;
|
|
11
11
|
component?: ComponentCore<T, import("@unovis/ts").ComponentConfigInterface>;
|
|
12
|
+
annotations?: Annotations;
|
|
12
13
|
margin?: import("@unovis/ts").Spacing;
|
|
13
14
|
padding?: import("@unovis/ts").Spacing;
|
|
14
15
|
sizing?: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as f, toRefs as m, reactive as u, ref as v, watchEffect as g, watch as
|
|
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, openBlock as _, createElementBlock as h, renderSlot as C, toRaw as s } from "vue";
|
|
2
2
|
import { SingleContainer as R } from "@unovis/ts";
|
|
3
|
-
import { componentAccessorKey as k, tooltipAccessorKey as x } from "../../utils/context.js";
|
|
4
|
-
import { useForwardProps as
|
|
5
|
-
const
|
|
3
|
+
import { componentAccessorKey as k, tooltipAccessorKey as x, annotationsAccessorKey as A } from "../../utils/context.js";
|
|
4
|
+
import { useForwardProps as K } from "../../utils/props.js";
|
|
5
|
+
const b = /* @__PURE__ */ f({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
component: {},
|
|
9
9
|
tooltip: {},
|
|
10
|
+
annotations: {},
|
|
10
11
|
duration: {},
|
|
11
12
|
margin: {},
|
|
12
13
|
padding: {},
|
|
@@ -18,31 +19,38 @@ const S = /* @__PURE__ */ f({
|
|
|
18
19
|
data: {}
|
|
19
20
|
},
|
|
20
21
|
setup(c, { expose: d }) {
|
|
21
|
-
const
|
|
22
|
-
let
|
|
23
|
-
const
|
|
22
|
+
const r = c, { data: n } = m(r), l = K(r);
|
|
23
|
+
let o;
|
|
24
|
+
const e = u({
|
|
24
25
|
component: void 0,
|
|
25
|
-
tooltip: void 0
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
tooltip: void 0,
|
|
27
|
+
annotations: void 0
|
|
28
|
+
}), i = v(), p = () => {
|
|
29
|
+
o || i.value && e.component && (o = new R(i.value, { ...s(e) }, n.value));
|
|
28
30
|
};
|
|
29
31
|
return g(() => {
|
|
30
32
|
var t;
|
|
31
|
-
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
}),
|
|
33
|
+
p(), (t = e.component) == null || t.config, o == null || o.updateContainer({ ...s(l.value), ...s(e) });
|
|
34
|
+
}), y(n, () => {
|
|
35
|
+
o ? o.setData(n.value, !0) : p();
|
|
36
|
+
}), w(() => o == null ? void 0 : o.destroy()), a(k, {
|
|
35
37
|
data: n,
|
|
36
|
-
update: (t) =>
|
|
37
|
-
destroy: () =>
|
|
38
|
-
}),
|
|
38
|
+
update: (t) => e.component = t,
|
|
39
|
+
destroy: () => e.component = void 0
|
|
40
|
+
}), a(x, {
|
|
39
41
|
data: n,
|
|
40
|
-
update: (t) =>
|
|
42
|
+
update: (t) => e.tooltip = t,
|
|
41
43
|
destroy: () => {
|
|
42
|
-
|
|
44
|
+
e.tooltip = void 0;
|
|
45
|
+
}
|
|
46
|
+
}), a(A, {
|
|
47
|
+
data: n,
|
|
48
|
+
update: (t) => e.annotations = t,
|
|
49
|
+
destroy: () => {
|
|
50
|
+
e.annotations = void 0;
|
|
43
51
|
}
|
|
44
52
|
}), d({
|
|
45
|
-
component:
|
|
53
|
+
component: o
|
|
46
54
|
}), (t, B) => (_(), h("div", {
|
|
47
55
|
"data-vis-single-container": "",
|
|
48
56
|
ref_key: "elRef",
|
|
@@ -54,6 +62,6 @@ const S = /* @__PURE__ */ f({
|
|
|
54
62
|
}
|
|
55
63
|
});
|
|
56
64
|
export {
|
|
57
|
-
|
|
65
|
+
b as default
|
|
58
66
|
};
|
|
59
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/containers/single-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { SingleContainer, ComponentCore, SingleContainerConfigInterface, Tooltip } from '@unovis/ts'\nimport { onUnmounted, ref, provide, watch, toRefs, watchEffect, reactive, toRaw } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/containers/single-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { SingleContainer, ComponentCore, SingleContainerConfigInterface, Tooltip, Annotations } from '@unovis/ts'\nimport { onUnmounted, ref, provide, watch, toRefs, watchEffect, reactive, toRaw } from 'vue'\nimport { annotationsAccessorKey, componentAccessorKey, tooltipAccessorKey, } from \"../../utils/context\"\nimport { useForwardProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n component: {},\n tooltip: {},\n annotations: {},\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst parsedProps = useForwardProps(props)\n\nlet chart: SingleContainer<T>\nconst config = reactive({\n component: undefined,\n tooltip: undefined,\n annotations: undefined,\n}) as SingleContainerConfigInterface<T>\nconst elRef = ref<HTMLDivElement>()\n\nconst initChart = () => {\n if (chart) return\n if (elRef.value && config.component)\n chart = new SingleContainer(elRef.value, { ...toRaw(config) }, data.value)\n}\n\nwatchEffect(() => {\n initChart()\n // watch deep changes in components config\n const t = config.component?.config\n chart?.updateContainer({ ...toRaw(parsedProps.value), ...toRaw(config) })\n})\n\nwatch(data, () => {\n if (chart) {\n chart.setData(data.value, true)\n } else {\n initChart()\n }\n})\n\nonUnmounted(() => chart?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: ComponentCore<T>) => config.component = c,\n destroy: () => config.component = undefined,\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.tooltip = t,\n destroy: () => { config.tooltip = undefined },\n})\n\nprovide(annotationsAccessorKey, {\n data,\n update: (a: Annotations) => config.annotations = a,\n destroy: () => { config.annotations = undefined },\n})\n\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-single-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-single-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","parsedProps","useForwardProps","chart","config","reactive","elRef","ref","initChart","SingleContainer","toRaw","watchEffect","_a","watch","onUnmounted","provide","componentAccessorKey","c","tooltipAccessorKey","annotationsAccessorKey","a","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":";;;;AASA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,SAAS,CAAC;AAAA,IACV,aAAa,CAAC;AAAA,IACd,UAAU,CAAC;AAAA,IACX,QAAQ,CAAC;AAAA,IACT,SAAS,CAAC;AAAA,IACV,QAAQ,CAAC;AAAA,IACT,OAAO,CAAC;AAAA,IACR,QAAQ,CAAC;AAAA,IACT,SAAS,CAAC;AAAA,IACV,WAAW,CAAC;AAAA,IACZ,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc,EAAE,QAAQC,KAAY;AAE5C,UAAMC,IAAQF,GAGR,EAAE,MAAAG,EAAA,IAASC,EAAOF,CAAK,GACvBG,IAAcC,EAAgBJ,CAAK;AAErC,QAAAK;AACJ,UAAMC,IAASC,EAAS;AAAA,MACtB,WAAW;AAAA,MACX,SAAS;AAAA,MACT,aAAa;AAAA,IAAA,CACd,GACKC,IAAQC,KAERC,IAAY,MAAM;AAClB,MAAAL,KACAG,EAAM,SAASF,EAAO,cAChBD,IAAA,IAAIM,EAAgBH,EAAM,OAAO,EAAE,GAAGI,EAAMN,CAAM,EAAA,GAAKL,EAAK,KAAK;AAAA,IAAA;AAG7E,WAAAY,EAAY,MAAM;;AACN,MAAAH,MAEAI,IAAAR,EAAO,cAAP,QAAAQ,EAAkB,QACrBT,KAAA,QAAAA,EAAA,gBAAgB,EAAE,GAAGO,EAAMT,EAAY,KAAK,GAAG,GAAGS,EAAMN,CAAM,EAAA;AAAA,IAAG,CACzE,GAEDS,EAAMd,GAAM,MAAM;AAChB,MAAII,IACIA,EAAA,QAAQJ,EAAK,OAAO,EAAI,IAEpBS;IACZ,CACD,GAEWM,EAAA,MAAMX,KAAA,gBAAAA,EAAO,SAAS,GAElCY,EAAQC,GAAsB;AAAA,MAC5B,MAAAjB;AAAA,MACA,QAAQ,CAACkB,MAAwBb,EAAO,YAAYa;AAAA,MACpD,SAAS,MAAMb,EAAO,YAAY;AAAA,IAAA,CACnC,GAEDW,EAAQG,GAAoB;AAAA,MAC1B,MAAAnB;AAAA,MACA,QAAQ,CAAC,MAAeK,EAAO,UAAU;AAAA,MACzC,SAAS,MAAM;AAAE,QAAAA,EAAO,UAAU;AAAA,MAAU;AAAA,IAAA,CAC7C,GAEDW,EAAQI,GAAwB;AAAA,MAC9B,MAAApB;AAAA,MACA,QAAQ,CAACqB,MAAmBhB,EAAO,cAAcgB;AAAA,MACjD,SAAS,MAAM;AAAE,QAAAhB,EAAO,cAAc;AAAA,MAAU;AAAA,IAAA,CACjD,GAGQP,EAAA;AAAA,MACP,WAAWM;AAAA,IAAA,CACZ,GAEM,CAACkB,GAAUC,OACRC,EAAA,GAAcC,EAAoB,OAAO;AAAA,MAC/C,6BAA6B;AAAA,MAC7B,SAAS;AAAA,MACT,KAAKlB;AAAA,MACL,OAAO;AAAA,IAAA,GACN;AAAA,MACDmB,EAAYJ,EAAK,QAAQ,SAAS;AAAA,OACjC,GAAG;AAAA,EAER;AAEA,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("vue"),l=require("@unovis/ts"),s=require("../../utils/context.cjs"),v=require("../../utils/props.cjs"),y=e.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(p,{expose:d}){const c=p,{data:n}=e.toRefs(c),u=v.useForwardProps(c),a=e.ref(),t=e.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),r=e.ref();return e.watch(n,()=>{a.value&&a.value.setData(n.value,!0)}),e.watchEffect(()=>{var o;t.components.map(i=>i.config),(o=a.value)==null||o.updateContainer({...e.toRaw(u.value),...e.toRaw(t)})}),e.onMounted(()=>{r.value&&(a.value=new l.XYContainer(r.value,{...e.toRaw(t)},n.value))}),e.onUnmounted(()=>{var o;return(o=a.value)==null?void 0:o.destroy()}),e.provide(s.componentAccessorKey,{data:n,update:o=>t.components=[...t.components,o],destroy:()=>{var o;return t.components=(o=t.components)==null?void 0:o.filter(i=>!i.isDestroyed())}}),e.provide(s.axisAccessorKey,{data:n,update:o=>t[`${o.config.type}Axis`]=o,destroy:o=>{t[`${o}Axis`]=void 0}}),e.provide(s.crosshairAccessorKey,{data:n,update:o=>t.crosshair=o,destroy:()=>{t.crosshair=void 0}}),e.provide(s.tooltipAccessorKey,{data:n,update:o=>t.tooltip=o,destroy:()=>{t.tooltip=void 0}}),e.provide(s.annotationsAccessorKey,{data:n,update:o=>t.annotations=o,destroy:()=>{t.annotations=void 0}}),d({component:a}),(o,i)=>(e.openBlock(),e.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:r,class:"unovis-xy-container"},[e.renderSlot(o.$slots,"default")],512))}});module.exports=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, reactive, watchEffect, toRaw } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey } from \"../../utils/context\"\nimport { useForwardProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst parsedProps = useForwardProps(props)\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config = reactive({\n components: [],\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}) as XYContainerConfigInterface<T>\nconst elRef = ref<HTMLDivElement>()\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n }\n})\n\nwatchEffect(() => {\n // watch deep changes in components config\n const t = config.components.map(i => i.config)\n chart.value?.updateContainer({ ...toRaw(parsedProps.value), ...toRaw(config) })\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, { ...toRaw(config) }, data.value)\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => config.components = [...config.components!, c],\n destroy: () => config.components = config.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => config[`${c.config.type}Axis`] = c,\n destroy: (c) => { config[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => config.crosshair = c,\n destroy: () => { config.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.tooltip = t,\n destroy: () => { config.tooltip = undefined },\n})\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","parsedProps","useForwardProps","chart","ref","config","reactive","elRef","watch","watchEffect","
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, reactive, watchEffect, toRaw } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey, annotationsAccessorKey } from \"../../utils/context\"\nimport { useForwardProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n annotations: {},\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst parsedProps = useForwardProps(props)\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config = reactive({\n components: [],\n annotations: undefined,\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}) as XYContainerConfigInterface<T>\nconst elRef = ref<HTMLDivElement>()\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n }\n})\n\nwatchEffect(() => {\n // watch deep changes in components config\n const t = config.components.map(i => i.config)\n chart.value?.updateContainer({ ...toRaw(parsedProps.value), ...toRaw(config) })\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, { ...toRaw(config) }, data.value)\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => config.components = [...config.components!, c],\n destroy: () => config.components = config.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => config[`${c.config.type}Axis`] = c,\n destroy: (c) => { config[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => config.crosshair = c,\n destroy: () => { config.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.tooltip = t,\n destroy: () => { config.tooltip = undefined },\n})\n\nprovide(annotationsAccessorKey, {\n data,\n update: (a: Annotations) => config.annotations = a,\n destroy: () => { config.annotations = undefined },\n})\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","parsedProps","useForwardProps","chart","ref","config","reactive","elRef","watch","watchEffect","_a","toRaw","onMounted","XYContainer","onUnmounted","provide","componentAccessorKey","c","axisAccessorKey","crosshairAccessorKey","tooltipAccessorKey","t","annotationsAccessorKey","a","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":"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"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { XYContainer, XYComponentCore, Tooltip, Crosshair, Axis } from '@unovis/ts';
|
|
1
|
+
import { XYContainer, XYComponentCore, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts';
|
|
2
2
|
declare const _default: <T>(__VLS_props: any, __VLS_ctx?: {
|
|
3
3
|
attrs: any;
|
|
4
4
|
emit: any;
|
|
5
5
|
slots: any;
|
|
6
6
|
}, __VLS_expose?: any, __VLS_setup?: Promise<{
|
|
7
7
|
props: {
|
|
8
|
-
xScale?: import("@unovis/ts").ContinuousScale;
|
|
9
|
-
yScale?: import("@unovis/ts").ContinuousScale;
|
|
10
8
|
duration?: number;
|
|
11
9
|
data?: T[];
|
|
10
|
+
xScale?: import("@unovis/ts").ContinuousScale;
|
|
11
|
+
yScale?: import("@unovis/ts").ContinuousScale;
|
|
12
12
|
tooltip?: Tooltip;
|
|
13
13
|
components?: XYComponentCore<T, Partial<import("@unovis/ts").XYComponentConfigInterface<T>>>[];
|
|
14
|
+
annotations?: Annotations;
|
|
14
15
|
margin?: import("@unovis/ts").Spacing;
|
|
15
16
|
padding?: import("@unovis/ts").Spacing;
|
|
16
17
|
sizing?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
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, openBlock as g, createElementBlock as A, renderSlot as C } from "vue";
|
|
2
2
|
import { XYContainer as w } from "@unovis/ts";
|
|
3
|
-
import { componentAccessorKey as B, axisAccessorKey as M, crosshairAccessorKey as R, tooltipAccessorKey as _ } from "../../utils/context.js";
|
|
4
|
-
import { useForwardProps as
|
|
5
|
-
const
|
|
3
|
+
import { componentAccessorKey as B, axisAccessorKey as M, crosshairAccessorKey as R, tooltipAccessorKey as _, annotationsAccessorKey as K } from "../../utils/context.js";
|
|
4
|
+
import { useForwardProps as b } from "../../utils/props.js";
|
|
5
|
+
const $ = /* @__PURE__ */ u({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
components: {},
|
|
@@ -24,6 +24,7 @@ const S = /* @__PURE__ */ u({
|
|
|
24
24
|
crosshair: {},
|
|
25
25
|
preventEmptyDomain: { type: [Boolean, null] },
|
|
26
26
|
scaleByDomain: { type: Boolean },
|
|
27
|
+
annotations: {},
|
|
27
28
|
duration: {},
|
|
28
29
|
margin: {},
|
|
29
30
|
padding: {},
|
|
@@ -35,8 +36,9 @@ const S = /* @__PURE__ */ u({
|
|
|
35
36
|
data: {}
|
|
36
37
|
},
|
|
37
38
|
setup(d, { expose: l }) {
|
|
38
|
-
const c = d, { data: t } = y(c), m =
|
|
39
|
+
const c = d, { data: t } = y(c), m = b(c), n = p(), e = v({
|
|
39
40
|
components: [],
|
|
41
|
+
annotations: void 0,
|
|
40
42
|
crosshair: void 0,
|
|
41
43
|
tooltip: void 0,
|
|
42
44
|
xAxis: void 0,
|
|
@@ -46,40 +48,46 @@ const S = /* @__PURE__ */ u({
|
|
|
46
48
|
n.value && n.value.setData(t.value, !0);
|
|
47
49
|
}), x(() => {
|
|
48
50
|
var o;
|
|
49
|
-
e.components.map((
|
|
51
|
+
e.components.map((i) => i.config), (o = n.value) == null || o.updateContainer({ ...r(m.value), ...r(e) });
|
|
50
52
|
}), h(() => {
|
|
51
53
|
s.value && (n.value = new w(s.value, { ...r(e) }, t.value));
|
|
52
54
|
}), D(() => {
|
|
53
55
|
var o;
|
|
54
56
|
return (o = n.value) == null ? void 0 : o.destroy();
|
|
55
|
-
}),
|
|
57
|
+
}), a(B, {
|
|
56
58
|
data: t,
|
|
57
59
|
update: (o) => e.components = [...e.components, o],
|
|
58
60
|
destroy: () => {
|
|
59
61
|
var o;
|
|
60
|
-
return e.components = (o = e.components) == null ? void 0 : o.filter((
|
|
62
|
+
return e.components = (o = e.components) == null ? void 0 : o.filter((i) => !i.isDestroyed());
|
|
61
63
|
}
|
|
62
|
-
}),
|
|
64
|
+
}), a(M, {
|
|
63
65
|
data: t,
|
|
64
66
|
update: (o) => e[`${o.config.type}Axis`] = o,
|
|
65
67
|
destroy: (o) => {
|
|
66
68
|
e[`${o}Axis`] = void 0;
|
|
67
69
|
}
|
|
68
|
-
}),
|
|
70
|
+
}), a(R, {
|
|
69
71
|
data: t,
|
|
70
72
|
update: (o) => e.crosshair = o,
|
|
71
73
|
destroy: () => {
|
|
72
74
|
e.crosshair = void 0;
|
|
73
75
|
}
|
|
74
|
-
}),
|
|
76
|
+
}), a(_, {
|
|
75
77
|
data: t,
|
|
76
78
|
update: (o) => e.tooltip = o,
|
|
77
79
|
destroy: () => {
|
|
78
80
|
e.tooltip = void 0;
|
|
79
81
|
}
|
|
82
|
+
}), a(K, {
|
|
83
|
+
data: t,
|
|
84
|
+
update: (o) => e.annotations = o,
|
|
85
|
+
destroy: () => {
|
|
86
|
+
e.annotations = void 0;
|
|
87
|
+
}
|
|
80
88
|
}), l({
|
|
81
89
|
component: n
|
|
82
|
-
}), (o,
|
|
90
|
+
}), (o, i) => (g(), A("div", {
|
|
83
91
|
"data-vis-xy-container": "",
|
|
84
92
|
ref_key: "elRef",
|
|
85
93
|
ref: s,
|
|
@@ -90,6 +98,6 @@ const S = /* @__PURE__ */ u({
|
|
|
90
98
|
}
|
|
91
99
|
});
|
|
92
100
|
export {
|
|
93
|
-
|
|
101
|
+
$ as default
|
|
94
102
|
};
|
|
95
103
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, reactive, watchEffect, toRaw } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey } from \"../../utils/context\"\nimport { useForwardProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst parsedProps = useForwardProps(props)\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config = reactive({\n components: [],\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}) as XYContainerConfigInterface<T>\nconst elRef = ref<HTMLDivElement>()\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n }\n})\n\nwatchEffect(() => {\n // watch deep changes in components config\n const t = config.components.map(i => i.config)\n chart.value?.updateContainer({ ...toRaw(parsedProps.value), ...toRaw(config) })\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, { ...toRaw(config) }, data.value)\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => config.components = [...config.components!, c],\n destroy: () => config.components = config.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => config[`${c.config.type}Axis`] = c,\n destroy: (c) => { config[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => config.crosshair = c,\n destroy: () => { config.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.tooltip = t,\n destroy: () => { config.tooltip = undefined },\n})\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","parsedProps","useForwardProps","chart","ref","config","reactive","elRef","watch","watchEffect","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/containers/xy-container/index.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { XYContainer, XYComponentCore, XYContainerConfigInterface, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts'\nimport { onMounted, onUnmounted, ref, provide, watch, toRefs, reactive, watchEffect, toRaw } from 'vue'\nimport { componentAccessorKey, tooltipAccessorKey, axisAccessorKey, crosshairAccessorKey, annotationsAccessorKey } from \"../../utils/context\"\nimport { useForwardProps } from \"../../utils/props\"\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n components: {},\n xScale: { type: [Object, Function] },\n xDomain: {},\n xDomainMinConstraint: {},\n xDomainMaxConstraint: {},\n xRange: {},\n yScale: { type: [Object, Function] },\n yDomain: {},\n yDomainMinConstraint: {},\n yDomainMaxConstraint: {},\n yRange: {},\n yDirection: {},\n xAxis: {},\n yAxis: {},\n autoMargin: { type: Boolean },\n tooltip: {},\n crosshair: {},\n preventEmptyDomain: { type: [Boolean, null] },\n scaleByDomain: { type: Boolean },\n annotations: {},\n duration: {},\n margin: {},\n padding: {},\n sizing: {},\n width: {},\n height: {},\n svgDefs: {},\n ariaLabel: {},\n data: {}\n },\n setup(__props: any, { expose: __expose }) {\n\nconst props = __props;\n\n\nconst { data } = toRefs(props)\nconst parsedProps = useForwardProps(props)\n\nconst chart = ref<XYContainer<T> | undefined>()\nconst config = reactive({\n components: [],\n annotations: undefined,\n crosshair: undefined,\n tooltip: undefined,\n xAxis: undefined,\n yAxis: undefined,\n}) as XYContainerConfigInterface<T>\nconst elRef = ref<HTMLDivElement>()\n\nwatch(data, () => {\n if (chart.value) {\n chart.value.setData(data.value, true)\n }\n})\n\nwatchEffect(() => {\n // watch deep changes in components config\n const t = config.components.map(i => i.config)\n chart.value?.updateContainer({ ...toRaw(parsedProps.value), ...toRaw(config) })\n})\n\nonMounted(() => {\n if (elRef.value) chart.value = new XYContainer(elRef.value, { ...toRaw(config) }, data.value)\n})\n\nonUnmounted(() => chart.value?.destroy())\n\nprovide(componentAccessorKey, {\n data,\n update: (c: XYComponentCore<T>) => config.components = [...config.components!, c],\n destroy: () => config.components = config.components?.filter(c => !c.isDestroyed()),\n})\n\nprovide(axisAccessorKey, {\n data,\n update: (c: Axis<T>) => config[`${c.config.type}Axis`] = c,\n destroy: (c) => { config[`${c}Axis`] = undefined },\n})\n\nprovide(crosshairAccessorKey, {\n data,\n update: (c: Crosshair<T>) => config.crosshair = c,\n destroy: () => { config.crosshair = undefined },\n})\n\nprovide(tooltipAccessorKey, {\n data,\n update: (t: Tooltip) => config.tooltip = t,\n destroy: () => { config.tooltip = undefined },\n})\n\nprovide(annotationsAccessorKey, {\n data,\n update: (a: Annotations) => config.annotations = a,\n destroy: () => { config.annotations = undefined },\n})\n\n__expose({\n component: chart\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n \"data-vis-xy-container\": \"\",\n ref_key: \"elRef\",\n ref: elRef,\n class: \"unovis-xy-container\"\n }, [\n _renderSlot(_ctx.$slots, \"default\")\n ], 512))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__expose","props","data","toRefs","parsedProps","useForwardProps","chart","ref","config","reactive","elRef","watch","watchEffect","_a","toRaw","onMounted","XYContainer","onUnmounted","provide","componentAccessorKey","c","axisAccessorKey","crosshairAccessorKey","tooltipAccessorKey","t","annotationsAccessorKey","a","_ctx","_cache","_openBlock","_createElementBlock","_renderSlot"],"mappings":"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"}
|
package/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./containers/xy-container/index.cjs");require("./containers/xy-container/index2.cjs");const _=require("./containers/single-container/index.cjs");require("./containers/single-container/index2.cjs");const t=require("./components/line/index.cjs"),u=require("./components/area/index.cjs"),r=require("./components/axis/index.cjs"),i=require("./components/brush/index.cjs"),s=require("./components/free-brush/index.cjs"),n=require("./components/crosshair/index.cjs"),p=require("./components/grouped-bar/index.cjs"),c=require("./components/scatter/index.cjs"),v=require("./components/stacked-bar/index.cjs"),a=require("./components/timeline/index.cjs"),o=require("./components/xy-labels/index.cjs"),l=require("./components/donut/index.cjs"),d=require("./components/topojson-map/index.cjs"),g=require("./components/sankey/index.cjs"),q=require("./components/graph/index.cjs"),y=require("./components/chord-diagram/index.cjs"),x=require("./components/nested-donut/index.cjs"),V=require("./components/tooltip/index.cjs"),$=require("./html-components/leaflet-map/index.cjs");require("./html-components/leaflet-map/index2.cjs");const
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-single-container,.unovis-xy-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./containers/xy-container/index.cjs");require("./containers/xy-container/index2.cjs");const _=require("./containers/single-container/index.cjs");require("./containers/single-container/index2.cjs");const t=require("./components/line/index.cjs"),u=require("./components/area/index.cjs"),r=require("./components/axis/index.cjs"),i=require("./components/brush/index.cjs"),s=require("./components/free-brush/index.cjs"),n=require("./components/crosshair/index.cjs"),p=require("./components/grouped-bar/index.cjs"),c=require("./components/scatter/index.cjs"),v=require("./components/stacked-bar/index.cjs"),a=require("./components/timeline/index.cjs"),o=require("./components/xy-labels/index.cjs"),l=require("./components/donut/index.cjs"),d=require("./components/topojson-map/index.cjs"),g=require("./components/sankey/index.cjs"),q=require("./components/graph/index.cjs"),y=require("./components/chord-diagram/index.cjs"),x=require("./components/nested-donut/index.cjs"),V=require("./components/tooltip/index.cjs"),$=require("./components/annotations/index.cjs"),S=require("./html-components/leaflet-map/index.cjs");require("./html-components/leaflet-map/index2.cjs");const h=require("./html-components/leaflet-flow-map/index.cjs");require("./html-components/leaflet-flow-map/index2.cjs");const B=require("./html-components/bullet-legend/index.cjs");require("./html-components/bullet-legend/index2.cjs");exports.VisXYContainer=e;exports.VisSingleContainer=_;exports.VisLine=t;exports.VisArea=u;exports.VisAxis=r;exports.VisBrush=i;exports.VisFreeBrush=s;exports.VisCrosshair=n;exports.VisGroupedBar=p;exports.VisScatter=c;exports.VisStackedBar=v;exports.VisTimeline=a;exports.VisXYLabels=o;exports.VisDonut=l;exports.VisTopoJSONMap=d;exports.VisSankey=g;exports.VisGraph=q;exports.VisChordDiagram=y;exports.VisNestedDonut=x;exports.VisTooltip=V;exports.VisAnnotations=$;exports.VisLeafletMap=S;exports.VisLeafletFlowMap=h;exports.VisBulletLegend=B;
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-single-container,.unovis-xy-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import { default as i } from "./containers/xy-container/index.js";
|
|
3
3
|
import "./containers/xy-container/index2.js";
|
|
4
4
|
import { default as l } from "./containers/single-container/index.js";
|
|
@@ -9,9 +9,9 @@ import { default as n } from "./components/axis/index.js";
|
|
|
9
9
|
import { default as B } from "./components/brush/index.js";
|
|
10
10
|
import { default as S } from "./components/free-brush/index.js";
|
|
11
11
|
import { default as g } from "./components/crosshair/index.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
12
|
+
import { default as D } from "./components/grouped-bar/index.js";
|
|
13
|
+
import { default as T } from "./components/scatter/index.js";
|
|
14
|
+
import { default as k } from "./components/stacked-bar/index.js";
|
|
15
15
|
import { default as G } from "./components/timeline/index.js";
|
|
16
16
|
import { default as X } from "./components/xy-labels/index.js";
|
|
17
17
|
import { default as b } from "./components/donut/index.js";
|
|
@@ -21,31 +21,33 @@ import { default as q } from "./components/graph/index.js";
|
|
|
21
21
|
import { default as z } from "./components/chord-diagram/index.js";
|
|
22
22
|
import { default as H } from "./components/nested-donut/index.js";
|
|
23
23
|
import { default as K } from "./components/tooltip/index.js";
|
|
24
|
-
import { default as Q } from "./
|
|
24
|
+
import { default as Q } from "./components/annotations/index.js";
|
|
25
|
+
import { default as U } from "./html-components/leaflet-map/index.js";
|
|
25
26
|
import "./html-components/leaflet-map/index2.js";
|
|
26
|
-
import { default as
|
|
27
|
+
import { default as Z } from "./html-components/leaflet-flow-map/index.js";
|
|
27
28
|
import "./html-components/leaflet-flow-map/index2.js";
|
|
28
|
-
import { default as
|
|
29
|
+
import { default as $ } from "./html-components/bullet-legend/index.js";
|
|
29
30
|
import "./html-components/bullet-legend/index2.js";
|
|
30
31
|
export {
|
|
32
|
+
Q as VisAnnotations,
|
|
31
33
|
x as VisArea,
|
|
32
34
|
n as VisAxis,
|
|
33
35
|
B as VisBrush,
|
|
34
|
-
|
|
36
|
+
$ as VisBulletLegend,
|
|
35
37
|
z as VisChordDiagram,
|
|
36
38
|
g as VisCrosshair,
|
|
37
39
|
b as VisDonut,
|
|
38
40
|
S as VisFreeBrush,
|
|
39
41
|
q as VisGraph,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
D as VisGroupedBar,
|
|
43
|
+
Z as VisLeafletFlowMap,
|
|
44
|
+
U as VisLeafletMap,
|
|
43
45
|
u as VisLine,
|
|
44
46
|
H as VisNestedDonut,
|
|
45
47
|
O as VisSankey,
|
|
46
|
-
|
|
48
|
+
T as VisScatter,
|
|
47
49
|
l as VisSingleContainer,
|
|
48
|
-
|
|
50
|
+
k as VisStackedBar,
|
|
49
51
|
G as VisTimeline,
|
|
50
52
|
K as VisTooltip,
|
|
51
53
|
y as VisTopoJSONMap,
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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.
|
|
4
|
+
"version": "1.4.0-beta.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/f5/unovis.git",
|
package/utils/context.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=Symbol("componentAccessorKey"),s=Symbol("tooltipAccessorKey"),c=Symbol("crosshairAccessorKey"),e=Symbol("axisAccessorKey");exports.axisAccessorKey=e;exports.componentAccessorKey=o;exports.crosshairAccessorKey=c;exports.tooltipAccessorKey=s;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=Symbol("componentAccessorKey"),s=Symbol("tooltipAccessorKey"),c=Symbol("crosshairAccessorKey"),e=Symbol("axisAccessorKey"),t=Symbol("annotationsAccessorKey");exports.annotationsAccessorKey=t;exports.axisAccessorKey=e;exports.componentAccessorKey=o;exports.crosshairAccessorKey=c;exports.tooltipAccessorKey=s;
|
|
2
2
|
//# sourceMappingURL=context.cjs.map
|
package/utils/context.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.cjs","sources":["../../src/utils/context.ts"],"sourcesContent":["import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { InjectionKey, Ref } from 'vue'\n\nexport const componentAccessorKey = Symbol('componentAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: XYComponentCore<any> | ComponentCore<any>) => void;\n destroy: () => void;\n}>\n\nexport const tooltipAccessorKey = Symbol('tooltipAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Tooltip) => void;\n destroy: () => void;\n}>\n\nexport const crosshairAccessorKey = Symbol('crosshairAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Crosshair<any>) => void;\n destroy: () => void;\n}>\n\nexport const axisAccessorKey = Symbol('axisAccessorKey') as InjectionKey< {\n data: Ref<any>;\n update: (c: Axis<any>) => void;\n destroy: (c: string) => void;\n}>\n\n"],"names":["componentAccessorKey","tooltipAccessorKey","crosshairAccessorKey","axisAccessorKey"],"mappings":"gFAGa,MAAAA,EAAuB,OAAO,sBAAsB,EAMpDC,EAAqB,OAAO,oBAAoB,EAMhDC,EAAuB,OAAO,sBAAsB,EAMpDC,EAAkB,OAAO,iBAAiB"}
|
|
1
|
+
{"version":3,"file":"context.cjs","sources":["../../src/utils/context.ts"],"sourcesContent":["import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts'\nimport { InjectionKey, Ref } from 'vue'\n\nexport const componentAccessorKey = Symbol('componentAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: XYComponentCore<any> | ComponentCore<any>) => void;\n destroy: () => void;\n}>\n\nexport const tooltipAccessorKey = Symbol('tooltipAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Tooltip) => void;\n destroy: () => void;\n}>\n\nexport const crosshairAccessorKey = Symbol('crosshairAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Crosshair<any>) => void;\n destroy: () => void;\n}>\n\nexport const axisAccessorKey = Symbol('axisAccessorKey') as InjectionKey< {\n data: Ref<any>;\n update: (c: Axis<any>) => void;\n destroy: (c: string) => void;\n}>\n\nexport const annotationsAccessorKey = Symbol('annotationsAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Annotations) => void;\n destroy: () => void;\n}>\n"],"names":["componentAccessorKey","tooltipAccessorKey","crosshairAccessorKey","axisAccessorKey","annotationsAccessorKey"],"mappings":"gFAGa,MAAAA,EAAuB,OAAO,sBAAsB,EAMpDC,EAAqB,OAAO,oBAAoB,EAMhDC,EAAuB,OAAO,sBAAsB,EAMpDC,EAAkB,OAAO,iBAAiB,EAM1CC,EAAyB,OAAO,wBAAwB"}
|
package/utils/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis } from '@unovis/ts';
|
|
1
|
+
import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts';
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
3
|
export declare const componentAccessorKey: InjectionKey<{
|
|
4
4
|
data: Ref<any>;
|
|
@@ -20,3 +20,8 @@ export declare const axisAccessorKey: InjectionKey<{
|
|
|
20
20
|
update: (c: Axis<any>) => void;
|
|
21
21
|
destroy: (c: string) => void;
|
|
22
22
|
}>;
|
|
23
|
+
export declare const annotationsAccessorKey: InjectionKey<{
|
|
24
|
+
data: Ref<any>;
|
|
25
|
+
update: (c: Annotations) => void;
|
|
26
|
+
destroy: () => void;
|
|
27
|
+
}>;
|
package/utils/context.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const o = Symbol("componentAccessorKey"), s = Symbol("tooltipAccessorKey"), c = Symbol("crosshairAccessorKey"), e = Symbol("axisAccessorKey");
|
|
1
|
+
const o = Symbol("componentAccessorKey"), s = Symbol("tooltipAccessorKey"), c = Symbol("crosshairAccessorKey"), e = Symbol("axisAccessorKey"), t = Symbol("annotationsAccessorKey");
|
|
2
2
|
export {
|
|
3
|
+
t as annotationsAccessorKey,
|
|
3
4
|
e as axisAccessorKey,
|
|
4
5
|
o as componentAccessorKey,
|
|
5
6
|
c as crosshairAccessorKey,
|
package/utils/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../../src/utils/context.ts"],"sourcesContent":["import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis } from '@unovis/ts'\nimport { InjectionKey, Ref } from 'vue'\n\nexport const componentAccessorKey = Symbol('componentAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: XYComponentCore<any> | ComponentCore<any>) => void;\n destroy: () => void;\n}>\n\nexport const tooltipAccessorKey = Symbol('tooltipAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Tooltip) => void;\n destroy: () => void;\n}>\n\nexport const crosshairAccessorKey = Symbol('crosshairAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Crosshair<any>) => void;\n destroy: () => void;\n}>\n\nexport const axisAccessorKey = Symbol('axisAccessorKey') as InjectionKey< {\n data: Ref<any>;\n update: (c: Axis<any>) => void;\n destroy: (c: string) => void;\n}>\n\n"],"names":["componentAccessorKey","tooltipAccessorKey","crosshairAccessorKey","axisAccessorKey"],"mappings":"AAGa,MAAAA,IAAuB,OAAO,sBAAsB,GAMpDC,IAAqB,OAAO,oBAAoB,GAMhDC,IAAuB,OAAO,sBAAsB,GAMpDC,IAAkB,OAAO,iBAAiB;"}
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../src/utils/context.ts"],"sourcesContent":["import { XYComponentCore, ComponentCore, Tooltip, Crosshair, Axis, Annotations } from '@unovis/ts'\nimport { InjectionKey, Ref } from 'vue'\n\nexport const componentAccessorKey = Symbol('componentAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: XYComponentCore<any> | ComponentCore<any>) => void;\n destroy: () => void;\n}>\n\nexport const tooltipAccessorKey = Symbol('tooltipAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Tooltip) => void;\n destroy: () => void;\n}>\n\nexport const crosshairAccessorKey = Symbol('crosshairAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Crosshair<any>) => void;\n destroy: () => void;\n}>\n\nexport const axisAccessorKey = Symbol('axisAccessorKey') as InjectionKey< {\n data: Ref<any>;\n update: (c: Axis<any>) => void;\n destroy: (c: string) => void;\n}>\n\nexport const annotationsAccessorKey = Symbol('annotationsAccessorKey') as InjectionKey<{\n data: Ref<any>;\n update: (c: Annotations) => void;\n destroy: () => void;\n}>\n"],"names":["componentAccessorKey","tooltipAccessorKey","crosshairAccessorKey","axisAccessorKey","annotationsAccessorKey"],"mappings":"AAGa,MAAAA,IAAuB,OAAO,sBAAsB,GAMpDC,IAAqB,OAAO,oBAAoB,GAMhDC,IAAuB,OAAO,sBAAsB,GAMpDC,IAAkB,OAAO,iBAAiB,GAM1CC,IAAyB,OAAO,wBAAwB;"}
|