|
|
|
@ -779,7 +779,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
this.enterPaint(); |
|
|
|
|
}); |
|
|
|
|
this.backgroundImage.addChild(this.enterPaintEndButton); |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length; |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length + 200; |
|
|
|
|
this.enterPaintEndButton.visible = false; |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
@ -865,7 +865,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
if (this.paintPoints.length >= 2) { |
|
|
|
|
this.enterPaintEndButton.position = this.circleShadow.position; |
|
|
|
|
this.enterPaintEndButton.visible = true; |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length; |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length + 200; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (this.paintingIcon !== null) { |
|
|
|
@ -932,7 +932,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
this.enterPaintEndButton.position = this.circleShadow.position; |
|
|
|
|
} else if (this.paintPoints.length >= 3) { |
|
|
|
|
this.enterPaintEndButton.visible = true; |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length; |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length + 200; |
|
|
|
|
} |
|
|
|
|
this.paintPoints.forEach((value, index, array) => { |
|
|
|
|
if (index === 0) { |
|
|
|
@ -961,7 +961,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
this.previewLineSegment.visible = true; |
|
|
|
|
this.enterPaintEndButton.position = this.circleShadow.position; |
|
|
|
|
this.enterPaintEndButton.visible = true; |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length; |
|
|
|
|
this.enterPaintEndButton.zIndex = this.backgroundImage.children.length + 200; |
|
|
|
|
// this.currentClickPoint.position = new PIXI.Point(this.circleShadow.x, this.circleShadow.y);
|
|
|
|
|
// this.paintPoints.push(new PIXI.Point(this.circleShadow.x, this.circleShadow.y));
|
|
|
|
|
var point = new PIXI.Point(this.circleShadow.x, this.circleShadow.y); |
|
|
|
|