|
@@ -113,6 +113,7 @@ export class RelationItem extends BaseRelationItem {
|
|
*/
|
|
*/
|
|
onMouseMove(event: SMouseEvent): boolean {
|
|
onMouseMove(event: SMouseEvent): boolean {
|
|
if (this.pointList.length) {
|
|
if (this.pointList.length) {
|
|
|
|
+ console.log("dowm");
|
|
this.lastPointList = [
|
|
this.lastPointList = [
|
|
this.pointList[this.pointList.length - 1],
|
|
this.pointList[this.pointList.length - 1],
|
|
this.getPoint(
|
|
this.getPoint(
|
|
@@ -157,13 +158,26 @@ export class RelationItem extends BaseRelationItem {
|
|
this.Anchor1.X,
|
|
this.Anchor1.X,
|
|
this.Anchor1.Y
|
|
this.Anchor1.Y
|
|
);
|
|
);
|
|
- console.log(this.pointList[0]);
|
|
|
|
|
|
+ if (this.pointList[1] && this.pointList[2]) {
|
|
|
|
+ this.pointList[1] = this.getPoint(
|
|
|
|
+ this.pointList[0],
|
|
|
|
+ this.pointList[2]
|
|
|
|
+ );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.Anchor2) {
|
|
if (this.Anchor2) {
|
|
this.pointList[
|
|
this.pointList[
|
|
this.pointList.length - 1
|
|
this.pointList.length - 1
|
|
] = this.Anchor2.mapToScene(this.Anchor2.X, this.Anchor2.Y);
|
|
] = this.Anchor2.mapToScene(this.Anchor2.X, this.Anchor2.Y);
|
|
- console.log(this.pointList);
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.pointList[this.pointList.length - 1] &&
|
|
|
|
+ this.pointList[this.pointList.length - 3]
|
|
|
|
+ ) {
|
|
|
|
+ this.pointList[this.pointList.length - 2] = this.getPoint(
|
|
|
|
+ this.pointList[this.pointList.length - 1],
|
|
|
|
+ this.pointList[this.pointList.length - 3]
|
|
|
|
+ );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.update();
|
|
this.update();
|