@univerjs/engine-render v0.5.0-beta.1 • Docs


Class: Liquid

Constructors

new Liquid()

new Liquid(): Liquid

Returns

Liquid

Accessors

x

Get Signature

get x(): number
Returns

number

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:34


y

Get Signature

get y(): number
Returns

number

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:38

Methods

reset()

reset(): void

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:42


restorePagePadding()

restorePagePadding(page): void

Parameters

ParameterType
pageIDocumentSkeletonPage

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:83


translate()

translate(x, y): void

Parameters

ParameterTypeDefault value
xnumber0
ynumber0

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:52


translateBy()

translateBy(x, y): void

Parameters

ParameterTypeDefault value
xnumber0
ynumber0

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:47


translateColumn()

translateColumn(column): {
  x: columnLeft;
  y: 0;
}

Parameters

ParameterType
columnIDocumentSkeletonColumn

Returns

{
  x: columnLeft;
  y: 0;
}
NameTypeDefault valueDefined in
xnumbercolumnLeftpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:149
ynumber0packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:150

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:143


translateDivide()

translateDivide(divide): {
  x: left;
  y: 0;
}

Parameters

ParameterType
divideIDocumentSkeletonDivide

Returns

{
  x: left;
  y: 0;
}
NameTypeDefault valueDefined in
xnumberleftpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:180
ynumber0packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:181

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:174


translateGlyph()

translateGlyph(glyph): {
  x: spanLeft;
  y: 0;
}

Parameters

ParameterType
glyphIDocumentSkeletonGlyph

Returns

{
  x: spanLeft;
  y: 0;
}
NameTypeDefault valueDefined in
xnumberspanLeftpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:190
ynumber0packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:191

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:185


translateLine()

translateLine(
   line, 
   includeMarginTop, 
   includePaddingTop): {
  x: 0;
  y: lineOffset;
}

Parameters

ParameterTypeDefault value
lineIDocumentSkeletonLineundefined
includeMarginTopbooleanfalse
includePaddingTopbooleanfalse

Returns

{
  x: 0;
  y: lineOffset;
}
NameTypeDefault valueDefined in
xnumber0packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:169
ynumberlineOffsetpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:170

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:154


translatePage()

translatePage(
   page, 
   type, 
   left, 
   top, 
   _right, 
   _bottom): {
  x: pageLeft;
  y: pageTop;
}

Parameters

ParameterTypeDefault value
pageIDocumentSkeletonPageundefined
typePageLayoutTypePageLayoutType.VERTICAL
leftnumber0
topnumber0
_rightnumber0
_bottomnumber0

Returns

{
  x: pageLeft;
  y: pageTop;
}
NameTypeDefault valueDefined in
xnumberpageLeftpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:129
ynumberpageToppackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:130

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:94


translatePagePadding()

translatePagePadding(page): void

Parameters

ParameterType
pageIDocumentSkeletonPage

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:72


translateRestore()

translateRestore(): void

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:64


translateSave()

translateSave(): void

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:57


translateSection()

translateSection(section): {
  x: 0;
  y: sectionTop;
}

Parameters

ParameterType
sectionIDocumentSkeletonSection

Returns

{
  x: 0;
  y: sectionTop;
}
NameTypeDefault valueDefined in
xnumber0packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:138
ynumbersectionToppackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:139

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/docs/liquid.ts:134