Skip to content

Commit

Permalink
Start develop connectors for hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolcooo committed Feb 6, 2024
1 parent f7b5217 commit f618c15
Show file tree
Hide file tree
Showing 2 changed files with 289 additions and 102 deletions.
43 changes: 41 additions & 2 deletions common/Drawings/Format/Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3811,6 +3811,18 @@ Because of this, the display is sometimes not correct.
return this.val;
}
}
case Param_type_bendPt: {
switch (this.val) {
case 'end':
return ParameterVal_bendPoint_end;
case 'beg':
return ParameterVal_bendPoint_beg;
case 'def':
return ParameterVal_bendPoint_def;
default:
return this.val;
}
}
case Param_type_pyraAcctPos: {
switch (this.val) {
case 'bef':
Expand Down Expand Up @@ -3994,9 +4006,36 @@ Because of this, the display is sometimes not correct.
case "auto":
arrResult.push(ParameterVal_connectorPoint_auto);
break;
case "bCtr":
arrResult.push(ParameterVal_connectorPoint_bCtr);
break;
case "bL":
arrResult.push(ParameterVal_connectorPoint_bL);
break;
case "bR":
arrResult.push(ParameterVal_connectorPoint_bR);
break;
case "ctr":
arrResult.push(ParameterVal_connectorPoint_ctr);
break;
case "midL":
arrResult.push(ParameterVal_connectorPoint_midL);
break;
case "midR":
arrResult.push(ParameterVal_connectorPoint_midR);
break;
case "radial":
arrResult.push(ParameterVal_connectorPoint_radial);
break;
case "tCtr":
arrResult.push(ParameterVal_connectorPoint_tCtr);
break;
case "tL":
arrResult.push(ParameterVal_connectorPoint_tL);
break;
case "tR":
arrResult.push(ParameterVal_connectorPoint_tR);
break;
default:
break;
}
Expand Down Expand Up @@ -4354,9 +4393,9 @@ Because of this, the display is sometimes not correct.
if (AscFormat.isRealNumber(this.st[index])) {
const start = this.st[index];
if (start < 0) {
return Math.max(nodesLength - start, 0);
return Math.max(nodesLength + start, 0);
}
return this.st[index] - 1;
return start - 1;
}
return 0;
};
Expand Down
Loading

0 comments on commit f618c15

Please sign in to comment.