@univerjs-pro/collaboration-client-ui v0.5.4


Class: SheetCollabCursorShape<T>

Defined in: packages/collaboration-client-ui/src/views/shapes/sheet-collab-cursor.shape.ts:24

Render a single collaborated cursor on the canvas.

Extends

Type Parameters

Type ParameterDefault type
T extends ISheetCollabCursorShapePropsISheetCollabCursorShapeProps

Constructors

new SheetCollabCursorShape()

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

Defined in: packages/collaboration-client-ui/src/views/shapes/sheet-collab-cursor.shape.ts:34

Parameters

ParameterType
key?string
props?T

Returns

SheetCollabCursorShape<T>

Overrides

Shape.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_dirtyprotectedbooleantrueShape._dirtysubmodules/univer/packages/engine-render/src/base-object.ts:88
_disposedprotectedbooleanfalseShape._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
_forceDirtyprotectedbooleantrueShape._forceDirtysubmodules/univer/packages/engine-render/src/base-object.ts:89
_oKeyprotectedstringundefinedShape._oKeysubmodules/univer/packages/engine-render/src/base-object.ts:86
groupKey?publicstringundefinedShape.groupKeysubmodules/univer/packages/engine-render/src/base-object.ts:59
isInGrouppublicbooleanfalseShape.isInGroupsubmodules/univer/packages/engine-render/src/base-object.ts:60
objectTypepublicObjectTypeObjectType.SHAPEShape.objectTypesubmodules/univer/packages/engine-render/src/shape/shape.ts:140
onDblclick$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onDblclick$submodules/univer/packages/engine-render/src/base-object.ts:74
onDispose$publicEventSubject<BaseObject>undefinedShape.onDispose$submodules/univer/packages/engine-render/src/base-object.ts:84
onDragEnter$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDragEnter$submodules/univer/packages/engine-render/src/base-object.ts:80
onDragLeave$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDragLeave$submodules/univer/packages/engine-render/src/base-object.ts:78
onDragOver$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDragOver$submodules/univer/packages/engine-render/src/base-object.ts:79
onDrop$publicEventSubject< | IMouseEvent | IDragEvent>undefinedShape.onDrop$submodules/univer/packages/engine-render/src/base-object.ts:81
onIsAddedToParent$publicEventSubject<any>undefinedShape.onIsAddedToParent$submodules/univer/packages/engine-render/src/base-object.ts:83
onMouseWheel$publicEventSubject<IWheelEvent>undefinedShape.onMouseWheel$submodules/univer/packages/engine-render/src/base-object.ts:76
onPointerDown$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerDown$submodules/univer/packages/engine-render/src/base-object.ts:66
onPointerEnter$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerEnter$submodules/univer/packages/engine-render/src/base-object.ts:72
onPointerLeave$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerLeave$submodules/univer/packages/engine-render/src/base-object.ts:71
onPointerMove$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerMove$submodules/univer/packages/engine-render/src/base-object.ts:67
onPointerOut$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerOut$submodules/univer/packages/engine-render/src/base-object.ts:69
onPointerOver$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerOver$submodules/univer/packages/engine-render/src/base-object.ts:70
onPointerUp$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onPointerUp$submodules/univer/packages/engine-render/src/base-object.ts:68
onTransformChange$publicEventSubject<ITransformChangeState>undefinedShape.onTransformChange$submodules/univer/packages/engine-render/src/base-object.ts:64
onTripleClick$publicEventSubject< | IMouseEvent | IPointerEvent>undefinedShape.onTripleClick$submodules/univer/packages/engine-render/src/base-object.ts:75

Accessors

ancestorGroup

Get Signature

get ancestorGroup(): Nullable<BaseObject>

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:235

Returns

any

Inherited from

Shape.ancestorLeft


ancestorScaleX

Get Signature

get ancestorScaleX(): number

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

Returns

number

Inherited from

Shape.ancestorScaleX


ancestorScaleY

Get Signature

get ancestorScaleY(): number

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

Returns

number

Inherited from

Shape.ancestorScaleY


ancestorTop

Get Signature

get ancestorTop(): any

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

Returns

any

Inherited from

Shape.ancestorTop


ancestorTransform

Get Signature

get ancestorTransform(): any

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

Returns

any

Inherited from

Shape.ancestorTransform


angle

Get Signature

get angle(): number

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

Returns

number

Set Signature

set angle(angle): void

Defined in: 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: 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: submodules/univer/packages/engine-render/src/base-object.ts:303

Returns

CURSOR_TYPE

Set Signature

set cursor(val): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:299

Returns

boolean

Set Signature

set debounceParentDirty(state): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:291

Returns

boolean

Set Signature

set evented(state): void

Defined in: 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: 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: submodules/univer/packages/engine-render/src/shape/shape.ts:180

Returns

boolean

Inherited from

Shape.fillAfterStrokeEnabled


fillRule

Get Signature

get fillRule(): string

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

Returns

string

Inherited from

Shape.fillRule


flipX

Get Signature

get flipX(): boolean

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

Returns

boolean

Set Signature

set flipX(flipX): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:275

Returns

boolean

Set Signature

set flipY(flipY): void

Defined in: 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: submodules/univer/packages/engine-render/src/shape/shape.ts:160

Returns

string

Inherited from

Shape.globalCompositeOperation


height

Get Signature

get height(): number

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

Returns

number

Set Signature

set height(num): void

Defined in: 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: 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: 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: 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: submodules/univer/packages/engine-render/src/base-object.ts:307

Returns

Nullable<Layer>

Set Signature

set layer(layer): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:197

Returns

number

Set Signature

set left(num): void

Defined in: 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: 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: 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: 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: submodules/univer/packages/engine-render/src/base-object.ts:283

Returns

string

Inherited from

Shape.oKey


paintFirst

Get Signature

get paintFirst(): PaintFirst

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

Returns

PaintFirst

Inherited from

Shape.paintFirst


parent

Get Signature

get parent(): any

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

Returns

any

Set Signature

set parent(o): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:169

Returns

boolean

Inherited from

Shape.printable


scaleX

Get Signature

get scaleX(): number

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

Returns

number

Set Signature

set scaleX(scaleX): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:221

Returns

number

Set Signature

set scaleY(scaleY): void

Defined in: 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: 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: 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: submodules/univer/packages/engine-render/src/shape/shape.ts:220

Returns

boolean

Inherited from

Shape.shadowEnabled


shadowForStrokeEnabled

Get Signature

get shadowForStrokeEnabled(): boolean

Defined in: 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: 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: submodules/univer/packages/engine-render/src/shape/shape.ts:208

Returns

number

Inherited from

Shape.shadowOffsetX


shadowOffsetY

Get Signature

get shadowOffsetY(): number

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

Returns

number

Inherited from

Shape.shadowOffsetY


shadowOpacity

Get Signature

get shadowOpacity(): number

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

Returns

number

Inherited from

Shape.shadowOpacity


skewX

Get Signature

get skewX(): number

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

Returns

number

Set Signature

set skewX(skewX): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:267

Returns

number

Set Signature

set skewY(skewY): void

Defined in: 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: 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: 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: submodules/univer/packages/engine-render/src/shape/shape.ts:232

Returns

number

Inherited from

Shape.strokeDashOffset


strokeLineCap

Get Signature

get strokeLineCap(): LineCap

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

Returns

LineCap

Inherited from

Shape.strokeLineCap


strokeLineJoin

Get Signature

get strokeLineJoin(): LineJoin

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

Returns

LineJoin

Inherited from

Shape.strokeLineJoin


strokeMiterLimit

Get Signature

get strokeMiterLimit(): number

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

Returns

number

Inherited from

Shape.strokeMiterLimit


strokeScaleEnabled

Get Signature

get strokeScaleEnabled(): boolean

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

Returns

boolean

Inherited from

Shape.strokeScaleEnabled


strokeWidth

Get Signature

get strokeWidth(): number

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

Returns

number

Set Signature

set strokeWidth(width): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:193

Returns

number

Set Signature

set top(num): void

Defined in: 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: 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: submodules/univer/packages/engine-render/src/base-object.ts:148

Returns

Transform

Set Signature

set transform(trans): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:391

Returns

ITransformerConfig

Set Signature

set transformerConfig(config): void

Defined in: 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: submodules/univer/packages/engine-render/src/base-object.ts:295

Returns

boolean

Inherited from

Shape.visible


width

Get Signature

get width(): number

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

Returns

number

Set Signature

set width(num): void

Defined in: 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: 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: submodules/univer/packages/engine-render/src/base-object.ts:287

Returns

number

Set Signature

set zIndex(index): void

Defined in: 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/collaboration-client-ui/src/views/shapes/sheet-collab-cursor.shape.ts:79

Parameters

ParameterType
ctxCanvasRenderingContext2D

Returns

void

Overrides

Shape._draw


_setTransForm()

protected _setTransForm(): void

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

Returns

void

Inherited from

Shape._setTransForm


applyTransform()

applyTransform(): void

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

Returns

void

Inherited from

Shape.applyTransform


dispose()

dispose(): void

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

Returns

void

Inherited from

Shape.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Shape.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Shape.ensureNotDisposed


flip()

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

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

Parameters

ParameterType
flipX?boolean
flipY?boolean

Returns

SheetCollabCursorShape<T>

Inherited from

Shape.flip


getEngine()

getEngine(): Nullable<Engine>

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

Returns

Nullable<Engine>

Inherited from

Shape.getEngine


getInverseCoord()

getInverseCoord(coord): Vector2

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

Parameters

ParameterType
coordVector2

Returns

Vector2

Inherited from

Shape.getInverseCoord


getLayerIndex()

getLayerIndex(): number

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

Returns

number

Inherited from

Shape.getLayerIndex


getObjects()

getObjects(): BaseObject[]

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

Returns

BaseObject[]

Inherited from

Shape.getObjects


getParent()

getParent(): any

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

Returns

any

Inherited from

Shape.getParent


getScene()

getScene(): Nullable<Scene>

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

Returns

Nullable<Scene>

Inherited from

Shape.getScene


getState()

getState(): ITransformState

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

Returns

ITransformState

Inherited from

Shape.getState


hide()

hide(): void

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

Returns

void

Inherited from

Shape.hide


isDirty()

isDirty(): boolean

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

Returns

boolean

Inherited from

Shape.isDirty


isHit()

isHit(coord): boolean

Defined in: 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: 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
| SheetCollabCursorShape<T>

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

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

| undefined | SheetCollabCursorShape<T>

Inherited from

Shape.makeDirty


makeDirtyNoDebounce()

makeDirtyNoDebounce(state): SheetCollabCursorShape<T>

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

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

SheetCollabCursorShape<T>

Inherited from

Shape.makeDirtyNoDebounce


makeForceDirty()

makeForceDirty(state): void

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

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

void

Inherited from

Shape.makeForceDirty


onMouseMove()

onMouseMove(position): void

Defined in: packages/collaboration-client-ui/src/views/shapes/sheet-collab-cursor.shape.ts:61

Parameters

ParameterType
position{ column: number; row: number; }
position.columnnumber
position.rownumber

Returns

void


removeTransform()

removeTransform(): void

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

Returns

void

Inherited from

Shape.removeTransform


render()

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

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

Parameters

ParameterType
mainCtxUniverRenderingContext
bounds?IViewportInfo

Returns

SheetCollabCursorShape<T>

Inherited from

Shape.render


resetCursor()

resetCursor(): void

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

Returns

void

Inherited from

Shape.resetCursor


resize()

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

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

Parameters

ParameterType
width?string | number
height?string | number

Returns

SheetCollabCursorShape<T>

Inherited from

Shape.resize


scale()

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

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

Parameters

ParameterType
scaleX?number
scaleY?number

Returns

SheetCollabCursorShape<T>

Inherited from

Shape.scale


setCursor()

setCursor(val): void

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

Parameters

ParameterType
valCURSOR_TYPE

Returns

void

Inherited from

Shape.setCursor


setProps()

setProps(props?): Shape<T>

Defined in: 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


setShapeProps()

setShapeProps(props): void

Defined in: packages/collaboration-client-ui/src/views/shapes/sheet-collab-cursor.shape.ts:47

Parameters

ParameterType
propsPartial<ISheetCollabCursorShapeProps>

Returns

void


show()

show(): void

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

Returns

void

Inherited from

Shape.show


skew()

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

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

Parameters

ParameterType
skewX?number
skewY?number

Returns

SheetCollabCursorShape<T>

Inherited from

Shape.skew


toJson()

toJson(): {}

Defined in: submodules/univer/packages/engine-render/src/shape/shape.ts:374

Returns

{}

Inherited from

Shape.toJson


transformByState()

transformByState(option): 
  | undefined
| SheetCollabCursorShape<T>

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

this[pKey] = option[pKey]

Parameters

ParameterType
optionIObjectFullState

Returns

| undefined | SheetCollabCursorShape<T>

Inherited from

Shape.transformByState


transformForAngle()

transformForAngle(transform): Transform

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

Parameters

ParameterType
transformTransform

Returns

Transform

Inherited from

Shape.transformForAngle


translate()

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

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

Parameters

ParameterType
x?string | number
y?string | number

Returns

SheetCollabCursorShape<T>

Inherited from

Shape.translate


triggerDblclick()

triggerDblclick(evt): boolean

Defined in: packages/collaboration-client-ui/src/views/shapes/sheet-collab-cursor.shape.ts:75

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

boolean

Overrides

Shape.triggerDblclick


triggerDragEnter()

triggerDragEnter(evt): boolean

Defined in: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: submodules/univer/packages/engine-render/src/shape/shape.ts:240

Parameters

ParameterType
ctxUniverRenderingContext
propsIShapeProps

Returns

void

Inherited from

Shape.drawWith