Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/math
Transform
Class Transform
Hierarchy
Transform
IdentityTransform
TranslateTransform
ScaleTransform
RotateTransform
SkewTransform
AffineTransform
TransformList
Implements
R2Operator
Interpolate
<
Transform
>
HashCode
Equivalent
Debug
Index
Constructors
constructor
Methods
conforms
To
debug
equals
equivalent
To
hash
Code
interpolate
To
inverse
rotate
scale
scaleX
scaleY
skew
skewX
skewY
to
Affine
to
Attribute
String
to
Css
Transform
Component
to
Css
Value
to
Matrix
to
String
to
Value
transform
transformX
transformY
translate
translateX
translateY
affine
form
from
Any
from
Css
Transform
from
Css
Transform
Component
from
Css
Value
from
Value
identity
is
Any
list
parse
rotate
scale
scaleX
scaleY
skew
skewX
skewY
translate
translateX
translateY
Constructors
constructor
new
Transform
(
)
:
Transform
Returns
Transform
Methods
Abstract
conforms
To
conforms
To
(
that
:
Transform
)
:
boolean
Parameters
that:
Transform
Returns
boolean
Abstract
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
Abstract
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
Abstract
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
Abstract
hash
Code
hash
Code
(
)
:
number
Returns
number
interpolate
To
interpolate
To
(
that
:
Transform
)
:
Interpolator
<
Transform
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
Transform
>
Parameters
that:
Transform
Returns
Interpolator
<
Transform
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
Transform
>
Abstract
inverse
inverse
(
)
:
Transform
Returns
Transform
rotate
rotate
(
a
:
AnyAngle
)
:
Transform
Parameters
a:
AnyAngle
Returns
Transform
scale
scale
(
x
:
number
, y
:
number
)
:
Transform
Parameters
x:
number
y:
number
Returns
Transform
scaleX
scaleX
(
x
:
number
)
:
Transform
Parameters
x:
number
Returns
Transform
scaleY
scaleY
(
y
:
number
)
:
Transform
Parameters
y:
number
Returns
Transform
skew
skew
(
x
:
AnyAngle
, y
:
AnyAngle
)
:
Transform
Parameters
x:
AnyAngle
y:
AnyAngle
Returns
Transform
skewX
skewX
(
x
:
AnyAngle
)
:
Transform
Parameters
x:
AnyAngle
Returns
Transform
skewY
skewY
(
y
:
AnyAngle
)
:
Transform
Parameters
y:
AnyAngle
Returns
Transform
Abstract
to
Affine
to
Affine
(
)
:
AffineTransform
Returns
AffineTransform
to
Attribute
String
to
Attribute
String
(
)
:
string
Returns
string
to
Css
Transform
Component
to
Css
Transform
Component
(
)
:
null
|
CSSTransformComponent
Returns
null
|
CSSTransformComponent
to
Css
Value
to
Css
Value
(
)
:
null
|
CSSStyleValue
Returns
null
|
CSSStyleValue
to
Matrix
to
Matrix
(
)
:
DOMMatrix
Returns
DOMMatrix
Abstract
to
String
to
String
(
)
:
string
Returns
string
Abstract
to
Value
to
Value
(
)
:
Value
Returns
Value
Abstract
transform
transform
(
that
:
Transform
)
:
Transform
transform
(
x
:
number
, y
:
number
)
:
R2Point
Parameters
that:
Transform
Returns
Transform
Parameters
x:
number
y:
number
Returns
R2Point
Abstract
transformX
transformX
(
x
:
number
, y
:
number
)
:
number
Parameters
x:
number
y:
number
Returns
number
Abstract
transformY
transformY
(
x
:
number
, y
:
number
)
:
number
Parameters
x:
number
y:
number
Returns
number
translate
translate
(
x
:
AnyLength
, y
:
AnyLength
)
:
Transform
Parameters
x:
AnyLength
y:
AnyLength
Returns
Transform
translateX
translateX
(
x
:
AnyLength
)
:
Transform
Parameters
x:
AnyLength
Returns
Transform
translateY
translateY
(
y
:
AnyLength
)
:
Transform
Parameters
y:
AnyLength
Returns
Transform
Static
affine
affine
(
x0
?:
number
, y0
?:
number
, x1
?:
number
, y1
?:
number
, tx
?:
number
, ty
?:
number
)
:
AffineTransform
Parameters
Optional
x0:
number
Optional
y0:
number
Optional
x1:
number
Optional
y1:
number
Optional
tx:
number
Optional
ty:
number
Returns
AffineTransform
Static
form
form
(
)
:
Form
<
Transform
,
AnyTransform
>
Returns
Form
<
Transform
,
AnyTransform
>
Static
from
Any
from
Any
(
value
:
AnyTransform
)
:
Transform
Parameters
value:
AnyTransform
Returns
Transform
Static
from
Css
Transform
from
Css
Transform
(
value
:
CSSTransformValue
)
:
Transform
Parameters
value:
CSSTransformValue
Returns
Transform
Static
from
Css
Transform
Component
from
Css
Transform
Component
(
component
:
CSSTransformComponent
)
:
Transform
Parameters
component:
CSSTransformComponent
Returns
Transform
Static
from
Css
Value
from
Css
Value
(
value
:
CSSStyleValue
)
:
Transform
Parameters
value:
CSSStyleValue
Returns
Transform
Static
from
Value
from
Value
(
value
:
Value
)
:
null
|
Transform
Parameters
value:
Value
Returns
null
|
Transform
Static
identity
identity
(
)
:
Transform
Returns
Transform
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyTransform
Parameters
value:
unknown
Returns
value
is
AnyTransform
Static
list
list
(
...
transforms
:
AnyTransform
[]
)
:
TransformList
Parameters
Rest
...
transforms:
AnyTransform
[]
Returns
TransformList
Static
parse
parse
(
string
:
string
)
:
Transform
Parameters
string:
string
Returns
Transform
Static
rotate
rotate
(
a
:
AnyAngle
)
:
RotateTransform
Parameters
a:
AnyAngle
Returns
RotateTransform
Static
scale
scale
(
x
:
number
, y
:
number
)
:
ScaleTransform
Parameters
x:
number
y:
number
Returns
ScaleTransform
Static
scaleX
scaleX
(
x
:
number
)
:
ScaleTransform
Parameters
x:
number
Returns
ScaleTransform
Static
scaleY
scaleY
(
y
:
number
)
:
ScaleTransform
Parameters
y:
number
Returns
ScaleTransform
Static
skew
skew
(
x
:
AnyAngle
, y
:
AnyAngle
)
:
SkewTransform
Parameters
x:
AnyAngle
y:
AnyAngle
Returns
SkewTransform
Static
skewX
skewX
(
x
:
AnyAngle
)
:
SkewTransform
Parameters
x:
AnyAngle
Returns
SkewTransform
Static
skewY
skewY
(
y
:
AnyAngle
)
:
SkewTransform
Parameters
y:
AnyAngle
Returns
SkewTransform
Static
translate
translate
(
x
:
AnyLength
, y
:
AnyLength
)
:
TranslateTransform
Parameters
x:
AnyLength
y:
AnyLength
Returns
TranslateTransform
Static
translateX
translateX
(
x
:
AnyLength
)
:
TranslateTransform
Parameters
x:
AnyLength
Returns
TranslateTransform
Static
translateY
translateY
(
y
:
AnyLength
)
:
TranslateTransform
Parameters
y:
AnyLength
Returns
TranslateTransform
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
Transform
constructor
conforms
To
debug
equals
equivalent
To
hash
Code
interpolate
To
inverse
rotate
scale
scaleX
scaleY
skew
skewX
skewY
to
Affine
to
Attribute
String
to
Css
Transform
Component
to
Css
Value
to
Matrix
to
String
to
Value
transform
transformX
transformY
translate
translateX
translateY
affine
form
from
Any
from
Css
Transform
from
Css
Transform
Component
from
Css
Value
from
Value
identity
is
Any
list
parse
rotate
scale
scaleX
scaleY
skew
skewX
skewY
translate
translateX
translateY
Generated using
TypeDoc