@univerjs/engine-render v0.4.2 • Docs
Class: Liquid
Constructors
new Liquid()
new Liquid(): Liquid
Returns
Accessors
x
get x(): number
Returns
number
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:34 (opens in a new tab)
y
get y(): number
Returns
number
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:38 (opens in a new tab)
Methods
reset()
reset(): void
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:42 (opens in a new tab)
restorePagePadding()
restorePagePadding(page): void
Parameters
Parameter | Type |
---|---|
page | IDocumentSkeletonPage |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:83 (opens in a new tab)
translate()
translate(x, y): void
Parameters
Parameter | Type | Default value |
---|---|---|
x | number | 0 |
y | number | 0 |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:52 (opens in a new tab)
translateBy()
translateBy(x, y): void
Parameters
Parameter | Type | Default value |
---|---|---|
x | number | 0 |
y | number | 0 |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:47 (opens in a new tab)
translateColumn()
translateColumn(column): {
x: columnLeft;
y: 0;
}
Parameters
Parameter | Type |
---|---|
column | IDocumentSkeletonColumn |
Returns
{
x: columnLeft;
y: 0;
}
Name | Type | Default value | Defined in |
---|---|---|---|
x | number | columnLeft | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:149 (opens in a new tab) |
y | number | 0 | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:150 (opens in a new tab) |
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:143 (opens in a new tab)
translateDivide()
translateDivide(divide): {
x: left;
y: 0;
}
Parameters
Parameter | Type |
---|---|
divide | IDocumentSkeletonDivide |
Returns
{
x: left;
y: 0;
}
Name | Type | Default value | Defined in |
---|---|---|---|
x | number | left | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:180 (opens in a new tab) |
y | number | 0 | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:181 (opens in a new tab) |
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:174 (opens in a new tab)
translateGlyph()
translateGlyph(glyph): {
x: spanLeft;
y: 0;
}
Parameters
Parameter | Type |
---|---|
glyph | IDocumentSkeletonGlyph |
Returns
{
x: spanLeft;
y: 0;
}
Name | Type | Default value | Defined in |
---|---|---|---|
x | number | spanLeft | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:190 (opens in a new tab) |
y | number | 0 | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:191 (opens in a new tab) |
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:185 (opens in a new tab)
translateLine()
translateLine(
line,
includeMarginTop,
includePaddingTop): {
x: 0;
y: lineOffset;
}
Parameters
Parameter | Type | Default value |
---|---|---|
line | IDocumentSkeletonLine | undefined |
includeMarginTop | boolean | false |
includePaddingTop | boolean | false |
Returns
{
x: 0;
y: lineOffset;
}
Name | Type | Default value | Defined in |
---|---|---|---|
x | number | 0 | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:169 (opens in a new tab) |
y | number | lineOffset | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:170 (opens in a new tab) |
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:154 (opens in a new tab)
translatePage()
translatePage(
page,
type,
left,
top,
_right,
_bottom): {
x: pageLeft;
y: pageTop;
}
Parameters
Parameter | Type | Default value |
---|---|---|
page | IDocumentSkeletonPage | undefined |
type | PageLayoutType | PageLayoutType.VERTICAL |
left | number | 0 |
top | number | 0 |
_right | number | 0 |
_bottom | number | 0 |
Returns
{
x: pageLeft;
y: pageTop;
}
Name | Type | Default value | Defined in |
---|---|---|---|
x | number | pageLeft | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:129 (opens in a new tab) |
y | number | pageTop | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:130 (opens in a new tab) |
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:94 (opens in a new tab)
translatePagePadding()
translatePagePadding(page): void
Parameters
Parameter | Type |
---|---|
page | IDocumentSkeletonPage |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:72 (opens in a new tab)
translateRestore()
translateRestore(): void
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:64 (opens in a new tab)
translateSave()
translateSave(): void
Returns
void
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:57 (opens in a new tab)
translateSection()
translateSection(section): {
x: 0;
y: sectionTop;
}
Parameters
Parameter | Type |
---|---|
section | IDocumentSkeletonSection |
Returns
{
x: 0;
y: sectionTop;
}
Name | Type | Default value | Defined in |
---|---|---|---|
x | number | 0 | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:138 (opens in a new tab) |
y | number | sectionTop | submodules/univer/packages/engine-render/src/components/docs/liquid.ts:139 (opens in a new tab) |
Defined in
submodules/univer/packages/engine-render/src/components/docs/liquid.ts:134 (opens in a new tab)