Values
nodekit.values.PixelSize
¶
PixelSize = Annotated[
int,
Field(
strict=True,
ge=0,
description="A spatial size in units of W3C reference pixels. ",
),
]
nodekit.values.PixelPoint
¶
PixelPoint = Annotated[
int,
Field(
strict=True,
description="A spatial location relative to some origin, in units of W3C reference pixels.",
),
]
nodekit.values.TimeElapsedMsec
¶
TimeElapsedMsec = Annotated[
int,
Field(
strict=True,
description="A time point, relative to some origin.",
),
]
nodekit.values.TimeDurationMsec
¶
TimeDurationMsec = Annotated[
int,
Field(
strict=True,
ge=0,
description="A duration of time in milliseconds, relative to the start of the Trace.",
),
]
nodekit.values.MarkdownString
¶
nodekit.values.ColorHexString
¶
ColorHexString = Annotated[
str,
BeforeValidator(_normalize_hex_code),
Field(
pattern="^#[0-9a-fA-F]{8}$",
min_length=9,
max_length=9,
),
]
nodekit.values.PressableKey
¶
PressableKey = Literal[
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"Enter",
" ",
"ArrowDown",
"ArrowLeft",
"ArrowRight",
"ArrowUp",
]
nodekit.values.SHA256
¶
A hex string representing a SHA-256 hash.
nodekit.values.ImageMediaType
¶
nodekit.values.NodeId
¶
NodeId = Annotated[
str,
Field(
description="An identifier for a Node which is unique within a Graph."
),
]
nodekit.values.NodeAddress
¶
NodeAddress = Annotated[
list[NodeId],
Field(
description="The address of a Node within a Graph."
),
]
nodekit.values.RegisterId
¶
nodekit.Region
pydantic-model
¶
Fields:
-
x(PixelPoint) -
y(PixelPoint) -
w(PixelSize) -
h(PixelSize) -
z_index(int | None) -
mask(Annotated[Literal['ellipse', 'rectangle'], Field(description='Describes the shape of a region inside of a bounding box. "rectangle" uses the box itself; "ellipse" inscribes a tightly fitted ellipse within the box.')])