Linnet · latest
On this page

Length

symbolica.community.graph Class

Length(value: float, unit: Literal['pt', 'mm', 'cm', 'in', 'em'])

A Typst length such as 2pt or 1.2em.

Constructor

#

Parameters

NameTypeDefaultDescription
valuefloat——
unitLiteral['pt', 'mm', 'cm', 'in', 'em']——

Member details

value

Property · read-only#
value: float

No description is available for this member.

unit

Property · read-only#
unit: str

No description is available for this member.

pt

Static method#
pt(value: float) -> Length

No description is available for this member.

Parameters

NameTypeDefaultDescription
valuefloat——

mm

Static method#
mm(value: float) -> Length

No description is available for this member.

Parameters

NameTypeDefaultDescription
valuefloat——

cm

Static method#
cm(value: float) -> Length

No description is available for this member.

Parameters

NameTypeDefaultDescription
valuefloat——

inches

Static method#
inches(value: float) -> Length

No description is available for this member.

Parameters

NameTypeDefaultDescription
valuefloat——

em

Static method#
em(value: float) -> Length

No description is available for this member.

Parameters

NameTypeDefaultDescription
valuefloat——

__repr__

Method#
__repr__() -> str

No description is available for this member.