fix: 补充注释的监听事件 以及 diagram组件修改

This commit is contained in:
zhangyu
2022-07-14 11:31:03 +08:00
parent 73b71d578f
commit 5061a0dd37
6 changed files with 50 additions and 94 deletions

View File

@@ -354,6 +354,7 @@ import {
myCubeAnchors
} from './L5/services/canvas.js'
import { getTopology, setTopology, dealImg, topologyImg } from '../js/common'
import CanvasProps from './L5/CanvasProps'
import topologyTopTool from './L5//topologyTopTool'
import CanvasContextMenu from './L5/CanvasContextMenu'
@@ -782,7 +783,7 @@ export default {
return
}
if (!getTopology(this.topologyIndex)) {
let canvas = new Topology('topology-canvas' + this.topologyIndexF)
let canvas = new Topology('topology-canvas' + this.topologyIndexF, canvasOptions)
// canvas.open(data)
setTopology(this.topologyIndex, canvas)
canvas = null