Get the configuration from the canvas Convenience getter to avoid accessing canvas.configuration everywhere
Get the model from the canvas Convenience getter to avoid accessing canvas.model everywhere
Get the renderer from the canvas Convenience getter to avoid accessing canvas.renderer everywhere
ProtectedapplyReturns the pre-transform records of the standalone decorators that followed symbols, for
the caller to hand to recordTransformed: they are moved here, outside the selection, so
no caller snapshot holds them and undo would otherwise leave them where the gesture put them.
Applies a matrix transform locally (model + redraw) without touching the backend or history. Used by InteractiveInkCanvas's undo/redo replay dispatcher, which sends its own consolidated backend message separately.
ProtectedapplyOne hook, like the other two managers'. center is passed here rather than read
off this inside the util, which is what retired its definite-assignment assertion.
ProtectedapplyPermanently applies the given transform matrix to the ghost previews attached to the selection's math blocks, so they stay visually attached once the drag settles.
Destroy the manager and cleanup resources Calls the onDestroy hook if defined
ProtectedfinalizeProtectedgetElement ids of the ghost previews attached to the given selection's math blocks — for live CSS-transform following while a translate/resize/rotate drag is in progress.
Protected OptionalonProtected OptionalonLifecycle hook called after manager initialization Override in subclasses if needed
This is called at the end of the constructor, allowing subclasses to perform initialization that requires access to this.managerName or other properties set in the subclass constructor.
ProtectedpreviewThe live gesture, previewed on the standalone decorators carried by symbols.
Only those whose every target is in symbols: they are the ones the commit moves by the same
matrix (see updateDecoratorsForTargets), so previewing them any other way would show a
decoration that jumps on release. A decorator only partly moved has its box refitted at commit
instead, which a matrix cannot preview.
ProtectedpreviewThe same, for an element with no symbol behind it — the interact-elements group, or a math ghost stroke. Nothing is composed because nothing is stored: these are drawn in document coordinates already.
Note both preview methods write a full matrix(...), carrying their own centre. The
transform-origin attribute this class used to set cannot serve here: it applies to the whole
transform list, so it would displace the stored matrix, which brings its own centre.
ProtectedpreviewThe gesture's matrix, previewed on top of the one the symbol already carries.
The live part multiplies onto the stored one rather than replacing it, so the SVG transform list reads outside-in: the symbol sits where its own matrix puts it, and the gesture moves it from there — the same order the commit will apply. Writing the live transform alone is what made an already-moved symbol snap back to its raw coordinates for the length of a drag and jump into place on release (IIC-1999). Before this epic only a rotated typeset carried a baked transform; now every moved symbol does, so the same overwrite would affect all of them.
The stored matrix is untouched here. This is a preview: applyAndDraw is what settles it.
ProtectedrecordRecords a transform as the before/after pair updated wants, resolving "after" from the
document by id rather than from the caller.
By id, because a transform commits a draft: the object the caller holds is the pre-transform snapshot, and reading the moved value off it would record no change at all. Resolving both sides here also keeps the two lists the same length — a symbol the document no longer holds is dropped from both rather than shifting every pair after it.
Call after applyAndDraw, with the snapshots taken before it.
ProtectedreplaceGradient-followed strokes were reshaped non-uniformly by the connector — their points did not
all move by the same delta — so the backend cannot be asked to apply this transform to them.
Their full new content has to be sent instead. Returns one replaceStrokes call per such
stroke, to be spread into the transform's own Promise.all.
ProtectedresolveLive model symbols for the pre-convert edge strokes that rigidly follow a transform
(see IIConnectorManager), minus any already present in alreadyIncluded.
They are transformed outside applyAndDraw, so history entries and backend transform
messages must list them explicitly or undo and the server's ink both drift out of sync.
ProtectedresolveProtectedcanvasThe Interactive Ink Canvas instance
OptionalinteractProtectedloggerLogger instance for this manager Automatically uses LoggerCategory.MANAGER
ProtectedmanagerName of the manager for logging purposes Must be overridden in concrete classes
Get the client from the canvas Convenience getter to avoid accessing canvas.client everywhere