Library
core
src
elawsApi
classes
Elawslawdata

Lawtext core references


Lawtext core references / core/src/elawsApi / ElawsLawData

Class: ElawsLawData

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

Extends

Constructors

new ElawsLawData()

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

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

Parameters

lawID

string

law

Element

imageData

null | Uint8Array<ArrayBufferLike>

_xml

null | string

Returns

ElawsLawData

Overrides

LawXMLStruct.constructor

Properties

imageData

readonly imageData: null | Uint8Array<ArrayBufferLike>

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 Signature

get xml(): string

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

Returns

string

Overrides

LawXMLStruct.xml

Methods

ensurePict()

ensurePict(): Promise<null | Map<string, { buf: ArrayBuffer; type: string; }>>

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

Returns

Promise<null | Map<string, { buf: ArrayBuffer; type: string; }>>


getPictBlob()

getPictBlob(src): Promise<null | { buf: ArrayBuffer; type: string; }>

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

Parameters

src

string

Returns

Promise<null | { buf: ArrayBuffer; type: string; }>

Overrides

LawXMLStruct.getPictBlob


getPictFileOrBlobURL()

getPictFileOrBlobURL(src): Promise<null | { type: string; url: string; }>

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

Parameters

src

string

Returns

Promise<null | { type: string; url: string; }>

Overrides

LawXMLStruct.getPictFileOrBlobURL