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