Browse Source

新增图片资源

develop
徐振升 4 years ago
parent
commit
d23ff46ad3
  1. 11
      src/app/working-area/working-area.component.ts
  2. BIN
      src/assets/images/handle-fixed.png
  3. BIN
      src/assets/images/handle-main.png
  4. BIN
      src/assets/images/handle-secondary.png
  5. BIN
      src/assets/images/handle-terminal.png

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

@ -415,13 +415,8 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
});
this.on('createIcon', obj => {
if (obj.assetData.GameMode === GameMode.BasicInformation) {
// if (obj.assetData.IsFromBuilding) {
// this.canvasData.originalcompanyBuildingData.data[obj.assetData.Id] = obj.assetData;
// } else {
this.canvasData.originaleveryStoreyData.data[obj.assetData.Id] = obj.assetData;
// }
} else {
// console.log();
if (this.canvasData.selectPanelPoint.Data === undefined
|| this.canvasData.selectPanelPoint.Data === null) {
this.canvasData.selectPanelPoint.Data = new FloorNodeData();
@ -506,10 +501,11 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.setPaintMode(PaintMode.endPaint);
this.resetCanvas();
this.destroyBackgroundImage();
if (this.canvasData.selectStorey.imageUrl === null) {
if (this.canvasData.selectStorey.imageUrl === null
||this.canvasData.selectStorey.imageUrl === undefined) {
return;
}
console.log(this.canvasData.selectStorey.imageUrl);
await this.createBackgroundImage(this.canvasData.selectStorey.imageUrl);
this.createFloorShape();
if (this.canvasData.gameMode === GameMode.Assignment) {
@ -1179,6 +1175,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
case PaintMode.Pipeline:
if (this.canvasData.selectTemplateData.name !== '水带') {
this.emit('createIcon', this.paintingShape);
console.log("1");
this.paintingShape = null;
}
break;

BIN
src/assets/images/handle-fixed.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src/assets/images/handle-main.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

BIN
src/assets/images/handle-secondary.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
src/assets/images/handle-terminal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Loading…
Cancel
Save