Skip to content

API > @blocksuite/blocks > IEdgelessElement

Interface: IEdgelessElement ​

Properties ​

batch ​

batch: null | string

Defined In ​

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


connectable ​

connectable: boolean

Defined In ​

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


gridBound ​

gridBound: Bound

Defined In ​

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


index ​

index: string

Defined In ​

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


rotate ​

rotate: number

Defined In ​

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


xywh ​

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

Defined In ​

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

Methods ​

boxSelect ​

boxSelect(bound): boolean

Parameters ​

ParameterType
boundBound

Returns ​

boolean

Defined In ​

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


containedByBounds ​

containedByBounds(bounds): boolean

Parameters ​

ParameterType
boundsBound

Returns ​

boolean

Defined In ​

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


getNearestPoint ​

getNearestPoint(point): IVec

Parameters ​

ParameterType
pointIVec

Returns ​

IVec

Defined In ​

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


getRelativePointLocation ​

getRelativePointLocation(point): PointLocation

Parameters ​

ParameterType
pointIVec

Returns ​

PointLocation

Defined In ​

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


hitTest ​

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

Parameters ​

ParameterType
xnumber
ynumber
optionsHitTestOptions
surface?SurfaceBlockComponent

Returns ​

boolean

Defined In ​

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


intersectWithLine ​

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

Parameters ​

ParameterType
startIVec
endIVec

Returns ​

null | PointLocation[]

Defined In ​

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