Canvas Nasal API: Difference between revisions

Jump to navigation Jump to search
m
→‎Element: Added Z-Index
m (→‎setAlignment: Added note about problems when not using monospaced font)
m (→‎Element: Added Z-Index)
Line 47: Line 47:
== Element ==  
== Element ==  
Note that in each element there are 2 transformation matrices. The first will be applied first, then the second.
Note that in each element there are 2 transformation matrices. The first will be applied first, then the second.
=== set ===
'''Parameters:''' (key, value)
''Key = "z-index":''
Value indicates the explicit Z sort order. If this is not set, elements that are added later gets drawn on top.
FG 2.10.0.3: Elements added after z-index has been set will overrule it. (fix is in GIT)


=== update ===
=== update ===
Line 141: Line 150:


Gets the center of the element.
Gets the center of the element.
== Group ==
== Group ==
Inherits from Element.
Inherits from Element.
574

edits

Navigation menu