Search
Preparing search index...
The search index is not available
pixis
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"Draw"
Pixis
Draw
Class Draw
Hierarchy
Shape
Draw
Index
Constructors
constructor
Properties
attrs
canvas
ctx
parent
shape
Methods
clean
draw
get
Attr
hide
move
redraw
rotate
scale
set
Attrs
set
Pivot
set
Postion
set
Rotation
show
tween
Constructors
constructor
new
Draw
(
config
:
IDrawConfig
)
:
Draw
Parameters
config:
IDrawConfig
Returns
Draw
Properties
attrs
attrs
:
IDrawConfig
canvas
canvas
:
HTMLCanvasElement
ctx
ctx
:
CanvasRenderingContext2D
parent
parent
:
IContainer
shape
shape
:
Sprite
Methods
clean
clean
(
)
:
void
Returns
void
draw
draw
(
)
:
void
Returns
void
get
Attr
get
Attr
(
attr
:
string
)
:
any
Parameters
attr:
string
Returns
any
hide
hide
(
)
:
void
Returns
void
move
move
(
offsetX
:
number
, offsetY
:
number
)
:
void
Parameters
offsetX:
number
offsetY:
number
Returns
void
redraw
redraw
(
draw
:
function
)
:
void
Parameters
draw:
function
(
ctx
:
CanvasRenderingContext2D
)
:
void
Parameters
ctx:
CanvasRenderingContext2D
Returns
void
Returns
void
rotate
rotate
(
offsetAngle
:
number
)
:
void
Parameters
offsetAngle:
number
Returns
void
scale
scale
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
set
Attrs
set
Attrs
(
config
:
IGraphicsShapeConfig
)
:
void
Parameters
config:
IGraphicsShapeConfig
Returns
void
set
Pivot
set
Pivot
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
set
Postion
set
Postion
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
set
Rotation
set
Rotation
(
angle
:
number
)
:
void
Parameters
angle:
number
Returns
void
show
show
(
)
:
void
Returns
void
tween
tween
(
duration
:
number
, to
:
any
, easing
?:
function
)
:
Tween
Parameters
duration:
number
to:
any
Optional
easing:
function
(
t
:
number
, b
:
number
, c
:
number
, d
:
number
)
:
number
Parameters
t:
number
b:
number
c:
number
d:
number
Returns
number
Returns
Tween
Globals
"
Animation"
"
Arc"
"
Circle"
"
Core"
"
Draw"
Pixis
"
Group"
"
Image"
"
Line"
"
Path"
"
Rect"
"
Regular
Polygon"
"
Star"
"
Text"
Draw
constructor
attrs
canvas
ctx
parent
shape
clean
draw
get
Attr
hide
move
redraw
rotate
scale
set
Attrs
set
Pivot
set
Postion
set
Rotation
show
tween
IDraw
Config
Generated using
TypeDoc