Open pwab opened 4 years ago
Thanks for reporting the issue. I will have a look at your files.
This is an unusual situation that happens on layers that contain only one horizontal or vertical line. They become visible when you rotate them in Sozi.
In their original position, these layers appear to have their width or height equal to zero, which could be the cause of the issue. I think that the behavior is different in the generated HTML because the "clip" feature is implemented differently:
In the editor, removing the "mask" attribute on the concerned layers make them visible again.
However, there is no obvious reason why masking would behave this way. I would say that the issue is not in Sozi itself, but in the rendering engine of Electron. I think we could try to reproduce the issue in Chrome as well with the appropriate SVG. I will check whether a more recent version of Electron fixes it.
As a workaround, you can add elements to each layer to make sure they have non-zero width and height.
Wow thanks for the long explanation and for providing a workaround.
Will check this tomorrow.
Summary of your problem
The preview window in Sozi differes from the content of a created SVG. A few lines or layers aren't visible. In the HTML export all lines/layers are visible (like in the SVG).
Version of Sozi and other relevant software
Steps to reproduce the problem
Expected behavior
All lines/layers are shown in the preview window like in the SVG file.
SVG
Observed behavior
Some lines/layers aren't shown in the preview window.
Sozi preview
HTML in Browser
Hints and solutions
Test project (opened with Sozi 20.03): layer_after_layer_sample.zip