INPUT /  OUTPUT /  LANGUAGE





layer field

Scalar field

When multiple presentation tags produce visual content that obscure or overlap each other in the same place, the layer field can be used to prioritise which tags should be rendered in front of (or behind) other tags.

Sample usage

<box inline=false top=20 left=20 width=150 height=80 backgroundColor={red} layer=2 {In front}>
<box inline=false top=50 left=80 width=150 height=80 backgroundColor={blue} layer=1 {Behind}>

Behaviour

Takes a number. When tags positioned with inline=false overlap, a tag with a higher layer value is drawn in front of a tag with a lower value, whichever was created first.

Normally, presentation tags are rendered inline and do not obscure one another, however the layer field becomes useful when presentation tags are created with inline=false and custom positioning is applied.

See also