@univerjs/engine-render v0.5.4
Class: Border
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/border.ts:42
Extends
Constructors
new Border()
new Border(): Border
Returns
Inherited from
Properties
Property | Type | Default value | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|
extensionOffset | IExtensionConfig | {} | - | SheetExtension .extensionOffset | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:53 |
parent | Nullable <BaseObject > | undefined | - | SheetExtension .parent | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:47 |
preColor | string | undefined | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/border.ts:48 |
preStyle | BorderStyleTypes | undefined | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/border.ts:47 |
translateX | number | 0 | - | SheetExtension .translateX | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:49 |
translateY | number | 0 | - | SheetExtension .translateY | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:51 |
type | GRID | SHEET_EXTENSION_TYPE.GRID | - | SheetExtension .type | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:33 |
uKey | string | UNIQUE_KEY | SheetExtension .uKey | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/border.ts:43 |
Z_INDEX | number | BORDER_Z_INDEX | SheetExtension .Z_INDEX | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/border.ts:45 |
Accessors
zIndex
Get Signature
get zIndex(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:55
Returns
number
Inherited from
Methods
_getScale()
protected _getScale(parentScale): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:67
Parameters
Parameter | Type |
---|---|
parentScale | IScale |
Returns
number
Inherited from
clearCache()
clearCache(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:63
Returns
void
Inherited from
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:71
Returns
void
Inherited from
draw()
draw(
ctx,
_parentScale,
spreadsheetSkeleton,
diffRanges,
__namedParameters): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/border.ts:50
Parameters
Parameter | Type |
---|---|
ctx | UniverRenderingContext |
_parentScale | IScale |
spreadsheetSkeleton | SpreadsheetSkeleton |
diffRanges | IRange [] |
__namedParameters | IDrawInfo |
Returns
void
Overrides
isRenderDiffRangesByCell()
isRenderDiffRangesByCell(rangeP, diffRanges?): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:35
Parameters
Parameter | Type |
---|---|
rangeP | IRange |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByCell
isRenderDiffRangesByColumn()
isRenderDiffRangesByColumn(
curStartColumn,
curEndColumn,
diffRanges?): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:72
Parameters
Parameter | Type |
---|---|
curStartColumn | number |
curEndColumn | number |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByColumn
isRenderDiffRangesByRow()
isRenderDiffRangesByRow(
curStartRow,
curEndRow,
diffRanges?): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:105
Parameters
Parameter | Type |
---|---|
curStartRow | number |
curEndRow | number |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByRow
isRowInRanges()
isRowInRanges(
curStartRow,
curEndRow,
viewranges?): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:144
Check if row range is in view ranges
Parameters
Parameter | Type |
---|---|
curStartRow | number |
curEndRow | number |
viewranges ? | IRange [] |
Returns
boolean
Inherited from
renderBorderByCell()
renderBorderByCell(
renderBorderContext,
row,
col,
borderCacheItem): undefined | true
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/border.ts:97
Parameters
Parameter | Type |
---|---|
renderBorderContext | IRenderBorderContext |
row | number |
col | number |
borderCacheItem | BorderCache |
Returns
undefined
| true