maps/invert#
Interfaces#
InversionContext#
Defined in: maps/invert.ts:28
What a map is inverted with: the compile context and the span of positions it is read over.
Extends#
Properties#
knots?#
readonlyoptionalknots?: readonlyMeasureKnots[]
Defined in: maps/compile.ts:34
Inherited from#
span#
readonlyspan:object
Defined in: maps/invert.ts:30
The first and last position of the span; end is null where the line’s length is unknown.
end#
readonlyend:Real|null
start#
readonlystart:Real
Functions#
invert()#
invert(
map,value,context):Real|null
Defined in: maps/invert.ts:378
The position at which map gives value, read over the context’s span:
exact (a Rational) when the value and every parameter the inverse reads
are exact, else a float; null when the map is not invertible there or
no position of the intervals it reaches gives the value. The position may
lie outside the span (a LinearMap reaches every value); whether it is
allowed is the caller’s to say.
Parameters#
map#
{ } | { } | { } | { } | { } | { } | { } | { } | { } | { }
value#
context#
Returns#
Real | null
invertible()#
invertible(
map,context):boolean
Defined in: maps/invert.ts:366
Whether map is strictly monotone, so invertible, over the context’s span.
Parameters#
map#
{ } | { } | { } | { } | { } | { } | { } | { } | { } | { }
context#
Returns#
boolean