API > @blocksuite/blocks
Module: @blocksuite/blocks ​
Namespaces ​
Enumerations ​
- ConnectorEndpoint
- ConnectorEndpointStyle
- ConnectorMode
- DropFlags
- EdgelessBlocksFlavour
- LineWidth
- PhasorElementType
- ShapeStyle
- StrokeStyle
Classes ​
- AStarRunner
- AffineDocDraggingAreaWidget
- AffineDocRemoteSelectionWidget
- AffineDragHandleWidget
- AffineFormatBarWidget
- AffineImageToolbarWidget
- AffineLinkedPageWidget
- AffineModalWidget
- AffineSlashMenuWidget
- AffineSurfaceRefToolbar
- AttachmentBlockComponent
- AttachmentBlockModel
- AttachmentService
- BaseService
- BlockHub
- BlockSelection
- BookmarkBlockComponent
- Bound
- BrushElement
- CodeBlockComponent
- ConnectorElement
- DataViewBlockComponent
- DataViewBlockModel
- DatabaseBlockComponent
- DatabaseBlockModel
- DividerBlockComponent
- DocPageBlockComponent
- DragIndicator
- EdgelessPageBlockComponent
- EdgelessRemoteSelectionWidget
- FileDropManager
- FrameBlockComponent
- FrameBlockModel
- GroupElement
- HoverController
- ImageBlockComponent
- ImageBlockModel
- ImageBlockPageComponent
- ImageService
- LangList
- ListBlockComponent
- MenuDivider
- NoteBlockComponent
- NoteBlockModel
- Overlay
- PageBlockModel
- ParagraphBlockComponent
- Point
- PointLocation
- Rect
- Renderer
- RoughCanvas
- ShapeElement
- SurfaceBlockComponent
- SurfaceRefBlockComponent
- TOCNotesPanel
- TestUtils
- TextElement
- ThemeObserver
- Tooltip
- Vec
Interfaces ​
- BlockTransformContext
- Column
- Controller
- EdgelessSelectionSlots
- EditingState
- HitTestOptions
- IBound
- IBrush
- IConnector
- IEdgelessElement
- IModelCoord
- IPoint
- IShape
- IText
- Options
- PageViewport
- SurfaceViewport
Type Aliases ​
- AbstractEditor
- Alignable
- AttachmentBlockProps
- BlockComponentElement
- BlockSchemas
- BookmarkBlockModel
- BookmarkProps
- BrushTool
- Cell
- CellFocus
- CodeBlockModel
- ColumnDataUpdater
- ColumnType
- ColumnTypeIcon
- ColumnUpdater
- CommonSlots
- ComputedValue
- Connectable
- Connection
- ConnectorTool
- CssVariableName
- CssVariablesMap
- DataProperty
- DataView
- DataViewSelection
- DataViewSelectionState
- DatabaseBlockProps
- DefaultTool
- DividerBlockModel
- DocPageBlockWidgetName
- EdgelessElement
- EdgelessPageBlockWidgetName
- EdgelessTool
- EmbedBlockDoubleClickData
- Erasable
- EraserTool
- ExtendedModel
- Flavour
- FrameNavigatorTool
- FrameTool
- GetDataViewSelection
- GetPageInfo
- HighlightOptionsGetter
- IElementCreateProps
- IElementDefaultProps
- IElementUpdateProps
- IPhasorElementLocalRecord
- IPhasorElementType
- IVec
- ImageBlockProps
- InsertToPosition
- KanbanCardSelection
- KanbanCardSelectionCard
- KanbanCellSelection
- KanbanGroupSelection
- KanbanViewSelection
- KanbanViewSelectionWithType
- ListBlockModel
- ListType
- MultiSelection
- NoteChildrenFlavour
- NoteTool
- PageBlockComponent
- PanTool
- ParagraphBlockModel
- ParagraphType
- PhasorElement
- PhasorElementWithText
- PhasorTypeToElement
- Selectable
- SelectionPosition
- SerializedBlock
- SerializedXYWH
- ShapeTool
- ShapeToolState
- ShapeType
- SurfaceBlockModel
- SurfaceBlockProps
- SurfaceRefBlockModel
- SurfaceRefProps
- TableViewSelection
- TextTool
- TopLevelBlockModel
- XYWH
Variables ​
- AffineSchemas
- AttachmentBlockSchema
- BLOCKHUB_FILE_ITEMS
- BLOCKHUB_LIST_ITEMS
- BLOCKHUB_TEXT_ITEMS
- BLOCK_CHILDREN_CONTAINER_PADDING_LEFT
- BLOCK_ID_ATTR
- BLOCK_SERVICE_LOADING_ATTR
- BookmarkBlockSchema
- COLOR_VARIABLES
- CodeBlockSchema
- DEFAULT_FRONT_END_POINT_STYLE
- DEFAULT_NOTE_COLOR
- DEFAULT_REAR_END_POINT_STYLE
- DEFAULT_ROUGHNESS
- DEFAULT_SHAPE_FILL_COLOR
- DEFAULT_SHAPE_STROKE_COLOR
- DataViewBlockSchema
- DatabaseBlockSchema
- DividerBlockSchema
- EDGELESS_BLOCK_CHILD_BORDER_WIDTH
- EDGELESS_BLOCK_CHILD_PADDING
- EdgelessPreset
- ElementCtors
- ElementDefaultProps
- FONT_FAMILY_VARIABLES
- FrameBlockSchema
- GRID_GAP_MAX
- GRID_GAP_MIN
- ImageBlockSchema
- ListBlockSchema
- NOTE_COLORS
- NOTE_WIDTH
- NoteBlockSchema
- PAGE_BLOCK_CHILD_PADDING
- PAGE_HEADER_HEIGHT
- PageBlockSchema
- PagePreset
- ParagraphBlockSchema
- REF_LABEL_ICON
- SCROLL_THRESHOLD
- SHAPE_TEXT_PADDING
- SIZE_VARIABLES
- ShapeMethodsMap
- SurfaceBlockSchema
- SurfaceRefBlockSchema
- VARIABLES
- ZOOM_MAX
- ZOOM_MIN
- ZOOM_STEP
- __unstableSchemas
- defaultAttachmentProps
- defaultBookmarkProps
Functions ​
- almostEqual
- asyncFocusRichText
- asyncGetBlockElementByModel
- asyncGetRichTextByModel
- asyncGetVirgoByModel
- asyncSetVRange
- buildPath
- clamp
- createPage
- deserializeXYWH
- downloadBlob
- extractCssVariables
- findClosestBlockElement
- focusBlockByModel
- focusRichText
- focusTitle
- generateElementId
- generateKeyBetween
- generateNKeysBetween
- getAllowSelectedBlocks
- getArrowPoints
- getBlockElementByModel
- getBlockElementByPath
- getBlockElementsExcludeSubtrees
- getBookmarkInitialProps
- getBoundFromPoints
- getBoundsWithRotation
- getClosestBlockElementByElement
- getClosestBlockElementByPoint
- getCombinedFormatInBlockSelections
- getCombinedFormatInTextSelection
- getCommonBound
- getCurrentNativeRange
- getDocPage
- getDocPageByElement
- getDropRectByPoint
- getEdgelessCanvasTextEditor
- getEdgelessPage
- getEditorContainer
- getFontString
- getHoveringNote
- getLineHeight
- getLineWidth
- getLitRoot
- getModelByBlockElement
- getModelByElement
- getNextBlock
- getPointFromBoundsWithRotation
- getPointsFromBoundsWithRotation
- getPreviousBlock
- getQuadBoundsWithRotation
- getRectByBlockElement
- getRichTextByModel
- getSelectedContentBlockElements
- getSelectedContentModels
- getServiceOrRegister
- getStroke
- getSvgPathFromStroke
- getTableContainer
- getThemeMode
- getViewportElement
- getViewportFromSession
- getVirgoByModel
- handleNativeRangeAtPoint
- hasClassNameInList
- hasNativeSelection
- inflateBound
- insertPositionToIndex
- intersects
- isCssVariable
- isDatabaseInput
- isEdgelessPage
- isInsideEdgelessTextEditor
- isInsidePageTitle
- isOverlap
- isPageMode
- isPhasorElementType
- isPointIn
- lineIntersects
- linePolygonIntersects
- mergeToCodeModel
- normalizeDegAngle
- normalizeShapeBound
- normalizeTextBound
- normalizeWheelDeltaY
- onModelElementUpdated
- onModelTextUpdated
- openFileOrFiles
- polyLineNearestPoint
- polygonGetPointTangent
- polygonNearestPoint
- polygonPointDistance
- readImageSize
- registerTOCComponents
- resetNativeSelection
- rotatePoints
- saveViewportToSession
- serializeXYWH
- setXYWH
- showImportModal
- sign
- toDegree
- toRadian
- transformModel
- transformPointsToNewBound
- updateBlockElementType
- uploadImageFromLocal
- whenHover
- withTempBlobData