Perseus
Preparing search index...
@khanacademy/perseus
<internal>
DrawingTransform
Class DrawingTransform
Index
Constructors
constructor
Properties
bounds
raphael
x
Scale
y
Scale
Methods
canvas
Dimensions
pixels
Per
Unit
X
pixels
Per
Unit
Y
scale
Point
scale
Vector
set
Scale
unscale
Point
unscale
Vector
Constructors
constructor
new
DrawingTransform
(
raphael
:
Raphael
,
initialScale
:
[
number
,
number
]
,
bounds
:
GraphBounds
,
)
:
DrawingTransform
Parameters
raphael
:
Raphael
initialScale
:
[
number
,
number
]
bounds
:
GraphBounds
Returns
DrawingTransform
Properties
bounds
bounds
:
GraphBounds
raphael
raphael
:
Raphael
x
Scale
xScale
:
number
y
Scale
yScale
:
number
Methods
canvas
Dimensions
canvasDimensions
()
:
Coord
Returns
Coord
pixels
Per
Unit
X
pixelsPerUnitX
()
:
number
Returns
number
pixels
Per
Unit
Y
pixelsPerUnitY
()
:
number
Returns
number
scale
Point
scalePoint
(
point
:
number
|
Coord
)
:
Coord
Parameters
point
:
number
|
Coord
Returns
Coord
scale
Vector
scaleVector
(
point
:
number
|
Coord
)
:
any
Parameters
point
:
number
|
Coord
Returns
any
set
Scale
setScale
(
scale
:
number
|
Coord
)
:
void
Parameters
scale
:
number
|
Coord
Returns
void
unscale
Point
unscalePoint
(
point
:
number
|
Coord
)
:
any
Parameters
point
:
number
|
Coord
Returns
any
unscale
Vector
unscaleVector
(
point
:
number
|
Coord
)
:
any
Parameters
point
:
number
|
Coord
Returns
any
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
bounds
raphael
x
Scale
y
Scale
Methods
canvas
Dimensions
pixels
Per
Unit
X
pixels
Per
Unit
Y
scale
Point
scale
Vector
set
Scale
unscale
Point
unscale
Vector
Perseus
Loading...