StaticaddOptionalcreationTime?: numberOptionaldecoratorKind?: DecoratorKindOptionalendAnchor?: {OptionalentryPoint?: { x?: number; y?: number }Intersection of the edge with the shape border, in world coordinates.
OptionalnormalizedX?: numberOptionalnormalizedY?: numberOptionalsymbolId?: stringOptionalid?: stringOptionalisSolverOutput?: booleanOptionaljiixBlockId?: stringOptionaljiixBlockType?: "Text" | "Math" | "Node" | "Edge" | "Decorator"OptionalmodificationDate?: numberOptionalpointers?: ({ dt?: number; p?: number; x?: number; y?: number } | undefined)[]OptionalpointerType?: stringOptionalstartAnchor?: {OptionalentryPoint?: { x?: number; y?: number }Intersection of the edge with the shape border, in world coordinates.
OptionalnormalizedX?: numberOptionalnormalizedY?: numberOptionalsymbolId?: stringOptionalstyle?: {Optionaltransform?: { tx?: number; ty?: number; xx?: number; xy?: number; yx?: number; yy?: number }Where this symbol sits, relative to the coordinates it stores.
A transform writes here and nowhere else: the raw coordinates are what the symbol was created with and never move again. That is what lets the renderer apply a change by rewriting one attribute instead of rebuilding the element, and what keeps undo exact — re-applying an inverse matrix restores the value bit for bit, where re-transforming coordinates accumulated rounding.
Optionaltx?: numberOptionalty?: numberOptionalxx?: numberOptionalxy?: numberOptionalyx?: numberOptionalyy?: numberOptionaltype?: StrokeStaticcreateOptionalstyle: {OptionalcreationTime: number
Epoch instant the stroke began, defaulting to now. Pass the instant the
capture actually started: it is the origin the dt field of every TPointer counts from, so
it is what turns them back into the absolute times the recognizer orders strokes by.
StaticcreateA stroke is the run of points the pen left, and PointSet2d is exactly that shape: its path, length and box all come from the same samples, and it is caught by a query holding one of them rather than by the drawn line crossing it — which is what a stroke's selection has always meant.
ProtectedgetThe attributes on the group every symbol is drawn inside.
The same five for every type, plus the matrix when there is one — written once here rather than
copied into each getSVGElement, where six copies had already started to drift apart in what
they called the type attribute.
A type that needs more overrides this and spreads the result: the shape and edge families add
their kind, and the typeset one adds what a rendered word needs that a path does not.
ProtectedgetFilled, not stroked: a stroke's path is the outline of the ink, so the colour goes on fill and
there is no stroke colour at all. stroke-width still carries the nominal width, which the
outline was built from.
ProtectedgetThe d of the path this symbol draws.
Separate from PathSymbolUtil.getPathAttributes because it is the one part no default can
supply and the one part a new type always has to write: d is the shape as drawn.
Handles for dragging one vertex of this symbol. Empty by default: most symbols resize by their bounding box alone, and only the edge kinds offer per-vertex handles today.
The element that draws this symbol.
Required rather than optional: a symbol nothing can draw is a symbol the canvas cannot show,
and when this was optional a custom util that omitted it registered successfully and then
silently rendered nothing. Return undefined only for a state deliberately left undrawn — the
decorator does that for a kind it does not own.
Honoured by the SVG renderer, which InteractiveInkCanvas, InkCanvas and
InteractiveInkSSRCanvas all use. InkCanvasDeprecated (INK_V1) ignores it: it draws
through CanvasRenderer, which dispatches on isStroke and two fixed renderer tables instead
of asking the registry, so a registered custom symbol is invisible there and logs
"symbol type unknown". That variant is deprecated and not worth wiring up.
StaticgetStaticisWhether the stroke reads as bold: wider than 2px. The rule the conversion uses to pick a text's font weight, and the one the thicken gesture toggles on.
Whether a resize of this symbol must preserve its aspect ratio.
False by default. IIResizeManager decided this with
isText(s) || isMath(s) || (isShape(s) && isCircleShape(s)), which is a question about a
symbol asked from outside it — so a custom symbol could never require a locked ratio, however
badly a free scale would distort it.
Protectedmappoints, carried through symbol.transform the same way a transform manager moves the symbol
itself — used by getSnapPoints/getResizePoints overrides, which compute in the symbol's raw
frame and hand the result through this once, forward, rather than every symbol type mapping its
own points individually.
Forward, and exact: a point maps to a point however the matrix turns or scales, so points are
already the symbol's own geometry, and mapping a point through a matrix is always exact, however
that matrix turns or scales.
Whether a query box touches this symbol — the question selection and erasing both ask.
Answered by the shape getGeometry returns, so a type describes what it is once and inherits this. Every built-in used to write the same one line here. Override it only for a type whose hit test is not a question about its outline.
Scales this symbol. Composes through applyTransform, for the same reason translate does.
Turns this symbol. Composes through applyTransform, for the same reason translate does.
StaticsplitStaticsubstractMoves this symbol by a matrix.
Concrete rather than abstract: every built-in type composes the matrix the same way, through applyTransform, and none of the six overrides this. A custom util only needs its own body if it stores something a matrix cannot express.
Moves, turns or scales this symbol by composing the matrix onto the one it already carries.
One implementation for every type, where there used to be one per type per operation. A symbol's coordinates are not touched: the matrix is the whole of what a transform changes, so there is no per-type geometry to update and nothing derived left to refresh.
Override only for a type whose transform is not affine —
DecoratorUtiloverrides it to a no-op because a decorator follows its targets rather than moving on its own.