@univerjs/engine-render v0.4.2 • Docs
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
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
Z_INDEX | protected | number | 0 | submodules/univer/packages/engine-render/src/components/extension.ts:45 (opens in a new tab) |
extensionOffset | public | IExtensionConfig | {} | submodules/univer/packages/engine-render/src/components/extension.ts:53 (opens in a new tab) |
parent | public | Nullable <BaseObject > | undefined | submodules/univer/packages/engine-render/src/components/extension.ts:47 (opens in a new tab) |
translateX | public | number | 0 | submodules/univer/packages/engine-render/src/components/extension.ts:49 (opens in a new tab) |
translateY | public | number | 0 | submodules/univer/packages/engine-render/src/components/extension.ts:51 (opens in a new tab) |
type | public | U | undefined | submodules/univer/packages/engine-render/src/components/extension.ts:43 (opens in a new tab) |
uKey | public | string | '' | 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
Parameter | Type |
---|---|
parentScale | IScale |
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
Parameter | Type |
---|---|
ctx | UniverRenderingContext |
parentScale | IScale |
skeleton | T |
diffBounds ? | V |
more ? | IDrawInfo |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/extension.ts:59 (opens in a new tab)