Browse Source

1.0.18

zhuzhou
徐振升 4 years ago
parent
commit
97f9382f56
  1. 13
      src/app/working-area/working-area.component.ts

13
src/app/working-area/working-area.component.ts

@ -158,7 +158,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
* RC版: 该版本已经相当成熟了BUG * RC版: 该版本已经相当成熟了BUG
* Release版: 该版本意味使Release不会以单词形式出现在软件封面上® * Release版: 该版本意味使Release不会以单词形式出现在软件封面上®
*/ */
public VERSION = '1.0.17.20210204_beta'; public VERSION = '1.0.18.20210205_beta';
/** /**
* *
*/ */
@ -389,7 +389,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
// 判断2个矩形是否相交 // 判断2个矩形是否相交
const rect1 = this.rectToolGraphics.getBounds(); const rect1 = this.rectToolGraphics.getBounds();
const rect2 = item.getBounds(); const rect2 = item.getBounds();
if (this.isOverlap(rect1, rect2)) { if (this.isOverlap(rect1, rect2) && item.interactive) {
shapes.push(item); shapes.push(item);
} }
} }
@ -408,7 +408,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
// 判断2个矩形是否相交 // 判断2个矩形是否相交
const rect1 = this.rectToolGraphics.getBounds(); const rect1 = this.rectToolGraphics.getBounds();
const rect2 = item.getBounds(); const rect2 = item.getBounds();
if (this.isOverlap(rect1, rect2)) { if (this.isOverlap(rect1, rect2) && item.interactive) {
shapes.push(item); shapes.push(item);
} }
} }
@ -458,7 +458,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
/** /**
* *
*/ */
private resetCamera2D() { public resetCamera2D() {
this.camera2D.scale.set(1); this.camera2D.scale.set(1);
this.camera2D.x = (this.app.view.width - this.backgroundImage.width) / 2; this.camera2D.x = (this.app.view.width - this.backgroundImage.width) / 2;
this.camera2D.y = (this.app.view.height - this.backgroundImage.height) / 2; this.camera2D.y = (this.app.view.height - this.backgroundImage.height) / 2;
@ -1021,7 +1021,9 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
// 创建处置预案图形 // 创建处置预案图形
this.createNodeShape(this.canvasData.selectPanelPoint.Data); this.createNodeShape(this.canvasData.selectPanelPoint.Data);
this.createAxLegend(); this.createAxLegend();
if (this.canvasData.gameMode == GameMode.Assignment) {
this.setLegendVisible(false);
}
this.updateCamera2D(); this.updateCamera2D();
} }
/** /**
@ -1602,6 +1604,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
*/ */
public setLegendVisible(b: boolean): void { public setLegendVisible(b: boolean): void {
const legend = this.backgroundImage.getChildByName('图例') as AxLegend; const legend = this.backgroundImage.getChildByName('图例') as AxLegend;
legend.interactive = b;
legend.visible = b; legend.visible = b;
} }
} }

Loading…
Cancel
Save