Skip to content

BlockSuite API Documentation / @blocksuite/blocks / IEdgelessElement

Interface: IEdgelessElement ​

Contents ​

Properties ​

batch ​

batch: null | string

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:34


connectable ​

connectable: boolean

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:32


elementBound ​

elementBound: Bound

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:35


index ​

index: string

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:33


rotate ​

rotate: number

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:31


xywh ​

xywh: `[${number},${number},${number},${number}]`

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:30

Methods ​

boxSelect() ​

boxSelect(bound): boolean

Parameters ​

• bound: Bound

Returns ​

boolean

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:46


containedByBounds() ​

containedByBounds(bounds): boolean

Parameters ​

• bounds: Bound

Returns ​

boolean

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:36


getNearestPoint() ​

getNearestPoint(point): IVec

Parameters ​

• point: IVec

Returns ​

IVec

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:37


getRelativePointLocation() ​

getRelativePointLocation(point): PointLocation

Parameters ​

• point: IVec

Returns ​

PointLocation

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:39


hitTest() ​

hitTest(x, y, options, surface?): boolean

Parameters ​

• x: number

• y: number

• options: HitTestOptions

• surface?: SurfaceBlockComponent

Returns ​

boolean

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:40


intersectWithLine() ​

intersectWithLine(start, end): null | PointLocation[]

Parameters ​

• start: IVec

• end: IVec

Returns ​

null | PointLocation[]

Source ​

packages/blocks/src/surface-block/elements/edgeless-element.ts:38


Generated using typedoc-plugin-markdown and TypeDoc