gram_ast.measurementliteral


gram.js API

Globals / gram-ast / MeasurementLiteral

Interface: MeasurementLiteral

Represents a decimal with units, like 12.4px or 42.0mm

Hierarchy

  • TextLiteral

    MeasurementLiteral

Indexable

▪ [key: string]: unknown

Represents a decimal with units, like 12.4px or 42.0mm

Index

Properties

Properties

data

Optional data: Data

Inherited from GramSeq.data

Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:23

Information from the ecosystem.


position

Optional position: Position

Inherited from GramSeq.position

Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:29

Location of a node in a source document. Must not be present if a node is generated.


type

type: "measurement"

Overrides void

Defined in packages/gram-ast/src/index.ts:410


unit

unit: string

Defined in packages/gram-ast/src/index.ts:415

The unit suffix of the decimal value.


value

value: string

Inherited from StringLiteral.value

Overrides void

Defined in packages/gram-ast/src/index.ts:277