- Source: src/curves/typedefs/index.js (Line 7)
Type Definitions
-
EllipseCurveConfig
-
Type:
- object
- Source: src/curves/typedefs/EllipseCurveConfig.js (Line 1)
Properties:
Name Type Argument Default Description x
number <optional>
0 The x coordinate of the ellipse.
y
number <optional>
0 The y coordinate of the ellipse.
xRadius
number <optional>
0 The horizontal radius of the ellipse.
yRadius
number <optional>
0 The vertical radius of the ellipse.
startAngle
number <optional>
0 The start angle of the ellipse, in degrees.
endAngle
number <optional>
360 The end angle of the ellipse, in degrees.
clockwise
boolean <optional>
false Sets if the the ellipse rotation is clockwise (true) or anti-clockwise (false)
rotation
number <optional>
0 The rotation of the ellipse, in degrees.
-
JSONCurve
-
Type:
- object
- Since: 3.0.0
- Source: src/curves/typedefs/JSONCurve.js (Line 1)
Properties:
Name Type Description type
string The of the curve
points
Array.<number> The arrays of points like
[x1, y1, x2, y2]
-
JSONEllipseCurve
-
Type:
- object
- Since: 3.0.0
- Source: src/curves/typedefs/JSONEllipseCurve.js (Line 1)
Properties:
Name Type Description type
string The of the curve.
x
number The x coordinate of the ellipse.
y
number The y coordinate of the ellipse.
xRadius
number The horizontal radius of ellipse.
yRadius
number The vertical radius of ellipse.
startAngle
number The start angle of the ellipse, in degrees.
endAngle
number The end angle of the ellipse, in degrees.
clockwise
boolean Sets if the the ellipse rotation is clockwise (true) or anti-clockwise (false)
rotation
number The rotation of ellipse, in degrees.
-
JSONPath
-
Type:
- object
- Since: 3.0.0
- Source: src/curves/typedefs/JSONPath.js (Line 1)
Properties:
Name Type Description type
string The of the curve.
x
number The X coordinate of the curve's starting point.
y
number The Y coordinate of the path's starting point.
autoClose
boolean The path is auto closed.
curves
Array.<Phaser.Types.Curves.JSONCurve> The list of the curves