API Reference
@univerjs
@univerjs/engine-render
classes
Componentextension

@univerjs/engine-render v0.4.2Docs


Class: ComponentExtension<T, U, V>

Extended by

Type Parameters

Type Parameter
T
U
V

Constructors

new ComponentExtension()

new ComponentExtension<T, U, V>(): ComponentExtension<T, U, V>

Returns

ComponentExtension<T, U, V>

Properties

PropertyModifierTypeDefault valueDefined in
Z_INDEXprotectednumber0submodules/univer/packages/engine-render/src/components/extension.ts:45 (opens in a new tab)
extensionOffsetpublicIExtensionConfig{}submodules/univer/packages/engine-render/src/components/extension.ts:53 (opens in a new tab)
parentpublicNullable<BaseObject>undefinedsubmodules/univer/packages/engine-render/src/components/extension.ts:47 (opens in a new tab)
translateXpublicnumber0submodules/univer/packages/engine-render/src/components/extension.ts:49 (opens in a new tab)
translateYpublicnumber0submodules/univer/packages/engine-render/src/components/extension.ts:51 (opens in a new tab)
typepublicUundefinedsubmodules/univer/packages/engine-render/src/components/extension.ts:43 (opens in a new tab)
uKeypublicstring''submodules/univer/packages/engine-render/src/components/extension.ts:41 (opens in a new tab)

Accessors

zIndex

get zIndex(): number

Returns

number

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:55 (opens in a new tab)

Methods

_getScale()

protected _getScale(parentScale): number

Parameters

ParameterType
parentScaleIScale

Returns

number

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:67 (opens in a new tab)


clearCache()

clearCache(): void

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:63 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:71 (opens in a new tab)


draw()

draw(
   ctx, 
   parentScale, 
   skeleton, 
   diffBounds?, 
   more?): void

Parameters

ParameterType
ctxUniverRenderingContext
parentScaleIScale
skeletonT
diffBounds?V
more?IDrawInfo

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:59 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.