BlockSuite API Documentation / @blocksuite/affine-model / LocalConnectorElementModel
Class: LocalConnectorElementModel
Extends
GfxLocalElementModel
Constructors
new LocalConnectorElementModel()
new LocalConnectorElementModel():
LocalConnectorElementModel
Returns
Inherited from
GfxLocalElementModel.constructor
Properties
_local
protected
_local:Map
<string
|symbol
,unknown
>
Inherited from
GfxLocalElementModel._local
Defined in
packages/framework/block-std/dist/gfx/model/surface/element-model.d.ts:139
absolutePath
absolutePath:
PointLocation
[] =[]
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:18
frontEndpointStyle
frontEndpointStyle:
PointStyle
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:20
id
id:
string
=''
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:22
mode
mode:
ConnectorMode
=ConnectorMode.Orthogonal
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:24
opacity
opacity:
number
Inherited from
GfxLocalElementModel.opacity
Defined in
packages/framework/block-std/dist/gfx/model/surface/element-model.d.ts:140
rearEndpointStyle
rearEndpointStyle:
PointStyle
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:26
rotate
rotate:
number
=0
Overrides
GfxLocalElementModel.rotate
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:28
rough?
optional
rough:boolean
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:30
roughness
roughness:
number
=DEFAULT_ROUGHNESS
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:32
seed
seed:
number
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:34
source
source:
Connection
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:36
stroke
stroke:
Color
='#000000'
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:40
strokeStyle
strokeStyle:
StrokeStyle
=StrokeStyle.Solid
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:42
strokeWidth
strokeWidth:
number
=4
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:44
target
target:
Connection
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:46
updatingPath
updatingPath:
boolean
=false
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:50
xywh
xywh: `[${number},${number},${number},${number}]` =
'[0,0,0,0]'
Overrides
GfxLocalElementModel.xywh
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:52
Accessors
deserializedXYWH
Get Signature
get deserializedXYWH():
XYWH
Returns
XYWH
Inherited from
GfxLocalElementModel.deserializedXYWH
Defined in
packages/framework/block-std/dist/gfx/model/surface/element-model.d.ts:143
h
Get Signature
get h():
number
Returns
number
Inherited from
GfxLocalElementModel.h
Defined in
packages/framework/block-std/dist/gfx/model/surface/element-model.d.ts:144
path
Get Signature
get path():
PointLocation
[]
Returns
PointLocation
[]
Set Signature
set path(
value
):void
Parameters
value
PointLocation
[]
Returns
void
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:54
type
Get Signature
get type():
string
Returns
string
Defined in
packages/affine/model/src/elements/connector/local-connector.ts:65
w
Get Signature
get w():
number
Returns
number
Inherited from
GfxLocalElementModel.w
Defined in
packages/framework/block-std/dist/gfx/model/surface/element-model.d.ts:145
x
Get Signature
get x():
number
Returns
number
Inherited from
GfxLocalElementModel.x
Defined in
packages/framework/block-std/dist/gfx/model/surface/element-model.d.ts:146
y
Get Signature
get y():
number
Returns
number
Inherited from
GfxLocalElementModel.y
Defined in
packages/framework/block-std/dist/gfx/model/surface/element-model.d.ts:147