@@ -260,9 +260,9 @@ export class SBaseTextEdit extends SGraphEdit {
* @param x x 坐标
* @param y y 坐标
*/
- moveToOrigin(x: number, y: number): void {
- this.moveTo(this.x + x, this.y + y);
- } // Function moveToOrigin()
+ // moveToOrigin(x: number, y: number): void {
+ // this.moveTo(this.x + x, this.y + y);
+ // } // Function moveToOrigin()
/**
* 绘制显示状态文本 Item
@@ -226,6 +226,7 @@ export default {
item.connect("onContextMenu", this, this.scene.getItem);
this.scene.addItem(item);
});
+ this.view.fitSceneToView()
},
watch: {