Squashed commit of the following:
All checks were successful
CI / Docker-Build (push) Successful in 2m56s

commit e964b8bf27
Author: joylink_zhaoerwei <Bob_Engineer@163.com>
Date:   Thu Mar 28 09:58:05 2024 +0800

    道岔编辑修改

commit dcd7f3322c
Author: joylink_fanyuhong <18706759286@163.com>
Date:   Thu Mar 28 09:22:06 2024 +0800

    防淹门调整

commit 7d2a1be457
Author: joylink_fanyuhong <18706759286@163.com>
Date:   Thu Mar 28 09:18:23 2024 +0800

    车库门调整暂提

commit 3fb3eb8135
Merge: d9b5841 5210c9d
Author: joylink_fanyuhong <18706759286@163.com>
Date:   Wed Mar 27 17:20:34 2024 +0800

    Merge branch 'develop' of http://120.46.212.6:3000/joylink/rts-sim-testing-client into develop

commit d9b5841cfb
Author: joylink_fanyuhong <18706759286@163.com>
Date:   Wed Mar 27 17:20:17 2024 +0800

    车库门状态显示调整

commit 5210c9d9cd
Author: joylink_zhaoerwei <Bob_Engineer@163.com>
Date:   Wed Mar 27 17:04:26 2024 +0800

    屏蔽门右键bug
This commit is contained in:
joylink_zhaoerwei 2024-03-28 10:04:31 +08:00
parent e9479ac1ff
commit 1afcff6071

View File

@ -199,7 +199,9 @@ class DragMoveAbsorbablePoint extends AbsorbablePoint {
pointC: [C],
} = dragTarget.datas;
this.moveTarget = {
position: dragTarget.getGlobalPosition(),
position: dragTarget
.getGraphicApp()
.toCanvasCoordinates(dragTarget.getGlobalPosition()),
portPos: [
dragTarget.localToCanvasPoint(A),
dragTarget.localToCanvasPoint(B),
@ -234,7 +236,9 @@ class DragMoveAbsorbablePoint extends AbsorbablePoint {
} else {
if (this.moveTarget == undefined) {
this.moveTarget = {
position: dragTarget.getGlobalPosition(),
position: dragTarget
.getGraphicApp()
.toCanvasCoordinates(dragTarget.getGlobalPosition()),
portPos: [
dragTarget.localToCanvasPoint(dragTarget.getStartPoint()),
dragTarget.localToCanvasPoint(dragTarget.getEndPoint()),
@ -443,6 +447,9 @@ export class TurnoutPointsInteractionPlugin extends GraphicInteractionPlugin<Tur
tep = new TurnoutEditPlugin(turnout, { onEditPointCreate });
turnout.addAssistantAppend(tep);
}
tep.editPoints = [[], [], []];
tep.removeChildren();
tep.initEditPoints();
//tep.reset();
tep.showAll();
}