Browse Source

[修改] 多点连线确认图标不跟随地图缩放,始终为30*30像素

tangshan
徐振升 3 years ago
parent
commit
6dd1a11536
  1. 7
      src/app/working-area/working-area.component.ts
  2. BIN
      src/assets/images/enterPaintButton.png

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

@ -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;

BIN
src/assets/images/enterPaintButton.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 939 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Loading…
Cancel
Save