Commit a4a52620 authored by spc's avatar spc

modified: output.js.map

parent 8e47d3f0
...@@ -1925,7 +1925,7 @@ var Main = (function () { ...@@ -1925,7 +1925,7 @@ var Main = (function () {
return [4, this.loadImageTexturesCsd02(resCanvasList)]; return [4, this.loadImageTexturesCsd02(resCanvasList)];
case 2: case 2:
_a.sent(); _a.sent();
ctrls_1.changeScene(MainScene_2.OpenAni); ctrls_1.changeScene(XxlScene_1.XxlScene);
return [2]; return [2];
} }
}); });
...@@ -15830,13 +15830,15 @@ var XxlScene = (function (_super) { ...@@ -15830,13 +15830,15 @@ var XxlScene = (function (_super) {
this.g.moveTo(co.point.x, co.point.y); this.g.moveTo(co.point.x, co.point.y);
this.firstSelectItem = co; this.firstSelectItem = co;
this.selectItems.push(co); this.selectItems.push(co);
this.addEventListener(FYGE.MouseEvent.MOUSE_MOVE, this.mouseMove, this);
} }
this.addEventListener(FYGE.MouseEvent.MOUSE_MOVE, this.mouseMove, this);
}; };
XxlScene.prototype.mouseMove = function (e) { XxlScene.prototype.mouseMove = function (e) {
var p = { x: e.localX - this.container.x, y: e.localY - this.container.y }; var p = { x: e.localX - this.container.x, y: e.localY - this.container.y };
var co = this.firstSelectItem; var co = this.firstSelectItem;
co = this.findCircleItemByPos(this.selectItems[this.selectItems.length - 1].point, p); if (this.selectItems.length > 0) {
co = this.findCircleItemByPos(this.selectItems[this.selectItems.length - 1].point, p);
}
if (this.firstSelectItem) { if (this.firstSelectItem) {
if (co && co.type == this.firstSelectItem.type) { if (co && co.type == this.firstSelectItem.type) {
this.selectItems.push(co); this.selectItems.push(co);
...@@ -15847,6 +15849,7 @@ var XxlScene = (function (_super) { ...@@ -15847,6 +15849,7 @@ var XxlScene = (function (_super) {
} }
} }
else { else {
co = this.findFirstCircleItemByPos(p);
if (co) { if (co) {
this.g.clear(); this.g.clear();
this.g.beginStroke(0xffffff, 20); this.g.beginStroke(0xffffff, 20);
......
This diff is collapsed.
...@@ -1927,7 +1927,7 @@ var Main = (function () { ...@@ -1927,7 +1927,7 @@ var Main = (function () {
return [4, this.loadImageTexturesCsd02(resCanvasList)]; return [4, this.loadImageTexturesCsd02(resCanvasList)];
case 2: case 2:
_a.sent(); _a.sent();
ctrls_1.changeScene(MainScene_2.OpenAni); ctrls_1.changeScene(XxlScene_1.XxlScene);
return [2]; return [2];
} }
}); });
...@@ -15832,13 +15832,15 @@ var XxlScene = (function (_super) { ...@@ -15832,13 +15832,15 @@ var XxlScene = (function (_super) {
this.g.moveTo(co.point.x, co.point.y); this.g.moveTo(co.point.x, co.point.y);
this.firstSelectItem = co; this.firstSelectItem = co;
this.selectItems.push(co); this.selectItems.push(co);
this.addEventListener(FYGE.MouseEvent.MOUSE_MOVE, this.mouseMove, this);
} }
this.addEventListener(FYGE.MouseEvent.MOUSE_MOVE, this.mouseMove, this);
}; };
XxlScene.prototype.mouseMove = function (e) { XxlScene.prototype.mouseMove = function (e) {
var p = { x: e.localX - this.container.x, y: e.localY - this.container.y }; var p = { x: e.localX - this.container.x, y: e.localY - this.container.y };
var co = this.firstSelectItem; var co = this.firstSelectItem;
co = this.findCircleItemByPos(this.selectItems[this.selectItems.length - 1].point, p); if (this.selectItems.length > 0) {
co = this.findCircleItemByPos(this.selectItems[this.selectItems.length - 1].point, p);
}
if (this.firstSelectItem) { if (this.firstSelectItem) {
if (co && co.type == this.firstSelectItem.type) { if (co && co.type == this.firstSelectItem.type) {
this.selectItems.push(co); this.selectItems.push(co);
...@@ -15849,6 +15851,7 @@ var XxlScene = (function (_super) { ...@@ -15849,6 +15851,7 @@ var XxlScene = (function (_super) {
} }
} }
else { else {
co = this.findFirstCircleItemByPos(p);
if (co) { if (co) {
this.g.clear(); this.g.clear();
this.g.beginStroke(0xffffff, 20); this.g.beginStroke(0xffffff, 20);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment