Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/scale
TimeScaleInterpolator
Class TimeScaleInterpolator<R, RU>
Type parameters
R
:
RU
RU
Hierarchy
ScaleInterpolator
<
DateTime
,
R
,
AnyDateTime
,
RU
,
TimeScale
<
R
>
>
TimeScaleInterpolator
Implements
Equals
Index
Constructors
constructor
Properties
dt
ft
t0
color
shape
structure
transform
Methods
deinterpolate
equals
interpolate
map
range
angle
array
form
from
from
Any
interpolator
len
lng
Lat
map
number
scale
step
time
Constructors
constructor
new
Time
Scale
Interpolator
(
s0
?:
TimeScale
<
R
>
, s1
?:
TimeScale
<
R
>
)
:
TimeScaleInterpolator
Parameters
Optional
s0:
TimeScale
<
R
>
Optional
s1:
TimeScale
<
R
>
Returns
TimeScaleInterpolator
Properties
dt
dt
:
NumberInterpolator
ft
ft
:
InterpolatorInterpolator
<
R
>
t0
t0
:
NumberInterpolator
Static
color
color
:
function
Type declaration
(
c0
?:
AnyColor
, c1
?:
AnyColor
)
:
ColorInterpolator
Parameters
Optional
c0:
AnyColor
Optional
c1:
AnyColor
Returns
ColorInterpolator
Static
shape
shape
:
function
Type declaration
(
s0
?:
AnyShape
, s1
?:
AnyShape
)
:
ShapeInterpolator
Parameters
Optional
s0:
AnyShape
Optional
s1:
AnyShape
Returns
ShapeInterpolator
Static
structure
structure
:
function
Type declaration
<I>
(
i0
?:
AnyItem
, i1
?:
AnyItem
)
:
StructureInterpolator
<
I
>
Type parameters
I
:
Item
Parameters
Optional
i0:
AnyItem
Optional
i1:
AnyItem
Returns
StructureInterpolator
<
I
>
Static
transform
transform
:
function
Type declaration
(
f0
?:
AnyTransform
, f1
?:
AnyTransform
)
:
TransformInterpolator
Parameters
Optional
f0:
AnyTransform
Optional
f1:
AnyTransform
Returns
TransformInterpolator
Methods
deinterpolate
deinterpolate
(
s
:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
)
:
number
Parameters
s:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
Returns
number
equals
equals
(
that
:
any
)
:
boolean
Parameters
that:
any
Returns
boolean
interpolate
interpolate
(
u
:
number
)
:
TimeScale
<
R
>
Parameters
u:
number
Returns
TimeScale
<
R
>
map
map<U>
(
f
:
function
)
:
Interpolator
<
U
>
Type parameters
U
Parameters
f:
function
(
value
:
TimeScale
<
R
>
)
:
U
Parameters
value:
TimeScale
<
R
>
Returns
U
Returns
Interpolator
<
U
>
range
range
(
)
:
TimeScale
<
R
>
[]
range
(
ss
:
ReadonlyArray
<
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
>
)
:
ScaleInterpolator
<
DateTime
,
R
,
AnyDateTime
,
RU
,
TimeScale
<
R
>
>
range
(
s0
:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
, s1
?:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
)
:
ScaleInterpolator
<
DateTime
,
R
,
AnyDateTime
,
RU
,
TimeScale
<
R
>
>
Returns
TimeScale
<
R
>
[]
Parameters
ss:
ReadonlyArray
<
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
>
Returns
ScaleInterpolator
<
DateTime
,
R
,
AnyDateTime
,
RU
,
TimeScale
<
R
>
>
Parameters
s0:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
Optional
s1:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
Returns
ScaleInterpolator
<
DateTime
,
R
,
AnyDateTime
,
RU
,
TimeScale
<
R
>
>
Static
angle
angle
(
a0
?:
AnyAngle
, a1
?:
AnyAngle
)
:
AngleInterpolator
Parameters
Optional
a0:
AnyAngle
Optional
a1:
AnyAngle
Returns
AngleInterpolator
Static
array
array<T>
(
a0
?:
ReadonlyArray
<
T
>
, a1
?:
ReadonlyArray
<
T
>
)
:
ArrayInterpolator
<
T
>
Type parameters
T
Parameters
Optional
a0:
ReadonlyArray
<
T
>
Optional
a1:
ReadonlyArray
<
T
>
Returns
ArrayInterpolator
<
T
>
Static
form
form<T, U>
(
valueForm
?:
Form
<
T
,
U
>
, unit
?:
AnyInterpolator
<
T
,
U
>
)
:
Form
<
Interpolator
<
T
,
U
>
,
AnyInterpolator
<
T
,
U
>
>
Type parameters
T
:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
U
Parameters
Optional
valueForm:
Form
<
T
,
U
>
Optional
unit:
AnyInterpolator
<
T
,
U
>
Returns
Form
<
Interpolator
<
T
,
U
>
,
AnyInterpolator
<
T
,
U
>
>
Static
from
from<T, U>
(
a
?:
U
, b
?:
U
)
:
Interpolator
<
T
,
U
>
Type parameters
T
:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
U
Parameters
Optional
a:
U
Optional
b:
U
Returns
Interpolator
<
T
,
U
>
Static
from
Any
from
Any<T, U>
(
value
:
AnyInterpolator
<
T
,
U
>
)
:
Interpolator
<
T
,
U
>
Type parameters
T
:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
U
Parameters
value:
AnyInterpolator
<
T
,
U
>
Returns
Interpolator
<
T
,
U
>
Static
interpolator
interpolator<T, U>
(
i0
?:
Interpolator
<
T
,
U
>
, i1
?:
Interpolator
<
T
,
U
>
)
:
InterpolatorInterpolator
<
T
,
U
>
Type parameters
T
:
ContinuousScale
<
DateTime
,
R
,
AnyDateTime
,
RU
>
U
Parameters
Optional
i0:
Interpolator
<
T
,
U
>
Optional
i1:
Interpolator
<
T
,
U
>
Returns
InterpolatorInterpolator
<
T
,
U
>
Static
len
len
(
l0
?:
AnyLength
, l1
?:
AnyLength
)
:
LengthInterpolator
Parameters
Optional
l0:
AnyLength
Optional
l1:
AnyLength
Returns
LengthInterpolator
Static
lng
Lat
lng
Lat
(
c0
?:
AnyLngLat
, c1
?:
AnyLngLat
)
:
LngLatInterpolator
Parameters
Optional
c0:
AnyLngLat
Optional
c1:
AnyLngLat
Returns
LngLatInterpolator
Static
map
map<S, T>
(
a
:
S
, b
:
S
, f
:
function
)
:
Interpolator
<
T
>
Type parameters
S
T
Parameters
a:
S
b:
S
f:
function
(
value
:
S
)
:
T
Parameters
value:
S
Returns
T
Returns
Interpolator
<
T
>
Static
number
number
(
y0
?:
number
|
string
, y1
?:
number
|
string
)
:
NumberInterpolator
Parameters
Optional
y0:
number
|
string
Optional
y1:
number
|
string
Returns
NumberInterpolator
Static
scale
scale<D, R, DU, RU>
(
s0
?:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
, s1
?:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
)
:
ScaleInterpolator
<
D
,
R
,
DU
,
RU
>
scale<D, R, DU, RU>
(
s0
?:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
, s1
?:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
)
:
ScaleInterpolator
<
D
,
R
,
DU
,
RU
>
Type parameters
D
:
AnyDateTime
R
:
RU
DU
RU
Parameters
Optional
s0:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
Optional
s1:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
Returns
ScaleInterpolator
<
D
,
R
,
DU
,
RU
>
Type parameters
D
:
AnyDateTime
R
:
RU
DU
RU
Parameters
Optional
s0:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
Optional
s1:
ContinuousScale
<
D
,
R
,
DU
,
RU
>
Returns
ScaleInterpolator
<
D
,
R
,
DU
,
RU
>
Static
step
step<T>
(
y0
?:
T
, y1
?:
T
)
:
StepInterpolator
<
T
>
Type parameters
T
Parameters
Optional
y0:
T
Optional
y1:
T
Returns
StepInterpolator
<
T
>
Static
time
time
(
d0
?:
AnyDateTime
, d1
?:
AnyDateTime
)
:
DateTimeInterpolator
Parameters
Optional
d0:
AnyDateTime
Optional
d1:
AnyDateTime
Returns
DateTimeInterpolator
Globals
@swim/core
@swim/mesh
@swim/ui
@swim/angle
@swim/animate
@swim/color
@swim/constraint
@swim/dom
@swim/font
@swim/gesture
@swim/interpolate
@swim/length
@swim/render
@swim/scale
@swim/shape
@swim/style
@swim/transform
@swim/transition
@swim/typeset
@swim/view
@swim/ux
@swim/web
Continuous
Scale
Linear
Scale
Linear
Scale
Interpolator
Scale
Scale
Interpolator
Time
Scale
Time
Scale
Interpolator
constructor
dt
ft
t0
color
shape
structure
transform
deinterpolate
equals
interpolate
map
range
angle
array
form
from
from
Any
interpolator
len
lng
Lat
map
number
scale
step
time
Scale
Type