@mx-sose-front/mx-sose-graph 1.0.1 → 1.0.3
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/dist/index.esm.js +9 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/view/graph.vue +142 -2
package/dist/index.esm.js
CHANGED
|
@@ -74058,7 +74058,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74058
74058
|
emits: ["shapes-property", "shapes-edit-name", "connect-end", "action-button-click", "diagramDoubleClick", "model-type-property-id-button-click", "action-button-add", "scale-changed"],
|
|
74059
74059
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74060
74060
|
useCssVars((_ctx) => ({
|
|
74061
|
-
"
|
|
74061
|
+
"d9dd4e94": currentScale.value
|
|
74062
74062
|
}));
|
|
74063
74063
|
registerShapes({
|
|
74064
74064
|
StrategicTaxonomyDiagram,
|
|
@@ -74082,6 +74082,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74082
74082
|
const shapeComponents = ref([]);
|
|
74083
74083
|
const resShape = ref({});
|
|
74084
74084
|
const currentScale = computed(() => graphStore.getScale());
|
|
74085
|
+
const zoomValue = ref(currentScale.value);
|
|
74086
|
+
watch(currentScale, (newScale) => {
|
|
74087
|
+
zoomValue.value = newScale;
|
|
74088
|
+
});
|
|
74085
74089
|
const shapes = computed(
|
|
74086
74090
|
() => (graphStore.visibleShapes || []).filter((s2) => {
|
|
74087
74091
|
if (graphStore.externalCreatingId && s2.id === graphStore.externalCreatingId) {
|
|
@@ -74331,7 +74335,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74331
74335
|
resShape: resShape.value,
|
|
74332
74336
|
edgeCheck: _ctx.edgeCheck,
|
|
74333
74337
|
onPropertyPanel: handlePropertyPanel,
|
|
74334
|
-
|
|
74338
|
+
actionButtonShapeId: _ctx.actionButtonShapeId,
|
|
74335
74339
|
onEditName: handleEditName,
|
|
74336
74340
|
onUpdateShape: handleUpdateConnectShape,
|
|
74337
74341
|
onDiagramDoubleClick: handleDiagramDoubleClick,
|
|
@@ -74343,14 +74347,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74343
74347
|
diagram: props2.diagram,
|
|
74344
74348
|
"tagged-value-labels": props2.taggedValueLabels,
|
|
74345
74349
|
onActionButtonAdd: handleActionButtonAdd
|
|
74346
|
-
}, null, 8, ["connect-shape-data", "diagram-bounds", "style", "resShape", "edgeCheck", "
|
|
74350
|
+
}, null, 8, ["connect-shape-data", "diagram-bounds", "style", "resShape", "edgeCheck", "actionButtonShapeId", "lines", "packages", "diagram", "tagged-value-labels"])) : createCommentVNode("", true)
|
|
74347
74351
|
], 544)
|
|
74348
74352
|
]);
|
|
74349
74353
|
};
|
|
74350
74354
|
}
|
|
74351
74355
|
});
|
|
74352
|
-
const
|
|
74353
|
-
const GraphView = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-
|
|
74356
|
+
const graph_vue_vue_type_style_index_0_scoped_86c15316_lang = "";
|
|
74357
|
+
const GraphView = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-86c15316"]]);
|
|
74354
74358
|
const MxSoseGraphPlugin = {
|
|
74355
74359
|
install(app) {
|
|
74356
74360
|
app.component("GraphView", GraphView);
|