Skip to content

Commit 7f7abe1

Browse files
authored
Add syntax of "use" attribute in SIF file format
1 parent 57c16f7 commit 7f7abe1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/common/sif_file_format.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ Canvas may have an internal library/collection of canvases and value nodes, each
167167

168168
The Canvas Library components are defined here, and can be referred in layer or value node parameters by their ID by using the node attribute 'use_'.
169169

170+
The syntax for 'use_' is:
171+
172+
* ``[[file-path]#]canvas-id[:child-canvas-id][:child-canvas-id][:child-canvas-id]…`` (for a Canvas)
173+
* ``[[file-path]#][canvas-id[:child-canvas-id][:child-canvas-id][:child-canvas-id]…][:]value-node-id`` (for a value node)
174+
175+
Components surrounded by square brackets mean it is optional. If ``file-path`` is ommited, it means the current file (the file of the current root canvas). For value node, if ``canvas-id`` is ommited, it means the current root canvas.
176+
170177
'defs' only applies to non-inline canvas (i.e. any group layer cannot have this kind of child node).
171178

172179
The <defs> element

0 commit comments

Comments
 (0)