asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.88k stars 295 forks source link

PlantUML picture in Preview is incomplete/wrong if svg is selected #498

Closed DaLynxx closed 3 years ago

DaLynxx commented 3 years ago

AsciidocFX version: 1.7.3 Platform: Windows 10

The following

[plantuml, diagram-classes, png]
....
class BlockProcessor
class DiagramBlock
class DitaaBlock
class PlantUmlBlock

BlockProcessor <|-- DiagramBlock
DiagramBlock <|-- DitaaBlock
DiagramBlock <|-- PlantUmlBlock
....

Generates a correct picture. However if I change it to [plantuml, diagram-classes, svg] the picture is incomplete in the preview. , i.e. it is there but there are lines/boxes missing,

The svg picture is correctly generated when you look at the created file in the folder. The PDF generation in AsciidocFX uses the svg file with no problem since you can zoom in without the picture becoming "pixelized".

rahmanusta commented 3 years ago

JavaFX's SVG support is limited, SVG output will be correct in browser or PDF output.