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 ​
Parameter | Type |
---|---|
bound | Bound |
Returns ​
boolean
Defined In ​
packages/blocks/src/surface-block/elements/edgeless-element.ts:47
containedByBounds ​
containedByBounds(
bounds
):boolean
Parameters ​
Parameter | Type |
---|---|
bounds | Bound |
Returns ​
boolean
Defined In ​
packages/blocks/src/surface-block/elements/edgeless-element.ts:37
getNearestPoint ​
getNearestPoint(
point
):IVec
Parameters ​
Parameter | Type |
---|---|
point | IVec |
Returns ​
Defined In ​
packages/blocks/src/surface-block/elements/edgeless-element.ts:38
getRelativePointLocation ​
getRelativePointLocation(
point
):PointLocation
Parameters ​
Parameter | Type |
---|---|
point | IVec |
Returns ​
Defined In ​
packages/blocks/src/surface-block/elements/edgeless-element.ts:40
hitTest ​
hitTest(
x
,y
,options
,surface
?):boolean
Parameters ​
Parameter | Type |
---|---|
x | number |
y | number |
options | HitTestOptions |
surface ? | SurfaceBlockComponent |
Returns ​
boolean
Defined In ​
packages/blocks/src/surface-block/elements/edgeless-element.ts:41
intersectWithLine ​
intersectWithLine(
start
,end
):null
|PointLocation
[]
Parameters ​
Parameter | Type |
---|---|
start | IVec |
end | IVec |
Returns ​
null
| PointLocation
[]
Defined In ​
packages/blocks/src/surface-block/elements/edgeless-element.ts:39