Library
core
src
node
container
sentenceEnv
classes
Sentenceenv

Lawtext core references


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

Class: SentenceEnv

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

Constructors

new SentenceEnv()

new SentenceEnv(options): SentenceEnv

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

Parameters

options

SentenceEnvOptions

Returns

SentenceEnv

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 Signature

get pointerLikes(): readonly object[]

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

Returns

readonly object[]


text

Get Signature

get text(): string

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

Returns

string

Methods

addPointerLike()

addPointerLike(pointerLike): void

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

Parameters

pointerLike
pointerLike

PointerLike

textRange

null | [number, number]

Returns

void


linealAscendantOfEL()

linealAscendantOfEL(el): null | EL[]

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

Parameters

el

EL

Returns

null | EL[]


sentenceTextAt()

sentenceTextAt(targetOffset): null | SentenceText

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

Parameters

targetOffset

number

Returns

null | SentenceText


textRageOfEL()

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

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

Parameters

el

EL

Returns

null | [number, number]