mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-27 05:43:49 +01:00
Hack source position.
This commit is contained in:
parent
9860ac782c
commit
7f26432e06
@ -157,7 +157,7 @@ class ControlPivotLine {
|
||||
? this._relationship.getSourceTopic()
|
||||
: this._relationship.getTargetTopic();
|
||||
|
||||
const relPos = Shape.calculateRelationShipPointCoordinates(topic, mousePosition);
|
||||
let relPos = Shape.calculateRelationShipPointCoordinates(topic, mousePosition);
|
||||
const ctlPoint = { x: mousePosition.x - relPos.x, y: mousePosition.y - relPos.y };
|
||||
this._moveRelHandler(ctlPoint);
|
||||
|
||||
@ -166,6 +166,10 @@ class ControlPivotLine {
|
||||
|
||||
// Update line ...
|
||||
this._line.setTo(mousePosition.x - 5, mousePosition.y - 5);
|
||||
relPos =
|
||||
this._pivotType === PivotType.Start
|
||||
? this._relationship.getLine().getFrom()
|
||||
: this._relationship.getLine().getTo();
|
||||
this._line.setFrom(relPos.x, relPos.y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user