Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/graphics
PathContext
Class PathContext
Hierarchy
PathContext
Implements
DrawingContext
Index
Constructors
constructor
Properties
d
precision
x0
x1
y0
y1
Epsilon
Accessors
angle
Precision
Methods
arc
arc
To
bezier
Curve
To
close
Path
ellipse
line
To
move
To
quadratic
Curve
To
rect
set
Precision
to
String
Constructors
constructor
new
Path
Context
(
)
:
PathContext
Returns
PathContext
Properties
d
d
:
string
Readonly
precision
precision
:
number
x0
x0
:
number
x1
x1
:
number
y0
y0
:
number
y1
y1
:
number
Static
Epsilon
Epsilon
:
number
Accessors
angle
Precision
get
anglePrecision
(
)
:
number
Returns
number
Methods
arc
arc
(
cx
:
number
, cy
:
number
, r
:
number
, a0
:
number
, a1
:
number
, ccw
?:
boolean
)
:
void
Parameters
cx:
number
cy:
number
r:
number
a0:
number
a1:
number
Optional
ccw:
boolean
Returns
void
arc
To
arc
To
(
x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
, r
:
number
)
:
void
Parameters
x1:
number
y1:
number
x2:
number
y2:
number
r:
number
Returns
void
bezier
Curve
To
bezier
Curve
To
(
x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
, x
:
number
, y
:
number
)
:
void
Parameters
x1:
number
y1:
number
x2:
number
y2:
number
x:
number
y:
number
Returns
void
close
Path
close
Path
(
)
:
void
Returns
void
ellipse
ellipse
(
cx
:
number
, cy
:
number
, rx
:
number
, ry
:
number
, phi
:
number
, a0
:
number
, a1
:
number
, ccw
?:
boolean
)
:
void
Parameters
cx:
number
cy:
number
rx:
number
ry:
number
phi:
number
a0:
number
a1:
number
Optional
ccw:
boolean
Returns
void
line
To
line
To
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
move
To
move
To
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
quadratic
Curve
To
quadratic
Curve
To
(
x1
:
number
, y1
:
number
, x
:
number
, y
:
number
)
:
void
Parameters
x1:
number
y1:
number
x:
number
y:
number
Returns
void
rect
rect
(
x
:
number
, y
:
number
, w
:
number
, h
:
number
)
:
void
Parameters
x:
number
y:
number
w:
number
h:
number
Returns
void
set
Precision
set
Precision
(
precision
:
number
)
:
void
Parameters
precision:
number
Returns
void
to
String
to
String
(
)
:
string
Returns
string
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Path
Context
constructor
d
precision
x0
x1
y0
y1
Epsilon
angle
Precision
arc
arc
To
bezier
Curve
To
close
Path
ellipse
line
To
move
To
quadratic
Curve
To
rect
set
Precision
to
String
Generated using
TypeDoc