Library
core
src
node
container
sentenceEnv
classes
Sentenceenv

Lawtext core referencesDocs


Lawtext core references / core/src/node/container/sentenceEnv / SentenceEnv

Class: SentenceEnv

Constructors

new SentenceEnv()

new SentenceEnv(options): SentenceEnv

Parameters

options: SentenceEnvOptions

Returns

SentenceEnv

Defined in

core/src/node/container/sentenceEnv.ts:409 (opens in a new tab)

Properties

container

container: Container

Defined in

core/src/node/container/sentenceEnv.ts:378 (opens in a new tab)


el

readonly el: SentenceLike

Defined in

core/src/node/container/sentenceEnv.ts:375 (opens in a new tab)


index

readonly index: number

Defined in

core/src/node/container/sentenceEnv.ts:374 (opens in a new tab)


lawType

lawType: string

Defined in

core/src/node/container/sentenceEnv.ts:376 (opens in a new tab)


parentELs

parentELs: EL[]

Defined in

core/src/node/container/sentenceEnv.ts:377 (opens in a new tab)

Accessors

pointerLikes

get pointerLikes(): readonly object[]

Returns

readonly object[]

Defined in

core/src/node/container/sentenceEnv.ts:387 (opens in a new tab)


text

get text(): string

Returns

string

Defined in

core/src/node/container/sentenceEnv.ts:381 (opens in a new tab)

Methods

addPointerLike()

addPointerLike(pointerLike): void

Parameters

pointerLike

pointerLike.pointerLike: PointerLike

pointerLike.textRange: null | [number, number]

Returns

void

Defined in

core/src/node/container/sentenceEnv.ts:391 (opens in a new tab)


linealAscendantOfEL()

linealAscendantOfEL(el): null | EL[]

Parameters

el: EL

Returns

null | EL[]

Defined in

core/src/node/container/sentenceEnv.ts:431 (opens in a new tab)


sentenceTextAt()

sentenceTextAt(targetOffset): null | SentenceText

Parameters

targetOffset: number

Returns

null | SentenceText

Defined in

core/src/node/container/sentenceEnv.ts:475 (opens in a new tab)


textRageOfEL()

textRageOfEL(el): null | [number, number]

Parameters

el: EL

Returns

null | [number, number]

Defined in

core/src/node/container/sentenceEnv.ts:444 (opens in a new tab)