Browse Source

[优化] 修改背景色为E9FAFF

develop
徐振升 4 years ago
parent
commit
947791fce6
  1. 10
      src/app/working-area/working-area.component.ts

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

@ -192,7 +192,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
antialias: true,
transparent: false,
resolution: 1,
backgroundColor: 0x00ff00// 0xffffff
backgroundColor: 0xE9FAFF
});
this.content.nativeElement.appendChild(this.app.view);
@ -522,7 +522,6 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.paintingIcon = new MultipointIcon(assetData1, this);
// this.paintingIcon = new MultipointIcon(this.previewSinglePointIcon.texture, new PIXI.Point(0, 0), this.paintPoints, this,
// this.canvasData.selectTemplateData.name);
this.emit('backgroundScale', this.backgroundImage.scale.x);
break;
case PaintMode.polygonIcon:
this.previewLineSegment.visible = true;
@ -822,8 +821,6 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
break;
}
this.paintPoints.splice(0, this.paintPoints.length);
this.emit('backgroundScale', this.backgroundImage.scale.x);
}
/**
*
@ -1380,11 +1377,6 @@ export class PolygonIcon extends PIXI.Container {
.on('rightclick', event => {
// this.workingArea.selection.deselectAll();
});
// 缩放
this.workingArea.on('backgroundScale', data => {
const scale = 1 / data;
this.text.scale.set(scale);
});
}
/**
*

Loading…
Cancel
Save