[
https://issues.apache.org/jira/browse/BATIK-1258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17777185#comment-17777185
]
Julien Lacour edited comment on BATIK-1258 at 10/20/23 9:25 AM:
----------------------------------------------------------------
To get rid of the error it's suficient to process "auto-start-reverse" as a
{{Double.NaN}} (like "auto") in {{SVGMarkerElementBridge}}.
To add the auto-start-reverse support, it is possible to add a flag in
{{Marker}} which, when set, indicates that current coordinates and next
coordinates must be inverted in {{MarkerShapePainter.buildStartMarkerProxy()}}.
Both start and end marker arrowheads will be displayed correctly.
I attached a working patch.
was (Author: JIRAUSER300900):
To get rid of the error it's suficient to treat "auto-start-reverse" as a
{{Double.NaN}} (like "auto") in {{SVGMarkerElementBridge}}.
It is also possible to add a flag in {{Marker}} which, when set, indicates that
current coordinates and next coordinates must be inverted in
{{MarkerShapePainter.buildStartMarkerProxy()}}.
Both start and end marker arrowheads will be displayed correctly.
> Missing support for <marker>'s orient attribute
> -----------------------------------------------
>
> Key: BATIK-1258
> URL: https://issues.apache.org/jira/browse/BATIK-1258
> Project: Batik
> Issue Type: Bug
> Components: Bridge
> Affects Versions: 1.11
> Reporter: Kirill Grouchnikov
> Priority: Major
> Attachments: BATIK-1258.patch
>
>
> Trying to load SVG from
> [https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker] results in
> this:
> Stack trace:
> org.apache.batik.bridge.BridgeException: For input string:
> "auto-start-reverse"
> at
> org.apache.batik.bridge.SVGMarkerElementBridge.createMarker(SVGMarkerElementBridge.java:134)
> at org.apache.batik.bridge.PaintServer.convertMarker(PaintServer.java:137)
> at org.apache.batik.bridge.PaintServer.convertMarkers(PaintServer.java:94)
> at
> org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createMarkerPainter(SVGDecoratedShapeElementBridge.java:67)
> at
> org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createShapePainter(SVGDecoratedShapeElementBridge.java:86)
> at
> org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(SVGShapeElementBridge.java:91)
> at
> org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:224)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
> More documentation at https://www.w3.org/TR/svg-markers/
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]