iink-ts - v5.0.0
    Preparing search index...

      iink-ts - v5.0.0

      AbstractCanvas
      Canvas

      Main Canvas facade for loading canvas instances

      This class provides a convenient interface for loading canvas instances. It delegates to CanvasFactory for the actual implementation.

      CanvasEvent
      CanvasEventName
      CanvasLayer
      CanvasTool

      List the possibilities of interactions

      CanvasWriteTool

      List all the shapes that can be drawn

      DefaultCanvasTriggerConfiguration
      DefaultInkCanvasConfiguration
      DefaultInkCanvasDeprecatedConfiguration
      DefaultInteractiveInkCanvasConfiguration
      DefaultInteractiveInkSSRCanvasConfiguration
      GESTURE_OPERATION_LABELS
      InkCanvas
      InkCanvasConfiguration
      InkCanvasDeprecated
      InkCanvasDeprecatedConfiguration
      InteractiveInkCanvas
      InteractiveInkCanvasConfiguration
      InteractiveInkSSRCanvas
      InteractiveInkSSRCanvasConfiguration
      TCanvasConnectionState
      TCanvasLayerUI
      TCanvasLayerUIState
      TCanvasOperationLabel
      TCanvasStateDetail
      TCanvasTriggerConfiguration
      TCanvasType
      TInkCanvas
      TInkCanvasConfiguration
      TInkCanvasDeprecatedConfiguration
      TInkCanvasDeprecatedOptions
      TInkCanvasOptions
      TInteractiveInkCanvas
      TInteractiveInkCanvasConfiguration
      TInteractiveInkCanvasOptions
      TInteractiveInkSSRCanvasConfiguration
      TInteractiveInkSSRCanvasOptions
      TSymbolPatch
      TSymbolUpdate
      assertServerConfig
      ClientError
      ClientEvent
      ClientEventName

      Lists all events that can be listened to on the canvas or DOM element

      computeHmac
      DefaulRecognitionHTTPV1ConfigurationConfiguration
      DefaultConvertionConfiguration
      DefaultDebugConfiguration
      DefaultDiagramConfiguration
      DefaultDiagramConvertConfiguration
      DefaultEraserConfiguration
      DefaultExportConfiguration
      DefaultHTTPClientV1Configuration
      DefaultHTTPClientV2Configuration
      DefaultHTTPClientV2RecognitionConfiguration
      DefaultJiixConfiguration
      DefaultMarginConfiguration
      DefaultMathConfiguration
      DefaultMathUndoRedoConfiguration
      DefaultMathV2Configuration
      DefaultRawContentConfiguration
      DefaultRawContentV2Configuration
      DefaultRecognitionRendererConfiguration
      DefaultRecognitionWebSocketConfiguration
      DefaultServerHTTPConfiguration
      DefaultServerWebsocketConfiguration
      DefaultShapeBeautificationConfiguration
      DefaultShapeConfiguration
      DefaultShapeConvertConfiguration
      DefaultSolverConfiguration
      DefaultTexConfigurationV2
      DefaultTextConfiguration
      DefaultTextGuidesConfiguration
      DefaultTextGuidesConfigurationV2
      DefaultWebSocketClientConfiguration
      DefaultWebSocketSSRClientConfiguration
      DefaultWebSocketSSRClientRecognitionConfiguration
      ensureServerVersion

      The server version, fetched once and stored in the configuration

      getApiInfos
      getAvailableFontList
      getAvailableLanguageList
      getJSON
      HTTPClientV1
      HTTPClientV1Configuration
      HTTPClientV2
      HTTPClientV2Configuration
      mapCloseCodeToMessage
      mapErrorCodeToMessage

      Message for an error code the server sends, undefined when it has none of its own

      parseApiError
      parseExportedJIIX

      Reads the exports of a websocket message, parsing the JIIX sent as a JSON string

      parseRecognitionResponse

      Reads a recognition response body according to its content type

      postRecognition

      Posts a recognition request and reads its response

      readHistoryContext

      The undo/redo state a contentChanged message carries, both websocket protocols alike

      redactServerSecrets
      resolveHmac
      serverUrl
      supportsRelativeTimestamps
      TAngleUnit
      TApiError
      TApiInfos
      TAutoVariableManagement
      TConnectionStatus
      TConverstionState
      TConvertionConfiguration
      TDiagramConfiguration
      TDiagramConvertConfiguration
      TEraserConfiguration
      TExportConfiguration
      TGesture
      TGestureType

      List all authorized gestures

      THmacSigner
      THTTPClientV1Configuration
      THTTPClientV1PostConfiguration
      THTTPClientV1PostData
      THTTPClientV2Configuration
      THTTPClientV2PostConfiguration
      THTTPClientV2PostData
      THTTPClientV2RecognitionConfiguration
      THTTPRecognitionRequest
      TImageConfiguration
      TImageViewportConfiguration
      TInteractiveInkSessionDescriptionMessage
      TJiixConfiguration
      TMarginConfiguration
      TMathConfiguration
      TMathEvaluable
      TMathMLExport
      TMathMLFlavor
      TMathSolverAction
      TMathSolverResultMap

      result of a math solver message, by action

      TMathUndoRedoConfiguration
      TMathVariable
      TMathVariableDefinition
      TMathVariableDefinitionInfo
      TMathVariableDefinitions
      toRecognitionContentType

      The contentType a recognition request names for a recognition type: "TEXT" → "Text", "Raw Content" as is

      toRecognitionError

      Turns what a failed postRecognition threw into the error reported to the caller

      toWireStroke
      TPendingRequest

      A request waiting on an answer from the server

      TRawContentConfiguration
      TRecognitionGesture
      TRecognitionHTTPV1Configuration
      TRecognitionPointer
      TRecognitionRendererConfiguration
      TRecognitionRendererDebugConfiguration
      TRecognitionStroke
      TRecognitionType
      TRecognitionTypeBase
      TRecognitionTypeV1
      TRecognitionTypeV2
      TRecognitionWebSocketConfiguration
      TRoundingMode
      TScheme
      TScopingPolicy
      TServerHTTPConfiguration
      TServerWebsocketConfiguration
      TShapeBeautificationConfiguration
      TShapeConfiguration
      TShapeConvertConfiguration
      TSolverConfiguration
      TSolverOptions
      TStrokeGroup
      TStrokeGroupToSend
      TTextConfConfiguration
      TTextConfiguration
      TTextGuidesConfiguration
      TTextGuidesConfigurationV2
      TTextHTTPClientV2ConfConfiguration
      TTextHTTPClientV2Configuration
      TUndoRedoMode
      TUpdatePatch
      TUpdatePatchAppendChild
      TUpdatePatchInsertBefore
      TUpdatePatchRemoveAttribut
      TUpdatePatchRemoveChild
      TUpdatePatchRemoveElement
      TUpdatePatchReplaceAll
      TUpdatePatchReplaceELement
      TUpdatePatchSetAttribut
      TUpdatePatchType
      TWebSocketClientConfiguration
      TWebSocketClientConfigurationChanged
      TWebSocketClientMessage
      TWebSocketClientMessageAck
      TWebSocketClientMessageAuthenticated
      TWebSocketClientMessageContentChange
      TWebSocketClientMessageContextlessGesture
      TWebSocketClientMessageError
      TWebSocketClientMessageExport
      TWebSocketClientMessageGesture
      TWebSocketClientMessageHandlers

      One handler per message type the server sends

      TWebSocketClientMessageHMACChallenge
      TWebSocketClientMessageIdle
      TWebSocketClientMessageMathSolver

      Math solver message for one action

      TWebSocketClientMessageMathSolverAsVariableDefinition
      TWebSocketClientMessageMathSolverAvailableActions
      TWebSocketClientMessageMathSolverEvaluate
      TWebSocketClientMessageMathSolverGetDiagnostic
      TWebSocketClientMessageMathSolverGetEvaluables
      TWebSocketClientMessageMathSolverGetVariableDefinitions
      TWebSocketClientMessageMathSolverGetVariables
      TWebSocketClientMessageMathSolverGetVariableValue
      TWebSocketClientMessageMathSolverNumericalComputation
      TWebSocketClientMessageMathSolverRemoveVariableValue
      TWebSocketClientMessageMathSolverResult
      TWebSocketClientMessageMathSolverSetVariableValue
      TWebSocketClientMessageNewPart
      TWebSocketClientMessagePartChange
      TWebSocketClientMessagePong
      TWebSocketClientMessageReceived
      TWebSocketClientMessageReceivedMap

      Message the server sends, by TWebSocketClientMessageType

      TWebSocketClientMessageType
      TWebSocketConfigurationCHanged
      TWebSocketSSRClientConfiguration
      TWebSocketSSRClientMessage
      TWebSocketSSRClientMessageAck
      TWebSocketSSRClientMessageContentChange
      TWebSocketSSRClientMessageContentPackageDescriptionMessage
      TWebSocketSSRClientMessageError
      TWebSocketSSRClientMessageExport
      TWebSocketSSRClientMessageHMACChallenge
      TWebSocketSSRClientMessageIdle
      TWebSocketSSRClientMessageNewPart
      TWebSocketSSRClientMessagePartChange
      TWebSocketSSRClientMessagePong
      TWebSocketSSRClientMessageReceived
      TWebSocketSSRClientMessageReceivedMap

      Message the server sends, by type

      TWebSocketSSRClientMessageSVGPatch
      TWebSocketSSRClientRecognitionConfiguration
      TWireStroke
      TWireStrokeOptions
      WebSocketClient
      WebSocketClientConfiguration
      WebSocketSSRClient
      WebSocketSSRClientConfiguration
      ExportType
      ExportV2Type
      extractEdgeEndpoints
      JIIXEdgeKind
      JIIXElementType
      JIIXMathExpressionType
      JIIXNodeKind
      JIIXV2ShapeKind
      TExport
      TExportV2
      TExportWire

      Exports as the websocket protocols send them: every format a string, JIIX included

      TJIIXBase
      TJIIXChar
      TJIIXEdgeArc
      TJIIXEdgeElement
      TJIIXEdgeElementBase
      TJIIXEdgeLine
      TJIIXEdgePolyEdge
      TJIIXElement
      TJIIXElementBase
      TJIIXExport
      TJIIXLine
      TJIIXMathElement
      TJIIXMathExpression
      TJIIXMathExpressionBase
      TJIIXMathExpressionTypeValue
      TJIIXMathFraction
      TJIIXMathGroup
      TJIIXMathNumber
      TJIIXMathOperator
      TJIIXMathPower
      TJIIXMathRoot
      TJIIXMathSquareRoot
      TJIIXMathSubscript
      TJIIXMathSubsuperscript
      TJIIXMathSuperscript
      TJIIXMathSymbol
      TJIIXMathSymbolExpression
      TJIIXMathUnderoverscript
      TJIIXMathVariable
      TJIIXNodeCircle
      TJIIXNodeElement
      TJIIXNodeElementBase
      TJIIXNodeEllipse
      TJIIXNodeParallelogram
      TJIIXNodePolygon
      TJIIXNodeRectangle
      TJIIXNodeRhombus
      TJIIXNodeTriangle
      TJIIXStrokeItem
      TJIIXTextElement
      TJIIXV2Base
      TJIIXV2Circle
      TJIIXV2DrawingElement
      TJIIXV2Element
      TJIIXV2ElementBase
      TJIIXV2Ellipse
      TJIIXV2EllipseBase
      TJIIXV2Export
      TJIIXV2Expression
      TJIIXV2Line
      TJIIXV2LineSpan
      TJIIXV2MathElement
      TJIIXV2PolygonBase
      TJIIXV2PolygonType
      TJIIXV2PrimitiveArc
      TJIIXV2PrimitiveLine
      TJIIXV2Range
      TJIIXV2RangeItem
      TJIIXV2RawContentBase
      TJIIXV2RawContentElement
      TJIIXV2RawContentItemShape
      TJIIXV2RawContentItemText
      TJIIXV2RawContentShape
      TJIIXV2RawContentTextLine
      TJIIXV2ShapeArcOfCircle
      TJIIXV2ShapeArcOfEllipse
      TJIIXV2ShapeCurvedArrow
      TJIIXV2ShapeCurvedDoubleArrow
      TJIIXV2ShapeElement
      TJIIXV2ShapeItemBase
      TJIIXV2ShapeLine
      TJIIXV2ShapeLineArrow
      TJIIXV2ShapeLineDoubleArrow
      TJIIXV2ShapeLinePolyline
      TJIIXV2ShapeLinePolylineArrow
      TJIIXV2ShapeLinePolylineDoubleArrow
      TJIIXV2ShapePolygon
      TJIIXV2ShapePolygonEquilateralTriangle
      TJIIXV2ShapePolygonIsoscelesTriangle
      TJIIXV2ShapePolygonParallelogram
      TJIIXV2ShapePolygonQuadrilateral
      TJIIXV2ShapePolygonRectangle
      TJIIXV2ShapePolygonRhombus
      TJIIXV2ShapePolygonRightIsoscelesTriangle
      TJIIXV2ShapePolygonRightTriangle
      TJIIXV2ShapePolygonSquare
      TJIIXV2ShapePolygonTrapezoid
      TJIIXV2ShapePolygonTriangle
      TJIIXV2TextElement
      TJIIXWord
      cloneSymbol

      Clone any TSymbol — all types are now plain objects, use structuredClone.

      computeChildrenOverlaps
      computeClosedEdges
      computeEdgeBounds
      computeNormalizedAnchor
      computeTypesetSnapPoints
      computeTypesetVertices
      convertPartialStrokesToStrokes
      DecoratorKind
      EdgeDecoration
      EdgeKind
      EraserOps
      extractStrokes

      Filter the stroke symbols out of a list that may contain other symbol types (text, math, shapes, ...).

      isDecorator

      Check if symbol is a standalone decorator

      isMath

      Check if symbol is math

      isRecognizedMath

      Check if symbol is a stroke with Math JIIX metadata

      isRecognizedText

      Check if symbol is a stroke with Text JIIX metadata

      isStroke

      Check if symbol is a stroke

      isStrokeSolverOutput

      Check if symbol is a stroke with Solver Output JIIX metadata

      isText

      Check if symbol is text

      reprojectArcEndpoint
      reprojectArcMidpoint
      resolveAnchorPoint
      resolveConnectionAnchors
      ShapeKind
      stretchArcEndpoint
      Stroke
      SymbolType
      TAnchor
      TBaseSymbol
      TCanvasShapeEllipseSymbol
      TCanvasShapeLineSymbol
      TCanvasShapeTableLineSymbol
      TCanvasShapeTableSymbol
      TCanvasTextSymbol
      TCanvasTextUnderlineSymbol
      TCanvasUnderLineSymbol
      TDecorator
      TEdge
      TEdgeArc
      TEdgeLine
      TEdgePolyLine
      TEraser
      TLegacyStroke
      TMath
      TMathElement
      TResizePoint
      TShape
      TShapeCircle
      TShapeEllipse
      TShapePolygon
      TStroke
      TStrokeCapture
      TStrokeImport
      TSymbol
      TSymbolChar
      TText
      TTypesetChild
      typesetOverlapsBox
      arrowHeadEndMarkerId
      arrowHeadStartMarkerId
      createSymbolFromPartial

      Create any TSymbol from partial data, by asking the registry which util owns the type.

      There used to be a switch here with a branch per built-in type, calling each family's Ops directly and falling back to the registry only for unknown types. That made the registry a second-class path: ShapeUtil.create and EdgeUtil.create were never reached, so the switch on kind inside them was dead code kept alive by a contract nobody called.

      Requires registerBuiltinSymbolUtils to have run. Both canvases that create symbols from partials call it in initialize(), and the error below says so rather than letting a missing registration surface as a TypeError.

      createSymbolsFromPartial

      Create multiple TSymbols from partial data — accumulates errors.

      DecoratorUtil
      defineKind
      EdgeUtil
      MathUtil
      PathSymbolUtil

      A symbol drawn as a single <path>.

      The shape of most of what the library renders — a stroke, a geometric shape, an edge. Each one used to build a <g>, append one <path> to it and return the group, which is three copies of an assembly that differs only in what goes on the path.

      There is no group any more. A group holding exactly one child adds a node per symbol and carries nothing the child could not carry itself: id, type and kind are found by attribute either way, transform on a single child is the same transform, and stroke-linecap and stroke-linejoin inherit. On a 4419-symbol document that is 4419 nodes the browser no longer lays out.

      One attribute did not merely move: vector-effect. It is not an inherited property, so on the group it applied to the group — which draws nothing — and never reached the path. It was inert. On the path it takes effect, and non-scaling-stroke means what it says: stroke width stops growing with the zoom, since the renderer zooms by viewBox. That is a deliberate change of appearance, not a side effect — the attribute had been asking for this since it was written.

      A type in this family says what its path is worth drawing — its d, and the fill, stroke and width around it — and inherits the rest.

      registerBuiltinSymbolUtils
      resolveKind
      ShapeUtil
      StrokeUtil
      SVGBuilder
      SymbolGeometry

      Reads a symbol's derived geometry — bounds, vertices, snap points, edges, length.

      Every accessor below calls the module-level of directly rather than this.of — so const { boundsOf } = SymbolGeometry and symbols.map(SymbolGeometry.boundsOf) both work. A this-bound accessor throws the moment it is detached from the object, which is exactly the shape a read-site migration across the codebase produces.

      symbolRegistry
      SymbolRegistryClass

      Registry for SymbolUtil implementations.

      Built-in types are registered via registerBuiltinSymbolUtils(), which the canvas calls on initialisation. External consumers may register additional types before or after canvas creation:

      SymbolUtil

      Plugin interface for registering symbol behaviour.

      Implement this class to add a new symbol type that participates in the standard dispatch for factory, derived-field updates, overlap detection, snap-point extraction, and capability flags.

      Register with symbolRegistry.register(new MyUtil()).

      TextUtil
      TKindDefinition
      TTransformContext
      TypesetUtil

      Plugin interface for registering symbol behaviour.

      Implement this class to add a new symbol type that participates in the standard dispatch for factory, derived-field updates, overlap detection, snap-point extraction, and capability flags.

      Register with symbolRegistry.register(new MyUtil()).

      computeOutlinePointers
      computeWidthProfile
      DEFAULT_PEN_NIB
      DefaultPenStyle
      DefaultStyle
      DefaultTheme
      isPenNib
      mergeSymbolStyle
      PEN_NIBS
      readNibOverrides
      StyleHelper
      StyleManager
      TNibOverrides
      TNibProfile
      TPenNib
      TPenStyle
      TStyle
      TTheme
      TThemeMath
      TThemeMathSolved
      TThemeText
      IIModel
      IModel
      Model
      TRecognitionPositions
      SymbolStore
      TSymbolOrder
      AbstractDiffHistoryManager
      AbstractHistoryStack
      appendUpdated
      DefaultHistoryConfiguration
      extractIIBackendChanges
      getInitialHistoryContext
      HistoryManager
      IHistoryManager
      IIHistoryManager
      THistoryConfiguration
      THistoryContext
      THistoryEvent
      TIHistoryChanges
      TIIHistoryBackendChanges
      TIIHistoryChanges
      TIIHistoryVariableChange
      AbstractWriterManager
      ColorPaletteManager
      ConnectorConfiguration
      DefaultConnectorConfiguration
      DefaultGestureConfiguration
      DefaultLayoutConfiguration

      Where each occupant sits when the configuration does not say

      DefaultOverlayConfig
      DefaultSelectionConfig
      DefaultSnapConfiguration
      EraseManager
      EXPORT_EXTENSIONS
      EXPORT_MIME_TYPES
      ExportManager
      GestureHandler
      GestureHelpers
      IDebugSVGManager
      IIAbstractManager
      IIAbstractTransformManager
      IIConnectorManager
      IIConversionManager
      IIExportManager
      IIGestureAnnotationProcessor
      IIGestureManager
      IIJiixQueryManager
      IIKeyboardManager
      IIMathCapabilitiesSubManager
      IIMathComputationSubManager
      IIMathFunctionEvaluationSubManager
      IIMathManager
      IIMathVariableSubManager
      IIMenuManager
      IIMoveManager
      IIOverlayManager
      IIPlaybackManager
      IIResizeManager
      IIRotationManager
      IISelectionManager
      IISnapManager
      IISynchronizerManager
      IITransformManager
      IITranslateManager
      IITypesetManager
      IIWriterManager
      InsertAction

      List all action allowed on split detected

      InsertGestureHandler
      IWriterManager
      JoinAction

      List all action allowed on join detected

      JoinGestureHandler
      LAYOUT_SLOTS

      The places of the canvas UI where menus and other occupants sit; the center belongs to the ink

      LayoutManager

      Places the canvas UI occupants (menus, connection state, minimap, custom ones) in the slots of the layout

      PDFExportManager
      ScratchGestureHandler
      slotAnchor

      The horizontal side a slot sits against, which a dropdown grows away from

      slotOpenTowards

      The side a slot's menus open towards: away from the edge they sit on

      slotOrientation

      The axis a slot gives its menus: vertical bars on the sides, horizontal ones at the top and bottom

      SnapConfiguration
      StrikeThroughAction

      List all action allowed on strikeThrough detected

      StrikeThroughGestureHandler
      SurroundAction

      List all action allowed on surround detected

      SurroundGestureHandler
      TAnchoredEdgesUpdateResult
      TBlockTextMetadata
      TConnectorConfiguration
      TDownloadFormat
      TDownloadOptions
      TExporterMap
      TExportFormat
      TExportOptions
      TExportResultMap
      TFollowedStroke
      TGestureAnnotation
      TGestureConfiguration
      TGestureHandler
      THittable
      TJiixIndex
      TLayoutConfiguration

      What goes in each slot, in stacking order

      TLayoutOccupant

      A custom occupant declared at load, in options.extend.layout

      TLayoutOccupantContext

      What a custom occupant's factory knows of its slot, to fit it

      TLayoutOccupantFactory

      Builds a custom occupant's element each time it is placed, so it can fit its slot

      TLayoutOccupantOptions

      Where a custom occupant goes when the layout table does not place it already

      TLayoutSlot
      TMathBlockCapabilities
      TMathBlockComputation
      TMathComputationConfig
      TMathConfig
      TMathDependencies
      TMathInteractionConfig
      TMathResultMode
      TMathSelectionLevel
      TMathVariableUsage
      TMenuDirection

      The side a menu's dropdowns open towards

      TMenuOrientation

      The axis of a menu's bar

      TOverlayConfig
      TPDFDownloadOptions
      TPDFExportDialogOptions
      TPDFOrientation
      TPDFPageCount
      TPDFPageFormat
      TPDFPageMode
      TPDFPageOptions
      TPDFPageSizeMm
      TPlaybackState
      TSelectionConfig
      TShapeSelectionLevel
      TShift
      TSnapConfiguration
      TSnapLineInfos
      TSnapNudge
      TSplitOutcome
      TStrokeQueryResult
      TTextSelectionLevel
      TVariableEncartItem
      UnderlineAction

      List all action allowed on underline detected

      UnderlineGestureHandler
      BaseRenderer

      Abstract base class for all renderer implementations

      Defines the common interface that both Canvas and SVG renderers must implement, enabling consistent rendering behavior across different output formats.

      CanvasRenderer
      CanvasRendererShape
      CanvasRendererStroke
      CanvasRendererText
      DefaultGuidesConfiguration
      DefaultIIRendererConfiguration
      DefaultRendererConfiguration
      GUIDE_PATH_ATTRS
      InteractiveInkSSRSVGRenderer
      ResizeDirection

      List all svg elements resize direction

      SUB_GUIDE_PATH_ATTRS
      SvgElementRole

      List all svg elements roles

      SVGRenderer
      SVGRendererConst
      SVGStroker
      TBaseRendererConfiguration

      Base renderer configuration interface

      Common configuration properties required by all renderer implementations.

      TGuidesConfiguration
      TIIRendererConfiguration
      TRendererConfiguration
      DefaultGrabberConfiguration
      DefaultListenerConfiguration
      PointerEventGrabber
      TGrabberConfiguration
      TGrabberInputMode
      TListenerConfiguration
      TPointerInfo
      BaseMenuItem
      ButtonListMenuItem
      ButtonMenuItem
      CanvasThemes
      CheckboxMenuItem
      ClearMenuAction
      CollapsibleWrapper
      ColorListMenuItem
      ConvertContextMenu
      ConvertMenuAction
      createMenuItemInstance
      DecoratorContextMenu
      DEFAULT_ERASER_SIZE_LIST
      DEFAULT_FONT_SIZE_LIST
      DEFAULT_FONT_WEIGHT_LIST
      DEFAULT_MENU_COLORS
      DEFAULT_THICKNESS_LIST
      DefaultMenuActionConfig
      DefaultMenuConfiguration
      DefaultMenuContextConfig
      DefaultMenuStyleConfig
      DefaultMenuToolConfig
      DiagramMenuAction
      DuplicateContextMenu
      EdgeTool
      EditContextMenu
      EraseTool
      ExportContextMenu
      ExportMenuAction
      FileInputMenuItem
      FillColorStyle
      FontSizeStyle
      FontWeightStyle
      GestureMenuAction
      GuideMenuAction
      IIAbstractMenu

      What every menu shares: its items, their lifecycle, its zones and the dropdown mechanics

      IIMenuAction
      IIMenuContext
      IIMenuStyle
      IIMenuTool
      ImportMenuAction
      LanguageMenuAction
      MATH_SOLVER_DEBOUNCE_MS
      MathContextMenu
      MathMenuAction
      MinimapMenuAction
      MoveTool
      OpacityStyle
      OverlayMenuAction
      PenMenuAction
      PenNibStyle
      RangeMenuItem
      RemoveContextMenu
      ReorderContextMenu
      SelectAllContextMenu
      SelectionMenuAction
      SelectMenuItem
      SelectTool
      ShapeTool
      SnapMenuAction
      StrokeColorStyle
      TAllMenuItems
      TCanvasTheme
      TContextDecoratorConfig
      TContextDecoratorItemsConfig
      TContextExportConfig
      TContextExportItemsConfig
      TContextMathConfig
      TContextMathItemsConfig
      TContextReorderConfig
      TContextReorderItemsConfig
      TExportActionConfig
      TExportActionItemsConfig
      TGenericMenuItem
      TGestureActionConfig
      TGestureActionItemsConfig
      TGuideActionConfig
      TGuideActionItemsConfig
      THEME_STORAGE_KEY
      ThemeMenuAction
      ThicknessStyle
      TMathActionConfig
      TMathActionItemsConfig
      TMathSolverItemsConfig
      TMenuActionConfig
      TMenuButton
      TMenuButtonList
      TMenuCheckbox
      TMenuColorList
      TMenuConfigUpdate
      TMenuConfiguration
      TMenuContextConfig
      TMenuFileInput
      TMenuItemBase
      TMenuItemFactory

      Builds an item each time its menu renders: a menu destroys its items, which cannot be reused

      TMenuItemOptions
      TMenuItemRegistration

      An item declared at load, in options.extend.menuItems: in its menu from the first render

      TMenuLayoutConfig

      How a menu sits in its slot; without them, the slot decides (see configuration.layout)

      TMenuName
      TMenuOverride

      Menu classes options.override.menu can replace

      TMenuPosition
      TMenuRange
      TMenuSelect
      TMenuStyleConfig
      TMenuStyleLayoutConfig

      How the style menu sits in its slot: TMenuLayoutConfig, and whether its panel folds

      TMenuSubMenu
      TMenuToolConfig
      TMenuZone

      Where an item goes in a menu: its always-visible row, or the column behind its trigger

      TOverlayActionConfig
      TOverlayActionItemsConfig
      TPenActionConfig
      TPenActionItemsConfig
      TRegisteredMenuItem

      An item registered through IIMenuManager.addItem, added after the menu's own items

      TSelectionActionConfig
      TSelectionActionItemsConfig
      TSnapActionConfig
      TSnapActionItemsConfig
      TSubMenuItems
      UndoRedoMenuAction
      WriteTool
      ZoomMenuAction
      InteractiveInkSSRSmartGuide
      TSmartGuideHost
      Chart
      Table
      TChartConfig
      TModalConfig
      TModalField
      TModalFieldOption
      TModalType
      TTableCellConfig
      TTableColumn
      TTableConfig
      TTableRow
      IIMathCapabilitiesTable
      IIMathDiagnosticChecker
      IIMathFunctionEvaluator
      IIMathVariableCanvas
      IIMathVariableInputList
      IIMathVariablePerBlockCanvas
      Minimap
      SOURCE_TYPE_COLORS
      SOURCE_TYPE_LABELS
      TEvaluationResult
      TMathEvaluableFunction
      TMathSymbolCapabilities
      TMinimapOptions
      TSymbolDiagnostic
      TSymbolVariables
      TVariableInputItem
      buildButton
      buildCanvas
      buildCheckbox
      buildDiv
      buildFileInput
      buildH3
      buildLabel
      buildNumberInput
      buildOption
      buildOutput
      buildP
      buildRange
      buildSection
      buildSelect
      buildSpan
      buildStyle
      buildTable
      buildTBody
      buildTd
      buildTextInput
      buildTh
      buildTHead
      buildTr
      bumpSvgTransformVersion
      DOMFactory
      getSvgTransformVersion
      RafCoalescer
      TButtonElConfig
      TCheckboxElConfig
      TContainerElConfig
      TFileInputElConfig
      TInputElConfig
      TLabelElConfig
      TOutputElConfig
      TRangeElConfig
      TSelectElConfig
      TSelectElOption
      TTableBaseElConfig
      TTableCellElConfig
      extractJIIXGraphElements

      Split a JIIX export's elements into diagram Nodes/Edges and their Text labels

      findLabelInside

      Find the Text element whose bounding-box center lands inside a given box

      jiixToLLM

      Convert a JIIX export into a flat, prompt-ready JSON structure for LLM consumption

      jiixToMarkdown

      Convert a JIIX export into a Markdown string

      jiixToMermaid

      Convert a JIIX diagram export into a Mermaid flowchart

      jiixToPlantUML

      Convert a JIIX diagram export into a PlantUML diagram

      resolveEdgeNodes

      Resolve the two Nodes an Edge connects

      sanitizeGraphId

      Sanitize a JIIX element id into a valid Mermaid/PlantUML identifier

      TJIIXGraphElements
      TLLMContentBlock
      TLLMExport
      latexToUnicodeMath

      Convert a LaTeX math string into a flat UnicodeMath-compatible linear string

      applyInverseMatrixToPoint
      applyMatrixToPoint
      applyMatrixToPoints
      areValidCoordinates
      BoxOps
      Circle2d

      A circle, tested by its radius rather than by a polygon standing in for it.

      Its overlap is exact, where every other curved shape here settles for a sampled outline: a circle is the one curve with a cheap closed-form answer to "does this segment cross me", so it would be perverse to approximate it. Its box is exact too, and free — a circle's box is its radius.

      computeAngleAxeRadian
      computeAngleFromPointOnEllipse
      computeAngleRadian
      computeDistance
      computeDistanceBetweenPointAndSegment
      computeDistanceSquared
      computeEllipseArcPoints
      computeFinalOutlinePoints
      computeLineOutlinePoints
      computeLinksPointers
      computeMiddlePointer
      computeNearestPointOnSegment
      computePointOnEllipse
      computeQuadraticOutlinePoints
      computeRotatedPoint
      convertBoundingBoxMillimeterToPixel
      createPointsOnSegment
      Ellipse2d

      An ellipse, and so also a circle that a matrix has stretched out of shape.

      Two things are exact here and were approximations before: its box, and what it becomes under a transform. Its overlap test is not — see Ellipse2d.computeVertices.

      findIntersectBetweenSegmentAndCircle
      findIntersectionBetween2Segment
      Geometry2d

      A shape that can answer questions about itself.

      Geometry used to be data — a { bounds, vertices, edges, length } record each symbol type built for itself — and every type then had to carry its own overlaps, because a record cannot be asked anything. Six of the eight ended up as the same call, polygonOverlapsBox, and the two that did not (a stroke tests its pointers, a circle tests its radius) had to be special-cased elsewhere. Here the shape answers, so a symbol type only has to say what shape it is.

      The hole this closes. polygonOverlapsBox is "the shape's bounds sit inside the query, or some edge crosses some side of it". Both halves are about the boundary, so a query landing entirely within a shape without touching its outline was missed — a real miss for a filled shape, and correct for an unfilled one. Nothing in a plain record could tell those apart; TGeometry2dOptions.isFilled does.

      Derived values are computed once per instance. vertices, edges, bounds and length all fall out of each other, and a caller that reads bounds usually reads vertices next. Instances are themselves cached per symbol by SymbolGeometry, so "once per instance" is once per symbol version — there is no invalidation to get wrong, because a changed symbol is a different object and gets a different instance.

      getBoxConnectionPoint
      getClosestPoint
      getClosestPoints
      isIdentityMatrix
      isPointInsideBox
      isPointInsidePolygon
      isValidPoint
      MatrixTransform
      mergeSymbolTransform
      OBBOps
      PointSet2d

      An ordered run of sampled points, caught by the samples themselves.

      The shape a stroke has. Its path, its length and its bounds all come from the same run of points, so everything Geometry2d derives is already right here — only the overlap test differs, and it differs on purpose.

      Why the test is the points and not the path. Everything else in this module answers "does the query touch the shape I draw". A stroke answers a different question: "did the query catch a sample". The two part company when a query slips between two consecutive samples — a box crossing the segment without containing either end. Treating that as a hit is right for a drawn line and wrong for a stroke, whose selection has always meant the points it captured. Preserving that is not conservatism: a stroke samples sparsely where the pen moved fast, so an edge-crossing test would make a quick flick selectable from far more places than a slow one drawn identically.

      isClosed is false — the last sample does not join back to the first, and inventing that edge would add a phantom segment straight across the stroke, lengthening it and giving hit-testing something to catch that was never drawn. isFilled is false for the same reason a line has no inside.

      PointsGeometry2d

      A shape defined by a list of points it stores.

      What every straight-edged geometry here has in common: it holds its vertices rather than deriving them, so computeVertices is the list, and moving it is mapping the list. Only the flags and, for one of them, the overlap test differ — which is all a subclass is left to say.

      Curved shapes do not belong here. A circle is defined by a centre and a radius, and tessellating it into a point list is what it does to approximate itself for a generic test, not what it is.

      Polygon2d

      A closed run of vertices: the last joins back to the first.

      The shape of a polygon, and of anything a straight-edged outline approximates — a tessellated ellipse, the box a typeset symbol is measured at. Everything it answers comes from Geometry2d: a closed ring of straight edges is exactly the case the base class computes for, so there is nothing to override but the vertices and how they move.

      isFilled is a real question, not a default. It decides whether a point inside the outline, touching no edge, counts as a hit — and with it, whether a selection box lying wholly within the shape selects it. The test this replaces, OBBOps.polygonOverlapsBox, could not ask: it is "the shape's bounds sit inside the query, or an edge crosses a side of it", both of which are about the boundary, so a query strictly inside was always missed. That is right for an outline and wrong for a filled shape, and only the caller knows which it has.

      Polyline2d

      An open run of vertices: a drawn path that does not close.

      The shape of a line, a polyline, and of an arc once tessellated. It is a Polygon2d minus the closing edge, and that edge is the whole difference: without it the last vertex joins nothing, so the path has a length rather than a perimeter and no inside for anything to be in.

      Caught by a query its path crosses — the generic test Geometry2d provides, which is the right one for a line someone drew. A stroke looks the same and is not tested this way; see PointSet2d for why.

      resolvePointerDelta
      resolveStrokeOrigin
      scalaire
      TBox
      TEllipseAxes

      The two vectors the unit circle's axes are sent to.

      An ellipse is the image of the unit circle under a linear map, and this is that map: the point at angle t is center + (xx·cos t + xy·sin t, yx·cos t + yy·sin t). (xx, yx) is where (1, 0) lands and (xy, yy) where (0, 1) does.

      Stored this way rather than as radii and an orientation because it is what makes Ellipse2d.transform exact and cheap: carrying an ellipse through a matrix is composing the two maps, where radii and an angle would have to be recovered from the product — a singular value decomposition, per transform, to describe the same thing.

      TGeometry2dOptions

      What a geometry is, beyond the points it is made of.

      Two independent questions, and conflating them is what left a hole in the test this replaces.

      • isClosed — does the last vertex join back to the first? A polygon does, a polyline does not. It decides whether Geometry2d.edges emits a closing edge, and so what the perimeter is.
      • isFilled — does the inside belong to the shape? A rectangle with a fill does, the same rectangle drawn as an outline does not. It decides whether a point strictly inside, touching no edge, counts as a hit.

      Options on the base rather than separate subclasses: a filled and an unfilled polygon differ in one predicate, not in how either computes anything.

      TMatrixTransform
      TOBB
      TPoint
      TPointer
      TPointerImport
      TSegment
      TTimedPointerLike
      computeAverage
      computeEllipseRadiusAverage

      Compute approximate average radius of an ellipse

      computeTessellationCount

      Compute how many vertices a curve of the given length should tessellate into

      convertDegreeToRadian
      convertMillimeterToPixel
      convertPixelToMillimeter
      convertRadianToDegree
      isBetween
      isValidNumber
      normalizeAngle
      PX_TO_MM_RATIO

      Millimeters in one CSS pixel (96 per inch)

      roundTo

      Round a value to the nearest multiple of a step

      TESSELLATION_SEGMENT_LENGTH

      Target length of one segment when a curve is approximated by a polyline

      TWO_PI
      createUUID
      DeferredPromise
      isDeepEqual
      isDeepEqualIgnoring
      isVersionSuperiorOrEqual
      mergeDeep
      mergeExports
      overrideDeep
      TDraft
      TMergeable
      TPartialDeep
      TReadonlyDeep
      typedKeys

      Object.keys typed with the keys of T

      uniqueById
      DUPLICATE_OFFSET
      getMathDiagnosticMessage

      Get diagnostic message for a given diagnostic code

      HIT_TOLERANCE
      MathDiagnosticMessages
      SELECTION_PADDING
      DefaultLoggerConfiguration
      Logger
      LoggerCategory
      LoggerLevel
      LoggerManager
      TLoggerConfiguration
      <internal>