This node represents an HTML Canvas. It can be placed in the visual tree and then accessed via the Javascript node.
Using the margin gadget you can specify the top, bottom, left and right margins for this node. You can specify them in either pixels or percentage (of the corrensponding parent dimension).
Margin Left
The left margin in pixels or % of parent.
Margin Right
The right margin in pixels or % of parent.
Margin Top
The top margin in pixels or % of parent.
Margin Bottom
The bottom margin in pixels or % of parent.
Use the alignment gadget to specify how this node is aligned to its parent. Important to note is that the horizontal alignment options won't have any effect if the parent's layout is set to Horizontal, and similarly the vertical alignments have no effect if the parent's layout is set to Vertical.
From left to right, the alignment options are:
- Align Bottom - Align this node to the bottom of its parent. Doesn't have any effect if parent's layout is set to Vertical.
- Align Vertical Center - Align this node to the vertical center of its parent. Doesn't have any effect if parent's layout is set to Vertical.
- Align Top -Align this node to the top of its parent. Doesn't have any effect if parent's layout is set to Vertical.
- Align Left - Align this node to the left side of its parent. Doesn't have any effect if parent's layout is set to Horizontal.
- Align Horizontal Center Align this node to the horizontal center of its parent. Doesn't have any effect if parent's layout is set to Horizontal.
- Align Right - Align this node to the right of its parent. Doesn't have any effect if parent's layout is set to Horizontal.
Size Mode
Controls how the width and height of this node is specified.
- Explicit width and height - Set the width and height directly in pixels or percent. Percentage is in relation to the parent, so 100% is the same size as the parent
- Explicit height, Image Width - The image node will have the same width as the image. The height is explicitly set
- Explicit width, Image Height - The image node will have the same height as the image. The width is explicitly set
- Image Size - Both the width and the height will be set to the dimensions of the image
Width
Specify the width of this node in pixels, percentage of parent width or the unit vw which is percentage of the browser window width.
Height
Specify the height of this node in pixels, percentage of parent height or the unit vw which is percentage of the browser window height.
bufferWidth
The width of the Canvas buffer.
bufferHeight
The height of the Canvas buffer.
Position
Controls how this node is layouted in its parent.
- In Layout - This node is part of the parent layout, it will be stacked with its siblings depending on the parent layout settings.
- Absolute - This node will not be part of the parent layout, instead you are free to use the Pos X and Pos Y to place this node explicitly.
Pointer Events Mode
This specifies how this node will responds to pointer events.
- Inherit - This node will respond to pointer events in the same way as its parent.
- Explicit - This node will respond to pointer events as specified by Pointer Events Enabled
Pointer Events Enabled
This property is only available if Pointer Events Mode is set to Explicit. It will specify if this node responds to pointer events or not. If set to false this node will completely ignore pointer events.
Block Pointer Events
This will cause this node to block all pointer events, e.g. any node that are behind this node will not receive pointer events.
Mounted
This property is used to completely remove the node from the DOM. If this property is set to false the node is removed from the DOM. It differs from the Visible property where the node is still part of the DOM but invisible.
Opacity
The opacity of the node. 0 is completely transparent and invisible. 1 is completely solid and opaque.
Visible
Toggle the visibility of this node on and off.
zIndex
The depth index for this node, this can be any number.
Pos X The X position of this node. Either relative to its parent's top left corner or relative to its layouted position depending on the Position property. Can be specified in pixels or as a percentage of its parents width.
Pos Y The Y position of this node. Either relative to its parent's top left corner or relative to its layouted position depending on the Position property. Can be specified in pixels or as a percentage of its parents height.
Rotation The rotation in degrees.
Scale
Specifies scaling of this node. A value of 0 scales the node down completely so that it is no longer be visible. A value of 1 gives it the original size, and a value of 2 doubles the size and so on.
Transform Origin X
Specifes the X position, within this node, that will be the center for rotation and scale. By default it is the center of the node (i.e. 50%) but you can specify an arbitrary value in either percentage of the node's width or explicitly in pixels.
Transform Origin Y
Specifes the Y position, within this node, that will be the center for rotation and scale. By default it is the center of the node (i.e. 50%) but you can specify an arbitrary value in either percentage of the node's height or explicitly in pixels.
Child Index
The place this node has in relation to its parent. E.g. if a Group has three children, then the first child will have Child Index 0, the second child will have Child Index 1, and so on.
This
A reference to this node. Used in custom Javascript nodes and more.
DOM Element A reference to the DOM Element representing this visual node.
Screen Position X
Where this node is on the screen's X-axis, in pixels.
Screen Position Y
Where this node is on the screen's Y-axis, in pixels.
Width
Current width of this node.
Height
Current height of this node.
Did Mount
Signal sent when this node has been mounted, i.e. has become part of the visual tree and is visible.
Will Unmount
Signal sent when this node is about to be removed from the visual tree and become hidden.
Click
Emitted when the node is clicked or tapped.
Pointer Down
Emitted when the mouse is pressed or finger is down on the node.
Pointer Up
Emitted when the mouse is released or finger is lifted on the node.
Pointer Enter
Emitted when the mouse enters the node.
Hover Start
Emitted when the mouse enters the node.
Hover End
Emitted when the mouse leaves the node.