Merge remote-tracking branch 'origin/dev-3.1' into dev-3.1.1_theme

This commit is contained in:
chenjinsong
2021-11-16 09:43:06 +08:00
4 changed files with 17 additions and 13 deletions

View File

@@ -781,7 +781,13 @@ export default {
openTopologyData (data) {
return new Promise(resolve => {
if (!getTopology(this.topologyIndex)) {
const canvas = new Topology('topology-canvas' + this.topologyIndexF, canvasOptions)
const options = {
...canvasOptions
}
if (this.isPanel) {
options.disableScale = true
}
const canvas = new Topology('topology-canvas' + this.topologyIndexF, options)
setTopology(this.topologyIndex, canvas)
} else {
getTopology(this.topologyIndex).open(data)