Skip to main content

AttributeMap

Documentation / editor / AttributeMap

compose()​

function compose(
a: AttributeMap,
b: AttributeMap,
keepNull?: boolean): AttributeMap;

Defined in: editor/delta/AttributeMap.ts:22

Parameters​

ParameterType

a

AttributeMap

b

AttributeMap

keepNull?

boolean

Returns​

AttributeMap


diff()​

function diff(a: AttributeMap, b: AttributeMap): AttributeMap;

Defined in: editor/delta/AttributeMap.ts:55

Parameters​

ParameterType

a

AttributeMap

b

AttributeMap

Returns​

AttributeMap


invert()​

function invert(attr: AttributeMap, base: AttributeMap): AttributeMap;

Defined in: editor/delta/AttributeMap.ts:82

Parameters​

ParameterType

attr

AttributeMap

base

AttributeMap

Returns​

AttributeMap


transform()​

function transform(
a: AttributeMap,
b: AttributeMap,
priority: boolean): AttributeMap;

Defined in: editor/delta/AttributeMap.ts:105

Parameters​

ParameterTypeDefault value

a

AttributeMap

undefined

b

AttributeMap

undefined

priority

boolean

false

Returns​

AttributeMap