|
@@ -34,6 +34,7 @@ import MathUtil, { mathUtil } from './MathUtil'
|
|
|
import { wallService } from './Service/WallService'
|
|
|
import {history} from './History/History.js'
|
|
|
import { signService } from './Service/SignService'
|
|
|
+import { iconService } from './Service/IconService'
|
|
|
|
|
|
export default class Layer {
|
|
|
constructor() {
|
|
@@ -647,7 +648,7 @@ export default class Layer {
|
|
|
case LayerEvents.AddingIcon:
|
|
|
if(addIcon.end != null && addIcon.currentVectorId != null){
|
|
|
if(mathUtil.getDistance(addIcon.start,addIcon.end)<Constant.minAdsorb){
|
|
|
- floorplanService.deleteIcon(addIcon.currentVectorId)
|
|
|
+ iconService.deleteIcon(addIcon.currentVectorId)
|
|
|
}
|
|
|
needAutoRedraw = true
|
|
|
}
|