#Node Properties

Property
example
DescriptionTypeDefault
id
abcd
A unique id for the nodestring""
name
node_name
Internal name for the nodestring""
text
display text
The node text that is displayedstring""
image
https://picsum.photos/id/237/200/300
A background image for the nodestring""
groupId
groupId
Assign a groupId to group nodes together. Nodes that are part of the same groupId can be resized, copied, and dragged togetherstring""
xPos
25000
The x coordinate of the node on the slate in pxinteger0
yPos
25000
The y coordinate of the node on the slate in pxinteger0
height
100
The height of the node in pxinteger10
width
200
The width of the node in pxinteger10
borderStyle
null
The style to attach to the border. Can be any of these variants: null (solid), -, ., --., -.., . , - , --, - ., --., --..stringnull
borderWidth
1
The width of the border in pxinteger1
borderColor
#000
The color of the border in hexstring#000
borderOpacity
1
The opacity of the border as a percent (0.0 - 1.0)integer1
lineColor
#000000
The line color of this node's associations. Default fallback if the association constructor isn't given a lineColorstring#000
lineOpacity
1
The line opacity (0.0 - 1.0) of this node's associations. Default fallback if the association constructor isn't given a lineOpacityinteger1
lineEffect
outlined
The line effect of this node's association. Default fallback if the association constructor isn't given a lineEffect. The available effects are: dropShadow, postItNote, tattered, blur, outline, pixelate, posterize, and pencilstring""
lineWidth
5
The default line width of this node's associations in px. Default fallback if the association constructor isn't given a lineWidth.integer2
opacity
1
The opacity of the node (0.0 - 1.0).integer1
textOpacity
1
The opacity of the text (0.0 - 1.0).integer1
showDelete
true
Show the delete icon when the node is clickedbooleantrue
Experimental
showAddAndDeleteConditionally
false
Only show the add and delete buttons on the last duplicated node. Primarily used for building templates in the Slatebox App.booleanfalse
showResize
true
Show the resize icon when the node is clickedbooleantrue
showAdd
true
Show the add icon when the node is clicked. The add icon duplicates the current node, and if mindMapMode on the slate is set to true, it autoamtically creates an association to the duplicated node.booleantrue
showRelationshipConnector
true
Show the relationship connector icon when the node is clicked. This connector can be draggable and lets the user create associations to other nodes.booleantrue
showRelationshipDelete
true
Show the delete icon when a node's association is clicked.booleantrue
Slatebox App Enabled
showRelationshipProperties
true
Show the properties icon when a node's associations are clicked. Either use Slatebox App, or provide your own properties screen when this is clicked.booleantrue
showRelationshipReassign
true
Show the relationship reassign icon when the node's associations are clicked. This is the same icon and functionality as the showRelationshipConnector, but it is for reassigning or removing an existing association instead of creating a new one.booleantrue
showRotate
val true
Show the rotate icon when the node is clickedbooleantrue
showMenu
val true
Show the menu (which contains all the icons) when the node is clicked.booleantrue
Slatebox App Enabled
showColorTab
true
Show the color tab when the node properties icon is clicked in the Slatebox App.booleantrue
Slatebox App Enabled
showTextTab
true
Show the text tab when the node properties icon is clicked in the Slatebox App.booleantrue
Slatebox App Enabled
showShapeTab
true
Show the shape tab when the node properties icon is clicked in the Slatebox App.booleantrue
Slatebox App Enabled
showImageTab
true
Show the image tab when the node properties icon is clicked in the Slatebox App.booleantrue
Slatebox App Enabled
showEffectTab
true
Show the effect tab when the node properties icon is clicked in the Slatebox App.booleantrue
Experimental
spaceBetweenNodesWhenAdding
100
Define the space between added nodes in px. Primarily used for building templates in the Slatebox App.integernull
Experimental
disableMenuAsTemplate
true
Disable the menu when the slate is used as a template. Primarily used for building templates in the Slatebox App.booleanfalse
disableDrag
false
Disable dragging for this nodebooleanfalse
allowDrag
true
Allow dragging for this nodebooleantrue
allowMenu
true
Show the menu when the node is clickedbooleantrue
allowContext
true
Show the context menu when the node is left-clicked (or two finger clicked)booleantrue
allowResize
true
Show the resize icon when the node is clickedbooleantrue
isLocked
false
Lock the node, causing a lock icon to appear, disabling the nodebooleanfalse
Slatebox App Enabled
isComment
true
Mark this node as a comment - useful in conjuction with the Slatebox App commenting system.booleanfalse
backgroundColor
90-#031634-#2D579A
Background color as hex. Can be a gradient in this form as well: 90-#031634-#2D579Astring#fff
foregroundColor
#fff
Color of the node textstring#000
fontSize
35
Size of the font in ptinteger18
fontFamily
Bangers
Font family. Note: this font must either be installed on the machine, or loaded (through Google fonts for example)stringRoboto
vectorPath
M3 3h18v18H3z
The SVG vector path to apply to this node. This is the m value from the <path m='xxx'> element. rectangle, roundedrectangle, and ellipse may be used as shortcutsstringroundedrectangle
rotate.rotationAngle
45
The rotated angle of the node in degress (from 0 -360)integer0
textXAlign
middle
Align the text horizontally. Can be end (right aligned), middle, or start (left aligned)stringmiddle
textYAlign
center
Align the text vertically. Can be hanging (top aligned), center, or baseline (bottom aligned)stringcenter
link.show
false
Show the link associated with the nodebooleanfalse
link.type
url
Set the link to either url or currentSlatestring""
link.data
https://slatebox.com
If the type is url, set this to the URL to be opened in a new window. If the type is currentSlate, set this to the id of the node you want to center on (e.g., second_node)string""
filters.vect
postItNote
The filter effect of this node's vectorPath. The available effects are: dropShadow, postItNote, tattered, blur, outline, pixelate, posterize, and pencil.string""
filters.text
outline
The filter effect of this node's text. The available effects are: dropShadow, postItNote, tattered, blur, outline, pixelate, posterize, and pencil.string""