@univerjs/engine-render v0.5.0-beta.1 • Docs


Class: DashedRect

Extends

Constructors

new DashedRect()

new DashedRect(key?, props?): DashedRect

Parameters

ParameterType
key?string
props?IRectProps

Returns

DashedRect

Inherited from

Rect.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_dirtyprotectedbooleantrueRect._dirtypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:88
_disposedprotectedbooleanfalseRect._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93
_forceDirtyprotectedbooleantrueRect._forceDirtypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:89
_oKeyprotectedstringundefinedRect._oKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:86
groupKey?publicstringundefinedRect.groupKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:59
isInGrouppublicbooleanfalseRect.isInGrouppackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:60
objectTypepublicObjectTypeObjectType.RECTRect.objectTypepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/rect.ts:33
onDblclick$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onDblclick$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:74
onDispose$publicEventSubject<BaseObject>undefinedRect.onDispose$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:84
onDragEnter$publicEventSubject<IMouseEvent | IDragEvent>undefinedRect.onDragEnter$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:80
onDragLeave$publicEventSubject<IMouseEvent | IDragEvent>undefinedRect.onDragLeave$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:78
onDragOver$publicEventSubject<IMouseEvent | IDragEvent>undefinedRect.onDragOver$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:79
onDrop$publicEventSubject<IMouseEvent | IDragEvent>undefinedRect.onDrop$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:81
onIsAddedToParent$publicEventSubject<any>undefinedRect.onIsAddedToParent$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:83
onMouseWheel$publicEventSubject<IWheelEvent>undefinedRect.onMouseWheel$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:76
onPointerDown$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onPointerDown$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:66
onPointerEnter$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onPointerEnter$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:72
onPointerLeave$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onPointerLeave$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:71
onPointerMove$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onPointerMove$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:67
onPointerOut$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onPointerOut$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:69
onPointerOver$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onPointerOver$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:70
onPointerUp$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onPointerUp$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:68
onTransformChange$publicEventSubject<ITransformChangeState>undefinedRect.onTransformChange$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:64
onTripleClick$publicEventSubject<IMouseEvent | IPointerEvent>undefinedRect.onTripleClick$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:75

Accessors

ancestorGroup

Get Signature

get ancestorGroup(): Nullable<BaseObject>
Returns

Nullable<BaseObject>

Inherited from

Rect.ancestorGroup

Defined in

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


ancestorLeft

Get Signature

get ancestorLeft(): any
Returns

any

Inherited from

Rect.ancestorLeft

Defined in

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


ancestorScaleX

Get Signature

get ancestorScaleX(): number
Returns

number

Inherited from

Rect.ancestorScaleX

Defined in

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


ancestorScaleY

Get Signature

get ancestorScaleY(): number
Returns

number

Inherited from

Rect.ancestorScaleY

Defined in

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


ancestorTop

Get Signature

get ancestorTop(): any
Returns

any

Inherited from

Rect.ancestorTop

Defined in

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


ancestorTransform

Get Signature

get ancestorTransform(): any
Returns

any

Inherited from

Rect.ancestorTransform

Defined in

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


angle

Get Signature

get angle(): number
Returns

number

Set Signature

set angle(angle): void
Parameters
ParameterType
anglenumber
Returns

void

Inherited from

Rect.angle

Defined in

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


classType

Get Signature

get classType(): RENDER_CLASS_TYPE
Returns

RENDER_CLASS_TYPE

Inherited from

Rect.classType

Defined in

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


cursor

Get Signature

get cursor(): CURSOR_TYPE
Returns

CURSOR_TYPE

Set Signature

set cursor(val): void
Parameters
ParameterType
valCURSOR_TYPE
Returns

void

Inherited from

Rect.cursor

Defined in

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


debounceParentDirty

Get Signature

get debounceParentDirty(): boolean
Returns

boolean

Set Signature

set debounceParentDirty(state): void
Parameters
ParameterType
stateboolean
Returns

void

Inherited from

Rect.debounceParentDirty

Defined in

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


evented

Get Signature

get evented(): boolean
Returns

boolean

Set Signature

set evented(state): void
Parameters
ParameterType
stateboolean
Returns

void

Inherited from

Rect.evented

Defined in

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


fill

Get Signature

get fill(): Nullable<string | CanvasGradient>
Returns

Nullable<string | CanvasGradient>

Inherited from

Rect.fill

Defined in

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


fillAfterStrokeEnabled

Get Signature

get fillAfterStrokeEnabled(): boolean
Returns

boolean

Inherited from

Rect.fillAfterStrokeEnabled

Defined in

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


fillRule

Get Signature

get fillRule(): string
Returns

string

Inherited from

Rect.fillRule

Defined in

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


flipX

Get Signature

get flipX(): boolean
Returns

boolean

Set Signature

set flipX(flipX): void
Parameters
ParameterType
flipXboolean
Returns

void

Inherited from

Rect.flipX

Defined in

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


flipY

Get Signature

get flipY(): boolean
Returns

boolean

Set Signature

set flipY(flipY): void
Parameters
ParameterType
flipYboolean
Returns

void

Inherited from

Rect.flipY

Defined in

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


globalCompositeOperation

Get Signature

get globalCompositeOperation(): string
Returns

string

Inherited from

Rect.globalCompositeOperation

Defined in

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


height

Get Signature

get height(): number
Returns

number

Set Signature

set height(num): void
Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Rect.height

Defined in

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


heightOrigin

Get Signature

get heightOrigin(): string | number
Returns

string | number

Inherited from

Rect.heightOrigin

Defined in

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


hitStrokeWidth

Get Signature

get hitStrokeWidth(): string | number
Returns

string | number

Inherited from

Rect.hitStrokeWidth

Defined in

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


hoverCursor

Get Signature

get hoverCursor(): Nullable<string>
Returns

Nullable<string>

Inherited from

Rect.hoverCursor

Defined in

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


layer

Get Signature

get layer(): Nullable<Layer>
Returns

Nullable<Layer>

Set Signature

set layer(layer): void
Parameters
ParameterType
layerLayer
Returns

void

Inherited from

Rect.layer

Defined in

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


left

Get Signature

get left(): number
Returns

number

Set Signature

set left(num): void
Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Rect.left

Defined in

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


leftOrigin

Get Signature

get leftOrigin(): string | number
Returns

string | number

Inherited from

Rect.leftOrigin

Defined in

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


maxZIndex

Get Signature

get maxZIndex(): number
Returns

number

Inherited from

Rect.maxZIndex

Defined in

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


moveCursor

Get Signature

get moveCursor(): null | string
Returns

null | string

Inherited from

Rect.moveCursor

Defined in

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


oKey

Get Signature

get oKey(): string
Returns

string

Inherited from

Rect.oKey

Defined in

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


paintFirst

Get Signature

get paintFirst(): PaintFirst
Returns

PaintFirst

Inherited from

Rect.paintFirst

Defined in

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


parent

Get Signature

get parent(): any
Returns

any

Set Signature

set parent(o): void
Parameters
ParameterType
oany
Returns

void

Inherited from

Rect.parent

Defined in

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


printable

Get Signature

get printable(): boolean
Returns

boolean

Inherited from

Rect.printable

Defined in

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


radius

Get Signature

get radius(): number
Returns

number

Inherited from

Rect.radius

Defined in

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


scaleX

Get Signature

get scaleX(): number
Returns

number

Set Signature

set scaleX(scaleX): void
Parameters
ParameterType
scaleXnumber
Returns

void

Inherited from

Rect.scaleX

Defined in

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


scaleY

Get Signature

get scaleY(): number
Returns

number

Set Signature

set scaleY(scaleY): void
Parameters
ParameterType
scaleYnumber
Returns

void

Inherited from

Rect.scaleY

Defined in

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


shadowBlur

Get Signature

get shadowBlur(): number
Returns

number

Inherited from

Rect.shadowBlur

Defined in

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


shadowColor

Get Signature

get shadowColor(): Nullable<string>
Returns

Nullable<string>

Inherited from

Rect.shadowColor

Defined in

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


shadowEnabled

Get Signature

get shadowEnabled(): boolean
Returns

boolean

Inherited from

Rect.shadowEnabled

Defined in

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


shadowForStrokeEnabled

Get Signature

get shadowForStrokeEnabled(): boolean
Returns

boolean

Inherited from

Rect.shadowForStrokeEnabled

Defined in

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


shadowOffset

Get Signature

get shadowOffset(): Nullable<Vector2>
Returns

Nullable<Vector2>

Inherited from

Rect.shadowOffset

Defined in

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


shadowOffsetX

Get Signature

get shadowOffsetX(): number
Returns

number

Inherited from

Rect.shadowOffsetX

Defined in

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


shadowOffsetY

Get Signature

get shadowOffsetY(): number
Returns

number

Inherited from

Rect.shadowOffsetY

Defined in

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


shadowOpacity

Get Signature

get shadowOpacity(): number
Returns

number

Inherited from

Rect.shadowOpacity

Defined in

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


skewX

Get Signature

get skewX(): number
Returns

number

Set Signature

set skewX(skewX): void
Parameters
ParameterType
skewXnumber
Returns

void

Inherited from

Rect.skewX

Defined in

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


skewY

Get Signature

get skewY(): number
Returns

number

Set Signature

set skewY(skewY): void
Parameters
ParameterType
skewYnumber
Returns

void

Inherited from

Rect.skewY

Defined in

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


stroke

Get Signature

get stroke(): Nullable<string | CanvasGradient>
Returns

Nullable<string | CanvasGradient>

Inherited from

Rect.stroke

Defined in

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


strokeDashArray

Get Signature

get strokeDashArray(): Nullable<number[]>
Returns

Nullable<number[]>

Inherited from

Rect.strokeDashArray

Defined in

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


strokeDashOffset

Get Signature

get strokeDashOffset(): number
Returns

number

Inherited from

Rect.strokeDashOffset

Defined in

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


strokeLineCap

Get Signature

get strokeLineCap(): LineCap
Returns

LineCap

Inherited from

Rect.strokeLineCap

Defined in

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


strokeLineJoin

Get Signature

get strokeLineJoin(): LineJoin
Returns

LineJoin

Inherited from

Rect.strokeLineJoin

Defined in

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


strokeMiterLimit

Get Signature

get strokeMiterLimit(): number
Returns

number

Inherited from

Rect.strokeMiterLimit

Defined in

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


strokeScaleEnabled

Get Signature

get strokeScaleEnabled(): boolean
Returns

boolean

Inherited from

Rect.strokeScaleEnabled

Defined in

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


strokeWidth

Get Signature

get strokeWidth(): number
Returns

number

Set Signature

set strokeWidth(width): void
Parameters
ParameterType
widthnumber
Returns

void

Inherited from

Rect.strokeWidth

Defined in

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


top

Get Signature

get top(): number
Returns

number

Set Signature

set top(num): void
Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Rect.top

Defined in

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


topOrigin

Get Signature

get topOrigin(): string | number
Returns

string | number

Inherited from

Rect.topOrigin

Defined in

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


transform

Get Signature

get transform(): Transform
Returns

Transform

Set Signature

set transform(trans): void
Parameters
ParameterType
transTransform
Returns

void

Inherited from

Rect.transform

Defined in

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


transformerConfig

Get Signature

get transformerConfig(): ITransformerConfig
Returns

ITransformerConfig

Set Signature

set transformerConfig(config): void
Parameters
ParameterType
configITransformerConfig
Returns

void

Inherited from

Rect.transformerConfig

Defined in

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


visible

Get Signature

get visible(): boolean
Returns

boolean

Inherited from

Rect.visible

Defined in

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


visualHeight

Get Signature

get visualHeight(): Nullable<number>
Returns

Nullable<number>

Inherited from

Rect.visualHeight

Defined in

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


visualWidth

Get Signature

get visualWidth(): Nullable<number>
Returns

Nullable<number>

Inherited from

Rect.visualWidth

Defined in

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


width

Get Signature

get width(): number
Returns

number

Set Signature

set width(num): void
Parameters
ParameterType
numstring | number
Returns

void

Inherited from

Rect.width

Defined in

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


widthOrigin

Get Signature

get widthOrigin(): string | number
Returns

string | number

Inherited from

Rect.widthOrigin

Defined in

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


zIndex

Get Signature

get zIndex(): number
Returns

number

Set Signature

set zIndex(index): void
Parameters
ParameterType
indexnumber
Returns

void

Inherited from

Rect.zIndex

Defined in

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

Methods

_draw()

protected _draw(ctx, viewportInfo?): void

Parameters

ParameterType
ctxUniverRenderingContext
viewportInfo?IViewportInfo

Returns

void

Overrides

Rect._draw

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/dashedrect.ts:61


_setTransForm()

protected _setTransForm(): void

Returns

void

Inherited from

Rect._setTransForm

Defined in

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


applyTransform()

applyTransform(): void

Returns

void

Inherited from

Rect.applyTransform

Defined in

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


dispose()

dispose(): void

Returns

void

Inherited from

Rect.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Rect.disposeWithMe

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Rect.ensureNotDisposed

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100


flip()

flip(flipX?, flipY?): DashedRect

Parameters

ParameterType
flipX?boolean
flipY?boolean

Returns

DashedRect

Inherited from

Rect.flip

Defined in

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


getEngine()

getEngine(): Nullable<Engine>

Returns

Nullable<Engine>

Inherited from

Rect.getEngine

Defined in

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


getInverseCoord()

getInverseCoord(coord): Vector2

Parameters

ParameterType
coordVector2

Returns

Vector2

Inherited from

Rect.getInverseCoord

Defined in

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


getLayerIndex()

getLayerIndex(): number

Returns

number

Inherited from

Rect.getLayerIndex

Defined in

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


getObjects()

getObjects(): BaseObject[]

Returns

BaseObject[]

Inherited from

Rect.getObjects

Defined in

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


getParent()

getParent(): any

Returns

any

Inherited from

Rect.getParent

Defined in

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


getScene()

getScene(): Nullable<Scene>

Returns

Nullable<Scene>

Inherited from

Rect.getScene

Defined in

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


getState()

getState(): ITransformState

Returns

ITransformState

Inherited from

Rect.getState

Defined in

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


hide()

hide(): void

Returns

void

Inherited from

Rect.hide

Defined in

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


isDirty()

isDirty(): boolean

Returns

boolean

Inherited from

Rect.isDirty

Defined in

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


isHit()

isHit(coord): boolean

Parameters

ParameterType
coordVector2

Returns

boolean

Inherited from

Rect.isHit

Defined in

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


isRender()

isRender(bounds?): undefined | boolean

Parameters

ParameterType
bounds?IViewportInfo

Returns

undefined | boolean

Inherited from

Rect.isRender

Defined in

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


makeDirty()

makeDirty(state): undefined | DashedRect

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

undefined | DashedRect

Inherited from

Rect.makeDirty

Defined in

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


makeDirtyNoDebounce()

makeDirtyNoDebounce(state): DashedRect

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

DashedRect

Inherited from

Rect.makeDirtyNoDebounce

Defined in

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


makeForceDirty()

makeForceDirty(state): void

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

void

Inherited from

Rect.makeForceDirty

Defined in

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


removeTransform()

removeTransform(): void

Returns

void

Inherited from

Rect.removeTransform

Defined in

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


render()

render(mainCtx, bounds?): DashedRect

Parameters

ParameterType
mainCtxUniverRenderingContext
bounds?IViewportInfo

Returns

DashedRect

Inherited from

Rect.render

Defined in

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


resetCursor()

resetCursor(): void

Returns

void

Inherited from

Rect.resetCursor

Defined in

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


resize()

resize(width?, height?): DashedRect

Parameters

ParameterType
width?string | number
height?string | number

Returns

DashedRect

Inherited from

Rect.resize

Defined in

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


scale()

scale(scaleX?, scaleY?): DashedRect

Parameters

ParameterType
scaleX?number
scaleY?number

Returns

DashedRect

Inherited from

Rect.scale

Defined in

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


setCursor()

setCursor(val): void

Parameters

ParameterType
valCURSOR_TYPE

Returns

void

Inherited from

Rect.setCursor

Defined in

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


setObjectType()

setObjectType(type): void

Parameters

ParameterType
typeObjectType

Returns

void

Inherited from

Rect.setObjectType

Defined in

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


setProps()

setProps(props?): Shape<IRectProps>

this[_key] = props[key]

Parameters

ParameterType
props?IRectProps

Returns

Shape<IRectProps>

Inherited from

Rect.setProps

Defined in

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


show()

show(): void

Returns

void

Inherited from

Rect.show

Defined in

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


skew()

skew(skewX?, skewY?): DashedRect

Parameters

ParameterType
skewX?number
skewY?number

Returns

DashedRect

Inherited from

Rect.skew

Defined in

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


toJson()

toJson(): {}

Returns

{}

Inherited from

Rect.toJson

Defined in

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


transformByState()

transformByState(option): undefined | DashedRect

this[pKey] = option[pKey]

Parameters

ParameterType
optionIObjectFullState

Returns

undefined | DashedRect

Inherited from

Rect.transformByState

Defined in

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


transformForAngle()

transformForAngle(transform): Transform

Parameters

ParameterType
transformTransform

Returns

Transform

Inherited from

Rect.transformForAngle

Defined in

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


translate()

translate(x?, y?): DashedRect

Parameters

ParameterType
x?string | number
y?string | number

Returns

DashedRect

Inherited from

Rect.translate

Defined in

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


triggerDblclick()

triggerDblclick(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerDblclick

Defined in

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


triggerDragEnter()

triggerDragEnter(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

boolean

Inherited from

Rect.triggerDragEnter

Defined in

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


triggerDragLeave()

triggerDragLeave(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

boolean

Inherited from

Rect.triggerDragLeave

Defined in

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


triggerDragOver()

triggerDragOver(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

boolean

Inherited from

Rect.triggerDragOver

Defined in

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


triggerDrop()

triggerDrop(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

boolean

Inherited from

Rect.triggerDrop

Defined in

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


triggerMouseWheel()

triggerMouseWheel(evt): boolean

Parameters

ParameterType
evtIWheelEvent

Returns

boolean

Inherited from

Rect.triggerMouseWheel

Defined in

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


triggerPointerDown()

triggerPointerDown(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerPointerDown

Defined in

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


triggerPointerEnter()

triggerPointerEnter(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerPointerEnter

Defined in

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


triggerPointerLeave()

triggerPointerLeave(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerPointerLeave

Defined in

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


triggerPointerMove()

triggerPointerMove(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerPointerMove

Defined in

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


triggerPointerOut()

triggerPointerOut(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerPointerOut

Defined in

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


triggerPointerOver()

triggerPointerOver(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerPointerOver

Defined in

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


triggerPointerUp()

triggerPointerUp(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerPointerUp

Defined in

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


triggerTripleClick()

triggerTripleClick(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Inherited from

Rect.triggerTripleClick

Defined in

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


_renderPaintInOrder()

protected static _renderPaintInOrder(ctx, props): void

Parameters

ParameterType
ctxUniverRenderingContext
propsIShapeProps

Returns

void

Inherited from

Rect._renderPaintInOrder

Defined in

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


drawWith()

static drawWith(ctx, props): void

Parameters

ParameterType
ctxUniverRenderingContext
propsIRectProps | Rect<IRectProps>

Returns

void

Overrides

Rect.drawWith

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/dashedrect.ts:24