|
|
|
@ -527,11 +527,27 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
this.circleShadow.visible = false; |
|
|
|
|
this.backgroundImage.addChild(this.circleShadow); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 开始绘制 |
|
|
|
|
*/ |
|
|
|
|
public beginPaint(data: any) { |
|
|
|
|
switch (data.interactiveMode) { |
|
|
|
|
case 0: |
|
|
|
|
this.beginPaintSinglePointIcon(data.imageUrl); |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
this.beginPaintLineIcon(data.imageUrl); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
this.beginPaintPolygonIcon(); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 开始绘画单点图标 |
|
|
|
|
* @param imageUri 图片路径 |
|
|
|
|
*/ |
|
|
|
|
public beginPaintSinglePointIcon(imageUri: string): void { |
|
|
|
|
private beginPaintSinglePointIcon(imageUri: string): void { |
|
|
|
|
this.cancelPaint(); |
|
|
|
|
this.paintMode = PaintMode.singlePointIcon; |
|
|
|
|
this.changePreviewSinglePointIcon(imageUri); |
|
|
|
@ -539,7 +555,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
/** |
|
|
|
|
* 开始绘画多边形 |
|
|
|
|
*/ |
|
|
|
|
public beginPaintPolygonIcon(): void { |
|
|
|
|
private beginPaintPolygonIcon(): void { |
|
|
|
|
this.cancelPaint(); |
|
|
|
|
this.paintMode = PaintMode.polygonIcon; |
|
|
|
|
this.circleShadow.visible = true; |
|
|
|
@ -548,7 +564,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
|
|
|
|
|
* 开始绘制多点图标 |
|
|
|
|
* @param imageUri 图片路径 |
|
|
|
|
*/ |
|
|
|
|
public beginPaintLineIcon(imageUri: string): void { |
|
|
|
|
private beginPaintLineIcon(imageUri: string): void { |
|
|
|
|
this.cancelPaint(); |
|
|
|
|
this.paintMode = PaintMode.lineIcon; |
|
|
|
|
this.previewSinglePointIcon.texture = PIXI.Texture.from(imageUri); |
|
|
|
|