微调
This commit is contained in:
parent
856fe39e3b
commit
f13de18397
@ -170,10 +170,7 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
|
|||||||
|
|
||||||
sections.forEach((section) => {
|
sections.forEach((section) => {
|
||||||
const sectionRelations =
|
const sectionRelations =
|
||||||
section.relationManage.getRelationsOfGraphicAndOtherType(
|
section.relationManage.getRelationsOfGraphic(section);
|
||||||
section,
|
|
||||||
Section.Type
|
|
||||||
);
|
|
||||||
const ps = section.localToCanvasPoint(section.getStartPoint());
|
const ps = section.localToCanvasPoint(section.getStartPoint());
|
||||||
const pe = section.localToCanvasPoint(section.getEndPoint());
|
const pe = section.localToCanvasPoint(section.getEndPoint());
|
||||||
sectionRelations.forEach((relation) => {
|
sectionRelations.forEach((relation) => {
|
||||||
@ -209,7 +206,7 @@ export class AxleCountingDraw extends GraphicDrawAssistant<
|
|||||||
);
|
);
|
||||||
const ps = section.localToCanvasPoint(section.getStartPoint());
|
const ps = section.localToCanvasPoint(section.getStartPoint());
|
||||||
const pe = section.localToCanvasPoint(section.getEndPoint());
|
const pe = section.localToCanvasPoint(section.getEndPoint());
|
||||||
if (axleCountingRelations.length < 2) {
|
if (axleCountingRelations.length == 1) {
|
||||||
axleCountingRelations.forEach((relation) => {
|
axleCountingRelations.forEach((relation) => {
|
||||||
const port = relation.getRelationParam(section).param;
|
const port = relation.getRelationParam(section).param;
|
||||||
let addPort = SectionPort.A;
|
let addPort = SectionPort.A;
|
||||||
|
Loading…
Reference in New Issue
Block a user