@univerjs/engine-render v0.5.4


Class: Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:32

Extends

Extended by

Type Parameters

Type ParameterDefault type
T extends IRectPropsIRectProps

Constructors

new Rect()

new Rect<T>(key?, props?): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:43

Parameters

ParameterType
key?string
props?T

Returns

Rect<T>

Overrides

Shape.constructor

Properties

PropertyModifierTypeDefault valueOverridesInherited fromDefined in
_dirtyprotectedbooleantrue-Shape._dirtypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:88
_disposedprotectedbooleanfalse-Shape._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
_forceDirtyprotectedbooleantrue-Shape._forceDirtypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:89
_oKeyprotectedstringundefined-Shape._oKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:86
groupKey?publicstringundefined-Shape.groupKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:59
isInGrouppublicbooleanfalse-Shape.isInGrouppackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:60
objectTypepublicObjectTypeObjectType.RECTShape.objectType-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:33
onDblclick$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onDblclick$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:74
onDispose$publicEventSubject<BaseObject>undefined-Shape.onDispose$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:84
onDragEnter$publicEventSubject< | IMouseEvent | IDragEvent>undefined-Shape.onDragEnter$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:80
onDragLeave$publicEventSubject< | IMouseEvent | IDragEvent>undefined-Shape.onDragLeave$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:78
onDragOver$publicEventSubject< | IMouseEvent | IDragEvent>undefined-Shape.onDragOver$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:79
onDrop$publicEventSubject< | IMouseEvent | IDragEvent>undefined-Shape.onDrop$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:81
onIsAddedToParent$publicEventSubject<any>undefined-Shape.onIsAddedToParent$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:83
onMouseWheel$publicEventSubject<IWheelEvent>undefined-Shape.onMouseWheel$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:76
onPointerDown$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onPointerDown$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:66
onPointerEnter$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onPointerEnter$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:72
onPointerLeave$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onPointerLeave$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:71
onPointerMove$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onPointerMove$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:67
onPointerOut$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onPointerOut$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:69
onPointerOver$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onPointerOver$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:70
onPointerUp$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onPointerUp$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:68
onTransformChange$publicEventSubject<ITransformChangeState>undefined-Shape.onTransformChange$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:64
onTripleClick$publicEventSubject< | IMouseEvent | IPointerEvent>undefined-Shape.onTripleClick$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:75

Accessors

ancestorGroup

Get Signature

get ancestorGroup(): Nullable<BaseObject>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:251

Returns

Nullable<BaseObject>

Inherited from

Shape.ancestorGroup


ancestorLeft

Get Signature

get ancestorLeft(): any

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:235

Returns

any

Inherited from

Shape.ancestorLeft


ancestorScaleX

Get Signature

get ancestorScaleX(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:225

Returns

number

Inherited from

Shape.ancestorScaleX


ancestorScaleY

Get Signature

get ancestorScaleY(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:230

Returns

number

Inherited from

Shape.ancestorScaleY


ancestorTop

Get Signature

get ancestorTop(): any

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:239

Returns

any

Inherited from

Shape.ancestorTop


ancestorTransform

Get Signature

get ancestorTransform(): any

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:243

Returns

any

Inherited from

Shape.ancestorTransform


angle

Get Signature

get angle(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:213

Returns

number

Set Signature

set angle(angle): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:363

Parameters
ParameterType
anglenumber
Returns

void

Inherited from

Shape.angle


classType

Get Signature

get classType(): RENDER_CLASS_TYPE

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:189

Returns

RENDER_CLASS_TYPE

Inherited from

Shape.classType


cursor

Get Signature

get cursor(): CURSOR_TYPE

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:303

Returns

CURSOR_TYPE

Set Signature

set cursor(val): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:331

Parameters
ParameterType
valCURSOR_TYPE
Returns

void

Inherited from

Shape.cursor


debounceParentDirty

Get Signature

get debounceParentDirty(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:299

Returns

boolean

Set Signature

set debounceParentDirty(state): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:327

Parameters
ParameterType
stateboolean
Returns

void

Inherited from

Shape.debounceParentDirty


evented

Get Signature

get evented(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:291

Returns

boolean

Set Signature

set evented(state): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:323

Parameters
ParameterType
stateboolean
Returns

void

Inherited from

Shape.evented


fill

Get Signature

get fill(): Nullable<string | CanvasGradient>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:176

Returns

Nullable<string | CanvasGradient>

Inherited from

Shape.fill


fillAfterStrokeEnabled

Get Signature

get fillAfterStrokeEnabled(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:180

Returns

boolean

Inherited from

Shape.fillAfterStrokeEnabled


fillRule

Get Signature

get fillRule(): string

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:156

Returns

string

Inherited from

Shape.fillRule


flipX

Get Signature

get flipX(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:271

Returns

boolean

Set Signature

set flipX(flipX): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:383

Parameters
ParameterType
flipXboolean
Returns

void

Inherited from

Shape.flipX


flipY

Get Signature

get flipY(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:275

Returns

boolean

Set Signature

set flipY(flipY): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:379

Parameters
ParameterType
flipYboolean
Returns

void

Inherited from

Shape.flipY


globalCompositeOperation

Get Signature

get globalCompositeOperation(): string

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:160

Returns

string

Inherited from

Shape.globalCompositeOperation


height

Get Signature

get height(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:205

Returns

number

Set Signature

set height(num): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:354

Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Shape.height


heightOrigin

Get Signature

get heightOrigin(): string | number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:185

Returns

string | number

Inherited from

Shape.heightOrigin


hitStrokeWidth

Get Signature

get hitStrokeWidth(): string | number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:184

Returns

string | number

Inherited from

Shape.hitStrokeWidth


hoverCursor

Get Signature

get hoverCursor(): Nullable<string>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:148

Returns

Nullable<string>

Inherited from

Shape.hoverCursor


layer

Get Signature

get layer(): Nullable<Layer>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:307

Returns

Nullable<Layer>

Set Signature

set layer(layer): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:335

Parameters
ParameterType
layerLayer
Returns

void

Inherited from

Shape.layer


left

Get Signature

get left(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:197

Returns

number

Set Signature

set left(num): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:344

Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Shape.left


leftOrigin

Get Signature

get leftOrigin(): string | number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:177

Returns

string | number

Inherited from

Shape.leftOrigin


maxZIndex

Get Signature

get maxZIndex(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:399

Returns

number

Inherited from

Shape.maxZIndex


moveCursor

Get Signature

get moveCursor(): null | string

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:152

Returns

null | string

Inherited from

Shape.moveCursor


oKey

Get Signature

get oKey(): string

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:283

Returns

string

Inherited from

Shape.oKey


paintFirst

Get Signature

get paintFirst(): PaintFirst

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:164

Returns

PaintFirst

Inherited from

Shape.paintFirst


parent

Get Signature

get parent(): any

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:279

Returns

any

Set Signature

set parent(o): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:319

Parameters
ParameterType
oany
Returns

void

Inherited from

Shape.parent


printable

Get Signature

get printable(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:169

Returns

boolean

Inherited from

Shape.printable


radius

Get Signature

get radius(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:64

Returns

number


scaleX

Get Signature

get scaleX(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:217

Returns

number

Set Signature

set scaleX(scaleX): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:367

Parameters
ParameterType
scaleXnumber
Returns

void

Inherited from

Shape.scaleX


scaleY

Get Signature

get scaleY(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:221

Returns

number

Set Signature

set scaleY(scaleY): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:371

Parameters
ParameterType
scaleYnumber
Returns

void

Inherited from

Shape.scaleY


shadowBlur

Get Signature

get shadowBlur(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:200

Returns

number

Inherited from

Shape.shadowBlur


shadowColor

Get Signature

get shadowColor(): Nullable<string>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:196

Returns

Nullable<string>

Inherited from

Shape.shadowColor


shadowEnabled

Get Signature

get shadowEnabled(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:220

Returns

boolean

Inherited from

Shape.shadowEnabled


shadowForStrokeEnabled

Get Signature

get shadowForStrokeEnabled(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:224

Returns

boolean

Inherited from

Shape.shadowForStrokeEnabled


shadowOffset

Get Signature

get shadowOffset(): Nullable<Vector2>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:204

Returns

Nullable<Vector2>

Inherited from

Shape.shadowOffset


shadowOffsetX

Get Signature

get shadowOffsetX(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:208

Returns

number

Inherited from

Shape.shadowOffsetX


shadowOffsetY

Get Signature

get shadowOffsetY(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:212

Returns

number

Inherited from

Shape.shadowOffsetY


shadowOpacity

Get Signature

get shadowOpacity(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:216

Returns

number

Inherited from

Shape.shadowOpacity


skewX

Get Signature

get skewX(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:263

Returns

number

Set Signature

set skewX(skewX): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:375

Parameters
ParameterType
skewXnumber
Returns

void

Inherited from

Shape.skewX


skewY

Get Signature

get skewY(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:267

Returns

number

Set Signature

set skewY(skewY): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:387

Parameters
ParameterType
skewYnumber
Returns

void

Inherited from

Shape.skewY


stroke

Get Signature

get stroke(): Nullable<string | CanvasGradient>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:168

Returns

Nullable<string | CanvasGradient>

Inherited from

Shape.stroke


strokeDashArray

Get Signature

get strokeDashArray(): Nullable<number[]>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:228

Returns

Nullable<number[]>

Inherited from

Shape.strokeDashArray


strokeDashOffset

Get Signature

get strokeDashOffset(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:232

Returns

number

Inherited from

Shape.strokeDashOffset


strokeLineCap

Get Signature

get strokeLineCap(): LineCap

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:192

Returns

LineCap

Inherited from

Shape.strokeLineCap


strokeLineJoin

Get Signature

get strokeLineJoin(): LineJoin

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:188

Returns

LineJoin

Inherited from

Shape.strokeLineJoin


strokeMiterLimit

Get Signature

get strokeMiterLimit(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:236

Returns

number

Inherited from

Shape.strokeMiterLimit


strokeScaleEnabled

Get Signature

get strokeScaleEnabled(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:172

Returns

boolean

Inherited from

Shape.strokeScaleEnabled


strokeWidth

Get Signature

get strokeWidth(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:209

Returns

number

Set Signature

set strokeWidth(width): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:359

Parameters
ParameterType
widthnumber
Returns

void

Inherited from

Shape.strokeWidth


top

Get Signature

get top(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:193

Returns

number

Set Signature

set top(num): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:339

Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Shape.top


topOrigin

Get Signature

get topOrigin(): string | number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:173

Returns

string | number

Inherited from

Shape.topOrigin


transform

Get Signature

get transform(): Transform

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:148

Returns

Transform

Set Signature

set transform(trans): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:311

Parameters
ParameterType
transTransform
Returns

void

Inherited from

Shape.transform


transformerConfig

Get Signature

get transformerConfig(): ITransformerConfig

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:391

Returns

ITransformerConfig

Set Signature

set transformerConfig(config): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:395

Parameters
ParameterType
configITransformerConfig
Returns

void

Inherited from

Shape.transformerConfig


visible

Get Signature

get visible(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:295

Returns

boolean

Inherited from

Shape.visible


visualHeight

Get Signature

get visualHeight(): Nullable<number>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:56

Returns

Nullable<number>


visualWidth

Get Signature

get visualWidth(): Nullable<number>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:60

Returns

Nullable<number>


width

Get Signature

get width(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:201

Returns

number

Set Signature

set width(num): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:349

Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Shape.width


widthOrigin

Get Signature

get widthOrigin(): string | number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:181

Returns

string | number

Inherited from

Shape.widthOrigin


zIndex

Get Signature

get zIndex(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:287

Returns

number

Set Signature

set zIndex(index): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:315

Parameters
ParameterType
indexnumber
Returns

void

Inherited from

Shape.zIndex

Methods

_draw()

protected _draw(ctx): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:136

Parameters

ParameterType
ctxUniverRenderingContext

Returns

void

Overrides

Shape._draw


_setTransForm()

protected _setTransForm(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:849

Returns

void

Inherited from

Shape._setTransForm


applyTransform()

applyTransform(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:837

Returns

void

Inherited from

Shape.applyTransform


dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:751

Returns

void

Inherited from

Shape.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Shape.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Shape.ensureNotDisposed


flip()

flip(flipX?, flipY?): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:522

Parameters

ParameterType
flipX?boolean
flipY?boolean

Returns

Rect<T>

Inherited from

Shape.flip


getEngine()

getEngine(): Nullable<Engine>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:815

Returns

Nullable<Engine>

Inherited from

Shape.getEngine


getInverseCoord()

getInverseCoord(coord): Vector2

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:845

Parameters

ParameterType
coordVector2

Returns

Vector2

Inherited from

Shape.getInverseCoord


getLayerIndex()

getLayerIndex(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:830

Returns

number

Inherited from

Shape.getLayerIndex


getObjects()

getObjects(): BaseObject[]

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:826

Returns

BaseObject[]

Inherited from

Shape.getObjects


getParent()

getParent(): any

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:580

Returns

any

Inherited from

Shape.getParent


getScene()

getScene(): Nullable<Scene>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:794

Returns

Nullable<Scene>

Inherited from

Shape.getScene


getState()

getState(): ITransformState

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:584

Returns

ITransformState

Inherited from

Shape.getState


hide()

hide(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:600

Returns

void

Inherited from

Shape.hide


isDirty()

isDirty(): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:431

Returns

boolean

Inherited from

Shape.isDirty


isHit()

isHit(coord): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:614

Parameters

ParameterType
coordVector2

Returns

boolean

Inherited from

Shape.isHit


isRender()

isRender(bounds?): undefined | boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:573

Parameters

ParameterType
bounds?IViewportInfo

Returns

undefined | boolean

Inherited from

Shape.isRender


makeDirty()

makeDirty(state): undefined | Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:403

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

undefined | Rect<T>

Inherited from

Shape.makeDirty


makeDirtyNoDebounce()

makeDirtyNoDebounce(state): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:422

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

Rect<T>

Inherited from

Shape.makeDirtyNoDebounce


makeForceDirty()

makeForceDirty(state): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:418

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

void

Inherited from

Shape.makeForceDirty


removeTransform()

removeTransform(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:841

Returns

void

Inherited from

Shape.removeTransform


render()

render(mainCtx, bounds?): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:319

Parameters

ParameterType
mainCtxUniverRenderingContext
bounds?IViewportInfo

Returns

Rect<T>

Inherited from

Shape.render


resetCursor()

resetCursor(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:806

Returns

void

Inherited from

Shape.resetCursor


resize()

resize(width?, height?): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:457

Parameters

ParameterType
width?string | number
height?string | number

Returns

Rect<T>

Inherited from

Shape.resize


scale()

scale(scaleX?, scaleY?): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:478

Parameters

ParameterType
scaleX?number
scaleY?number

Returns

Rect<T>

Inherited from

Shape.scale


setCursor()

setCursor(val): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:810

Parameters

ParameterType
valCURSOR_TYPE

Returns

void

Inherited from

Shape.setCursor


setObjectType()

setObjectType(type): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:68

Parameters

ParameterType
typeObjectType

Returns

void


setProps()

setProps(props?): Shape<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:352

this[_key] = props[key]

Parameters

ParameterType
props?T

Returns

Shape<T>

Inherited from

Shape.setProps


show()

show(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:605

Returns

void

Inherited from

Shape.show


skew()

skew(skewX?, skewY?): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:500

Parameters

ParameterType
skewX?number
skewY?number

Returns

Rect<T>

Inherited from

Shape.skew


toJson()

toJson(): {}

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:122

Returns

{}

Overrides

Shape.toJson


transformByState()

transformByState(option): undefined | Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:547

this[pKey] = option[pKey]

Parameters

ParameterType
optionIObjectFullState

Returns

undefined | Rect<T>

Inherited from

Shape.transformByState


transformForAngle()

transformForAngle(transform): Transform

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:153

Parameters

ParameterType
transformTransform

Returns

Transform

Inherited from

Shape.transformForAngle


translate()

translate(x?, y?): Rect<T>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:435

Parameters

ParameterType
x?string | number
y?string | number

Returns

Rect<T>

Inherited from

Shape.translate


triggerDblclick()

triggerDblclick(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:651

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerDblclick


triggerDragEnter()

triggerDragEnter(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:735

Parameters

ParameterType
evt| IMouseEvent | IDragEvent

Returns

boolean

Inherited from

Shape.triggerDragEnter


triggerDragLeave()

triggerDragLeave(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:719

Parameters

ParameterType
evt| IMouseEvent | IDragEvent

Returns

boolean

Inherited from

Shape.triggerDragLeave


triggerDragOver()

triggerDragOver(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:727

Parameters

ParameterType
evt| IMouseEvent | IDragEvent

Returns

boolean

Inherited from

Shape.triggerDragOver


triggerDrop()

triggerDrop(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:743

Parameters

ParameterType
evt| IMouseEvent | IDragEvent

Returns

boolean

Inherited from

Shape.triggerDrop


triggerMouseWheel()

triggerMouseWheel(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:671

Parameters

ParameterType
evtIWheelEvent

Returns

boolean

Inherited from

Shape.triggerMouseWheel


triggerPointerCancel()

triggerPointerCancel(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:711

Parameters

ParameterType
evtIPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerCancel


triggerPointerDown()

triggerPointerDown(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:635

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerDown


triggerPointerEnter()

triggerPointerEnter(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:703

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerEnter


triggerPointerLeave()

triggerPointerLeave(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:687

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerLeave


triggerPointerMove()

triggerPointerMove(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:627

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerMove


triggerPointerOut()

triggerPointerOut(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:679

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerOut


triggerPointerOver()

triggerPointerOver(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:695

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerOver


triggerPointerUp()

triggerPointerUp(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:643

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerPointerUp


triggerTripleClick()

triggerTripleClick(evt): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:661

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Shape.triggerTripleClick


_renderPaintInOrder()

protected static _renderPaintInOrder(ctx, props): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:244

Parameters

ParameterType
ctxUniverRenderingContext
propsIShapeProps

Returns

void

Inherited from

Shape._renderPaintInOrder


drawWith()

static drawWith(ctx, props): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:72

Parameters

ParameterType
ctxUniverRenderingContext
propsIRectProps

Returns

void

Overrides

Shape.drawWith