|
@@ -11,9 +11,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
};
|
|
|
})();
|
|
|
-import { SGraphView } from "@saga-web/graph/lib";
|
|
|
-import { SMouseButton, SMouseEvent, SNetUtil } from "@saga-web/base/lib";
|
|
|
-import { SPoint } from "@saga-web/draw/lib";
|
|
|
+import { SGraphView } from '@saga-web/graph/lib';
|
|
|
+import { SMouseButton, SMouseEvent, SNetUtil } from '@saga-web/base/lib';
|
|
|
+import { SPoint } from '@saga-web/draw/lib';
|
|
|
/**
|
|
|
* 楼层场景
|
|
|
*
|
|
@@ -103,10 +103,10 @@ var FloorView = /** @class */ (function (_super) {
|
|
|
// 按左键移动
|
|
|
var se = new SMouseEvent(event);
|
|
|
if (se.buttons & SMouseButton.LeftButton) {
|
|
|
- if (this.spaceKey) {
|
|
|
- this.origin.x += se.x - this._leftKeyPos.x;
|
|
|
- this.origin.y += se.y - this._leftKeyPos.y;
|
|
|
- }
|
|
|
+ // if (this.spaceKey) {
|
|
|
+ this.origin.x += se.x - this._leftKeyPos.x;
|
|
|
+ this.origin.y += se.y - this._leftKeyPos.y;
|
|
|
+ // }
|
|
|
this._leftKeyPos.x = se.x;
|
|
|
this._leftKeyPos.y = se.y;
|
|
|
this.update();
|