]> gerrit.simantics Code Review - simantics/platform.git/commit
Listen to changes in page settings in DiagramSceneGraphProvider 80/4380/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 14 Aug 2020 08:37:58 +0000 (11:37 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 14 Aug 2020 08:37:58 +0000 (11:37 +0300)
commit2ccc058ac6c303b64a70ad0f0c48ca501bf4aa6a
tree13c9e02e1abd17a38c8e9cd75e34be0a73a2cabc
parentb4374193caf61635d382af556ec913bf278d53a8
Listen to changes in page settings in DiagramSceneGraphProvider

This is needed for use cases where diagrams are transformed to SVG and
viewed through browsers.

These changes also fix PDF printing to force page border rendering off
when not fitting PDF pages to diagram content, but to diagram page size.
This avoids printing ugly black half-visible borders around diagrams
where page borders are enabled.

gitlab #563

Change-Id: I7f666dec34c650489264f3d23cbd72d5102b2f14
bundles/org.simantics.diagram/src/org/simantics/diagram/export/ExportDiagramPdf.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFPainter.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/sg/DiagramSceneGraphProvider.java