Canvas Nasal API: Difference between revisions

m
→‎set: Clarification
m (→‎set: Clarification)
Line 67: Line 67:
''Key = "z-index":''
''Key = "z-index":''


Default= 0
Default value = 0


Value indicates the explicit Z sort order, highest on top. If this is not set, elements that are added later gets drawn on top.
Integer value indicates the explicit Z sort order, highest on top. If this is not set, elements that are added later gets drawn on top.
Notice that if you have for example two paths inside their own groups, and you want to order those paths in relation to each other, its on their groups you should call this method, not on the paths themselves.


FG 2.10.0.3: Elements added after z-index has been set will overrule it. (fix is in GIT)
FG 2.10.0.3: Elements added after z-index has been set will overrule it. (fix is in GIT)
574

edits