|
@@ -12,9 +12,8 @@ import { draw } from "./Renderer/Draw.js";
|
|
|
import { edgeService } from "./Service/EdgeService";
|
|
|
import VectorCategory from "./enum/VectorCategory";
|
|
|
import LayerEvents from "./enum/LayerEvents";
|
|
|
-
|
|
|
export default class ListenLayer {
|
|
|
- constructor() {
|
|
|
+ constructor(canvas, newsletter, graphicState) {
|
|
|
this.modifyPoint = null;
|
|
|
}
|
|
|
|
|
@@ -1285,12 +1284,16 @@ export default class ListenLayer {
|
|
|
VectorType.SVG,
|
|
|
this.modifyPoint.index
|
|
|
);
|
|
|
- } else if (this.modifyPoint.magnifierId) {
|
|
|
- stateService.setSelectItem(
|
|
|
- this.modifyPoint.magnifierId,
|
|
|
- VectorType.Magnifier,
|
|
|
- this.modifyPoint.index
|
|
|
- );
|
|
|
+ } else if (this.modifyPoint.magnifierId) {
|
|
|
+ // if(this.modifyPoint.index==0){
|
|
|
+ //点击隐藏的放大镜不显示
|
|
|
+ stateService.setSelectItem(
|
|
|
+ this.modifyPoint.magnifierId,
|
|
|
+ VectorType.Magnifier,
|
|
|
+ this.modifyPoint.index
|
|
|
+ );
|
|
|
+ // }
|
|
|
+
|
|
|
} else if (this.modifyPoint.linkedEdgeId) {
|
|
|
stateService.setSelectItem(
|
|
|
this.modifyPoint.linkedEdgeId,
|