@univerjs/engine-render v0.5.4


Class: Path

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

Extends

Constructors

new Path()

new Path(key?, props?): Path

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

Parameters

ParameterType
key?string
props?IPathProps

Returns

Path

Overrides

Shape.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_dirtyprotectedbooleantrueShape._dirtypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:88
_disposedprotectedbooleanfalseShape._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
_forceDirtyprotectedbooleantrueShape._forceDirtypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:89
_oKeyprotectedstringundefinedShape._oKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:86
groupKey?publicstringundefinedShape.groupKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:59
isInGrouppublicbooleanfalseShape.isInGrouppackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:60
objectTypepublicObjectTypeObjectType.SHAPEShape.objectTypepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/shape.ts:140
onDblclick$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onDblclick$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:74
onDispose$publicEventSubject<BaseObject>undefinedShape.onDispose$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:84
onDragEnter$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDragEnter$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:80
onDragLeave$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDragLeave$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:78
onDragOver$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDragOver$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:79
onDrop$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDrop$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:81
onIsAddedToParent$publicEventSubject<any>undefinedShape.onIsAddedToParent$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:83
onMouseWheel$publicEventSubject<IWheelEvent>undefinedShape.onMouseWheel$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:76
onPointerDown$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerDown$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:66
onPointerEnter$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerEnter$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:72
onPointerLeave$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerLeave$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:71
onPointerMove$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerMove$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:67
onPointerOut$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerOut$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:69
onPointerOver$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerOver$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:70
onPointerUp$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerUp$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:68
onTransformChange$publicEventSubject<ITransformChangeState>undefinedShape.onTransformChange$packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/base-object.ts:64
onTripleClick$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.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


dataArray

Get Signature

get dataArray(): IPathDataArray[]

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

Returns

IPathDataArray[]


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


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


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/path.ts:933

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?): Path

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

Parameters

ParameterType
flipX?boolean
flipY?boolean

Returns

Path

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


getLength()

getLength(): number

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

Return length of the path.

Returns

number

length

Method

Example

var length = path.getLength();

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


getPointAtLength()

getPointAtLength(length): 
  | null
  | {
  x: number;
  y: number;
}

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

Get point on path at specific length of the path

Parameters

ParameterTypeDescription
lengthnumberlength

Returns

| null | { x: number; y: number; }

point {x,y} point

Method

Example

var point = path.getPointAtLength(10);

getRect()

getRect(): {
  height: number;
  left: number;
  top: number;
  width: number;
}

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

Returns

{
  height: number;
  left: number;
  top: number;
  width: number;
}
NameTypeDefined in
heightnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:837
leftnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:834
topnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:835
widthnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:836

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(): {
  angle: number;
  flipX: boolean;
  flipY: boolean;
  height: number;
  left: number;
  scaleX: number;
  scaleY: number;
  skewX: number;
  skewY: number;
  top: number;
  width: number;
}

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

Returns

{
  angle: number;
  flipX: boolean;
  flipY: boolean;
  height: number;
  left: number;
  scaleX: number;
  scaleY: number;
  skewX: number;
  skewY: number;
  top: number;
  width: number;
}
NameTypeDefined in
anglenumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:823
flipXbooleanpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:826
flipYbooleanpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:827
heightnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:820
leftnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:817
scaleXnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:821
scaleYnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:822
skewXnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:824
skewYnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:825
topnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:818
widthnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:819

Overrides

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 | Path

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

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

undefined | Path

Inherited from

Shape.makeDirty


makeDirtyNoDebounce()

makeDirtyNoDebounce(state): Path

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

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

Path

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?): Path

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

Parameters

ParameterType
mainCtxUniverRenderingContext
bounds?IViewportInfo

Returns

Path

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?): Path

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

Path

Inherited from

Shape.resize


scale()

scale(scaleX?, scaleY?): Path

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

Parameters

ParameterType
scaleX?number
scaleY?number

Returns

Path

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


setProps()

setProps(props?): Shape<IPathProps>

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

this[_key] = props[key]

Parameters

ParameterType
props?IPathProps

Returns

Shape<IPathProps>

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?): Path

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

Parameters

ParameterType
skewX?number
skewY?number

Returns

Path

Inherited from

Shape.skew


toJson()

toJson(): {}

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

Returns

{}

Overrides

Shape.toJson


transformByState()

transformByState(option): undefined | Path

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 | Path

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?): Path

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

Path

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


calcLength()

static calcLength(
   x, 
   y, 
   cmd, 
   points): number

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

Parameters

ParameterType
xnumber
ynumber
cmdstring
pointsnumber[]

Returns

number


convertEndpointToCenterParameterization()

static convertEndpointToCenterParameterization(
   x1, 
   y1, 
   x2, 
   y2, 
   fa, 
   fs, 
   rx, 
   ry, 
   psiDeg): number[]

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

Parameters

ParameterType
x1number
y1number
x2number
y2number
fanumber
fsnumber
rxnumber
rynumber
psiDegnumber

Returns

number[]


drawWith()

static drawWith(ctx, props): void

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

Parameters

ParameterType
ctxUniverRenderingContext
propsIPathProps | Path

Returns

void

Overrides

Shape.drawWith


getLineLength()

static getLineLength(
   x1, 
   y1, 
   x2, 
   y2): number

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

Parameters

ParameterType
x1number
y1number
x2number
y2number

Returns

number


getPointOnCubicBezier()

static getPointOnCubicBezier(
   pct, 
   P1x, 
   P1y, 
   P2x, 
   P2y, 
   P3x, 
   P3y, 
   P4x, 
   P4y): {
  x: number;
  y: number;
}

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

Parameters

ParameterType
pctnumber
P1xnumber
P1ynumber
P2xnumber
P2ynumber
P3xnumber
P3ynumber
P4xnumber
P4ynumber

Returns

{
  x: number;
  y: number;
}
NameTypeDefined in
xnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:288
ynumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:289

getPointOnEllipticalArc()

static getPointOnEllipticalArc(
   cx, 
   cy, 
   rx, 
   ry, 
   theta, 
   psi): {
  x: number;
  y: number;
}

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

Parameters

ParameterType
cxnumber
cynumber
rxnumber
rynumber
thetanumber
psinumber

Returns

{
  x: number;
  y: number;
}
NameTypeDefined in
xnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:328
ynumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:329

getPointOnLine()

static getPointOnLine(
   dist, 
   P1x, 
   P1y, 
   P2x, 
   P2y, 
   fromX?, 
   fromY?): {
  x: number;
  y: number;
}

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

Parameters

ParameterType
distnumber
P1xnumber
P1ynumber
P2xnumber
P2ynumber
fromX?number
fromY?number

Returns

{
  x: number;
  y: number;
}
NameTypeDefault valueDefined in
xnumberfromXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:224
ynumber-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:225

getPointOnQuadraticBezier()

static getPointOnQuadraticBezier(
   pct, 
   P1x, 
   P1y, 
   P2x, 
   P2y, 
   P3x, 
   P3y): {
  x: number;
  y: number;
}

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

Parameters

ParameterType
pctnumber
P1xnumber
P1ynumber
P2xnumber
P2ynumber
P3xnumber
P3ynumber

Returns

{
  x: number;
  y: number;
}
NameTypeDefined in
xnumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:315
ynumberpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/shape/path.ts:316

parsePathData()

static parsePathData(data): IPathDataArray[]

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

Parameters

ParameterType
datastring

Returns

IPathDataArray[]