wujingjing
2024-11-14 6e3dff485788426e94b7fad0edb1717e3f0c9f40
selfAdapt
已修改1个文件
9 ■■■■■ 文件已修改
src/components/graph/treeGraph/TreeGraph.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/graph/treeGraph/TreeGraph.vue
@@ -1,5 +1,5 @@
<template>
    <div  class="h-full w-full bg-white relative flex flex-col">
    <div class="h-full w-full bg-white relative flex flex-col">
        <!-- <div class="toolbar flex-0 border-x-0 border-b border-t-0 border-gray-200 border-solid flex-items-center">
            <span>
                格式
@@ -147,11 +147,12 @@
        selfAdapt();
    }
};
const rebuildGraph = async(extraOption: DeepPartial<GraphOptions>) => {
const rebuildGraph = async (extraOption: DeepPartial<GraphOptions>) => {
    const finalOptions = defaultsDeep(extraOption, commonOption);
    graph.setOptions(finalOptions);
    await graphRender();
    graph.fitCenter();
    await graph.render();
    // graph.fitCenter();
    selfAdapt();
};
let commonOption: GraphOptions;