Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Page:
    By typing “Page” followed by a dot, and the name of the property you want to reference.
  • Paragraph within a text frame:
    A text paragraph can be tagged, and can also be referenced in a Dynamic Layout function. This is possible by first typing the name (tag) of the frame, followed by a dot, followed by the name of the paragraph (tag)
    Bram Verniest (Unlicensed) new screenshot needed here
  • Variable:
    By typing the name of the variable, nothing more.

Properties (to reference of)

The following properties can be referenced on frame and page level:

Top

The Y value of the top of the referenced frame (or 0 for page)

Bottom

The Y value of the bottom of the referenced frame or page

Left

The X value of the left of the referenced frame (or 0 for page)

Right

The X value of the right of the referenced frame or page

CenterX

The Y value of the center of the referenced frame or page

CenterY

The X value of the center of the referenced frame or page

Width

The width of the referenced frame or page

Height

The height of the referenced frame or page

Functions within the calculation:

MinMax(min, max, input)

Clamps a given value between a minimum and maximum value

ClampMin(min, input)

If the input value is less than the minimum, return the minimum value otherwise return the input value

ClampMax(max, input)

If the input value is greater than the maximum, return the maximum value otherwise return the input value

Use of units within a function

Units (millimeters, inches, points, pixels) can be used within a function.

If no unit is specified the Dynamic layout engine will assume the value is in points. Multiple units can be used within a single function.

E.g.:

frameA.width=50mm+10in+5pt

Anchoring

Achoring is a feature which existed before Dynamic Layout. It was a basic form of Dynamic Layout. With the introduction of Dynamic Layout we replaced the legacy anchoring module by Dynamic Layout. The anchoring settings interface can still be used. When an anchoring setting is configured, CHILI Publisher will automatically assign a Dynamic Layout function to the properties of the frame.
The link with the Dynamic Layout function and the anchoring setting is maintained. If the Dynamic Layout function is modified, the link with the anchoring setting is removed.

Alternate layouts

Dynamic layout functions can be different per alternate layout. This makes it possible to let frames behave completely different per document size aspect ratio.

For example:

A frame can be configured to always have a width which is 50% of the document width for a landscape aspect ratio. On a skyscraper aspect ratio we can configure the frame to be 100% of the width.

“Landscape” alternate layout

 Image Added

“skyscraper” alternate layout:

qsdf

Snippets

Dynamic Layout functions can be used in snippets. Functions are executed within the scope of the snippet. So references to page or variables refer to the page and variables within the snippet.
If the snippet is converted to frames, the Dynamic Layout functions are removed and the calculated value for the properties are applied.

A snippet frame can be configured to select the best fitting alternate layout and to resize the snippet document. These options work in conjunction with Dynamic Layout functions.

Constraints

Dynamic Layout functions are a form of constraints which are baked into the document. They overrule the end-user constraints.

Frame reference points

The reference point of a frame is configurable on document and frame level (cascading: frame overrules document setting)

 

The frame’s reference point defines how the frame will behave if the width, height, scale, x or y values are modified through the frame location panel, actions or dynamic layout functions. Changing these properties inline by using the frame handles on the document canvas is not affected by this setting.