Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/transform
AffineTransform
Class AffineTransform
Hierarchy
Transform
AffineTransform
Implements
Transformation
R2Operator
HashCode
Debug
Index
Constructors
constructor
Accessors
tx
ty
x0
x1
y0
y1
Methods
conforms
To
debug
equals
hash
Code
inverse
multiply
rotate
scale
scaleX
scaleY
skew
skewX
skewY
to
Affine
to
Attribute
String
to
String
to
Value
transform
transformX
transformY
translate
translateX
translateY
affine
form
from
Any
from
Value
identity
list
parse
rotate
scale
scaleX
scaleY
skew
skewX
skewY
translate
translateX
translateY
Constructors
constructor
new
Affine
Transform
(
x0
?:
string
|
number
, y0
?:
string
|
number
, x1
?:
string
|
number
, y1
?:
string
|
number
, tx
?:
string
|
number
, ty
?:
string
|
number
)
:
AffineTransform
Parameters
Default value
x0:
string
|
number
= 1
Default value
y0:
string
|
number
= 0
Default value
x1:
string
|
number
= 0
Default value
y1:
string
|
number
= 1
Default value
tx:
string
|
number
= 0
Default value
ty:
string
|
number
= 0
Returns
AffineTransform
Accessors
tx
get
tx
(
)
:
number
Returns
number
ty
get
ty
(
)
:
number
Returns
number
x0
get
x0
(
)
:
number
Returns
number
x1
get
x1
(
)
:
number
Returns
number
y0
get
y0
(
)
:
number
Returns
number
y1
get
y1
(
)
:
number
Returns
number
Methods
conforms
To
conforms
To
(
that
:
Transform
)
:
boolean
Parameters
that:
Transform
Returns
boolean
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
equals
equals
(
that
:
Transform
)
:
boolean
Parameters
that:
Transform
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
inverse
inverse
(
)
:
Transform
Returns
Transform
multiply
multiply
(
that
:
AffineTransform
)
:
AffineTransform
Parameters
that:
AffineTransform
Returns
AffineTransform
rotate
rotate
(
a
:
AnyAngle
)
:
Transform
Parameters
a:
AnyAngle
Returns
Transform
scale
scale
(
x
:
string
|
number
, y
:
string
|
number
)
:
Transform
Parameters
x:
string
|
number
y:
string
|
number
Returns
Transform
scaleX
scaleX
(
x
:
string
|
number
)
:
Transform
Parameters
x:
string
|
number
Returns
Transform
scaleY
scaleY
(
y
:
string
|
number
)
:
Transform
Parameters
y:
string
|
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
to
Affine
to
Affine
(
)
:
AffineTransform
Returns
AffineTransform
to
Attribute
String
to
Attribute
String
(
)
:
string
Returns
string
to
String
to
String
(
)
:
string
Returns
string
to
Value
to
Value
(
)
:
Value
Returns
Value
transform
transform
(
that
:
Transform
)
:
Transform
transform
(
point
:
[
number
,
number
]
)
:
[
number
,
number
]
transform
(
x
:
number
, y
:
number
)
:
[
number
,
number
]
transform
(
point
:
[
AnyLength
,
AnyLength
]
)
:
[
Length
,
Length
]
transform
(
x
:
AnyLength
, y
:
AnyLength
)
:
[
Length
,
Length
]
Parameters
that:
Transform
Returns
Transform
Parameters
point:
[
number
,
number
]
Returns
[
number
,
number
]
Parameters
x:
number
y:
number
Returns
[
number
,
number
]
Parameters
point:
[
AnyLength
,
AnyLength
]
Returns
[
Length
,
Length
]
Parameters
x:
AnyLength
y:
AnyLength
Returns
[
Length
,
Length
]
transformX
transformX
(
x
:
number
, y
:
number
)
:
number
Parameters
x:
number
y:
number
Returns
number
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
?:
string
|
number
, y0
?:
string
|
number
, x1
?:
string
|
number
, y1
?:
string
|
number
, tx
?:
string
|
number
, ty
?:
string
|
number
)
:
AffineTransform
Parameters
Optional
x0:
string
|
number
Optional
y0:
string
|
number
Optional
x1:
string
|
number
Optional
y1:
string
|
number
Optional
tx:
string
|
number
Optional
ty:
string
|
number
Returns
AffineTransform
Static
form
form
(
unit
?:
AnyTransform
)
:
Form
<
Transform
,
AnyTransform
>
Parameters
Optional
unit:
AnyTransform
Returns
Form
<
Transform
,
AnyTransform
>
Static
from
Any
from
Any
(
value
:
AffineTransform
|
string
)
:
AffineTransform
Parameters
value:
AffineTransform
|
string
Returns
AffineTransform
Static
from
Value
from
Value
(
value
:
Value
)
:
AffineTransform
|
undefined
Parameters
value:
Value
Returns
AffineTransform
|
undefined
Static
identity
identity
(
)
:
AffineTransform
Returns
AffineTransform
Static
list
list
(
...
transforms
:
AnyTransform
[]
)
:
TransformList
Parameters
Rest
...
transforms:
AnyTransform
[]
Returns
TransformList
Static
parse
parse
(
string
:
string
)
:
AffineTransform
Parameters
string:
string
Returns
AffineTransform
Static
rotate
rotate
(
a
:
AnyAngle
)
:
RotateTransform
Parameters
a:
AnyAngle
Returns
RotateTransform
Static
scale
scale
(
x
:
string
|
number
, y
:
string
|
number
)
:
ScaleTransform
Parameters
x:
string
|
number
y:
string
|
number
Returns
ScaleTransform
Static
scaleX
scaleX
(
x
:
string
|
number
)
:
ScaleTransform
Parameters
x:
string
|
number
Returns
ScaleTransform
Static
scaleY
scaleY
(
y
:
string
|
number
)
:
ScaleTransform
Parameters
y:
string
|
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
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
Affine
Transform
constructor
tx
ty
x0
x1
y0
y1
conforms
To
debug
equals
hash
Code
inverse
multiply
rotate
scale
scaleX
scaleY
skew
skewX
skewY
to
Affine
to
Attribute
String
to
String
to
Value
transform
transformX
transformY
translate
translateX
translateY
affine
form
from
Any
from
Value
identity
list
parse
rotate
scale
scaleX
scaleY
skew
skewX
skewY
translate
translateX
translateY
Identity
Transform
Rotate
Transform
Scale
Transform
Skew
Transform
Transform
Transform
List
Translate
Transform
Transformation
Any
Transform