Library
core
src
elawsApi
classes
Elawslawdata

Lawtext core referencesDocs


Lawtext core references / core/src/elawsApi / ElawsLawData

Class: ElawsLawData

Extends

Constructors

new ElawsLawData()

new ElawsLawData(lawID, law, imageData, _xml): ElawsLawData

Parameters

lawID: string

law: Element

imageData: null | Uint8Array

_xml: null | string = null

Returns

ElawsLawData

Overrides

LawXMLStruct.constructor

Defined in

core/src/elawsApi.ts:87 (opens in a new tab)

Properties

imageData

readonly imageData: null | Uint8Array

Defined in

core/src/elawsApi.ts:90 (opens in a new tab)


law

readonly law: Element

Defined in

core/src/elawsApi.ts:89 (opens in a new tab)


lawID

readonly lawID: string

Defined in

core/src/elawsApi.ts:88 (opens in a new tab)

Accessors

xml

get xml(): string

Returns

string

Overrides

LawXMLStruct.xml

Defined in

core/src/elawsApi.ts:110 (opens in a new tab)

Methods

ensurePict()

ensurePict(): Promise<null | Map<string, object>>

Returns

Promise<null | Map<string, object>>

Defined in

core/src/elawsApi.ts:122 (opens in a new tab)


getPictBlob()

getPictBlob(src): Promise<null | object>

Parameters

src: string

Returns

Promise<null | object>

Overrides

LawXMLStruct.getPictBlob

Defined in

core/src/elawsApi.ts:137 (opens in a new tab)


getPictFileOrBlobURL()

getPictFileOrBlobURL(src): Promise<null | object>

Parameters

src: string

Returns

Promise<null | object>

Overrides

LawXMLStruct.getPictFileOrBlobURL

Defined in

core/src/elawsApi.ts:114 (opens in a new tab)