@unovis/vue 1.3.0-alpha.0 → 1.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/area/index.cjs +2 -0
- package/components/area/index.cjs.map +1 -0
- package/components/area/index.js +44 -0
- package/components/area/index.js.map +1 -0
- package/components/area/index2.cjs +2 -0
- package/components/area/index2.cjs.map +1 -0
- package/components/area/index2.js +5 -0
- package/components/area/index2.js.map +1 -0
- package/components/axis/index.cjs +2 -0
- package/components/axis/index.cjs.map +1 -0
- package/components/axis/index.js +62 -0
- package/components/axis/index.js.map +1 -0
- package/components/axis/index2.cjs +2 -0
- package/components/axis/index2.cjs.map +1 -0
- package/components/axis/index2.js +5 -0
- package/components/axis/index2.js.map +1 -0
- package/components/brush/index.cjs +2 -0
- package/components/brush/index.cjs.map +1 -0
- package/components/brush/index.js +48 -0
- package/components/brush/index.js.map +1 -0
- package/components/brush/index2.cjs +2 -0
- package/components/brush/index2.cjs.map +1 -0
- package/components/brush/index2.js +5 -0
- package/components/brush/index2.js.map +1 -0
- package/components/chord-diagram/index.cjs +2 -0
- package/components/chord-diagram/index.cjs.map +1 -0
- package/components/chord-diagram/index.js +46 -0
- package/components/chord-diagram/index.js.map +1 -0
- package/components/chord-diagram/index2.cjs +2 -0
- package/components/chord-diagram/index2.cjs.map +1 -0
- package/components/chord-diagram/index2.js +5 -0
- package/components/chord-diagram/index2.js.map +1 -0
- package/components/crosshair/index.cjs +2 -0
- package/components/crosshair/index.cjs.map +1 -0
- package/components/crosshair/index.js +47 -0
- package/components/crosshair/index.js.map +1 -0
- package/components/crosshair/index2.cjs +2 -0
- package/components/crosshair/index2.cjs.map +1 -0
- package/components/crosshair/index2.js +5 -0
- package/components/crosshair/index2.js.map +1 -0
- package/components/donut/index.cjs +2 -0
- package/components/donut/index.cjs.map +1 -0
- package/components/donut/index.js +48 -0
- package/components/donut/index.js.map +1 -0
- package/components/donut/index2.cjs +2 -0
- package/components/donut/index2.cjs.map +1 -0
- package/components/donut/index2.js +5 -0
- package/components/donut/index2.js.map +1 -0
- package/components/free-brush/index.cjs +2 -0
- package/components/free-brush/index.cjs.map +1 -0
- package/components/free-brush/index.js +48 -0
- package/components/free-brush/index.js.map +1 -0
- package/components/free-brush/index2.cjs +2 -0
- package/components/free-brush/index2.cjs.map +1 -0
- package/components/free-brush/index2.js +5 -0
- package/components/free-brush/index2.js.map +1 -0
- package/components/graph/index.cjs +2 -0
- package/components/graph/index.cjs.map +1 -0
- package/components/graph/index.js +93 -0
- package/components/graph/index.js.map +1 -0
- package/components/graph/index2.cjs +2 -0
- package/components/graph/index2.cjs.map +1 -0
- package/components/graph/index2.js +5 -0
- package/components/graph/index2.js.map +1 -0
- package/components/grouped-bar/index.cjs +2 -0
- package/components/grouped-bar/index.cjs.map +1 -0
- package/components/grouped-bar/index.js +48 -0
- package/components/grouped-bar/index.js.map +1 -0
- package/components/grouped-bar/index2.cjs +2 -0
- package/components/grouped-bar/index2.cjs.map +1 -0
- package/components/grouped-bar/index2.js +5 -0
- package/components/grouped-bar/index2.js.map +1 -0
- package/components/line/index.cjs +2 -0
- package/components/line/index.cjs.map +1 -0
- package/components/line/index.js +45 -0
- package/components/line/index.js.map +1 -0
- package/components/line/index2.cjs +2 -0
- package/components/line/index2.cjs.map +1 -0
- package/components/line/index2.js +5 -0
- package/components/line/index2.js.map +1 -0
- package/components/nested-donut/index.cjs +2 -0
- package/components/nested-donut/index.cjs.map +1 -0
- package/components/nested-donut/index.js +50 -0
- package/components/nested-donut/index.js.map +1 -0
- package/components/nested-donut/index2.cjs +2 -0
- package/components/nested-donut/index2.cjs.map +1 -0
- package/components/nested-donut/index2.js +5 -0
- package/components/nested-donut/index2.js.map +1 -0
- package/components/sankey/index.cjs +2 -0
- package/components/sankey/index.cjs.map +1 -0
- package/components/sankey/index.js +76 -0
- package/components/sankey/index.js.map +1 -0
- package/components/sankey/index2.cjs +2 -0
- package/components/sankey/index2.cjs.map +1 -0
- package/components/sankey/index2.js +5 -0
- package/components/sankey/index2.js.map +1 -0
- package/components/scatter/index.cjs +2 -0
- package/components/scatter/index.cjs.map +1 -0
- package/components/scatter/index.js +51 -0
- package/components/scatter/index.js.map +1 -0
- package/components/scatter/index2.cjs +2 -0
- package/components/scatter/index2.cjs.map +1 -0
- package/components/scatter/index2.js +5 -0
- package/components/scatter/index2.js.map +1 -0
- package/components/stacked-bar/index.cjs +2 -0
- package/components/stacked-bar/index.cjs.map +1 -0
- package/components/stacked-bar/index.js +48 -0
- package/components/stacked-bar/index.js.map +1 -0
- package/components/stacked-bar/index2.cjs +2 -0
- package/components/stacked-bar/index2.cjs.map +1 -0
- package/components/stacked-bar/index2.js +5 -0
- package/components/stacked-bar/index2.js.map +1 -0
- package/components/timeline/index.cjs +2 -0
- package/components/timeline/index.cjs.map +1 -0
- package/components/timeline/index.js +51 -0
- package/components/timeline/index.js.map +1 -0
- package/components/timeline/index2.cjs +2 -0
- package/components/timeline/index2.cjs.map +1 -0
- package/components/timeline/index2.js +5 -0
- package/components/timeline/index2.js.map +1 -0
- package/components/tooltip/index.cjs +2 -0
- package/components/tooltip/index.cjs.map +1 -0
- package/components/tooltip/index.js +36 -0
- package/components/tooltip/index.js.map +1 -0
- package/components/tooltip/index2.cjs +2 -0
- package/components/tooltip/index2.cjs.map +1 -0
- package/components/tooltip/index2.js +5 -0
- package/components/tooltip/index2.js.map +1 -0
- package/components/topojson-map/index.cjs +2 -0
- package/components/topojson-map/index.cjs.map +1 -0
- package/components/topojson-map/index.js +62 -0
- package/components/topojson-map/index.js.map +1 -0
- package/components/topojson-map/index2.cjs +2 -0
- package/components/topojson-map/index2.cjs.map +1 -0
- package/components/topojson-map/index2.js +5 -0
- package/components/topojson-map/index2.js.map +1 -0
- package/components/xy-labels/index.cjs +2 -0
- package/components/xy-labels/index.cjs.map +1 -0
- package/components/xy-labels/index.js +52 -0
- package/components/xy-labels/index.js.map +1 -0
- package/components/xy-labels/index2.cjs +2 -0
- package/components/xy-labels/index2.cjs.map +1 -0
- package/components/xy-labels/index2.js +5 -0
- package/components/xy-labels/index2.js.map +1 -0
- package/components.d.ts +21 -21
- package/containers/single-container/index.cjs +2 -0
- package/containers/single-container/index.cjs.map +1 -0
- package/containers/single-container/index.js +64 -0
- package/containers/single-container/index.js.map +1 -0
- package/containers/single-container/index2.cjs +2 -0
- package/containers/single-container/index2.cjs.map +1 -0
- package/containers/single-container/index2.js +5 -0
- package/containers/single-container/index2.js.map +1 -0
- package/containers/single-container/index3.cjs +2 -0
- package/containers/single-container/index3.cjs.map +1 -0
- package/containers/single-container/index3.js +6 -0
- package/containers/single-container/index3.js.map +1 -0
- package/containers/xy-container/index.cjs +2 -0
- package/containers/xy-container/index.cjs.map +1 -0
- package/containers/xy-container/index.js +103 -0
- package/containers/xy-container/index.js.map +1 -0
- package/containers/xy-container/index2.cjs +2 -0
- package/containers/xy-container/index2.cjs.map +1 -0
- package/containers/xy-container/index2.js +5 -0
- package/containers/xy-container/index2.js.map +1 -0
- package/containers/xy-container/index3.cjs +2 -0
- package/containers/xy-container/index3.cjs.map +1 -0
- package/containers/xy-container/index3.js +6 -0
- package/containers/xy-container/index3.js.map +1 -0
- package/containers.d.ts +2 -2
- package/html-components/bullet-legend/index.cjs +2 -0
- package/html-components/bullet-legend/index.cjs.map +1 -0
- package/html-components/bullet-legend/index.js +39 -0
- package/html-components/bullet-legend/index.js.map +1 -0
- package/html-components/bullet-legend/index2.cjs +2 -0
- package/html-components/bullet-legend/index2.cjs.map +1 -0
- package/html-components/bullet-legend/index2.js +5 -0
- package/html-components/bullet-legend/index2.js.map +1 -0
- package/html-components/bullet-legend/index3.cjs +2 -0
- package/html-components/bullet-legend/index3.cjs.map +1 -0
- package/html-components/bullet-legend/index3.js +6 -0
- package/html-components/bullet-legend/index3.js.map +1 -0
- package/html-components/leaflet-flow-map/index.cjs +2 -0
- package/html-components/leaflet-flow-map/index.cjs.map +1 -0
- package/html-components/leaflet-flow-map/index.js +93 -0
- package/html-components/leaflet-flow-map/index.js.map +1 -0
- package/html-components/leaflet-flow-map/index2.cjs +2 -0
- package/html-components/leaflet-flow-map/index2.cjs.map +1 -0
- package/html-components/leaflet-flow-map/index2.js +5 -0
- package/html-components/leaflet-flow-map/index2.js.map +1 -0
- package/html-components/leaflet-flow-map/index3.cjs +2 -0
- package/html-components/leaflet-flow-map/index3.cjs.map +1 -0
- package/html-components/leaflet-flow-map/index3.js +6 -0
- package/html-components/leaflet-flow-map/index3.js.map +1 -0
- package/html-components/leaflet-map/index.cjs +2 -0
- package/html-components/leaflet-map/index.cjs.map +1 -0
- package/html-components/leaflet-map/index.js +80 -0
- package/html-components/leaflet-map/index.js.map +1 -0
- package/html-components/leaflet-map/index2.cjs +2 -0
- package/html-components/leaflet-map/index2.cjs.map +1 -0
- package/html-components/leaflet-map/index2.js +5 -0
- package/html-components/leaflet-map/index2.js.map +1 -0
- package/html-components/leaflet-map/index3.cjs +2 -0
- package/html-components/leaflet-map/index3.cjs.map +1 -0
- package/html-components/leaflet-map/index3.js +6 -0
- package/html-components/leaflet-map/index3.js.map +1 -0
- package/index.cjs +3 -0
- package/index.cjs.map +1 -0
- package/index.js +53 -1171
- package/index.js.map +1 -0
- package/package.json +15 -9
- package/utils/context.cjs +2 -0
- package/utils/context.cjs.map +1 -0
- package/utils/context.js +8 -0
- package/utils/context.js.map +1 -0
- package/utils/props.cjs +2 -0
- package/utils/props.cjs.map +1 -0
- package/utils/props.js +15 -0
- package/utils/props.js.map +1 -0
- package/index.umd.cjs +0 -2
- /package/components/area/{area.d.ts → index.d.ts} +0 -0
- /package/components/axis/{axis.d.ts → index.d.ts} +0 -0
- /package/components/brush/{brush.d.ts → index.d.ts} +0 -0
- /package/components/chord-diagram/{chord-diagram.d.ts → index.d.ts} +0 -0
- /package/components/crosshair/{crosshair.d.ts → index.d.ts} +0 -0
- /package/components/donut/{donut.d.ts → index.d.ts} +0 -0
- /package/components/free-brush/{free-brush.d.ts → index.d.ts} +0 -0
- /package/components/graph/{graph.d.ts → index.d.ts} +0 -0
- /package/components/grouped-bar/{grouped-bar.d.ts → index.d.ts} +0 -0
- /package/components/line/{line.d.ts → index.d.ts} +0 -0
- /package/components/nested-donut/{nested-donut.d.ts → index.d.ts} +0 -0
- /package/components/sankey/{sankey.d.ts → index.d.ts} +0 -0
- /package/components/scatter/{scatter.d.ts → index.d.ts} +0 -0
- /package/components/stacked-bar/{stacked-bar.d.ts → index.d.ts} +0 -0
- /package/components/timeline/{timeline.d.ts → index.d.ts} +0 -0
- /package/components/tooltip/{tooltip.d.ts → index.d.ts} +0 -0
- /package/components/topojson-map/{topojson-map.d.ts → index.d.ts} +0 -0
- /package/components/xy-labels/{xy-labels.d.ts → index.d.ts} +0 -0
- /package/containers/single-container/{single-container.d.ts → index.d.ts} +0 -0
- /package/containers/xy-container/{xy-container.d.ts → index.d.ts} +0 -0
- /package/html-components/bullet-legend/{bullet-legend.d.ts → index.d.ts} +0 -0
- /package/html-components/leaflet-flow-map/{leaflet-flow-map.d.ts → index.d.ts} +0 -0
- /package/html-components/leaflet-map/{leaflet-map.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/free-brush/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-component\": \"\" }\n\nimport { FreeBrush, FreeBrushConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n mode: {},\n onBrush: { type: Function },\n onBrushStart: { type: Function },\n onBrushMove: { type: Function },\n onBrushEnd: { type: Function },\n handleWidth: {},\n selection: {},\n selectionMinLength: {},\n autoHide: { type: Boolean },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<FreeBrush<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new FreeBrush<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","FreeBrush","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,KAAM,CAAC,EACP,QAAS,CAAE,KAAM,QAAS,EAC1B,aAAc,CAAE,KAAM,QAAS,EAC/B,YAAa,CAAE,KAAM,QAAS,EAC9B,WAAY,CAAE,KAAM,QAAS,EAC7B,YAAa,CAAC,EACd,UAAW,CAAC,EACZ,mBAAoB,CAAC,EACrB,SAAU,CAAE,KAAM,OAAQ,EAC1B,EAAG,CAAE,KAAM,C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AAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as l, inject as d, computed as u, getCurrentInstance as m, ref as y, onMounted as v, nextTick as F, onUnmounted as f, watch as h, openBlock as B, createElementBlock as _ } from "vue";
|
|
2
|
+
import { FreeBrush as x } from "@unovis/ts";
|
|
3
|
+
import { parseProps as b, arePropsEqual as g } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as C } from "../../utils/context.js";
|
|
5
|
+
const S = { "data-vis-component": "" }, M = /* @__PURE__ */ l({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
mode: {},
|
|
9
|
+
onBrush: { type: Function },
|
|
10
|
+
onBrushStart: { type: Function },
|
|
11
|
+
onBrushMove: { type: Function },
|
|
12
|
+
onBrushEnd: { type: Function },
|
|
13
|
+
handleWidth: {},
|
|
14
|
+
selection: {},
|
|
15
|
+
selectionMinLength: {},
|
|
16
|
+
autoHide: { type: Boolean },
|
|
17
|
+
x: { type: [Function, Number, null] },
|
|
18
|
+
y: { type: [Function, Number, null, Array] },
|
|
19
|
+
id: { type: Function },
|
|
20
|
+
color: { type: [Function, String, Array, null] },
|
|
21
|
+
xScale: { type: [Object, Function] },
|
|
22
|
+
yScale: { type: [Object, Function] },
|
|
23
|
+
excludeFromDomainCalculation: { type: Boolean },
|
|
24
|
+
duration: {},
|
|
25
|
+
events: {},
|
|
26
|
+
attributes: {},
|
|
27
|
+
data: {}
|
|
28
|
+
},
|
|
29
|
+
setup(r) {
|
|
30
|
+
const i = r, n = d(C), s = u(() => n.data.value), p = m(), o = u(() => b(i, p)), t = y();
|
|
31
|
+
return v(() => {
|
|
32
|
+
F(() => {
|
|
33
|
+
var e;
|
|
34
|
+
t.value = new x(o.value), (e = t.value) == null || e.setData(s.value), n.update(t.value);
|
|
35
|
+
});
|
|
36
|
+
}), f(() => {
|
|
37
|
+
var e;
|
|
38
|
+
(e = t.value) == null || e.destroy(), n.destroy();
|
|
39
|
+
}), h(o, (e, a) => {
|
|
40
|
+
var c;
|
|
41
|
+
g(e, a) || ((c = t.value) == null || c.setConfig(o.value), n.update(t.value));
|
|
42
|
+
}), (e, a) => (B(), _("div", S));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
M as default
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/free-brush/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-component\": \"\" }\n\nimport { FreeBrush, FreeBrushConfigInterface } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n mode: {},\n onBrush: { type: Function },\n onBrushStart: { type: Function },\n onBrushMove: { type: Function },\n onBrushEnd: { type: Function },\n handleWidth: {},\n selection: {},\n selectionMinLength: {},\n autoHide: { type: Boolean },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<FreeBrush<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new FreeBrush<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","FreeBrush","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,MAAM,CAAC;AAAA,IACP,SAAS,EAAE,MAAM,SAAS;AAAA,IAC1B,cAAc,EAAE,MAAM,SAAS;AAAA,IAC/B,aAAa,EAAE,MAAM,SAAS;AAAA,IAC9B,YAAY,EAAE,MAAM,SAAS;AAAA,IAC7B,aAAa,CAAC;AAAA,IACd,WAAW,CAAC;AAAA,IACZ,oBAAoB,CAAC;AAAA,IACrB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,GAAG,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IACpC,GAAG,EAAE,MAAM,CAAC,UAAU,QAAQ,MAAM,KAAK,EAAE;AAAA,IAC3C,IAAI,EAAE,MAAM,SAAS;AAAA,IACrB,OAAO,EAAE,MAAM,CAAC,UAAU,QAAQ,OAAO,IAAI,EAAE;AAAA,IAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAE;AAAA,IACnC,8BAA8B,EAAE,MAAM,QAAQ;AAAA,IAC9C,UAAU,CAAC;AAAA,IACX,QAAQ,CAAC;AAAA,IACT,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,EACT;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAGRE,IAAWC,EAAOC,CAAoB,GAItCC,IAAOC,EAAS,MAAMJ,EAAS,KAAK,KAAK,GAEzCK,IAAWC,KACXC,IAASH,EAAS,MAAMI,EAAWT,GAAOM,CAAQ,CAAC,GAGnDI,IAAYC;AAGlB,WAAAC,EAAU,MAAM;AACd,MAAAC,EAAS,MAAM;;AACb,QAAAH,EAAU,QAAQ,IAAII,EAAiBN,EAAO,KAAK,IACzCO,IAAAL,EAAA,UAAA,QAAAK,EAAO,QAAQX,EAAK,QACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,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":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),y=require("@unovis/ts"),a=require("../../utils/props.cjs"),s=require("../../utils/context.cjs"),F={"data-vis-component":""},S=n.defineComponent({__name:"index",props:{zoomScaleExtent:{},disableZoom:{type:Boolean},disableDrag:{type:Boolean},zoomThrottledUpdateNodeThreshold:{},onZoom:{type:Function},layoutType:{},layoutAutofit:{type:Boolean},layoutAutofitTolerance:{},layoutNonConnectedAside:{type:Boolean},layoutNodeGroup:{type:[Function,String,null]},layoutGroupOrder:{},layoutParallelNodesPerColumn:{},layoutParallelNodeSubGroup:{type:[Function,String,null]},layoutParallelSubGroupsPerRow:{},layoutParallelGroupSpacing:{},layoutParallelSortConnectionsByGroup:{},forceLayoutSettings:{},dagreLayoutSettings:{},layoutElkSettings:{type:[Function,null]},layoutElkNodeGroups:{},linkWidth:{type:[Function,Number,null]},linkStyle:{type:[Function,null]},linkBandWidth:{type:[Function,Number,null]},linkArrow:{type:[Function,null]},linkStroke:{type:[Function,String,Array,null]},linkDisabled:{type:[Function,Boolean,null]},linkFlow:{type:[Function,Boolean,null]},linkFlowAnimDuration:{},linkFlowParticleSize:{},linkLabel:{type:[Function,null]},linkLabelShiftFromCenter:{type:[Function,Boolean,null]},linkNeighborSpacing:{},selectedLinkId:{},nodeSize:{type:[Function,Number,null]},nodeStrokeWidth:{type:[Function,Number,null]},nodeShape:{type:[Function,null]},nodeGaugeValue:{type:[Function,Number,null]},nodeGaugeFill:{type:[Function,String,Array,null]},nodeGaugeAnimDuration:{},nodeIcon:{type:[Function,String,null]},nodeIconSize:{type:[Function,Number,null]},nodeLabel:{type:[Function,String,null]},nodeLabelTrim:{type:[Function,Boolean,null]},nodeLabelTrimMode:{type:[Function,null]},nodeLabelTrimLength:{type:[Function,Number,null]},nodeSubLabel:{type:[Function,String,null]},nodeSubLabelTrim:{type:[Function,Boolean,null]},nodeSubLabelTrimMode:{type:[Function,null]},nodeSubLabelTrimLength:{type:[Function,Number,null]},nodeSideLabels:{type:[Function,null]},nodeBottomIcon:{type:[Function,String,null]},nodeDisabled:{type:[Function,Boolean,null]},nodeFill:{type:[Function,String,Array,null]},nodeStroke:{type:[Function,String,Array,null]},nodeSort:{type:Function},nodeEnterPosition:{type:[Function,null]},nodeEnterScale:{type:[Function,Number,null]},nodeExitPosition:{type:[Function,null]},nodeExitScale:{type:[Function,Number,null]},selectedNodeId:{},panels:{},duration:{},events:{},attributes:{},data:{}},setup(r){const c=r,o=n.inject(s.componentAccessorKey),p=n.computed(()=>o.data.value),d=n.getCurrentInstance(),l=n.computed(()=>a.parseProps(c,d)),t=n.ref();return n.onMounted(()=>{n.nextTick(()=>{var e;t.value=new y.Graph(l.value),(e=t.value)==null||e.setData(p.value),o.update(t.value)})}),n.onUnmounted(()=>{var e;(e=t.value)==null||e.destroy(),o.destroy()}),n.watch(l,(e,u)=>{var i;a.arePropsEqual(e,u)||((i=t.value)==null||i.setConfig(l.value),o.update(t.value))}),(e,u)=>(n.openBlock(),n.createElementBlock("div",F))}});module.exports=S;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/graph/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-component\": \"\" }\n\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n zoomScaleExtent: {},\n disableZoom: { type: Boolean },\n disableDrag: { type: Boolean },\n zoomThrottledUpdateNodeThreshold: {},\n onZoom: { type: Function },\n layoutType: {},\n layoutAutofit: { type: Boolean },\n layoutAutofitTolerance: {},\n layoutNonConnectedAside: { type: Boolean },\n layoutNodeGroup: { type: [Function, String, null] },\n layoutGroupOrder: {},\n layoutParallelNodesPerColumn: {},\n layoutParallelNodeSubGroup: { type: [Function, String, null] },\n layoutParallelSubGroupsPerRow: {},\n layoutParallelGroupSpacing: {},\n layoutParallelSortConnectionsByGroup: {},\n forceLayoutSettings: {},\n dagreLayoutSettings: {},\n layoutElkSettings: { type: [Function, null] },\n layoutElkNodeGroups: {},\n linkWidth: { type: [Function, Number, null] },\n linkStyle: { type: [Function, null] },\n linkBandWidth: { type: [Function, Number, null] },\n linkArrow: { type: [Function, null] },\n linkStroke: { type: [Function, String, Array, null] },\n linkDisabled: { type: [Function, Boolean, null] },\n linkFlow: { type: [Function, Boolean, null] },\n linkFlowAnimDuration: {},\n linkFlowParticleSize: {},\n linkLabel: { type: [Function, null] },\n linkLabelShiftFromCenter: { type: [Function, Boolean, null] },\n linkNeighborSpacing: {},\n selectedLinkId: {},\n nodeSize: { type: [Function, Number, null] },\n nodeStrokeWidth: { type: [Function, Number, null] },\n nodeShape: { type: [Function, null] },\n nodeGaugeValue: { type: [Function, Number, null] },\n nodeGaugeFill: { type: [Function, String, Array, null] },\n nodeGaugeAnimDuration: {},\n nodeIcon: { type: [Function, String, null] },\n nodeIconSize: { type: [Function, Number, null] },\n nodeLabel: { type: [Function, String, null] },\n nodeLabelTrim: { type: [Function, Boolean, null] },\n nodeLabelTrimMode: { type: [Function, null] },\n nodeLabelTrimLength: { type: [Function, Number, null] },\n nodeSubLabel: { type: [Function, String, null] },\n nodeSubLabelTrim: { type: [Function, Boolean, null] },\n nodeSubLabelTrimMode: { type: [Function, null] },\n nodeSubLabelTrimLength: { type: [Function, Number, null] },\n nodeSideLabels: { type: [Function, null] },\n nodeBottomIcon: { type: [Function, String, null] },\n nodeDisabled: { type: [Function, Boolean, null] },\n nodeFill: { type: [Function, String, Array, null] },\n nodeStroke: { type: [Function, String, Array, null] },\n nodeSort: { type: Function },\n nodeEnterPosition: { type: [Function, null] },\n nodeEnterScale: { type: [Function, Number, null] },\n nodeExitPosition: { type: [Function, null] },\n nodeExitScale: { type: [Function, Number, null] },\n selectedNodeId: {},\n panels: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Graph","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,gBAAiB,CAAC,EAClB,YAAa,CAAE,KAAM,OAAQ,EAC7B,YAAa,CAAE,KAAM,OAAQ,EAC7B,iCAAkC,CAAC,EACnC,OAAQ,CAAE,KAAM,QAAS,EACzB,WAAY,CAAC,EACb,cAAe,CAAE,KAAM,OAAQ,EAC/B,uBAAwB,CAAC,EACzB,wBAAyB,CAAE,KAAM,OAAQ,EACzC,gBAAiB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAClD,iBAAkB,CAAC,EACnB,6BAA8B,CAAC,EAC/B,2BAA4B,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC7D,8BAA+B,CAAC,EAChC,2BAA4B,CA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AAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAY,MAAAN,EAAO,KAAK,GACpCO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent as d, inject as y, computed as i, getCurrentInstance as s, ref as F, onMounted as m, nextTick as S, onUnmounted as b, watch as g, openBlock as k, createElementBlock as N } from "vue";
|
|
2
|
+
import { Graph as L } from "@unovis/ts";
|
|
3
|
+
import { parseProps as f, arePropsEqual as h } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as B } from "../../utils/context.js";
|
|
5
|
+
const v = { "data-vis-component": "" }, E = /* @__PURE__ */ d({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
zoomScaleExtent: {},
|
|
9
|
+
disableZoom: { type: Boolean },
|
|
10
|
+
disableDrag: { type: Boolean },
|
|
11
|
+
zoomThrottledUpdateNodeThreshold: {},
|
|
12
|
+
onZoom: { type: Function },
|
|
13
|
+
layoutType: {},
|
|
14
|
+
layoutAutofit: { type: Boolean },
|
|
15
|
+
layoutAutofitTolerance: {},
|
|
16
|
+
layoutNonConnectedAside: { type: Boolean },
|
|
17
|
+
layoutNodeGroup: { type: [Function, String, null] },
|
|
18
|
+
layoutGroupOrder: {},
|
|
19
|
+
layoutParallelNodesPerColumn: {},
|
|
20
|
+
layoutParallelNodeSubGroup: { type: [Function, String, null] },
|
|
21
|
+
layoutParallelSubGroupsPerRow: {},
|
|
22
|
+
layoutParallelGroupSpacing: {},
|
|
23
|
+
layoutParallelSortConnectionsByGroup: {},
|
|
24
|
+
forceLayoutSettings: {},
|
|
25
|
+
dagreLayoutSettings: {},
|
|
26
|
+
layoutElkSettings: { type: [Function, null] },
|
|
27
|
+
layoutElkNodeGroups: {},
|
|
28
|
+
linkWidth: { type: [Function, Number, null] },
|
|
29
|
+
linkStyle: { type: [Function, null] },
|
|
30
|
+
linkBandWidth: { type: [Function, Number, null] },
|
|
31
|
+
linkArrow: { type: [Function, null] },
|
|
32
|
+
linkStroke: { type: [Function, String, Array, null] },
|
|
33
|
+
linkDisabled: { type: [Function, Boolean, null] },
|
|
34
|
+
linkFlow: { type: [Function, Boolean, null] },
|
|
35
|
+
linkFlowAnimDuration: {},
|
|
36
|
+
linkFlowParticleSize: {},
|
|
37
|
+
linkLabel: { type: [Function, null] },
|
|
38
|
+
linkLabelShiftFromCenter: { type: [Function, Boolean, null] },
|
|
39
|
+
linkNeighborSpacing: {},
|
|
40
|
+
selectedLinkId: {},
|
|
41
|
+
nodeSize: { type: [Function, Number, null] },
|
|
42
|
+
nodeStrokeWidth: { type: [Function, Number, null] },
|
|
43
|
+
nodeShape: { type: [Function, null] },
|
|
44
|
+
nodeGaugeValue: { type: [Function, Number, null] },
|
|
45
|
+
nodeGaugeFill: { type: [Function, String, Array, null] },
|
|
46
|
+
nodeGaugeAnimDuration: {},
|
|
47
|
+
nodeIcon: { type: [Function, String, null] },
|
|
48
|
+
nodeIconSize: { type: [Function, Number, null] },
|
|
49
|
+
nodeLabel: { type: [Function, String, null] },
|
|
50
|
+
nodeLabelTrim: { type: [Function, Boolean, null] },
|
|
51
|
+
nodeLabelTrimMode: { type: [Function, null] },
|
|
52
|
+
nodeLabelTrimLength: { type: [Function, Number, null] },
|
|
53
|
+
nodeSubLabel: { type: [Function, String, null] },
|
|
54
|
+
nodeSubLabelTrim: { type: [Function, Boolean, null] },
|
|
55
|
+
nodeSubLabelTrimMode: { type: [Function, null] },
|
|
56
|
+
nodeSubLabelTrimLength: { type: [Function, Number, null] },
|
|
57
|
+
nodeSideLabels: { type: [Function, null] },
|
|
58
|
+
nodeBottomIcon: { type: [Function, String, null] },
|
|
59
|
+
nodeDisabled: { type: [Function, Boolean, null] },
|
|
60
|
+
nodeFill: { type: [Function, String, Array, null] },
|
|
61
|
+
nodeStroke: { type: [Function, String, Array, null] },
|
|
62
|
+
nodeSort: { type: Function },
|
|
63
|
+
nodeEnterPosition: { type: [Function, null] },
|
|
64
|
+
nodeEnterScale: { type: [Function, Number, null] },
|
|
65
|
+
nodeExitPosition: { type: [Function, null] },
|
|
66
|
+
nodeExitScale: { type: [Function, Number, null] },
|
|
67
|
+
selectedNodeId: {},
|
|
68
|
+
panels: {},
|
|
69
|
+
duration: {},
|
|
70
|
+
events: {},
|
|
71
|
+
attributes: {},
|
|
72
|
+
data: {}
|
|
73
|
+
},
|
|
74
|
+
setup(a) {
|
|
75
|
+
const r = a, o = y(B), c = i(() => o.data.value), p = s(), t = i(() => f(r, p)), e = F();
|
|
76
|
+
return m(() => {
|
|
77
|
+
S(() => {
|
|
78
|
+
var n;
|
|
79
|
+
e.value = new L(t.value), (n = e.value) == null || n.setData(c.value), o.update(e.value);
|
|
80
|
+
});
|
|
81
|
+
}), b(() => {
|
|
82
|
+
var n;
|
|
83
|
+
(n = e.value) == null || n.destroy(), o.destroy();
|
|
84
|
+
}), g(t, (n, l) => {
|
|
85
|
+
var u;
|
|
86
|
+
h(n, l) || ((u = e.value) == null || u.setConfig(t.value), o.update(e.value));
|
|
87
|
+
}), (n, l) => (k(), N("div", v));
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
E as default
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/graph/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-component\": \"\" }\n\nimport { Graph, GraphConfigInterface, GraphInputNode, GraphInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n zoomScaleExtent: {},\n disableZoom: { type: Boolean },\n disableDrag: { type: Boolean },\n zoomThrottledUpdateNodeThreshold: {},\n onZoom: { type: Function },\n layoutType: {},\n layoutAutofit: { type: Boolean },\n layoutAutofitTolerance: {},\n layoutNonConnectedAside: { type: Boolean },\n layoutNodeGroup: { type: [Function, String, null] },\n layoutGroupOrder: {},\n layoutParallelNodesPerColumn: {},\n layoutParallelNodeSubGroup: { type: [Function, String, null] },\n layoutParallelSubGroupsPerRow: {},\n layoutParallelGroupSpacing: {},\n layoutParallelSortConnectionsByGroup: {},\n forceLayoutSettings: {},\n dagreLayoutSettings: {},\n layoutElkSettings: { type: [Function, null] },\n layoutElkNodeGroups: {},\n linkWidth: { type: [Function, Number, null] },\n linkStyle: { type: [Function, null] },\n linkBandWidth: { type: [Function, Number, null] },\n linkArrow: { type: [Function, null] },\n linkStroke: { type: [Function, String, Array, null] },\n linkDisabled: { type: [Function, Boolean, null] },\n linkFlow: { type: [Function, Boolean, null] },\n linkFlowAnimDuration: {},\n linkFlowParticleSize: {},\n linkLabel: { type: [Function, null] },\n linkLabelShiftFromCenter: { type: [Function, Boolean, null] },\n linkNeighborSpacing: {},\n selectedLinkId: {},\n nodeSize: { type: [Function, Number, null] },\n nodeStrokeWidth: { type: [Function, Number, null] },\n nodeShape: { type: [Function, null] },\n nodeGaugeValue: { type: [Function, Number, null] },\n nodeGaugeFill: { type: [Function, String, Array, null] },\n nodeGaugeAnimDuration: {},\n nodeIcon: { type: [Function, String, null] },\n nodeIconSize: { type: [Function, Number, null] },\n nodeLabel: { type: [Function, String, null] },\n nodeLabelTrim: { type: [Function, Boolean, null] },\n nodeLabelTrimMode: { type: [Function, null] },\n nodeLabelTrimLength: { type: [Function, Number, null] },\n nodeSubLabel: { type: [Function, String, null] },\n nodeSubLabelTrim: { type: [Function, Boolean, null] },\n nodeSubLabelTrimMode: { type: [Function, null] },\n nodeSubLabelTrimLength: { type: [Function, Number, null] },\n nodeSideLabels: { type: [Function, null] },\n nodeBottomIcon: { type: [Function, String, null] },\n nodeDisabled: { type: [Function, Boolean, null] },\n nodeFill: { type: [Function, String, Array, null] },\n nodeStroke: { type: [Function, String, Array, null] },\n nodeSort: { type: Function },\n nodeEnterPosition: { type: [Function, null] },\n nodeEnterScale: { type: [Function, Number, null] },\n nodeExitPosition: { type: [Function, null] },\n nodeExitScale: { type: [Function, Number, null] },\n selectedNodeId: {},\n panels: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Graph<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Graph<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Graph","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,iBAAiB,CAAC;AAAA,IAClB,aAAa,EAAE,MAAM,QAAQ;AAAA,IAC7B,aAAa,EAAE,MAAM,QAAQ;AAAA,IAC7B,kCAAkC,CAAC;AAAA,IACnC,QAAQ,EAAE,MAAM,SAAS;AAAA,IACzB,YAAY,CAAC;AAAA,IACb,eAAe,EAAE,MAAM,QAAQ;AAAA,IAC/B,wBAAwB,CAAC;AAAA,IACzB,yBAAyB,EAAE,MAAM,QAAQ;AAAA,IACzC,iBAAiB,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAClD,kBAAkB,CAAC;AAAA,IACnB,8BAA8B,CAAC;AAAA,IAC/B,4BAA4B,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC7D,+BAA+B,CAAC;AAAA,IAChC,4BAA4B,CAAC;AAAA,IAC7B,sCAAsC,CAAC;AAAA,IACvC,qBAAqB,CAAC;AAAA,IACtB,qBAAqB,CAAC;AAAA,IACtB,mBAAmB,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IAC5C,qBAAqB,CAAC;AAAA,IACtB,WAAW,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAC5C,WAAW,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACpC,eAAe,EAAE,MAAM,CAAC,UAAU,QAAQ,IAAI,EAAE;AAAA,IAChD,WAAW,EAAE,MAAM,CAAC,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AA,QAAAK,EAAO,QAAQX,EAAK,QACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,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":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("@unovis/ts"),u=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),m={"data-vis-component":""},v=e.defineComponent({__name:"index",props:{groupWidth:{},groupMaxWidth:{},dataStep:{},groupPadding:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},barMinHeight:{},cursor:{type:[Function,String,null]},orientation:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(s){const i=s,o=e.inject(y.componentAccessorKey),p=e.computed(()=>o.data.value),l=e.getCurrentInstance(),r=e.computed(()=>u.parseProps(i,l)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.GroupedBar(r.value),(t=n.value)==null||t.setData(p.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(r,(t,a)=>{var c;u.arePropsEqual(t,a)||((c=n.value)==null||c.setConfig(r.value),o.update(n.value))}),(t,a)=>(e.openBlock(),e.createElementBlock("div",m))}});module.exports=v;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/grouped-bar/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-component\": \"\" }\n\nimport { GroupedBar, GroupedBarConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n groupWidth: {},\n groupMaxWidth: {},\n dataStep: {},\n groupPadding: {},\n barPadding: {},\n roundedCorners: { type: [Number, Boolean] },\n barMinHeight: {},\n cursor: { type: [Function, String, null] },\n orientation: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<GroupedBar<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new GroupedBar<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","GroupedBar","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,WAAY,CAAC,EACb,cAAe,CAAC,EAChB,SAAU,CAAC,EACX,aAAc,CAAC,EACf,WAAY,CAAC,EACb,eAAgB,CAAE,KAAM,CAAC,OAAQ,OAAO,CAAE,EAC1C,aAAc,CAAC,EACf,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,YAAa,CAAC,EACd,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpC,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,KAAM,KAAK,CAAE,EAC3C,GAAI,CAAE,KAAM,QAAS,EACrB,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAkB,WAAAN,EAAO,KAAK,GAC1CO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as l, inject as d, computed as u, getCurrentInstance as m, ref as y, onMounted as v, nextTick as f, onUnmounted as g, watch as b, openBlock as x, createElementBlock as F } from "vue";
|
|
2
|
+
import { GroupedBar as _ } from "@unovis/ts";
|
|
3
|
+
import { parseProps as h, arePropsEqual as B } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as C } from "../../utils/context.js";
|
|
5
|
+
const S = { "data-vis-component": "" }, M = /* @__PURE__ */ l({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
groupWidth: {},
|
|
9
|
+
groupMaxWidth: {},
|
|
10
|
+
dataStep: {},
|
|
11
|
+
groupPadding: {},
|
|
12
|
+
barPadding: {},
|
|
13
|
+
roundedCorners: { type: [Number, Boolean] },
|
|
14
|
+
barMinHeight: {},
|
|
15
|
+
cursor: { type: [Function, String, null] },
|
|
16
|
+
orientation: {},
|
|
17
|
+
x: { type: [Function, Number, null] },
|
|
18
|
+
y: { type: [Function, Number, null, Array] },
|
|
19
|
+
id: { type: Function },
|
|
20
|
+
color: { type: [Function, String, Array, null] },
|
|
21
|
+
xScale: { type: [Object, Function] },
|
|
22
|
+
yScale: { type: [Object, Function] },
|
|
23
|
+
excludeFromDomainCalculation: { type: Boolean },
|
|
24
|
+
duration: {},
|
|
25
|
+
events: {},
|
|
26
|
+
attributes: {},
|
|
27
|
+
data: {}
|
|
28
|
+
},
|
|
29
|
+
setup(c) {
|
|
30
|
+
const i = c, n = d(C), p = u(() => n.data.value), s = m(), o = u(() => h(i, s)), t = y();
|
|
31
|
+
return v(() => {
|
|
32
|
+
f(() => {
|
|
33
|
+
var e;
|
|
34
|
+
t.value = new _(o.value), (e = t.value) == null || e.setData(p.value), n.update(t.value);
|
|
35
|
+
});
|
|
36
|
+
}), g(() => {
|
|
37
|
+
var e;
|
|
38
|
+
(e = t.value) == null || e.destroy(), n.destroy();
|
|
39
|
+
}), b(o, (e, a) => {
|
|
40
|
+
var r;
|
|
41
|
+
B(e, a) || ((r = t.value) == null || r.setConfig(o.value), n.update(t.value));
|
|
42
|
+
}), (e, a) => (x(), F("div", S));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
M as default
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/grouped-bar/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-component\": \"\" }\n\nimport { GroupedBar, GroupedBarConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n groupWidth: {},\n groupMaxWidth: {},\n dataStep: {},\n groupPadding: {},\n barPadding: {},\n roundedCorners: { type: [Number, Boolean] },\n barMinHeight: {},\n cursor: { type: [Function, String, null] },\n orientation: {},\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<GroupedBar<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new GroupedBar<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","GroupedBar","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],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,EAAO,QAAQX,EAAK,QACrBH,EAAA,OAAOS,EAAU,KAAK;AAAA,MAAA,CAChC;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,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":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),v={"data-vis-component":""},m=e.defineComponent({__name:"index",props:{curveType:{},lineWidth:{},lineDashArray:{type:[Function,null]},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{type:[Function,String,null]},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(s){const i=s,o=e.inject(y.componentAccessorKey),l=e.computed(()=>o.data.value),p=e.getCurrentInstance(),c=e.computed(()=>r.parseProps(i,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.Line(c.value),(t=n.value)==null||t.setData(l.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(c,(t,a)=>{var u;r.arePropsEqual(t,a)||((u=n.value)==null||u.setConfig(c.value),o.update(n.value))}),(t,a)=>(e.openBlock(),e.createElementBlock("div",v))}});module.exports=m;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/line/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-component\": \"\" }\n\nimport { Line, LineConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n curveType: {},\n lineWidth: {},\n lineDashArray: { type: [Function, null] },\n fallbackValue: {},\n highlightOnHover: { type: Boolean },\n cursor: { type: [Function, String, null] },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Line<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Line<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Line","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,UAAW,CAAC,EACZ,UAAW,CAAC,EACZ,cAAe,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACxC,cAAe,CAAC,EAChB,iBAAkB,CAAE,KAAM,OAAQ,EAClC,OAAQ,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACzC,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACpC,EAAG,CAAE,KAAM,CAAC,SAAU,OAAQ,KAAM,KAAK,CAAE,EAC3C,GAAI,CAAE,KAAM,QAAS,EACrB,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC/C,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAE,EACnC,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAY,KAAAN,EAAO,KAAK,GACpCO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as s, inject as m, computed as r, getCurrentInstance as d, ref as y, onMounted as v, nextTick as f, onUnmounted as F, watch as h, openBlock as _, createElementBlock as g } from "vue";
|
|
2
|
+
import { Line as x } from "@unovis/ts";
|
|
3
|
+
import { parseProps as b, arePropsEqual as k } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as A } from "../../utils/context.js";
|
|
5
|
+
const B = { "data-vis-component": "" }, O = /* @__PURE__ */ s({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
curveType: {},
|
|
9
|
+
lineWidth: {},
|
|
10
|
+
lineDashArray: { type: [Function, null] },
|
|
11
|
+
fallbackValue: {},
|
|
12
|
+
highlightOnHover: { type: Boolean },
|
|
13
|
+
cursor: { type: [Function, String, null] },
|
|
14
|
+
x: { type: [Function, Number, null] },
|
|
15
|
+
y: { type: [Function, Number, null, Array] },
|
|
16
|
+
id: { type: Function },
|
|
17
|
+
color: { type: [Function, String, Array, null] },
|
|
18
|
+
xScale: { type: [Object, Function] },
|
|
19
|
+
yScale: { type: [Object, Function] },
|
|
20
|
+
excludeFromDomainCalculation: { type: Boolean },
|
|
21
|
+
duration: {},
|
|
22
|
+
events: {},
|
|
23
|
+
attributes: {},
|
|
24
|
+
data: {}
|
|
25
|
+
},
|
|
26
|
+
setup(u) {
|
|
27
|
+
const l = u, n = m(A), i = r(() => n.data.value), p = d(), o = r(() => b(l, p)), t = y();
|
|
28
|
+
return v(() => {
|
|
29
|
+
f(() => {
|
|
30
|
+
var e;
|
|
31
|
+
t.value = new x(o.value), (e = t.value) == null || e.setData(i.value), n.update(t.value);
|
|
32
|
+
});
|
|
33
|
+
}), F(() => {
|
|
34
|
+
var e;
|
|
35
|
+
(e = t.value) == null || e.destroy(), n.destroy();
|
|
36
|
+
}), h(o, (e, a) => {
|
|
37
|
+
var c;
|
|
38
|
+
k(e, a) || ((c = t.value) == null || c.setConfig(o.value), n.update(t.value));
|
|
39
|
+
}), (e, a) => (_(), g("div", B));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
O as default
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/line/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-component\": \"\" }\n\nimport { Line, LineConfigInterface, NumericAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n curveType: {},\n lineWidth: {},\n lineDashArray: { type: [Function, null] },\n fallbackValue: {},\n highlightOnHover: { type: Boolean },\n cursor: { type: [Function, String, null] },\n x: { type: [Function, Number, null] },\n y: { type: [Function, Number, null, Array] },\n id: { type: Function },\n color: { type: [Function, String, Array, null] },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Line<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Line<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Line","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,WAAW,CAAC;AAAA,IACZ,eAAe,EAAE,MAAM,CAAC,UAAU,IAAI,EAAE;AAAA,IACxC,eAAe,CAAC;AAAA,IAChB,kBAAkB,EAAE,MAAM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,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,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":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("@unovis/ts"),c=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),g={"data-vis-component":""},m=e.defineComponent({__name:"index",props:{angleRange:{},direction:{},value:{type:[Function,Number,null]},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showBackground:{type:Boolean},sort:{type:Function},layers:{},layerSettings:{type:[Function,null]},layerPadding:{},cornerRadius:{},emptySegmentAngle:{},hideOverflowingSegmentLabels:{type:Boolean},segmentColor:{type:[Function,String,Array,null]},segmentLabel:{type:[Function,String,null]},segmentLabelColor:{type:[Function,String,Array,null]},showEmptySegments:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(u){const l=u,o=e.inject(y.componentAccessorKey),i=e.computed(()=>o.data.value),p=e.getCurrentInstance(),a=e.computed(()=>c.parseProps(l,p)),n=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var t;n.value=new d.NestedDonut(a.value),(t=n.value)==null||t.setData(i.value),o.update(n.value)})}),e.onUnmounted(()=>{var t;(t=n.value)==null||t.destroy(),o.destroy()}),e.watch(a,(t,r)=>{var s;c.arePropsEqual(t,r)||((s=n.value)==null||s.setConfig(a.value),o.update(n.value))}),(t,r)=>(e.openBlock(),e.createElementBlock("div",g))}});module.exports=m;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/nested-donut/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-component\": \"\" }\n\nimport { NestedDonut, NestedDonutConfigInterface, StringAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n angleRange: {},\n direction: {},\n value: { type: [Function, Number, null] },\n centralLabel: {},\n centralSubLabel: {},\n centralSubLabelWrap: { type: Boolean },\n showBackground: { type: Boolean },\n sort: { type: Function },\n layers: {},\n layerSettings: { type: [Function, null] },\n layerPadding: {},\n cornerRadius: {},\n emptySegmentAngle: {},\n hideOverflowingSegmentLabels: { type: Boolean },\n segmentColor: { type: [Function, String, Array, null] },\n segmentLabel: { type: [Function, String, null] },\n segmentLabelColor: { type: [Function, String, Array, null] },\n showEmptySegments: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<NestedDonut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new NestedDonut<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","NestedDonut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,WAAY,CAAC,EACb,UAAW,CAAC,EACZ,MAAO,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACxC,aAAc,CAAC,EACf,gBAAiB,CAAC,EAClB,oBAAqB,CAAE,KAAM,OAAQ,EACrC,eAAgB,CAAE,KAAM,OAAQ,EAChC,KAAM,CAAE,KAAM,QAAS,EACvB,OAAQ,CAAC,EACT,cAAe,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACxC,aAAc,CAAC,EACf,aAAc,CAAC,EACf,kBAAmB,CAAC,EACpB,6BAA8B,CAAE,KAAM,OAAQ,EAC9C,aAAc,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACtD,aAAc,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC/C,kBAAmB,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EAC3D,kBAAmB,CAAE,KAAM,OAAQ,EACnC,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,WAAY,CAAC,EACb,KAAM,CAAC,CACT,EACA,MAAMC,EAAc,CAEtB,MAAMC,EAAQD,EAGRE,EAAWC,SAAOC,EAAAA,oBAAoB,EAItCC,EAAOC,EAAAA,SAAS,IAAMJ,EAAS,KAAK,KAAK,EAEzCK,EAAWC,EAAAA,qBACXC,EAASH,EAAAA,SAAS,IAAMI,EAAW,WAAAT,EAAOM,CAAQ,CAAC,EAGnDI,EAAYC,EAAAA,MAGlBC,OAAAA,EAAAA,UAAU,IAAM,CACdC,EAAAA,SAAS,IAAM,OACbH,EAAU,MAAQ,IAAII,EAAmB,YAAAN,EAAO,KAAK,GAC3CO,EAAAL,EAAA,QAAA,MAAAK,EAAO,QAAQX,EAAK,OACrBH,EAAA,OAAOS,EAAU,KAAK,CAAA,CAChC,CAAA,CACF,EAEDM,EAAAA,YAAY,IAAM,QAChBD,EAAAL,EAAU,QAAV,MAAAK,EAAiB,UACjBd,EAAS,QAAQ,CAAA,CAClB,EAEKgB,EAAAA,MAAAT,EAAQ,CAACU,EAAMC,IAAS,OACvBC,EAAA,cAAcF,EAAMC,CAAI,KACjBJ,EAAAL,EAAA,QAAA,MAAAK,EAAO,UAAUP,EAAO,OACzBP,EAAA,OAAOS,EAAU,KAAK,EACjC,CACD,EAEM,CAACW,EAAUC,KACRC,EAAW,UAAA,EAAGC,EAAAA,mBAAoB,MAAO5B,CAAU,EAE7D,CAEA,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as p, inject as m, computed as l, getCurrentInstance as d, ref as y, onMounted as g, nextTick as v, onUnmounted as f, watch as b, openBlock as S, createElementBlock as _ } from "vue";
|
|
2
|
+
import { NestedDonut as B } from "@unovis/ts";
|
|
3
|
+
import { parseProps as h, arePropsEqual as F } from "../../utils/props.js";
|
|
4
|
+
import { componentAccessorKey as L } from "../../utils/context.js";
|
|
5
|
+
const w = { "data-vis-component": "" }, E = /* @__PURE__ */ p({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
angleRange: {},
|
|
9
|
+
direction: {},
|
|
10
|
+
value: { type: [Function, Number, null] },
|
|
11
|
+
centralLabel: {},
|
|
12
|
+
centralSubLabel: {},
|
|
13
|
+
centralSubLabelWrap: { type: Boolean },
|
|
14
|
+
showBackground: { type: Boolean },
|
|
15
|
+
sort: { type: Function },
|
|
16
|
+
layers: {},
|
|
17
|
+
layerSettings: { type: [Function, null] },
|
|
18
|
+
layerPadding: {},
|
|
19
|
+
cornerRadius: {},
|
|
20
|
+
emptySegmentAngle: {},
|
|
21
|
+
hideOverflowingSegmentLabels: { type: Boolean },
|
|
22
|
+
segmentColor: { type: [Function, String, Array, null] },
|
|
23
|
+
segmentLabel: { type: [Function, String, null] },
|
|
24
|
+
segmentLabelColor: { type: [Function, String, Array, null] },
|
|
25
|
+
showEmptySegments: { type: Boolean },
|
|
26
|
+
duration: {},
|
|
27
|
+
events: {},
|
|
28
|
+
attributes: {},
|
|
29
|
+
data: {}
|
|
30
|
+
},
|
|
31
|
+
setup(s) {
|
|
32
|
+
const c = s, n = m(L), u = l(() => n.data.value), i = d(), o = l(() => h(c, i)), t = y();
|
|
33
|
+
return g(() => {
|
|
34
|
+
v(() => {
|
|
35
|
+
var e;
|
|
36
|
+
t.value = new B(o.value), (e = t.value) == null || e.setData(u.value), n.update(t.value);
|
|
37
|
+
});
|
|
38
|
+
}), f(() => {
|
|
39
|
+
var e;
|
|
40
|
+
(e = t.value) == null || e.destroy(), n.destroy();
|
|
41
|
+
}), b(o, (e, a) => {
|
|
42
|
+
var r;
|
|
43
|
+
F(e, a) || ((r = t.value) == null || r.setConfig(o.value), n.update(t.value));
|
|
44
|
+
}), (e, a) => (S(), _("div", w));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
E as default
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/nested-donut/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-component\": \"\" }\n\nimport { NestedDonut, NestedDonutConfigInterface, StringAccessor } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n angleRange: {},\n direction: {},\n value: { type: [Function, Number, null] },\n centralLabel: {},\n centralSubLabel: {},\n centralSubLabelWrap: { type: Boolean },\n showBackground: { type: Boolean },\n sort: { type: Function },\n layers: {},\n layerSettings: { type: [Function, null] },\n layerPadding: {},\n cornerRadius: {},\n emptySegmentAngle: {},\n hideOverflowingSegmentLabels: { type: Boolean },\n segmentColor: { type: [Function, String, Array, null] },\n segmentLabel: { type: [Function, String, null] },\n segmentLabelColor: { type: [Function, String, Array, null] },\n showEmptySegments: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<NestedDonut<Datum>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new NestedDonut<Datum>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","NestedDonut","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":";;;;AAGA,MAAMA,IAAa,EAAE,sBAAsB,MAQfC,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,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;AAAA,IAAA,CACF,GAEDM,EAAY,MAAM;;AAChB,OAAAD,IAAAL,EAAU,UAAV,QAAAK,EAAiB,WACjBd,EAAS,QAAQ;AAAA,IAAA,CAClB,GAEKgB,EAAAT,GAAQ,CAACU,GAAMC,MAAS;;AAC5B,MAAKC,EAAcF,GAAMC,CAAI,OACjBJ,IAAAL,EAAA,UAAA,QAAAK,EAAO,UAAUP,EAAO,QACzBP,EAAA,OAAOS,EAAU,KAAK;AAAA,IACjC,CACD,GAEM,CAACW,GAAUC,OACRC,EAAW,GAAGC,EAAoB,OAAO5B,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":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("@unovis/ts"),r=require("../../utils/props.cjs"),y=require("../../utils/context.cjs"),b={"data-vis-component":""},g=e.defineComponent({__name:"index",props:{id:{type:Function},heightNormalizationCoeff:{},exitTransitionType:{},enterTransitionType:{},highlightSubtreeOnHover:{type:Boolean},highlightDuration:{},highlightDelay:{},iterations:{},nodeSort:{type:[Function,null]},linkSort:{type:[Function,null]},nodeWidth:{},nodeAlign:{},nodeHorizontalSpacing:{},nodeMinHeight:{},nodeMaxHeight:{},nodePadding:{},showSingleNode:{type:Boolean},nodeCursor:{type:[Function,String,null]},nodeIcon:{type:[Function,String,null]},nodeColor:{type:[Function,String,Array,null]},nodeFixedValue:{type:[Function,Number,null]},nodeIconColor:{type:[Function,String,Array,null]},linkColor:{type:[Function,String,null]},linkValue:{type:[Function,Number,null]},linkCursor:{type:[Function,String,null]},label:{type:[Function,String,null]},subLabel:{type:[Function,String,null]},labelPosition:{type:[Function,null]},labelVerticalAlign:{},labelBackground:{type:Boolean},labelFit:{},labelMaxWidth:{},labelExpandTrimmedOnHover:{type:Boolean},labelTrimMode:{},labelFontSize:{},labelTextSeparator:{},labelForceWordBreak:{type:Boolean},labelColor:{type:[Function,String,Array,null]},labelCursor:{type:[Function,String,null]},labelVisibility:{type:Function},subLabelFontSize:{},subLabelColor:{type:[Function,String,Array,null]},subLabelPlacement:{},subLabelToLabelInlineWidthRatio:{},duration:{},events:{},attributes:{},data:{}},setup(u){const c=u,o=e.inject(y.componentAccessorKey),s=e.computed(()=>o.data.value),p=e.getCurrentInstance(),l=e.computed(()=>r.parseProps(c,p)),t=e.ref();return e.onMounted(()=>{e.nextTick(()=>{var n;t.value=new d.Sankey(l.value),(n=t.value)==null||n.setData(s.value),o.update(t.value)})}),e.onUnmounted(()=>{var n;(n=t.value)==null||n.destroy(),o.destroy()}),e.watch(l,(n,i)=>{var a;r.arePropsEqual(n,i)||((a=t.value)==null||a.setConfig(l.value),o.update(t.value))}),(n,i)=>(e.openBlock(),e.createElementBlock("div",b))}});module.exports=g;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/sankey/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-component\": \"\" }\n\nimport { Sankey, SankeyConfigInterface, SankeyInputNode, SankeyInputLink } from '@unovis/ts'\nimport { onMounted, onUnmounted, computed, ref, watch, getCurrentInstance, nextTick, inject } from 'vue'\nimport { arePropsEqual, parseProps } from '../../utils/props'\nimport { componentAccessorKey } from '../../utils/context'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n props: {\n id: { type: Function },\n heightNormalizationCoeff: {},\n exitTransitionType: {},\n enterTransitionType: {},\n highlightSubtreeOnHover: { type: Boolean },\n highlightDuration: {},\n highlightDelay: {},\n iterations: {},\n nodeSort: { type: [Function, null] },\n linkSort: { type: [Function, null] },\n nodeWidth: {},\n nodeAlign: {},\n nodeHorizontalSpacing: {},\n nodeMinHeight: {},\n nodeMaxHeight: {},\n nodePadding: {},\n showSingleNode: { type: Boolean },\n nodeCursor: { type: [Function, String, null] },\n nodeIcon: { type: [Function, String, null] },\n nodeColor: { type: [Function, String, Array, null] },\n nodeFixedValue: { type: [Function, Number, null] },\n nodeIconColor: { type: [Function, String, Array, null] },\n linkColor: { type: [Function, String, null] },\n linkValue: { type: [Function, Number, null] },\n linkCursor: { type: [Function, String, null] },\n label: { type: [Function, String, null] },\n subLabel: { type: [Function, String, null] },\n labelPosition: { type: [Function, null] },\n labelVerticalAlign: {},\n labelBackground: { type: Boolean },\n labelFit: {},\n labelMaxWidth: {},\n labelExpandTrimmedOnHover: { type: Boolean },\n labelTrimMode: {},\n labelFontSize: {},\n labelTextSeparator: {},\n labelForceWordBreak: { type: Boolean },\n labelColor: { type: [Function, String, Array, null] },\n labelCursor: { type: [Function, String, null] },\n labelVisibility: { type: Function },\n subLabelFontSize: {},\n subLabelColor: { type: [Function, String, Array, null] },\n subLabelPlacement: {},\n subLabelToLabelInlineWidthRatio: {},\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(__props: any) {\n\nconst props = __props;\n\n// !!! This code was automatically generated. You should not change it !!!\nconst accessor = inject(componentAccessorKey)\n\n// data and required props\n\nconst data = computed(() => accessor.data.value)\n// config\nconst instance = getCurrentInstance()\nconst config = computed(() => parseProps(props, instance))\n\n// component declaration\nconst component = ref<Sankey<N, L>>()\n\n\nonMounted(() => {\n nextTick(() => {\n component.value = new Sankey<N, L>(config.value)\n component.value?.setData(data.value)\n accessor.update(component.value)\n })\n})\n\nonUnmounted(() => {\n component.value?.destroy()\n accessor.destroy()\n})\n\nwatch(config, (curr, prev) => {\n if (!arePropsEqual(curr, prev)) {\n component.value?.setConfig(config.value)\n accessor.update(component.value)\n }\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","props","accessor","inject","componentAccessorKey","data","computed","instance","getCurrentInstance","config","parseProps","component","ref","onMounted","nextTick","Sankey","_a","onUnmounted","watch","curr","prev","arePropsEqual","_ctx","_cache","_openBlock","_createElementBlock"],"mappings":"oIAGMA,EAAa,CAAE,qBAAsB,IAQfC,EAAiBC,kBAAA,CAC3C,OAAQ,QACR,MAAO,CACL,GAAI,CAAE,KAAM,QAAS,EACrB,yBAA0B,CAAC,EAC3B,mBAAoB,CAAC,EACrB,oBAAqB,CAAC,EACtB,wBAAyB,CAAE,KAAM,OAAQ,EACzC,kBAAmB,CAAC,EACpB,eAAgB,CAAC,EACjB,WAAY,CAAC,EACb,SAAU,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACnC,SAAU,CAAE,KAAM,CAAC,SAAU,IAAI,CAAE,EACnC,UAAW,CAAC,EACZ,UAAW,CAAC,EACZ,sBAAuB,CAAC,EACxB,cAAe,CAAC,EAChB,cAAe,CAAC,EAChB,YAAa,CAAC,EACd,eAAgB,CAAE,KAAM,OAAQ,EAChC,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC7C,SAAU,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC3C,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACnD,eAAgB,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EACjD,cAAe,CAAE,KAAM,CAAC,SAAU,OAAQ,MAAO,IAAI,CAAE,EACvD,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC5C,UAAW,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC5C,WAAY,CAAE,KAAM,CAAC,SAAU,OAAQ,IAAI,CAAE,EAC7C,MAAO,CAAE,KAAM,CA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