@unovis/vue 1.4.0-beta.6 → 1.4.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/area/index.cjs +1 -1
- package/components/area/index.cjs.map +1 -1
- package/components/area/index.d.ts +1 -0
- package/components/area/index.js +20 -19
- package/components/area/index.js.map +1 -1
- package/components/area/index2.cjs +1 -1
- package/components/area/index2.js +4 -2
- package/components/area/index2.js.map +1 -1
- package/components/axis/index.cjs +1 -1
- package/components/axis/index.cjs.map +1 -1
- package/components/axis/index.d.ts +1 -0
- package/components/axis/index.js +12 -11
- package/components/axis/index.js.map +1 -1
- package/components/axis/index2.cjs +1 -1
- package/components/axis/index2.js +4 -2
- package/components/axis/index2.js.map +1 -1
- package/components/brush/index.cjs +1 -1
- package/components/brush/index.cjs.map +1 -1
- package/components/brush/index.d.ts +1 -0
- package/components/brush/index.js +19 -18
- package/components/brush/index.js.map +1 -1
- package/components/brush/index2.cjs +1 -1
- package/components/brush/index2.js +4 -2
- package/components/brush/index2.js.map +1 -1
- package/components/chord-diagram/index.cjs +1 -1
- package/components/chord-diagram/index.cjs.map +1 -1
- package/components/chord-diagram/index.d.ts +1 -0
- package/components/chord-diagram/index.js +16 -15
- package/components/chord-diagram/index.js.map +1 -1
- package/components/chord-diagram/index2.cjs +1 -1
- package/components/chord-diagram/index2.js +4 -2
- package/components/chord-diagram/index2.js.map +1 -1
- package/components/crosshair/index.cjs +1 -1
- package/components/crosshair/index.cjs.map +1 -1
- package/components/crosshair/index.d.ts +3 -0
- package/components/crosshair/index.js +14 -13
- package/components/crosshair/index.js.map +1 -1
- package/components/crosshair/index2.cjs +1 -1
- package/components/crosshair/index2.js +4 -2
- package/components/crosshair/index2.js.map +1 -1
- package/components/donut/index.cjs +1 -1
- package/components/donut/index.cjs.map +1 -1
- package/components/donut/index.d.ts +1 -0
- package/components/donut/index.js +20 -19
- package/components/donut/index.js.map +1 -1
- package/components/donut/index2.cjs +1 -1
- package/components/donut/index2.js +4 -2
- package/components/donut/index2.js.map +1 -1
- package/components/free-brush/index.cjs +1 -1
- package/components/free-brush/index.cjs.map +1 -1
- package/components/free-brush/index.d.ts +1 -0
- package/components/free-brush/index.js +17 -16
- package/components/free-brush/index.js.map +1 -1
- package/components/free-brush/index2.cjs +1 -1
- package/components/free-brush/index2.js +4 -2
- package/components/free-brush/index2.js.map +1 -1
- package/components/graph/index.cjs +1 -1
- package/components/graph/index.cjs.map +1 -1
- package/components/graph/index.d.ts +30 -8
- package/components/graph/index.js +22 -16
- package/components/graph/index.js.map +1 -1
- package/components/graph/index2.cjs +1 -1
- package/components/graph/index2.js +4 -2
- package/components/graph/index2.js.map +1 -1
- package/components/grouped-bar/index.cjs +1 -1
- package/components/grouped-bar/index.cjs.map +1 -1
- package/components/grouped-bar/index.d.ts +1 -0
- package/components/grouped-bar/index.js +11 -10
- package/components/grouped-bar/index.js.map +1 -1
- package/components/grouped-bar/index2.cjs +1 -1
- package/components/grouped-bar/index2.js +4 -2
- package/components/grouped-bar/index2.js.map +1 -1
- package/components/line/index.cjs +1 -1
- package/components/line/index.cjs.map +1 -1
- package/components/line/index.d.ts +1 -0
- package/components/line/index.js +13 -12
- package/components/line/index.js.map +1 -1
- package/components/line/index2.cjs +1 -1
- package/components/line/index2.js +4 -2
- package/components/line/index2.js.map +1 -1
- package/components/nested-donut/index.cjs +1 -1
- package/components/nested-donut/index.cjs.map +1 -1
- package/components/nested-donut/index.d.ts +1 -0
- package/components/nested-donut/index.js +12 -11
- package/components/nested-donut/index.js.map +1 -1
- package/components/nested-donut/index2.cjs +1 -1
- package/components/nested-donut/index2.js +4 -2
- package/components/nested-donut/index2.js.map +1 -1
- package/components/sankey/index.cjs +1 -1
- package/components/sankey/index.cjs.map +1 -1
- package/components/sankey/index.d.ts +1 -0
- package/components/sankey/index.js +16 -15
- package/components/sankey/index.js.map +1 -1
- package/components/sankey/index2.cjs +1 -1
- package/components/sankey/index2.js +4 -2
- package/components/sankey/index2.js.map +1 -1
- package/components/scatter/index.cjs +1 -1
- package/components/scatter/index.cjs.map +1 -1
- package/components/scatter/index.d.ts +3 -2
- package/components/scatter/index.js +15 -14
- package/components/scatter/index.js.map +1 -1
- package/components/scatter/index2.cjs +1 -1
- package/components/scatter/index2.js +4 -2
- package/components/scatter/index2.js.map +1 -1
- package/components/stacked-bar/index.cjs +1 -1
- package/components/stacked-bar/index.cjs.map +1 -1
- package/components/stacked-bar/index.d.ts +1 -0
- package/components/stacked-bar/index.js +15 -14
- package/components/stacked-bar/index.js.map +1 -1
- package/components/stacked-bar/index2.cjs +1 -1
- package/components/stacked-bar/index2.js +4 -2
- package/components/stacked-bar/index2.js.map +1 -1
- package/components/timeline/index.cjs +1 -1
- package/components/timeline/index.cjs.map +1 -1
- package/components/timeline/index.d.ts +1 -0
- package/components/timeline/index.js +16 -15
- package/components/timeline/index.js.map +1 -1
- package/components/timeline/index2.cjs +1 -1
- package/components/timeline/index2.js +4 -2
- package/components/timeline/index2.js.map +1 -1
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.cjs.map +1 -1
- package/components/tooltip/index.d.ts +1 -0
- package/components/tooltip/index.js +15 -14
- package/components/tooltip/index.js.map +1 -1
- package/components/tooltip/index2.cjs +1 -1
- package/components/tooltip/index2.js +4 -2
- package/components/tooltip/index2.js.map +1 -1
- package/components/topojson-map/index.cjs +1 -1
- package/components/topojson-map/index.cjs.map +1 -1
- package/components/topojson-map/index.d.ts +1 -0
- package/components/topojson-map/index.js +16 -15
- package/components/topojson-map/index.js.map +1 -1
- package/components/topojson-map/index2.cjs +1 -1
- package/components/topojson-map/index2.js +4 -2
- package/components/topojson-map/index2.js.map +1 -1
- package/components/xy-labels/index.cjs +1 -1
- package/components/xy-labels/index.cjs.map +1 -1
- package/components/xy-labels/index.d.ts +1 -0
- package/components/xy-labels/index.js +19 -18
- package/components/xy-labels/index.js.map +1 -1
- package/components/xy-labels/index2.cjs +1 -1
- package/components/xy-labels/index2.js +4 -2
- package/components/xy-labels/index2.js.map +1 -1
- package/components.d.ts +21 -22
- package/containers/single-container/index.cjs +1 -1
- package/containers/single-container/index.cjs.map +1 -1
- package/containers/single-container/index2.cjs +1 -1
- package/containers/single-container/index3.cjs +1 -1
- package/containers/xy-container/index.cjs +1 -1
- package/containers/xy-container/index.cjs.map +1 -1
- package/containers/xy-container/index2.cjs +1 -1
- package/containers/xy-container/index3.cjs +1 -1
- package/html-components/bullet-legend/index.cjs +1 -1
- package/html-components/bullet-legend/index.cjs.map +1 -1
- package/html-components/bullet-legend/index.d.ts +1 -0
- package/html-components/bullet-legend/index.js +18 -17
- package/html-components/bullet-legend/index.js.map +1 -1
- package/html-components/bullet-legend/index2.cjs +1 -1
- package/html-components/bullet-legend/index3.cjs +1 -1
- package/html-components/bullet-legend/index3.js +2 -0
- package/html-components/bullet-legend/index3.js.map +1 -1
- package/html-components/leaflet-flow-map/index.cjs +1 -1
- package/html-components/leaflet-flow-map/index.cjs.map +1 -1
- package/html-components/leaflet-flow-map/index.d.ts +1 -0
- package/html-components/leaflet-flow-map/index.js +15 -14
- package/html-components/leaflet-flow-map/index.js.map +1 -1
- package/html-components/leaflet-flow-map/index2.cjs +1 -1
- package/html-components/leaflet-flow-map/index3.cjs +1 -1
- package/html-components/leaflet-flow-map/index3.js +4 -2
- package/html-components/leaflet-flow-map/index3.js.map +1 -1
- package/html-components/leaflet-map/index.cjs +1 -1
- package/html-components/leaflet-map/index.cjs.map +1 -1
- package/html-components/leaflet-map/index.d.ts +1 -0
- package/html-components/leaflet-map/index.js +15 -14
- package/html-components/leaflet-map/index.js.map +1 -1
- package/html-components/leaflet-map/index2.cjs +1 -1
- package/html-components/leaflet-map/index3.cjs +1 -1
- package/html-components/leaflet-map/index3.js +2 -0
- package/html-components/leaflet-map/index3.js.map +1 -1
- package/index.cjs +1 -1
- package/index.js +65 -46
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/components/annotations/index.cjs +0 -2
- package/components/annotations/index.cjs.map +0 -1
- package/components/annotations/index.d.ts +0 -95
- package/components/annotations/index.js +0 -34
- package/components/annotations/index.js.map +0 -1
- package/components/annotations/index2.cjs +0 -2
- package/components/annotations/index2.cjs.map +0 -1
- package/components/annotations/index2.js +0 -5
- package/components/annotations/index2.js.map +0 -1
package/index.js
CHANGED
|
@@ -1,57 +1,76 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as l } from "./containers/xy-container/index.js";
|
|
3
3
|
import "./containers/xy-container/index2.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as V } from "./containers/single-container/index.js";
|
|
5
5
|
import "./containers/single-container/index2.js";
|
|
6
|
-
import { default as u } from "./components/line/index.js";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as n } from "./components/axis/index.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as U } from "./html-components/leaflet-map/index.js";
|
|
6
|
+
import { default as u, VisLineSelectors as d } from "./components/line/index.js";
|
|
7
|
+
import { default as S, VisAreaSelectors as c } from "./components/area/index.js";
|
|
8
|
+
import { default as n, VisAxisSelectors as h } from "./components/axis/index.js";
|
|
9
|
+
import { default as L, VisBrushSelectors as C } from "./components/brush/index.js";
|
|
10
|
+
import { default as M, VisFreeBrushSelectors as T } from "./components/free-brush/index.js";
|
|
11
|
+
import { default as k, VisCrosshairSelectors as A } from "./components/crosshair/index.js";
|
|
12
|
+
import { default as G, VisGroupedBarSelectors as N } from "./components/grouped-bar/index.js";
|
|
13
|
+
import { default as Y, VisScatterSelectors as b } from "./components/scatter/index.js";
|
|
14
|
+
import { default as y, VisStackedBarSelectors as J } from "./components/stacked-bar/index.js";
|
|
15
|
+
import { default as j, VisTimelineSelectors as q } from "./components/timeline/index.js";
|
|
16
|
+
import { default as z, VisXYLabelsSelectors as E } from "./components/xy-labels/index.js";
|
|
17
|
+
import { default as I, VisDonutSelectors as K } from "./components/donut/index.js";
|
|
18
|
+
import { default as Q, VisTopoJSONMapSelectors as R } from "./components/topojson-map/index.js";
|
|
19
|
+
import { default as W, VisSankeySelectors as Z } from "./components/sankey/index.js";
|
|
20
|
+
import { default as $, VisGraphSelectors as ee } from "./components/graph/index.js";
|
|
21
|
+
import { default as re, VisChordDiagramSelectors as oe } from "./components/chord-diagram/index.js";
|
|
22
|
+
import { default as ae, VisNestedDonutSelectors as ie } from "./components/nested-donut/index.js";
|
|
23
|
+
import { default as fe, VisTooltipSelectors as Ve } from "./components/tooltip/index.js";
|
|
24
|
+
import { default as ue, VisLeafletMapSelectors as de } from "./html-components/leaflet-map/index.js";
|
|
26
25
|
import "./html-components/leaflet-map/index2.js";
|
|
27
|
-
import { default as
|
|
26
|
+
import { default as Se, VisLeafletFlowMapSelectors as ce } from "./html-components/leaflet-flow-map/index.js";
|
|
28
27
|
import "./html-components/leaflet-flow-map/index2.js";
|
|
29
|
-
import { default as
|
|
28
|
+
import { default as ne, VisBulletLegendSelectors as he } from "./html-components/bullet-legend/index.js";
|
|
30
29
|
import "./html-components/bullet-legend/index2.js";
|
|
31
30
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
S as VisArea,
|
|
32
|
+
c as VisAreaSelectors,
|
|
34
33
|
n as VisAxis,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
h as VisAxisSelectors,
|
|
35
|
+
L as VisBrush,
|
|
36
|
+
C as VisBrushSelectors,
|
|
37
|
+
ne as VisBulletLegend,
|
|
38
|
+
he as VisBulletLegendSelectors,
|
|
39
|
+
re as VisChordDiagram,
|
|
40
|
+
oe as VisChordDiagramSelectors,
|
|
41
|
+
k as VisCrosshair,
|
|
42
|
+
A as VisCrosshairSelectors,
|
|
43
|
+
I as VisDonut,
|
|
44
|
+
K as VisDonutSelectors,
|
|
45
|
+
M as VisFreeBrush,
|
|
46
|
+
T as VisFreeBrushSelectors,
|
|
47
|
+
$ as VisGraph,
|
|
48
|
+
ee as VisGraphSelectors,
|
|
49
|
+
G as VisGroupedBar,
|
|
50
|
+
N as VisGroupedBarSelectors,
|
|
51
|
+
Se as VisLeafletFlowMap,
|
|
52
|
+
ce as VisLeafletFlowMapSelectors,
|
|
53
|
+
ue as VisLeafletMap,
|
|
54
|
+
de as VisLeafletMapSelectors,
|
|
45
55
|
u as VisLine,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
d as VisLineSelectors,
|
|
57
|
+
ae as VisNestedDonut,
|
|
58
|
+
ie as VisNestedDonutSelectors,
|
|
59
|
+
W as VisSankey,
|
|
60
|
+
Z as VisSankeySelectors,
|
|
61
|
+
Y as VisScatter,
|
|
62
|
+
b as VisScatterSelectors,
|
|
63
|
+
V as VisSingleContainer,
|
|
64
|
+
y as VisStackedBar,
|
|
65
|
+
J as VisStackedBarSelectors,
|
|
66
|
+
j as VisTimeline,
|
|
67
|
+
q as VisTimelineSelectors,
|
|
68
|
+
fe as VisTooltip,
|
|
69
|
+
Ve as VisTooltipSelectors,
|
|
70
|
+
Q as VisTopoJSONMap,
|
|
71
|
+
R as VisTopoJSONMapSelectors,
|
|
72
|
+
l as VisXYContainer,
|
|
73
|
+
z as VisXYLabels,
|
|
74
|
+
E as VisXYLabelsSelectors
|
|
56
75
|
};
|
|
57
76
|
//# sourceMappingURL=index.js.map
|
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.0
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/f5/unovis.git",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"gallery": "vite"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@unovis/ts": "1.
|
|
54
|
+
"@unovis/ts": "1.4.0",
|
|
55
55
|
"vue": "^3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
67
67
|
"tslib": "^2.3.1",
|
|
68
68
|
"typescript": "~4.2.4",
|
|
69
|
-
"vite": "^4.
|
|
69
|
+
"vite": "^4.5.1",
|
|
70
70
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
71
71
|
"vite-plugin-dts": "^3.5.3",
|
|
72
72
|
"vue": "^3.3.4",
|
|
@@ -1,2 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,95 +0,0 @@
|
|
|
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;
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|