Skip to content

Commit cea1a8a

Browse files
committed
Updated documentation for SVG fitView interaction with other options
1 parent b2e858a commit cea1a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/importexport.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ options are as follows.
216216
* *hiddenColor* - Color of the line that hidden edges are drawn with.
217217
* *showHidden* - Whether or not to show hidden lines.
218218
* *focus* - If specified, creates a perspective SVG with the projector at the distance specified.
219-
* *fitView* - If specified, will attempt to fit the height and width of the image to the contents. The ``marginLeft`` and ``marginTop`` options should be set to 0 or the object will fall outside the viewport. The ``width`` or ``height`` options that were specified will be overridden, but the largest dimension should be preserved.
219+
* *fitView* - If specified, will attempt to fit the height and width of the image to the contents. The ``marginLeft`` and ``marginTop`` options will be respected and will add to the total image size so that the margin can be duplicated at the bottom right. The ``width`` or ``height`` options that were specified will be overridden, but the largest dimension should be preserved except when margins are used.
220220

221221
The options are passed to the exporter in a dictionary, and can be left out to force the SVG to be created with default options.
222222
Below are examples with and without options set.

0 commit comments

Comments
 (0)