Skip to content

Conversation

@JanErikVoigt
Copy link
Contributor

No description provided.

@JanErikVoigt
Copy link
Contributor Author

JanErikVoigt commented Dec 1, 2025

Signals are now shown as Ausleger. It still looks wrong, but I think thats for a different ticket.

7707 and 7705
grafik

A95E3164-CDA3-47A5-963E-77A8B6BE1AAF:
grafik

@JanErikVoigt JanErikVoigt marked this pull request as ready for review December 1, 2025 15:22
<circle r="10" cx="35" cy="20"/>
<circle r="10" cx="5" cy="40"/>
<toolbox:anchor id="mastAnkerTop" x="20" y="40" />
<toolbox:anchor id="mastAnkerBottom" x="20" y="20"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually the ``Vr1` haven't no anchor punkt, because the signal mast should be through between two circle

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they do, sometimes.

Copy link
Contributor

@TruongQuangSB TruongQuangSB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls resolve conflict with merge

* @param label {@link Label}
*/
public abstract drawSVG<T extends object>(data: T, label?: Label): ISvgElement
public abstract drawSVG<T extends object>(data: T, label?: Label): ISvgElement | null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of null should it give SvgError back, when something wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made SvgDrawBridge an AbstractDrawSVG. Now, there are two for Signals... (SvgDrawSignal and SvgDrawBridge). Don't you think it is sensible to model it like this? Now flow is:

  • SvgDrawBridge attempts to draw, if it is not a bridge, returns null
  • SvgService continues searching for a result != null
  • Then SvgDrawSignal returns a value != null.
  • if it, too, returns null, draw error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants