|
|
|
@ -405,6 +405,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
|
|
|
|
|
this.camera2D.on('wheel', event => { |
|
|
|
|
this.updateCamera2D(); |
|
|
|
|
this.enterPaintEndButton.scale.set(1/this.camera2D.scale.x); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.camera2D.on('pointerdown', event => { |
|
|
|
@ -766,8 +767,10 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
* 创建确认绘制结束按钮 |
|
|
|
|
*/ |
|
|
|
|
private createEnterPaintEndButton() { |
|
|
|
|
this.enterPaintEndButton.width = 60; |
|
|
|
|
this.enterPaintEndButton.height = 60; |
|
|
|
|
// this.enterPaintEndButton.width = 20;
|
|
|
|
|
// this.enterPaintEndButton.height = 20;
|
|
|
|
|
// this.enterPaintEndButton.scale.set(1/this.camera2D.scale.x);
|
|
|
|
|
|
|
|
|
|
this.enterPaintEndButton.anchor.set(0.5); |
|
|
|
|
this.enterPaintEndButton.position = new PIXI.Point(0, 0); |
|
|
|
|
this.enterPaintEndButton.interactive = true; |
|
|
|
|