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

@univerjs/engine-render v0.4.2Docs


Class: Liquid

Constructors

new Liquid()

new Liquid(): Liquid

Returns

Liquid

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

ParameterType
pageIDocumentSkeletonPage

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

ParameterTypeDefault value
xnumber0
ynumber0

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

ParameterTypeDefault value
xnumber0
ynumber0

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

ParameterType
columnIDocumentSkeletonColumn

Returns

{
  x: columnLeft;
  y: 0;
}
NameTypeDefault valueDefined in
xnumbercolumnLeftsubmodules/univer/packages/engine-render/src/components/docs/liquid.ts:149 (opens in a new tab)
ynumber0submodules/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

ParameterType
divideIDocumentSkeletonDivide

Returns

{
  x: left;
  y: 0;
}
NameTypeDefault valueDefined in
xnumberleftsubmodules/univer/packages/engine-render/src/components/docs/liquid.ts:180 (opens in a new tab)
ynumber0submodules/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

ParameterType
glyphIDocumentSkeletonGlyph

Returns

{
  x: spanLeft;
  y: 0;
}
NameTypeDefault valueDefined in
xnumberspanLeftsubmodules/univer/packages/engine-render/src/components/docs/liquid.ts:190 (opens in a new tab)
ynumber0submodules/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

ParameterTypeDefault value
lineIDocumentSkeletonLineundefined
includeMarginTopbooleanfalse
includePaddingTopbooleanfalse

Returns

{
  x: 0;
  y: lineOffset;
}
NameTypeDefault valueDefined in
xnumber0submodules/univer/packages/engine-render/src/components/docs/liquid.ts:169 (opens in a new tab)
ynumberlineOffsetsubmodules/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

ParameterTypeDefault value
pageIDocumentSkeletonPageundefined
typePageLayoutTypePageLayoutType.VERTICAL
leftnumber0
topnumber0
_rightnumber0
_bottomnumber0

Returns

{
  x: pageLeft;
  y: pageTop;
}
NameTypeDefault valueDefined in
xnumberpageLeftsubmodules/univer/packages/engine-render/src/components/docs/liquid.ts:129 (opens in a new tab)
ynumberpageTopsubmodules/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

ParameterType
pageIDocumentSkeletonPage

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

ParameterType
sectionIDocumentSkeletonSection

Returns

{
  x: 0;
  y: sectionTop;
}
NameTypeDefault valueDefined in
xnumber0submodules/univer/packages/engine-render/src/components/docs/liquid.ts:138 (opens in a new tab)
ynumbersectionTopsubmodules/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)


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