@vunk/graph 0.0.1
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/api/index.d.ts +0 -0
- package/api/index.mjs +1 -0
- package/api/user/index.d.ts +3 -0
- package/api/user/index.mjs +18 -0
- package/api/user/types.d.ts +5 -0
- package/components/_plugin-vue_export-helper.mjs +9 -0
- package/components/context-menu/index.css +1 -0
- package/components/context-menu/index.d.ts +2 -0
- package/components/context-menu/index.mjs +1797 -0
- package/components/graph/index.css +5 -0
- package/components/graph/index.d.ts +6 -0
- package/components/graph/index.mjs +110 -0
- package/components/graph/src/ctx.d.ts +12 -0
- package/components/graph/src/index.vue.d.ts +74 -0
- package/components/graph/src/types.d.ts +7 -0
- package/components/graph/src/useGraph.d.ts +3 -0
- package/components/graph/src/useSigma.d.ts +3 -0
- package/components/graph-view-ui/index.css +8 -0
- package/components/graph-view-ui/index.d.ts +4 -0
- package/components/graph-view-ui/index.mjs +81 -0
- package/components/graph-view-ui/src/ctx.d.ts +11 -0
- package/components/graph-view-ui/src/index.vue.d.ts +17 -0
- package/components/graph-view-ui/src/types.d.ts +1 -0
- package/components/hover-edge/index.d.ts +4 -0
- package/components/hover-edge/index.mjs +179 -0
- package/components/hover-edge/src/ctx.d.ts +42 -0
- package/components/hover-edge/src/index.vue.d.ts +194 -0
- package/components/hover-edge/src/types.d.ts +4 -0
- package/components/hover-highlight/index.d.ts +4 -0
- package/components/hover-highlight/index.mjs +133 -0
- package/components/hover-highlight/src/ctx.d.ts +33 -0
- package/components/hover-highlight/src/index.vue.d.ts +45 -0
- package/components/hover-highlight/src/types.d.ts +1 -0
- package/components/hover-node/index.d.ts +4 -0
- package/components/hover-node/index.mjs +146 -0
- package/components/hover-node/src/ctx.d.ts +35 -0
- package/components/hover-node/src/index.vue.d.ts +148 -0
- package/components/hover-node/src/types.d.ts +4 -0
- package/components/label/index.css +30 -0
- package/components/label/index.d.ts +6 -0
- package/components/label/index.mjs +145 -0
- package/components/label/src/core.d.ts +5 -0
- package/components/label/src/ctx.d.ts +24 -0
- package/components/label/src/index.vue.d.ts +33 -0
- package/components/label/src/types.d.ts +1 -0
- package/components/label/src/view.vue.d.ts +28 -0
- package/components/layout-forceatlas2/index.d.ts +5 -0
- package/components/layout-forceatlas2/index.mjs +1617 -0
- package/components/layout-forceatlas2/src/ctx.d.ts +9 -0
- package/components/layout-forceatlas2/src/index.vue.d.ts +14 -0
- package/components/layout-forceatlas2/src/types.d.ts +1 -0
- package/components/layout-forceatlas2/src/use.d.ts +16 -0
- package/components/link-guide/index.css +9 -0
- package/components/link-guide/index.d.ts +4 -0
- package/components/link-guide/index.mjs +118 -0
- package/components/link-guide/src/ctx.d.ts +11 -0
- package/components/link-guide/src/index.vue.d.ts +27 -0
- package/components/link-guide/src/types.d.ts +1 -0
- package/components/popup/index.css +32 -0
- package/components/popup/index.d.ts +5 -0
- package/components/popup/index.mjs +136 -0
- package/components/popup/src/core.d.ts +24 -0
- package/components/popup/src/ctx.d.ts +16 -0
- package/components/popup/src/index.vue.d.ts +73 -0
- package/components/popup/src/provider.vue.d.ts +46 -0
- package/components/popup/src/types.d.ts +1 -0
- package/components/search/index.d.ts +4 -0
- package/components/search/index.mjs +218 -0
- package/components/search/src/ctx.d.ts +53 -0
- package/components/search/src/index.vue.d.ts +83 -0
- package/components/search/src/types.d.ts +16 -0
- package/composables/index.d.ts +1 -0
- package/composables/index.mjs +1 -0
- package/index.css +90 -0
- package/index.d.ts +10 -0
- package/index.esm.js +10 -0
- package/package.json +108 -0
- package/shared/graph/index.d.ts +17 -0
- package/shared/graph/index.mjs +19 -0
- package/shared/index.d.ts +0 -0
- package/shared/index.mjs +1 -0
- package/stores/index.d.ts +0 -0
- package/stores/index.mjs +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
settings: {
|
|
3
|
+
type: import("vue").PropType<import("graphology-layout-forceatlas2").ForceAtlas2Settings>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
settings: {
|
|
8
|
+
type: import("vue").PropType<import("graphology-layout-forceatlas2").ForceAtlas2Settings>;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
settings: import("graphology-layout-forceatlas2").ForceAtlas2Settings;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ForceAtlas2Settings } from 'graphology-layout-forceatlas2';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
import FA2Layout from 'graphology-layout-forceatlas2/worker';
|
|
4
|
+
export declare function initLayoutForceatlas2(props?: {
|
|
5
|
+
settings?: ForceAtlas2Settings;
|
|
6
|
+
}): {
|
|
7
|
+
start: () => void;
|
|
8
|
+
stop: () => void;
|
|
9
|
+
kill: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function useLayoutForceatlas2(): {
|
|
12
|
+
start: () => void;
|
|
13
|
+
stop: () => void;
|
|
14
|
+
kill: () => void;
|
|
15
|
+
layoutRef: Ref<FA2Layout | null>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { useSigma, useGraph } from '@vunk/graph/composables';
|
|
2
|
+
import { defineComponent, reactive, onMounted, onBeforeUnmount, createElementBlock, openBlock, createElementVNode } from 'vue';
|
|
3
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
const props = {
|
|
6
|
+
from: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const emits = {
|
|
12
|
+
link: (_to) => true,
|
|
13
|
+
cancel: null
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
var _sfc_main = defineComponent({
|
|
17
|
+
name: "VkLinkGuide",
|
|
18
|
+
props,
|
|
19
|
+
emits,
|
|
20
|
+
setup(props2, { emit }) {
|
|
21
|
+
const sigma = useSigma();
|
|
22
|
+
const graph = useGraph();
|
|
23
|
+
const mousePos = reactive({ x: 0, y: 0 });
|
|
24
|
+
const sourcePos = reactive({ x: 0, y: 0 });
|
|
25
|
+
function updateSourcePos() {
|
|
26
|
+
if (!props2.from)
|
|
27
|
+
return;
|
|
28
|
+
if (!graph.hasNode(props2.from))
|
|
29
|
+
return;
|
|
30
|
+
const attrs = graph.getNodeAttributes(props2.from);
|
|
31
|
+
if (typeof attrs.x !== "number" || typeof attrs.y !== "number")
|
|
32
|
+
return;
|
|
33
|
+
const pos = sigma.graphToViewport({ x: attrs.x, y: attrs.y });
|
|
34
|
+
sourcePos.x = pos.x;
|
|
35
|
+
sourcePos.y = pos.y;
|
|
36
|
+
}
|
|
37
|
+
function onSigmaMouseMove(e) {
|
|
38
|
+
mousePos.x = e.event.x;
|
|
39
|
+
mousePos.y = e.event.y;
|
|
40
|
+
}
|
|
41
|
+
function onClickNode({ node }) {
|
|
42
|
+
if (node !== props2.from) {
|
|
43
|
+
emit("link", node);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function onClickStage() {
|
|
47
|
+
emit("cancel");
|
|
48
|
+
}
|
|
49
|
+
onMounted(() => {
|
|
50
|
+
sigma.on("moveBody", onSigmaMouseMove);
|
|
51
|
+
sigma.on("clickNode", onClickNode);
|
|
52
|
+
sigma.on("clickStage", onClickStage);
|
|
53
|
+
sigma.on("afterRender", updateSourcePos);
|
|
54
|
+
updateSourcePos();
|
|
55
|
+
mousePos.x = sourcePos.x;
|
|
56
|
+
mousePos.y = sourcePos.y;
|
|
57
|
+
});
|
|
58
|
+
onBeforeUnmount(() => {
|
|
59
|
+
sigma.off("moveBody", onSigmaMouseMove);
|
|
60
|
+
sigma.off("clickNode", onClickNode);
|
|
61
|
+
sigma.off("clickStage", onClickStage);
|
|
62
|
+
sigma.off("afterRender", updateSourcePos);
|
|
63
|
+
});
|
|
64
|
+
return {
|
|
65
|
+
mousePos,
|
|
66
|
+
sourcePos
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const _hoisted_1 = { class: "vkg-link-guide" };
|
|
72
|
+
const _hoisted_2 = ["x1", "y1", "x2", "y2"];
|
|
73
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
74
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [
|
|
75
|
+
_cache[0] || (_cache[0] = createElementVNode(
|
|
76
|
+
"defs",
|
|
77
|
+
null,
|
|
78
|
+
[
|
|
79
|
+
createElementVNode("marker", {
|
|
80
|
+
id: "arrowhead-guide",
|
|
81
|
+
markerWidth: "10",
|
|
82
|
+
markerHeight: "7",
|
|
83
|
+
refX: "9",
|
|
84
|
+
refY: "3.5",
|
|
85
|
+
orient: "auto"
|
|
86
|
+
}, [
|
|
87
|
+
createElementVNode("polygon", {
|
|
88
|
+
points: "0 0, 10 3.5, 0 7",
|
|
89
|
+
fill: "#409eff"
|
|
90
|
+
})
|
|
91
|
+
])
|
|
92
|
+
],
|
|
93
|
+
-1
|
|
94
|
+
/* CACHED */
|
|
95
|
+
)),
|
|
96
|
+
createElementVNode("line", {
|
|
97
|
+
x1: _ctx.sourcePos.x,
|
|
98
|
+
y1: _ctx.sourcePos.y,
|
|
99
|
+
x2: _ctx.mousePos.x,
|
|
100
|
+
y2: _ctx.mousePos.y,
|
|
101
|
+
stroke: "#409eff",
|
|
102
|
+
"stroke-width": "2",
|
|
103
|
+
"stroke-dasharray": "5,5",
|
|
104
|
+
"marker-end": "url(#arrowhead-guide)"
|
|
105
|
+
}, null, 8, _hoisted_2)
|
|
106
|
+
]);
|
|
107
|
+
}
|
|
108
|
+
var VkLinkGuide = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
109
|
+
|
|
110
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
111
|
+
__proto__: null
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
VkLinkGuide.install = (app) => {
|
|
115
|
+
app.component(VkLinkGuide.name || "VkLinkGuide", VkLinkGuide);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export { VkLinkGuide, types as __VkLinkGuide, VkLinkGuide as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
from: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, {
|
|
7
|
+
mousePos: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
sourcePos: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
link: (_to: string) => boolean;
|
|
17
|
+
cancel: null;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
from: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{
|
|
24
|
+
onLink?: ((_to: string) => any) | undefined;
|
|
25
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.vkg-popup-global {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
/* VkGraphViewUi 默认居中 (translate -50%, -50%) */
|
|
6
|
+
/* 向上再平移 50% 使其底部对齐坐标点,再加 10px 避开节点 */
|
|
7
|
+
transform: translateY(calc(-50% - 10px));
|
|
8
|
+
}
|
|
9
|
+
.vkg-popup-global__inner {
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
border: 1px solid #e4e7ed;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
padding: 6px 10px;
|
|
14
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
15
|
+
font-size: 13px;
|
|
16
|
+
color: #303133;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
position: relative;
|
|
19
|
+
z-index: 2;
|
|
20
|
+
}
|
|
21
|
+
.vkg-popup-global__tip {
|
|
22
|
+
width: 8px;
|
|
23
|
+
height: 8px;
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
border-right: 1px solid #e4e7ed;
|
|
26
|
+
border-bottom: 1px solid #e4e7ed;
|
|
27
|
+
transform: rotate(45deg);
|
|
28
|
+
margin-top: -4.5px;
|
|
29
|
+
position: relative;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
box-shadow: 2px 2px 3px -1px rgba(0, 0, 0, 0.05);
|
|
32
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineComponent, shallowRef, computed, onMounted, onBeforeUnmount, createBlock, openBlock, unref, withCtx, createElementVNode, renderSlot, resolveComponent, withDirectives, createVNode, resolveDynamicComponent, vShow } from 'vue';
|
|
2
|
+
import { useSigma } from '@vunk/graph/composables';
|
|
3
|
+
import { createGlobalRenderer } from '@vunk/core/components/global-renderer';
|
|
4
|
+
import { VkGraphViewUi } from '@vunk/graph/components/graph-view-ui';
|
|
5
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
|
+
|
|
7
|
+
const {
|
|
8
|
+
GlobalRenderer,
|
|
9
|
+
GlobalRendererTemplate
|
|
10
|
+
} = createGlobalRenderer("vunk-graph-popup");
|
|
11
|
+
|
|
12
|
+
const props = {
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* @description 是否显示关闭按钮
|
|
19
|
+
*/
|
|
20
|
+
closeable: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const emits = {
|
|
26
|
+
"update:modelValue": null
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const _hoisted_1$1 = { class: "vkg-popup" };
|
|
30
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
31
|
+
__name: "index",
|
|
32
|
+
props: props,
|
|
33
|
+
emits,
|
|
34
|
+
setup(__props, { emit: __emit }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const emit = __emit;
|
|
37
|
+
const sigma = useSigma();
|
|
38
|
+
const coordinates = shallowRef([0, 0]);
|
|
39
|
+
const state = computed(() => ({
|
|
40
|
+
visible: props.modelValue,
|
|
41
|
+
coordinates: coordinates.value
|
|
42
|
+
}));
|
|
43
|
+
function onClickNode(e) {
|
|
44
|
+
const { node } = e;
|
|
45
|
+
const nodeDisplayData = sigma.getNodeDisplayData(node);
|
|
46
|
+
if (nodeDisplayData) {
|
|
47
|
+
coordinates.value = [nodeDisplayData.x, nodeDisplayData.y];
|
|
48
|
+
emit("update:modelValue", true);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function onClickStage() {
|
|
52
|
+
emit("update:modelValue", false);
|
|
53
|
+
}
|
|
54
|
+
onMounted(() => {
|
|
55
|
+
sigma.on("clickNode", onClickNode);
|
|
56
|
+
sigma.on("clickStage", onClickStage);
|
|
57
|
+
});
|
|
58
|
+
onBeforeUnmount(() => {
|
|
59
|
+
sigma.off("clickNode", onClickNode);
|
|
60
|
+
sigma.off("clickStage", onClickStage);
|
|
61
|
+
});
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
return openBlock(), createBlock(unref(GlobalRendererTemplate), {
|
|
64
|
+
active: _ctx.modelValue,
|
|
65
|
+
data: state.value
|
|
66
|
+
}, {
|
|
67
|
+
default: withCtx(() => [
|
|
68
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
69
|
+
renderSlot(_ctx.$slots, "default")
|
|
70
|
+
])
|
|
71
|
+
]),
|
|
72
|
+
_: 3
|
|
73
|
+
/* FORWARDED */
|
|
74
|
+
}, 8, ["active", "data"]);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var _sfc_main = defineComponent({
|
|
80
|
+
name: "VkPopupProvider",
|
|
81
|
+
components: {
|
|
82
|
+
VkGraphViewUi,
|
|
83
|
+
GlobalRenderer
|
|
84
|
+
},
|
|
85
|
+
props,
|
|
86
|
+
emits
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const _hoisted_1 = { class: "vkg-popup-global" };
|
|
90
|
+
const _hoisted_2 = { class: "vkg-popup-global__inner" };
|
|
91
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92
|
+
const _component_VkGraphViewUi = resolveComponent("VkGraphViewUi");
|
|
93
|
+
const _component_GlobalRenderer = resolveComponent("GlobalRenderer");
|
|
94
|
+
return openBlock(), createBlock(_component_GlobalRenderer, null, {
|
|
95
|
+
preset: withCtx(({ renderer, data }) => [
|
|
96
|
+
withDirectives(createVNode(_component_VkGraphViewUi, {
|
|
97
|
+
coordinates: data?.coordinates
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
createElementVNode("div", _hoisted_1, [
|
|
101
|
+
createElementVNode("div", _hoisted_2, [
|
|
102
|
+
(openBlock(), createBlock(resolveDynamicComponent(renderer)))
|
|
103
|
+
]),
|
|
104
|
+
_cache[0] || (_cache[0] = createElementVNode(
|
|
105
|
+
"div",
|
|
106
|
+
{ class: "vkg-popup-global__tip" },
|
|
107
|
+
null,
|
|
108
|
+
-1
|
|
109
|
+
/* CACHED */
|
|
110
|
+
))
|
|
111
|
+
])
|
|
112
|
+
]),
|
|
113
|
+
_: 2
|
|
114
|
+
/* DYNAMIC */
|
|
115
|
+
}, 1032, ["coordinates"]), [
|
|
116
|
+
[vShow, data?.visible]
|
|
117
|
+
])
|
|
118
|
+
]),
|
|
119
|
+
default: withCtx(() => [
|
|
120
|
+
renderSlot(_ctx.$slots, "default")
|
|
121
|
+
]),
|
|
122
|
+
_: 3
|
|
123
|
+
/* FORWARDED */
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
var provider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
127
|
+
|
|
128
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
129
|
+
__proto__: null
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
_sfc_main$1.install = (app) => {
|
|
133
|
+
app.component(_sfc_main$1.name || "VkPopup", _sfc_main$1);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export { _sfc_main$1 as VkPopup, provider as VkPopupProvider, types as __VkPopup, _sfc_main$1 as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const GlobalRenderer: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>[][], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, GlobalRendererTemplate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
active: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
data: {
|
|
9
|
+
type: import("vue").PropType<import("@vunk/graph/entry").NormalObject>;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
active: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
data: {
|
|
18
|
+
type: import("vue").PropType<import("@vunk/graph/entry").NormalObject>;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
data: import("@vunk/graph/entry").NormalObject;
|
|
23
|
+
active: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @description 是否显示关闭按钮
|
|
8
|
+
*/
|
|
9
|
+
closeable: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const emits: {
|
|
15
|
+
'update:modelValue': null;
|
|
16
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
closeable: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {
|
|
11
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
closeable: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}> & {}>;
|
|
23
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
24
|
+
sigma: import("sigma").default<import("graphology-types").Attributes, import("graphology-types").Attributes, import("graphology-types").Attributes>;
|
|
25
|
+
coordinates: import("vue").ShallowRef<number[], number[]>;
|
|
26
|
+
state: import("vue").ComputedRef<{
|
|
27
|
+
visible: boolean;
|
|
28
|
+
coordinates: number[];
|
|
29
|
+
}>;
|
|
30
|
+
onClickNode: (e: {
|
|
31
|
+
node: string;
|
|
32
|
+
}) => void;
|
|
33
|
+
onClickStage: () => void;
|
|
34
|
+
readonly GlobalRendererTemplate: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
35
|
+
active: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
data: {
|
|
40
|
+
type: import("vue").PropType<import("@vunk/graph/entry").NormalObject>;
|
|
41
|
+
default: () => {};
|
|
42
|
+
};
|
|
43
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
active: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
data: {
|
|
49
|
+
type: import("vue").PropType<import("@vunk/graph/entry").NormalObject>;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{}>, {
|
|
53
|
+
data: import("@vunk/graph/entry").NormalObject;
|
|
54
|
+
active: boolean;
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
+
'update:modelValue': null;
|
|
58
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
modelValue: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
closeable: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
modelValue: boolean;
|
|
71
|
+
closeable: boolean;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
closeable: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
'update:modelValue': null;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
closeable: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
modelValue: boolean;
|
|
25
|
+
closeable: boolean;
|
|
26
|
+
}, {}, {
|
|
27
|
+
VkGraphViewUi: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
28
|
+
coordinates: {
|
|
29
|
+
type: import("vue").PropType<number[]>;
|
|
30
|
+
default: () => number[];
|
|
31
|
+
};
|
|
32
|
+
}>, {
|
|
33
|
+
style: import("vue").Ref<import("@vunk/shared").NormalObject, import("@vunk/shared").NormalObject>;
|
|
34
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
coordinates: {
|
|
36
|
+
type: import("vue").PropType<number[]>;
|
|
37
|
+
default: () => number[];
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {
|
|
40
|
+
coordinates: number[];
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
+
GlobalRenderer: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>[][], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|