REST API

API Endpoints

Enterprise

Arcentry Development

IDF Automatic Layout Settings

Layout settings are optional query-string parameters for POST /api/v1/create-diagram/<docId>. They apply to JSON and CSV imports and are case-insensitive.

https://arcentry.com/api/v1/create-diagram/ce223f94-2471-437f-8f1b-4f1ded0974ad?LABEL_HEIGHT=1&LABEL_PADDING=0.75&GROUP_MARGIN_X=2

Values must be non-negative numbers written with a decimal point. Invalid values return HTTP 400. MAX_COMPONENTS_PER_TIER must be a positive integer. Unrecognized query parameters are ignored so that parameters such as the API-key parameter can be used alongside layout settings.

SettingDefaultDescription
MAX_COMPONENTS_PER_TIER20Maximum number of automatically positioned components in one horizontal tier before the tier wraps.
TIER_GAP2Vertical space between tiers.
COMP_GAP2Horizontal space between components in the same group and tier.
GROUP_MARGIN_X1.5Horizontal space between sibling groups and frames.
GROUP_MARGIN_Y1.5Vertical space between sibling groups and frames.
GROUP_MARGINnot setConvenience alias that sets both axis-specific group margins. An explicitly supplied GROUP_MARGIN_X or GROUP_MARGIN_Y takes precedence for that axis.
GROUP_PADDING0.75Space between a group border and its contents. This also applies when groups are adjusted around frames.
LABEL_HEIGHT0.75Height reserved for block-style group labels.
LABEL_PADDING0.25Horizontal padding around group labels.
LABEL_FOLD_WIDTH0.5Width of the folded corners on block-style group labels.
COMPONENT_LABEL_GAP0.25Vertical gap between a component and its generated label.

Visual examples

MAX_COMPONENTS_PER_TIER

Maximum components per tier

TIER_GAP

Tier gap

COMP_GAP

Component gap

GROUP_MARGIN_X and GROUP_MARGIN_Y

Group margin

GROUP_PADDING

Group padding

LABEL_HEIGHT

Label height

LABEL_PADDING

Label padding
Your Arcentry account

Welcome back

or continue with