Library
core
src
diff
lawDiff
Readme

Lawtext core referencesDocs


Lawtext core references / core/src/diff/lawDiff

core/src/diff/lawDiff

Index

Classes

Interfaces

Enumerations

DiffStatus

Enumeration Members

Add

Add: "Add"

Defined in

core/src/diff/lawDiff.ts:73 (opens in a new tab)


Change

Change: "Change"

Defined in

core/src/diff/lawDiff.ts:77 (opens in a new tab)


NoChange

NoChange: "NoChange"

Defined in

core/src/diff/lawDiff.ts:79 (opens in a new tab)


Remove

Remove: "Remove"

Defined in

core/src/diff/lawDiff.ts:75 (opens in a new tab)


LawDiffMode

Enumeration Members

DiffAll

DiffAll: "DiffAll"

Defined in

core/src/diff/lawDiff.ts:293 (opens in a new tab)


NoProblemAsNoDiff

NoProblemAsNoDiff: "NoProblemAsNoDiff"

Defined in

core/src/diff/lawDiff.ts:295 (opens in a new tab)


WarningAsNoDiff

WarningAsNoDiff: "WarningAsNoDiff"

Defined in

core/src/diff/lawDiff.ts:297 (opens in a new tab)


LawDiffType

Enumeration Members

ElementChange

ElementChange: 1

Defined in

core/src/diff/lawDiff.ts:33 (opens in a new tab)


ElementMismatch

ElementMismatch: 0

Defined in

core/src/diff/lawDiff.ts:31 (opens in a new tab)


NoDiff

NoDiff: 2

Defined in

core/src/diff/lawDiff.ts:35 (opens in a new tab)


ProblemStatus

Enumeration Members

Error

Error: 2

Defined in

core/src/diff/lawDiff.ts:64 (opens in a new tab)


NoProblem

NoProblem: 0

Defined in

core/src/diff/lawDiff.ts:68 (opens in a new tab)


Warning

Warning: 1

Defined in

core/src/diff/lawDiff.ts:66 (opens in a new tab)


TagType

Enumeration Members

Close

Close: "Close"

Defined in

core/src/diff/lawDiff.ts:12 (opens in a new tab)


Empty

Empty: "Empty"

Defined in

core/src/diff/lawDiff.ts:14 (opens in a new tab)


Open

Open: "Open"

Defined in

core/src/diff/lawDiff.ts:10 (opens in a new tab)


Text

Text: "Text"

Defined in

core/src/diff/lawDiff.ts:16 (opens in a new tab)

Type Aliases

DiffTable<T>

DiffTable<T>: DiffTableRow<T>[]

Type Parameters

T

Defined in

core/src/diff/lawDiff.ts:82 (opens in a new tab)


DiffTableData

DiffTableData: DiffTableRowData[]

Defined in

core/src/diff/lawDiff.ts:1423 (opens in a new tab)


DiffTableRow<T>

DiffTableRow<T>: DiffAddRow<T> | DiffRemoveRow<T> | DiffChangeRow<T> | DiffNoChangeRow<T>

Type Parameters

T

Defined in

core/src/diff/lawDiff.ts:83 (opens in a new tab)


DiffTableRowData

DiffTableRowData: DiffAddRowData | DiffRemoveRowData | DiffChangeRowData | DiffNoChangeRowData

Defined in

core/src/diff/lawDiff.ts:1424 (opens in a new tab)


LawDiffResultItem<T>

LawDiffResultItem<T>: LawDiffElementMismatch<T> | LawDiffElementChange<T> | LawDiffNoDiff<T>

Type Parameters

T

Defined in

core/src/diff/lawDiff.ts:28 (opens in a new tab)


LawDiffResultItemData

LawDiffResultItemData: LawDiffElementMismatchData | LawDiffElementChangeData | LawDiffNoDiffData

Defined in

core/src/diff/lawDiff.ts:1398 (opens in a new tab)

Functions

lawDiff()

lawDiff(oldJson, newJson, lawDiffOptions): LawDiffResult<string>

Parameters

oldJson: JsonEL

newJson: JsonEL

lawDiffOptions: LawDiffOptions

Returns

LawDiffResult<string>

Defined in

core/src/diff/lawDiff.ts:856 (opens in a new tab)


makeDiffData()

makeDiffData(d, origDOM, parsedDOM): LawDiffResultItemData[]

Parameters

d: LawDiffResult<string>

origDOM: Node

parsedDOM: Node

Returns

LawDiffResultItemData[]

Defined in

core/src/diff/lawDiff.ts:1453 (opens in a new tab)