fix:调整最小缩放比例 以及 新增node 不在显示 text
This commit is contained in:
@@ -147,7 +147,7 @@ export default {
|
|||||||
if (this.isChart) {
|
if (this.isChart) {
|
||||||
getTopology(this.meta2dId).fitView(true, this.paddingTop)
|
getTopology(this.meta2dId).fitView(true, this.paddingTop)
|
||||||
} else {
|
} else {
|
||||||
getTopology(this.meta2dId).centerView()
|
getTopology(this.meta2dId).fitView(true)
|
||||||
}
|
}
|
||||||
getTopology(this.meta2dId).lock(1)
|
getTopology(this.meta2dId).lock(1)
|
||||||
this.getNodesArr()
|
this.getNodesArr()
|
||||||
@@ -165,7 +165,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (name && !pen.text) {
|
if (name && !pen.text) {
|
||||||
pen.text = name
|
// pen.text = name
|
||||||
}
|
}
|
||||||
if (pen.data && pen.data.imageId) {
|
if (pen.data && pen.data.imageId) {
|
||||||
const imageInfo = this.iconArray.find(item => item.id === pen.data.imageId)
|
const imageInfo = this.iconArray.find(item => item.id === pen.data.imageId)
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ export default {
|
|||||||
},
|
},
|
||||||
minScale: {
|
minScale: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 0.25
|
default: 0.001
|
||||||
},
|
},
|
||||||
querysArray: {},
|
querysArray: {},
|
||||||
params: {},
|
params: {},
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ export default {
|
|||||||
onTouchstart (e) {
|
onTouchstart (e) {
|
||||||
const pen = {
|
const pen = {
|
||||||
name: 'rectangle',
|
name: 'rectangle',
|
||||||
text: 'rectangle',
|
text: '',
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100
|
height: 100
|
||||||
}
|
}
|
||||||
@@ -191,7 +191,7 @@ export default {
|
|||||||
const offestY = data.y
|
const offestY = data.y
|
||||||
const pen = {
|
const pen = {
|
||||||
name: 'rectangle',
|
name: 'rectangle',
|
||||||
text: 'rectangle',
|
text: '',
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
x: 100 - offestX,
|
x: 100 - offestX,
|
||||||
|
|||||||
Reference in New Issue
Block a user