@tldraw/editor
Classes
- ArrowShapeUtil
- BaseBoxShapeTool
- BaseBoxShapeUtil
- BookmarkShapeUtil
- DrawShapeUtil
- Editor
- EmbedShapeUtil
- ErrorBoundary
- FrameShapeUtil
- GeoShapeUtil
- GroupShapeUtil
- HighlightShapeUtil
- ImageShapeUtil
- LineShapeUtil
- NoteShapeUtil
- PlopManager
- ShapeUtil
- StateNode
- TextShapeUtil
- VideoShapeUtil
- WeakMapCache
Functions
- blobAsString
- containBoxSize
- correctSpacesToNbsp
- createSessionStateSnapshotSignal
- createTLStore
- dataTransferItemAsString
- dataUrlToFile
- defaultEmptyAs
- defineShape
- downloadDataURLAsFile
- ErrorScreen
- fileToBase64
- getEmbedInfo
- getEmbedInfoUnsafely
- getFileMetaData
- getFreshUserPreferences
- getImageSizeFromSrc
- getIncrementedName
- getMediaAssetFromFile
- getResizedImageDataUrl
- getRotatedBoxShadow
- getSplineForLineShape
- getSvgAsDataUrl
- getSvgAsDataUrlSync
- getSvgAsImage
- getSvgAsString
- getSvgPathFromStroke
- getSvgPathFromStrokePoints
- getTextBoundingBox
- getUserPreferences
- getVideoSizeFromSrc
- hardReset
- hardResetEditor
- HTMLContainer
- isAnimated
- isGeoShape
- isGIF
- isNoteShape
- isSerializable
- isValidUrl
- LoadingScreen
- loadSessionStateSnapshotIntoStore
- loopToHtmlElement
- matchEmbedUrl
- matchUrl
- normalizeWheel
- openWindow
- preventDefault
- refreshPage
- releasePointerCapture
- setPointerCapture
- setPropsForNextShape
- setRuntimeOverrides
- setUserPreferences
- snapToGrid
- SVGContainer
- uniqueId
- useContainer
- usePrefersReducedMotion
- useQuickReactor
- useReactor
- useTLStore
Variables
- ACCEPTED_ASSET_TYPE
- ACCEPTED_IMG_TYPE
- ACCEPTED_VID_TYPE
- ARROW_LABEL_FONT_SIZES
- ArrowShape
- BookmarkShape
- Canvas
- checkFlag
- coreShapes
- defaultEditorAssetUrls
- defaultShapes
- defaultTools
- DrawShape
- EmbedShape
- EVENT_NAME_MAP
- FONT_ALIGNMENT
- FONT_FAMILIES
- FONT_SIZES
- FrameShape
- GeoShape
- getValidHttpURLList
- GRID_STEPS
- GroupShape
- HighlightShape
- ICON_SIZES
- ImageShape
- INDENT
- isImage
- isSvgText
- isValidHttpURL
- LABEL_FONT_SIZES
- LineShape
- NoteShape
- runtime
- STYLES
- TAB_ID
- TEXT_PROPS
- TextShape
- TldrawEditor
- truncateStringWithEllipsis
- useEditor
- VideoShape
Interfaces
- TLBaseEventInfo
- TLContent
- TLEditorComponents
- TLEditorOptions
- TLErrorBoundaryProps
- TLEventHandlers
- TLEventMap
- TLSessionStateSnapshot
- TLShapeUtilConstructor
- TLStateNodeConstructor
- TLUserPreferences
TypeAliases
- HTMLContainerProps
- RequiredKeys
- SVGContainerProps
- TLAnimationOptions
- TLBaseBoxShape
- TLCancelEvent
- TLCancelEventInfo
- TLClickEvent
- TLClickEventInfo
- TLCLickEventName
- TLCommand
- TLCommandHandler
- TLCompleteEvent
- TLCompleteEventInfo
- TLCopyType
- TldrawEditorProps
- TLEditorAssetUrls
- TLEmbedResult
- TLEnterEventHandler
- TLEventInfo
- TLEventMapHandler
- TLEventName
- TLExitEventHandler
- TLExportType
- TLExternalContent
- TLHistoryEntry
- TLHistoryMark
- TLInterruptEvent
- TLInterruptEventInfo
- TLKeyboardEvent
- TLKeyboardEventInfo
- TLKeyboardEventName
- TLOnBeforeCreateHandler
- TLOnBeforeUpdateHandler
- TLOnChildrenChangeHandler
- TLOnClickHandler
- TLOnDoubleClickHandleHandler
- TLOnDoubleClickHandler
- TLOnDragHandler
- TLOnEditEndHandler
- TLOnHandleChangeHandler
- TLOnResizeEndHandler
- TLOnResizeHandler
- TLOnResizeStartHandler
- TLOnRotateEndHandler
- TLOnRotateHandler
- TLOnRotateStartHandler
- TLOnTranslateEndHandler
- TLOnTranslateHandler
- TLOnTranslateStartHandler
- TLPinchEvent
- TLPinchEventInfo
- TLPinchEventName
- TLPointerEvent
- TLPointerEventInfo
- TLPointerEventName
- TLPointerEventTarget
- TLResizeHandle
- TLResizeInfo
- TLResizeMode
- TLSelectionHandle
- TLShapeInfo
- TLShapeUtilFlag
- TLStoreEventInfo
- TLStoreOptions
- TLStoreWithStatus
- TLTickEvent
- TLWheelEvent
- TLWheelEventInfo
- UiEvent
- UiEventType