pub type Node {
TextNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
text: String,
)
FileNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
path: FilePath,
subpath: Option(SubPath),
)
LinkNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
url: Url,
)
GroupNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
label: Option(GroupLabel),
background: Option(GroupBackground),
background_style: Option(GroupBackgroundStyle),
)
}
Constructors
-
TextNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
text: String,
)
-
FileNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
path: FilePath,
subpath: Option(SubPath),
)
-
LinkNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
url: Url,
)
-
GroupNode(
id: NodeId,
x: Int,
y: Int,
width: Int,
height: Int,
color: Option(Color),
label: Option(GroupLabel),
background: Option(GroupBackground),
background_style: Option(GroupBackgroundStyle),
)