Figure export

last modified

2024–4–1

Screen size

A figure also has a screen size and position according to its Position property, interpreted according to its Units property.

Position
[left bottom width height]
Units
'pixels' (default) | 'normalized' | 'inches' | 'centimeters' | 'points' | 'characters'
(Physical units and 'pixels' are converted into each other according to the read-only system-specific ScreenPixelsPerInch root property.)

The relation between the PaperPosition and Position properties is defined by the PaperPositionMode property.

PaperPositionMode
'auto' (default) | 'manual'

If PaperPositionMode is 'manual', the two properties are independent. If it is 'auto', then setting the Position property leads to setting the PaperPosition elements width and height to equivalent values, while the elements left and bottom are set such that the figure is centered with respect to PaperSize.

This synchronization is unidirectional: Setting the PaperPosition property does not affect the Position property, but PaperPositionMode becomes 'manual'.

Default values

When a figure is created, the values of these six properties are initialized from the corresponding defaults. Defaults are either set explicitly as defaultFigure* properties on the root element, or fall back to the read-only factoryFigure* properties.

The properties defaultFigurePaperPosition and defaultFigurePosition can both exist and do not have to match each other. If defaultFigurePaperPositionMode is 'auto', Position is initialized from defaultFigurePosition and PaperPosition is set to match it, while defaultFigurePaperPosition is ignored.