padding - modelint/flatland-model-diagram-editor GitHub Wiki

The canvas represents the entire drawing surface, while the diagram is the rectangular portion where the model is drawn.

The padding keyword specifies the empty area between the canvas edges and the diagram (effectively establishing the diagram origin and size).

Syntax

padding l<left>? b<bottom>? t<top>? r<right>?

Where each value is a distance in millimeters away from a sheet margin. Each value is prefaced by l, b, t or r to indicate the side. You can specify the values in any order, and only one value per side. For any side not padded, zero will be assumed and the diagram edge will coincide with the canvas margin in that particular direction.

Function

This is an optional keyword that lets you move the origin of the diagram away from the lower left corner of the canvas and resize the full extent of the diagram vertically and horizontally. By default, the diagram begins just inside a small margin between the left and bottom edge of the canvas and extends out to the outer margins of the canvas.

If you are using a frame, you definitely want to adjust the diagram origin so that it does not overlap the frame content.

Example

padding l130 b230 // diagram extends to right and top margins

Here the diagram origin is moved rightward 130 mm from the left canvas edge and 230 mm from the bottom canvas edge. Note that this distance is not from the built in canvas margin, but from the canvas edge. The canvas margin always overrides the padding, so if your padding value is less than the corresponding margin, it will have no effect.

User extension

The user will eventually be able to set the canvas margin as well, but this is not yet supported.

⚠️ **GitHub.com Fallback** ⚠️