Skip to content

BlockSuite API Documentation / @blocksuite/blocks / EdgelessBlockModel

Class: EdgelessBlockModel<Props>

Extends

Extended by

Type Parameters

Props extends GfxCompatibleProps = GfxCompatibleProps

Implements

  • GfxElementGeometry
  • IBound

Constructors

new EdgelessBlockModel()

new EdgelessBlockModel<Props>(): EdgelessBlockModel<Props>

Returns

EdgelessBlockModel<Props>

Inherited from

BlockModel<Props>.constructor

Defined in

packages/framework/store/dist/schema/base.d.ts:134

Properties

[modelLabel]

[modelLabel]: Props

Inherited from

BlockModel.[modelLabel]

Defined in

packages/framework/store/dist/schema/base.d.ts:120


childMap

childMap: ReadonlySignal<Map<string, number>>

Inherited from

BlockModel.childMap

Defined in

packages/framework/store/dist/schema/base.d.ts:113


connectable

connectable: boolean

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:12


created

created: Slot<void>

Inherited from

BlockModel.created

Defined in

packages/framework/store/dist/schema/base.d.ts:114


deleted

deleted: Slot<void>

Inherited from

BlockModel.deleted

Defined in

packages/framework/store/dist/schema/base.d.ts:115


flavour

flavour: string

Inherited from

BlockModel.flavour

Defined in

packages/framework/store/dist/schema/base.d.ts:116


id

id: string

Inherited from

BlockModel.id

Defined in

packages/framework/store/dist/schema/base.d.ts:117


index

index: string

Inherited from

BlockModel.index

Defined in

packages/framework/block-std/dist/gfx/surface/element-model.d.ts:14


index$

index$: Signal<Props["index"]>

Inherited from

BlockModel.index$


isEmpty

isEmpty: ReadonlySignal<boolean>

Inherited from

BlockModel.isEmpty

Defined in

packages/framework/store/dist/schema/base.d.ts:118


keys

keys: string[]

Inherited from

BlockModel.keys

Defined in

packages/framework/store/dist/schema/base.d.ts:119


page

page: Doc

Deprecated

use doc instead

Inherited from

BlockModel.page

Defined in

packages/framework/store/dist/schema/base.d.ts:109


pop()

pop: (prop) => void

Parameters

prop: keyof Props & string

Returns

void

Inherited from

BlockModel.pop

Defined in

packages/framework/store/dist/schema/base.d.ts:121


propsUpdated

propsUpdated: Slot<object>

Type declaration

key

key: string

Inherited from

BlockModel.propsUpdated

Defined in

packages/framework/store/dist/schema/base.d.ts:122


role

role: "root" | "hub" | "content"

Inherited from

BlockModel.role

Defined in

packages/framework/store/dist/schema/base.d.ts:125


rotate

rotate: number

Implementation of

IBound.rotate

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:13


stash()

stash: (prop) => void

Parameters

prop: keyof Props & string

Returns

void

Inherited from

BlockModel.stash

Defined in

packages/framework/store/dist/schema/base.d.ts:126


text?

optional text: Text

Inherited from

BlockModel.text

Defined in

packages/framework/store/dist/schema/base.d.ts:127


version

version: number

Inherited from

BlockModel.version

Defined in

packages/framework/store/dist/schema/base.d.ts:128


xywh

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

Inherited from

BlockModel.xywh

Defined in

packages/framework/block-std/dist/gfx/surface/element-model.d.ts:13


xywh$

xywh$: Signal<Props["xywh"]>

Inherited from

BlockModel.xywh$


yBlock

yBlock: YBlock

Inherited from

BlockModel.yBlock

Defined in

packages/framework/store/dist/schema/base.d.ts:129

Accessors

children

get children(): BlockModel<object, SignaledProps<object>>[]

Returns

BlockModel<object, SignaledProps<object>>[]

Inherited from

BlockModel.children

Defined in

packages/framework/store/dist/schema/base.d.ts:130


container

get container(): null | GfxModel & GfxContainerElement

Returns

null | GfxModel & GfxContainerElement

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:14


deserializedXYWH

get deserializedXYWH(): XYWH

Returns

XYWH

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:15


doc

get doc(): Doc

set doc(doc): void

Parameters

doc: Doc

Returns

Doc

Inherited from

BlockModel.doc

Defined in

packages/framework/store/dist/schema/base.d.ts:131


elementBound

get elementBound(): Bound

Returns

Bound

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:16


externalBound

get externalBound(): null | Bound

Returns

null | Bound

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:17


externalXYWH

get externalXYWH(): undefined | `[${number},${number},${number},${number}]`

set externalXYWH(xywh): void

Parameters

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

Returns

undefined | `[${number},${number},${number},${number}]`

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:18


group

get group(): null | SurfaceGroupLikeModel<BaseElementProps>

Returns

null | SurfaceGroupLikeModel<BaseElementProps>

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:20


groups

get groups(): SurfaceGroupLikeModel<BaseElementProps>[]

Returns

SurfaceGroupLikeModel<BaseElementProps>[]

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:21


h

get h(): number

Returns

number

Implementation of

IBound.h

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:22


parent

get parent(): null | BlockModel<object, SignaledProps<object>>

Returns

null | BlockModel<object, SignaledProps<object>>

Inherited from

BlockModel.parent

Defined in

packages/framework/store/dist/schema/base.d.ts:133


surface

get surface(): null | SurfaceBlockModel

Returns

null | SurfaceBlockModel

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:23


w

get w(): number

Returns

number

Implementation of

IBound.w

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:24


x

get x(): number

Returns

number

Implementation of

IBound.x

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:25


y

get y(): number

Returns

number

Implementation of

IBound.y

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:26

Methods

[dispose]()

[dispose](): void

Returns

void

Inherited from

BlockModel.[dispose]

Defined in

packages/framework/store/dist/schema/base.d.ts:138


containsBound()

containsBound(bounds): boolean

Parameters

bounds: Bound

Returns

boolean

Implementation of

GfxElementGeometry.containsBound

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:27


dispose()

dispose(): void

Returns

void

Inherited from

BlockModel.dispose

Defined in

packages/framework/store/dist/schema/base.d.ts:135


firstChild()

firstChild(): null | BlockModel<object, SignaledProps<object>>

Returns

null | BlockModel<object, SignaledProps<object>>

Inherited from

BlockModel.firstChild

Defined in

packages/framework/store/dist/schema/base.d.ts:136


getLineIntersections()

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

Parameters

start: IVec

end: IVec

Returns

null | PointLocation[]

Implementation of

GfxElementGeometry.getLineIntersections

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:28


getNearestPoint()

getNearestPoint(point): IVec

Parameters

point: IVec

Returns

IVec

Implementation of

GfxElementGeometry.getNearestPoint

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:29


getRelativePointLocation()

getRelativePointLocation(relativePoint): PointLocation

Parameters

relativePoint: IVec

Returns

PointLocation

Implementation of

GfxElementGeometry.getRelativePointLocation

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:30


includesPoint()

includesPoint(x, y, _, __): boolean

Parameters

x: number

y: number

_: PointTestOptions

__: EditorHost

Returns

boolean

Implementation of

GfxElementGeometry.includesPoint

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:31


intersectsBound()

intersectsBound(bound): boolean

Parameters

bound: Bound

Returns

boolean

Implementation of

GfxElementGeometry.intersectsBound

Defined in

packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:32


lastChild()

lastChild(): null | BlockModel<object, SignaledProps<object>>

Returns

null | BlockModel<object, SignaledProps<object>>

Inherited from

BlockModel.lastChild

Defined in

packages/framework/store/dist/schema/base.d.ts:137