melonjs 19.7.1 → 19.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -6
- package/build/application/application.d.ts.map +1 -1
- package/build/application/defaultApplicationSettings.d.ts +1 -0
- package/build/application/defaultApplicationSettings.d.ts.map +1 -1
- package/build/application/settings.d.ts +34 -0
- package/build/application/settings.d.ts.map +1 -1
- package/build/audio/audio.d.ts +1 -1
- package/build/audio/audio.d.ts.map +1 -1
- package/build/audio/backend.d.ts +21 -2
- package/build/audio/backend.d.ts.map +1 -1
- package/build/audio/playback.d.ts +8 -28
- package/build/audio/playback.d.ts.map +1 -1
- package/build/camera/camera3d.d.ts +49 -0
- package/build/camera/camera3d.d.ts.map +1 -1
- package/build/geometries/path2d.d.ts +188 -75
- package/build/geometries/path2d.d.ts.map +1 -1
- package/build/geometries/rectangle.d.ts.map +1 -1
- package/build/index.d.ts +11 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +19170 -13625
- package/build/index.js.map +4 -4
- package/build/level/gltf/GLTFModel.d.ts +173 -0
- package/build/level/gltf/GLTFModel.d.ts.map +1 -0
- package/build/level/gltf/GLTFScene.d.ts +84 -0
- package/build/level/gltf/GLTFScene.d.ts.map +1 -0
- package/build/level/gltf/gltf_sampler.d.ts +49 -0
- package/build/level/gltf/gltf_sampler.d.ts.map +1 -0
- package/build/level/level.d.ts +7 -3
- package/build/level/level.d.ts.map +1 -1
- package/build/level/tiled/TMXTileMap.d.ts +5 -0
- package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
- package/build/{renderable → lighting}/light2d.d.ts +79 -78
- package/build/lighting/light2d.d.ts.map +1 -0
- package/build/lighting/light3d.d.ts +86 -0
- package/build/lighting/light3d.d.ts.map +1 -0
- package/build/loader/cache.d.ts +2 -0
- package/build/loader/cache.d.ts.map +1 -1
- package/build/loader/loader.d.ts +156 -8
- package/build/loader/loader.d.ts.map +1 -1
- package/build/loader/parsers/fetchdata.d.ts +14 -0
- package/build/loader/parsers/fetchdata.d.ts.map +1 -1
- package/build/loader/parsers/gltf.d.ts +71 -0
- package/build/loader/parsers/gltf.d.ts.map +1 -0
- package/build/loader/parsers/mtl.d.ts.map +1 -1
- package/build/loader/parsers/shader.d.ts +47 -0
- package/build/loader/parsers/shader.d.ts.map +1 -0
- package/build/loader/parsers/video.d.ts.map +1 -1
- package/build/math/color.d.ts.map +1 -1
- package/build/math/math.d.ts +2 -2
- package/build/math/matrix2d.d.ts.map +1 -1
- package/build/math/noise.d.ts +141 -0
- package/build/math/noise.d.ts.map +1 -0
- package/build/math/observableVector2d.d.ts +1 -1
- package/build/math/observableVector2d.d.ts.map +1 -1
- package/build/math/observableVector3d.d.ts +1 -1
- package/build/math/observableVector3d.d.ts.map +1 -1
- package/build/math/vector2d.d.ts +1 -1
- package/build/math/vector2d.d.ts.map +1 -1
- package/build/math/vector3d.d.ts +1 -1
- package/build/math/vector3d.d.ts.map +1 -1
- package/build/math/vertex.d.ts +25 -0
- package/build/math/vertex.d.ts.map +1 -1
- package/build/physics/adapter.d.ts +4 -3
- package/build/physics/adapter.d.ts.map +1 -1
- package/build/physics/broadphase/aabb3d.d.ts +23 -2
- package/build/physics/broadphase/aabb3d.d.ts.map +1 -1
- package/build/renderable/anchorPoint.d.ts +80 -0
- package/build/renderable/anchorPoint.d.ts.map +1 -0
- package/build/renderable/animation.d.ts +41 -0
- package/build/renderable/animation.d.ts.map +1 -0
- package/build/renderable/collectable.d.ts +7 -1
- package/build/renderable/collectable.d.ts.map +1 -1
- package/build/renderable/container.d.ts +0 -1
- package/build/renderable/container.d.ts.map +1 -1
- package/build/renderable/entity/entity.d.ts +5 -2
- package/build/renderable/entity/entity.d.ts.map +1 -1
- package/build/renderable/frameAnimation.d.ts +154 -0
- package/build/renderable/frameAnimation.d.ts.map +1 -0
- package/build/renderable/imagelayer.d.ts +5 -2
- package/build/renderable/imagelayer.d.ts.map +1 -1
- package/build/renderable/mesh.d.ts +175 -6
- package/build/renderable/mesh.d.ts.map +1 -1
- package/build/renderable/nineslicesprite.d.ts +5 -7
- package/build/renderable/nineslicesprite.d.ts.map +1 -1
- package/build/renderable/renderable.d.ts +28 -1
- package/build/renderable/renderable.d.ts.map +1 -1
- package/build/renderable/sprite.d.ts +84 -34
- package/build/renderable/sprite.d.ts.map +1 -1
- package/build/renderable/sprite3d.d.ts +350 -0
- package/build/renderable/sprite3d.d.ts.map +1 -0
- package/build/renderable/text/bitmaptext.d.ts +24 -12
- package/build/renderable/text/bitmaptext.d.ts.map +1 -1
- package/build/renderable/text/bitmaptextdata.d.ts +24 -1
- package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
- package/build/renderable/text/text.d.ts +50 -12
- package/build/renderable/text/text.d.ts.map +1 -1
- package/build/state/stage.d.ts +20 -1
- package/build/state/stage.d.ts.map +1 -1
- package/build/system/event.d.ts +18 -2
- package/build/system/event.d.ts.map +1 -1
- package/build/video/buffer/vertex.d.ts +7 -0
- package/build/video/buffer/vertex.d.ts.map +1 -1
- package/build/video/canvas/canvas_renderer.d.ts +4 -0
- package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
- package/build/video/renderer.d.ts +62 -1
- package/build/video/renderer.d.ts.map +1 -1
- package/build/video/rendertarget/render_target_pool.d.ts +17 -6
- package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
- package/build/video/texture/atlas.d.ts +3 -2
- package/build/video/texture/atlas.d.ts.map +1 -1
- package/build/video/texture/cache.d.ts +55 -6
- package/build/video/texture/cache.d.ts.map +1 -1
- package/build/video/texture/frametexture.d.ts +73 -0
- package/build/video/texture/frametexture.d.ts.map +1 -0
- package/build/video/texture/noise_texture2d.d.ts +176 -0
- package/build/video/texture/noise_texture2d.d.ts.map +1 -0
- package/build/video/texture/parser/aseprite.d.ts.map +1 -1
- package/build/video/texture/texture2d.d.ts +83 -0
- package/build/video/texture/texture2d.d.ts.map +1 -0
- package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +18 -0
- package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -0
- package/build/video/webgl/batchers/lit_quad_batcher.d.ts +30 -4
- package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/material_batcher.d.ts +39 -3
- package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/mesh_batcher.d.ts +52 -11
- package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
- package/build/video/webgl/buffer/index.d.ts +13 -0
- package/build/video/webgl/buffer/index.d.ts.map +1 -1
- package/build/video/webgl/effects/hologram.d.ts +0 -5
- package/build/video/webgl/effects/hologram.d.ts.map +1 -1
- package/build/video/webgl/effects/shine.d.ts +1 -6
- package/build/video/webgl/effects/shine.d.ts.map +1 -1
- package/build/video/webgl/glshader.d.ts +29 -0
- package/build/video/webgl/glshader.d.ts.map +1 -1
- package/build/video/webgl/lighting/pack3d.d.ts +32 -0
- package/build/video/webgl/lighting/pack3d.d.ts.map +1 -0
- package/build/video/webgl/shadereffect.d.ts +183 -0
- package/build/video/webgl/shadereffect.d.ts.map +1 -1
- package/build/video/webgl/webgl_renderer.d.ts +59 -1
- package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
- package/package.json +5 -5
- package/build/renderable/light2d.d.ts.map +0 -1
|
@@ -1,53 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* additional import for TypeScript
|
|
4
|
-
* @import {Point} from "./point.ts";
|
|
5
|
-
*/
|
|
1
|
+
import { type Point } from "./point.ts";
|
|
6
2
|
/**
|
|
7
|
-
* A
|
|
8
|
-
*
|
|
3
|
+
* A 2D path builder used by both the WebGL and Canvas renderers to build and
|
|
4
|
+
* interpolate paths from SVG command strings or direct method calls. Its method
|
|
5
|
+
* semantics follow the standard
|
|
6
|
+
* [Path2D](https://developer.mozilla.org/en-US/docs/Web/API/Path2D) API.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
8
|
+
* Each renderer exposes a reusable instance as `renderer.path2D`; you can also
|
|
9
|
+
* create your own with `new Path2D()`. Build a path (via {@link parseSVGPath} or
|
|
10
|
+
* the imperative {@link moveTo}/{@link lineTo}/curve methods), then draw it with
|
|
11
|
+
* the renderer's `stroke()` (outline) and `fill()` (solid) methods. Curves and
|
|
12
|
+
* arcs are flattened into line segments; {@link arcResolution} controls how fine
|
|
13
|
+
* that approximation is.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* **Sub-paths & holes:** a new sub-path begins on every {@link moveTo} (and on
|
|
16
|
+
* each `M` in an SVG string). When filled, the first sub-path is the outer
|
|
17
|
+
* contour and each subsequent sub-path is treated as a hole — so shapes with
|
|
18
|
+
* holes or disconnected regions (a donut, a ring, the letter "O", text outlines)
|
|
19
|
+
* fill correctly. The Canvas renderer fills via the native non-zero winding rule
|
|
20
|
+
* (so holes should be wound opposite to the outer contour); the WebGL renderer
|
|
21
|
+
* triangulates with holes via earcut, which matches that result for the usual
|
|
22
|
+
* case of oppositely-wound holes. Sub-path boundaries are tracked in
|
|
23
|
+
* {@link subPaths}.
|
|
24
|
+
*
|
|
25
|
+
* Supported SVG commands: `M`, `L`, `H`, `V`, `Q`, `C`, `A`, `Z` (uppercase /
|
|
26
|
+
* absolute only; `H` and `V` take a relative offset).
|
|
27
|
+
* @example
|
|
28
|
+
* // build a path with the imperative API, then fill and outline it
|
|
29
|
+
* const path = renderer.path2D;
|
|
30
|
+
* path.beginPath();
|
|
31
|
+
* path.moveTo(50, 0);
|
|
32
|
+
* path.lineTo(100, 100);
|
|
33
|
+
* path.lineTo(0, 100);
|
|
34
|
+
* path.closePath();
|
|
35
|
+
* renderer.setColor("#4CAF50");
|
|
36
|
+
* renderer.fill(); // fill the current path
|
|
37
|
+
* renderer.setColor("#1B5E20");
|
|
38
|
+
* renderer.stroke(); // outline the current path
|
|
39
|
+
* @example
|
|
40
|
+
* // the same triangle from an SVG path string
|
|
41
|
+
* renderer.path2D.parseSVGPath("M 50 0 L 100 100 L 0 100 Z");
|
|
42
|
+
* renderer.fill();
|
|
16
43
|
* @category Geometry
|
|
17
44
|
*/
|
|
18
45
|
declare class Path2D {
|
|
19
|
-
constructor(svgPath: any);
|
|
20
46
|
/**
|
|
21
47
|
* the points defining the current path
|
|
22
|
-
* @type {Point[]}
|
|
23
48
|
*/
|
|
24
49
|
points: Point[];
|
|
50
|
+
/**
|
|
51
|
+
* start index (into {@link points}) of each sub-path after the first; used
|
|
52
|
+
* as the hole indices when triangulating, and as the `moveTo` boundaries
|
|
53
|
+
* when the Canvas renderer replays the path.
|
|
54
|
+
*/
|
|
55
|
+
subPaths: number[];
|
|
56
|
+
/**
|
|
57
|
+
* whether the pen has been explicitly placed (via {@link moveTo}) since
|
|
58
|
+
* the last {@link beginPath} — distinguishes "virgin path" from "pen
|
|
59
|
+
* parked at (0, 0)" so {@link arc}/{@link ellipse}/{@link arcTo} know
|
|
60
|
+
* whether to start fresh or connect from the current point (the native
|
|
61
|
+
* Path2D behavior).
|
|
62
|
+
* @ignore
|
|
63
|
+
*/
|
|
64
|
+
private penMoved;
|
|
25
65
|
/**
|
|
26
66
|
* space between interpolated points for quadratic and bezier curve approx. in pixels.
|
|
27
|
-
* @type {number}
|
|
28
67
|
* @default 2
|
|
29
68
|
*/
|
|
30
69
|
arcResolution: number;
|
|
31
|
-
vertices:
|
|
70
|
+
vertices: Point[];
|
|
32
71
|
startPoint: Point;
|
|
33
72
|
isDirty: boolean;
|
|
73
|
+
constructor(svgPath?: string);
|
|
34
74
|
/**
|
|
35
75
|
* Parses an SVG path string and generates interpolated points for rendering.
|
|
36
76
|
* Clears any existing path data before parsing (calls {@link beginPath} internally).
|
|
37
77
|
*
|
|
38
78
|
* Supported commands:
|
|
39
|
-
* - **M** x y — move to (
|
|
79
|
+
* - **M** x y — move to (starts a new sub-path)
|
|
40
80
|
* - **L** x y — line to
|
|
41
81
|
* - **H** dx — horizontal line (relative offset from current x)
|
|
42
82
|
* - **V** dy — vertical line (relative offset from current y)
|
|
43
83
|
* - **Q** cx cy x y — quadratic Bézier curve
|
|
44
84
|
* - **C** cx1 cy1 cx2 cy2 x y — cubic Bézier curve
|
|
45
85
|
* - **A** rx ry xRot largeArc sweep x y — elliptical arc
|
|
46
|
-
* - **Z** — close path (line back to
|
|
47
|
-
*
|
|
48
|
-
* After parsing, the generated points are available in {@link points} and can be
|
|
49
|
-
* rendered using the renderer's `stroke()` and `fill()` methods.
|
|
86
|
+
* - **Z** — close the current sub-path (line back to its starting point)
|
|
50
87
|
*
|
|
88
|
+
* Multiple `M` commands define separate sub-paths; when filled the first is
|
|
89
|
+
* the outer contour and the rest are holes. After parsing, the generated
|
|
90
|
+
* points are available in {@link points} and can be rendered using the
|
|
91
|
+
* renderer's `stroke()` and `fill()` methods.
|
|
51
92
|
* @example
|
|
52
93
|
* // draw a heart shape
|
|
53
94
|
* renderer.path2D.parseSVGPath(
|
|
@@ -55,108 +96,180 @@ declare class Path2D {
|
|
|
55
96
|
* );
|
|
56
97
|
* renderer.setColor("#EF5350");
|
|
57
98
|
* renderer.fill();
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
99
|
+
* @example
|
|
100
|
+
* // a donut: an outer ring with an inner hole (two `M` sub-paths)
|
|
101
|
+
* renderer.path2D.parseSVGPath(
|
|
102
|
+
* "M 0 40 A 40 40 0 1 0 80 40 A 40 40 0 1 0 0 40 Z " +
|
|
103
|
+
* "M 20 40 A 20 20 0 1 0 60 40 A 20 20 0 1 0 20 40 Z"
|
|
104
|
+
* );
|
|
105
|
+
* renderer.fill();
|
|
106
|
+
* @param svgPath - An SVG path data string (e.g. "M 0 0 L 100 0 L 50 100 Z").
|
|
107
|
+
* Only uppercase (absolute) commands are supported.
|
|
63
108
|
*/
|
|
64
109
|
parseSVGPath(svgPath: string): void;
|
|
65
110
|
/**
|
|
66
|
-
* begin a new path
|
|
111
|
+
* begin a new (empty) path, discarding all previously recorded points and
|
|
112
|
+
* sub-paths. Called automatically by {@link parseSVGPath}.
|
|
113
|
+
* @example
|
|
114
|
+
* path.beginPath();
|
|
115
|
+
* path.rect(0, 0, 100, 60);
|
|
116
|
+
* renderer.fill();
|
|
67
117
|
*/
|
|
68
118
|
beginPath(): void;
|
|
69
119
|
/**
|
|
70
|
-
* causes the point of the pen to move back to the start of the current path.
|
|
120
|
+
* causes the point of the pen to move back to the start of the current sub-path.
|
|
71
121
|
* It tries to draw a straight line from the current point to the start.
|
|
72
122
|
* If the shape has already been closed or has only one point, this function does nothing.
|
|
123
|
+
* @example
|
|
124
|
+
* path.beginPath();
|
|
125
|
+
* path.moveTo(0, 0);
|
|
126
|
+
* path.lineTo(50, 0);
|
|
127
|
+
* path.lineTo(25, 40);
|
|
128
|
+
* path.closePath(); // draw the final edge back to (0, 0)
|
|
73
129
|
*/
|
|
74
130
|
closePath(): void;
|
|
75
131
|
/**
|
|
76
|
-
* triangulate the shape defined by this path into
|
|
77
|
-
*
|
|
132
|
+
* triangulate the shape defined by this path into a flat list of triangle
|
|
133
|
+
* vertices (every three consecutive points form one triangle). Sub-paths
|
|
134
|
+
* after the first are treated as holes. Used by the WebGL renderer to fill,
|
|
135
|
+
* and cached until the path changes.
|
|
136
|
+
* @returns the triangulated vertices, three per triangle
|
|
137
|
+
* @example
|
|
138
|
+
* path.parseSVGPath("M 0 0 L 100 0 L 50 100 Z");
|
|
139
|
+
* const verts = path.triangulatePath(); // 3 vertices = 1 triangle
|
|
78
140
|
*/
|
|
79
141
|
triangulatePath(): Point[];
|
|
80
142
|
/**
|
|
81
|
-
* moves the starting point of
|
|
82
|
-
* @param
|
|
83
|
-
* @param
|
|
143
|
+
* moves the starting point of a new sub-path to the (x, y) coordinates.
|
|
144
|
+
* @param x - the x-axis (horizontal) coordinate of the point.
|
|
145
|
+
* @param y - the y-axis (vertical) coordinate of the point.
|
|
146
|
+
* @example
|
|
147
|
+
* path.beginPath();
|
|
148
|
+
* path.moveTo(20, 20); // lift the pen to (20, 20): starts a new sub-path
|
|
149
|
+
* path.lineTo(80, 20);
|
|
84
150
|
*/
|
|
85
151
|
moveTo(x: number, y: number): void;
|
|
86
152
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
153
|
+
* Start the outline of an arc/ellipse at (x, y): per the native Path2D
|
|
154
|
+
* spec, when the path already has content the arc is CONNECTED to the
|
|
155
|
+
* current point with a straight line — only a virgin path (no points, no
|
|
156
|
+
* explicit moveTo) starts fresh. An unconditional moveTo here would
|
|
157
|
+
* silently start a new sub-path, which fill() treats as a HOLE cut out
|
|
158
|
+
* of the shape.
|
|
159
|
+
* @ignore
|
|
160
|
+
*/
|
|
161
|
+
private connectTo;
|
|
162
|
+
/**
|
|
163
|
+
* connects the last point in the current sub-path to the (x, y) coordinates with a straight line.
|
|
164
|
+
* @param x - the x-axis coordinate of the line's end point.
|
|
165
|
+
* @param y - the y-axis coordinate of the line's end point.
|
|
166
|
+
* @example
|
|
167
|
+
* path.beginPath();
|
|
168
|
+
* path.moveTo(0, 0);
|
|
169
|
+
* path.lineTo(50, 0); // horizontal segment
|
|
170
|
+
* path.lineTo(50, 50); // vertical segment (an "L" shape)
|
|
90
171
|
*/
|
|
91
172
|
lineTo(x: number, y: number): void;
|
|
92
173
|
/**
|
|
93
174
|
* adds an arc to the current path which is centered at (x, y) position with the given radius,
|
|
94
175
|
* starting at startAngle and ending at endAngle going in the given direction by counterclockwise (defaulting to clockwise).
|
|
95
|
-
* @param
|
|
96
|
-
* @param
|
|
97
|
-
* @param
|
|
98
|
-
* @param
|
|
99
|
-
* @param
|
|
100
|
-
* @param
|
|
176
|
+
* @param x - the horizontal coordinate of the arc's center.
|
|
177
|
+
* @param y - the vertical coordinate of the arc's center.
|
|
178
|
+
* @param radius - the arc's radius. Must be positive.
|
|
179
|
+
* @param startAngle - the angle at which the arc starts in radians, measured from the positive x-axis.
|
|
180
|
+
* @param endAngle - the angle at which the arc ends in radians, measured from the positive x-axis.
|
|
181
|
+
* @param [anticlockwise=false] - an optional boolean value. If true, draws the arc counter-clockwise between the start and end angles.
|
|
182
|
+
* @example
|
|
183
|
+
* // a full circle of radius 40 centred at (50, 50)
|
|
184
|
+
* path.beginPath();
|
|
185
|
+
* path.arc(50, 50, 40, 0, Math.PI * 2);
|
|
186
|
+
* renderer.stroke();
|
|
101
187
|
*/
|
|
102
188
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
|
|
103
189
|
/**
|
|
104
190
|
* adds a circular arc to the path with the given control points and radius, connected to the previous point by a straight line.
|
|
105
|
-
* @param
|
|
106
|
-
* @param
|
|
107
|
-
* @param
|
|
108
|
-
* @param
|
|
109
|
-
* @param
|
|
191
|
+
* @param x1 - the x-axis coordinate of the first control point.
|
|
192
|
+
* @param y1 - the y-axis coordinate of the first control point.
|
|
193
|
+
* @param x2 - the x-axis coordinate of the second control point.
|
|
194
|
+
* @param y2 - the y-axis coordinate of the second control point.
|
|
195
|
+
* @param radius - the arc's radius. Must be positive.
|
|
196
|
+
* @example
|
|
197
|
+
* // round the corner where two segments meet at (50, 0)
|
|
198
|
+
* path.beginPath();
|
|
199
|
+
* path.moveTo(0, 0);
|
|
200
|
+
* path.arcTo(50, 0, 50, 50, 20);
|
|
201
|
+
* path.lineTo(50, 50);
|
|
110
202
|
*/
|
|
111
203
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
112
204
|
/**
|
|
113
205
|
* adds an elliptical arc to the path which is centered at (x, y) position with the radii radiusX and radiusY
|
|
114
206
|
* starting at startAngle and ending at endAngle going in the given direction by counterclockwise.
|
|
115
|
-
* @param
|
|
116
|
-
* @param
|
|
117
|
-
* @param
|
|
118
|
-
* @param
|
|
119
|
-
* @param
|
|
120
|
-
* @param
|
|
121
|
-
* @param
|
|
122
|
-
* @param
|
|
207
|
+
* @param x - the x-axis (horizontal) coordinate of the ellipse's center.
|
|
208
|
+
* @param y - the y-axis (vertical) coordinate of the ellipse's center.
|
|
209
|
+
* @param radiusX - the ellipse's major-axis radius. Must be non-negative.
|
|
210
|
+
* @param radiusY - the ellipse's minor-axis radius. Must be non-negative.
|
|
211
|
+
* @param rotation - the rotation of the ellipse, expressed in radians.
|
|
212
|
+
* @param startAngle - the angle at which the ellipse starts, measured clockwise from the positive x-axis and expressed in radians.
|
|
213
|
+
* @param endAngle - the angle at which the ellipse ends, measured clockwise from the positive x-axis and expressed in radians.
|
|
214
|
+
* @param [anticlockwise=false] - an optional boolean value which, if true, draws the ellipse counterclockwise (anticlockwise).
|
|
215
|
+
* @example
|
|
216
|
+
* // a 45°-rotated ellipse, filled
|
|
217
|
+
* path.beginPath();
|
|
218
|
+
* path.ellipse(50, 50, 60, 30, Math.PI / 4, 0, Math.PI * 2);
|
|
219
|
+
* renderer.fill();
|
|
123
220
|
*/
|
|
124
221
|
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
|
|
125
222
|
/**
|
|
126
223
|
* Adds a quadratic Bézier curve to the path.
|
|
127
|
-
* @param
|
|
128
|
-
* @param
|
|
129
|
-
* @param
|
|
130
|
-
* @param
|
|
224
|
+
* @param cpX - The x-coordinate of the control point.
|
|
225
|
+
* @param cpY - The y-coordinate of the control point.
|
|
226
|
+
* @param x - The x-coordinate of the end point of the curve.
|
|
227
|
+
* @param y - The y-coordinate of the end point of the curve.
|
|
228
|
+
* @example
|
|
229
|
+
* path.beginPath();
|
|
230
|
+
* path.moveTo(0, 50);
|
|
231
|
+
* path.quadraticCurveTo(50, 0, 100, 50); // one control point at (50, 0)
|
|
131
232
|
*/
|
|
132
233
|
quadraticCurveTo(cpX: number, cpY: number, x: number, y: number): void;
|
|
133
234
|
/**
|
|
134
235
|
* Adds a cubic Bézier curve to the path.
|
|
135
|
-
* @param
|
|
136
|
-
* @param
|
|
137
|
-
* @param
|
|
138
|
-
* @param
|
|
139
|
-
* @param
|
|
140
|
-
* @param
|
|
236
|
+
* @param cp1X - The x-coordinate of the first control point.
|
|
237
|
+
* @param cp1Y - The y-coordinate of the first control point.
|
|
238
|
+
* @param cp2X - The x-coordinate of the second control point.
|
|
239
|
+
* @param cp2Y - The y-coordinate of the second control point.
|
|
240
|
+
* @param x - The x-coordinate of the end point of the curve.
|
|
241
|
+
* @param y - The y-coordinate of the end point of the curve.
|
|
242
|
+
* @example
|
|
243
|
+
* path.beginPath();
|
|
244
|
+
* path.moveTo(0, 50);
|
|
245
|
+
* path.bezierCurveTo(25, 0, 75, 100, 100, 50); // two control points
|
|
141
246
|
*/
|
|
142
247
|
bezierCurveTo(cp1X: number, cp1Y: number, cp2X: number, cp2Y: number, x: number, y: number): void;
|
|
143
248
|
/**
|
|
144
249
|
* creates a path for a rectangle at position (x, y) with a size that is determined by width and height.
|
|
145
|
-
* @param
|
|
146
|
-
* @param
|
|
147
|
-
* @param
|
|
148
|
-
* @param
|
|
250
|
+
* @param x - the x-axis coordinate of the rectangle's starting point.
|
|
251
|
+
* @param y - the y-axis coordinate of the rectangle's starting point.
|
|
252
|
+
* @param width - the rectangle's width. Positive values are to the right, and negative to the left.
|
|
253
|
+
* @param height - the rectangle's height. Positive values are down, and negative are up.
|
|
254
|
+
* @example
|
|
255
|
+
* path.beginPath();
|
|
256
|
+
* path.rect(10, 10, 80, 50);
|
|
257
|
+
* renderer.fill();
|
|
149
258
|
*/
|
|
150
259
|
rect(x: number, y: number, width: number, height: number): void;
|
|
151
260
|
/**
|
|
152
261
|
* adds an rounded rectangle to the current path.
|
|
153
|
-
* @param
|
|
154
|
-
* @param
|
|
155
|
-
* @param
|
|
156
|
-
* @param
|
|
157
|
-
* @param
|
|
262
|
+
* @param x - the x-axis coordinate of the rectangle's starting point.
|
|
263
|
+
* @param y - the y-axis coordinate of the rectangle's starting point.
|
|
264
|
+
* @param width - the rectangle's width. Positive values are to the right, and negative to the left.
|
|
265
|
+
* @param height - the rectangle's height. Positive values are down, and negative are up.
|
|
266
|
+
* @param radius - the arc's radius to draw the borders. Must be positive.
|
|
267
|
+
* @example
|
|
268
|
+
* path.beginPath();
|
|
269
|
+
* path.roundRect(10, 10, 80, 50, 12); // 12px corner radius
|
|
270
|
+
* renderer.fill();
|
|
158
271
|
*/
|
|
159
272
|
roundRect(x: number, y: number, width: number, height: number, radius: number): void;
|
|
160
273
|
}
|
|
161
|
-
|
|
274
|
+
export default Path2D;
|
|
162
275
|
//# sourceMappingURL=path2d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path2d.d.ts","sourceRoot":"","sources":["../../src/geometries/path2d.
|
|
1
|
+
{"version":3,"file":"path2d.d.ts","sourceRoot":"","sources":["../../src/geometries/path2d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,YAAY,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,cAAM,MAAM;IACX;;OAEG;IACH,MAAM,EAAE,KAAK,EAAE,CAAM;IAErB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAM;IAExB;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,CAAS;IAEzB;;;OAGG;IACH,aAAa,SAAK;IAGlB,QAAQ,EAAE,KAAK,EAAE,CAAM;IAGvB,UAAU,EAAE,KAAK,CAAmB;IAGpC,OAAO,UAAS;gBAEJ,OAAO,CAAC,EAAE,MAAM;IAM5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM;IA0J5B;;;;;;;OAOG;IACH,SAAS;IAYT;;;;;;;;;;OAUG;IACH,SAAS;IA0BT;;;;;;;;;OASG;IACH,eAAe;IAsCf;;;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G;IACH,SAAS,CACR,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;CAiBf;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rectangle.d.ts","sourceRoot":"","sources":["../../src/geometries/rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAgC,MAAM,cAAc,CAAC;AAErE;;;GAGG;AACH,qBAAa,IAAK,SAAQ,OAAO;IAChC;;OAEG;IACM,IAAI,SAAe;IAE5B;;;;;;OAMG;gBACS,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAStD;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAUrC;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"rectangle.d.ts","sourceRoot":"","sources":["../../src/geometries/rectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAgC,MAAM,cAAc,CAAC;AAErE;;;GAGG;AACH,qBAAa,IAAK,SAAQ,OAAO;IAChC;;OAEG;IACM,IAAI,SAAe;IAE5B;;;;;;OAMG;gBACS,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAStD;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAUrC;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,KAAK,WAER;IAED;;OAEG;IACH,IAAI,GAAG,WAEN;IAED;;OAEG;IACH,IAAI,MAAM,WAET;IAED;;OAEG;IACH,IAAI,KAAK,WAER;IACD,IAAI,KAAK,CAAC,KAAK,QAAA,EAId;IAED;;OAEG;IACH,IAAI,MAAM,WAET;IACD,IAAI,MAAM,CAAC,KAAK,QAAA,EAIf;IAED;;OAEG;IACH,IAAI,OAAO,WAMV;IACD,IAAI,OAAO,CAAC,KAAK,QAAA,EAIhB;IAED;;OAEG;IACH,IAAI,OAAO,WAMV;IACD,IAAI,OAAO,CAAC,KAAK,QAAA,EAIhB;IAED;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAM7B;;;;;OAKG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAM3B;;;;;OAKG;IACM,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,SAAI;IAM/B;;;OAGG;IACM,KAAK;IAId;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI;IAMf;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,IAAI;IAchB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,IAAI;IASV,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IACvC,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO;IAsB5C;;;;;;;;OAQG;IACH,iBAAiB,CAAC,SAAS,EAAE,IAAI;IASjC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,IAAI;IASjB;;;OAGG;IACH,QAAQ;IASR;;;OAGG;IACH,SAAS;CAYT;AAED,eAAO,MAAM,QAAQ,+FAYnB,CAAC"}
|
package/build/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import MaskEffect from "./camera/effects/mask_effect.ts";
|
|
|
8
8
|
import ShakeEffect from "./camera/effects/shake_effect.ts";
|
|
9
9
|
import Frustum from "./camera/frustum.ts";
|
|
10
10
|
import Pointer from "./input/pointer.ts";
|
|
11
|
+
import GLTFModel from "./level/gltf/GLTFModel.js";
|
|
11
12
|
import TMXHexagonalRenderer from "./level/tiled/renderer/TMXHexagonalRenderer.js";
|
|
12
13
|
import TMXIsometricRenderer from "./level/tiled/renderer/TMXIsometricRenderer.js";
|
|
13
14
|
import TMXOrthogonalRenderer from "./level/tiled/renderer/TMXOrthogonalRenderer.js";
|
|
@@ -19,6 +20,7 @@ import TMXTileMap from "./level/tiled/TMXTileMap.js";
|
|
|
19
20
|
import TMXTileset from "./level/tiled/TMXTileset.js";
|
|
20
21
|
import TMXTilesetGroup from "./level/tiled/TMXTilesetGroup.js";
|
|
21
22
|
import * as TMXUtils from "./level/tiled/TMXUtils.js";
|
|
23
|
+
import Light2d from "./lighting/light2d.ts";
|
|
22
24
|
import { ColorMatrix } from "./math/color_matrix.ts";
|
|
23
25
|
import ParticleEmitter from "./particles/emitter.ts";
|
|
24
26
|
import Particle from "./particles/particle.ts";
|
|
@@ -32,12 +34,13 @@ import Container from "./renderable/container.js";
|
|
|
32
34
|
import { Draggable } from "./renderable/draggable.js";
|
|
33
35
|
import { DropTarget } from "./renderable/dragndrop.js";
|
|
34
36
|
import Entity from "./renderable/entity/entity.js";
|
|
37
|
+
import FrameAnimation from "./renderable/frameAnimation.js";
|
|
35
38
|
import ImageLayer from "./renderable/imagelayer.js";
|
|
36
|
-
import Light2d from "./renderable/light2d.js";
|
|
37
39
|
import Mesh from "./renderable/mesh.js";
|
|
38
40
|
import NineSliceSprite from "./renderable/nineslicesprite.js";
|
|
39
41
|
import Renderable from "./renderable/renderable.js";
|
|
40
42
|
import Sprite from "./renderable/sprite.js";
|
|
43
|
+
import Sprite3d from "./renderable/sprite3d.js";
|
|
41
44
|
import BitmapText from "./renderable/text/bitmaptext.js";
|
|
42
45
|
import BitmapTextData from "./renderable/text/bitmaptextdata.ts";
|
|
43
46
|
import Text from "./renderable/text/text.js";
|
|
@@ -59,6 +62,8 @@ import RenderState from "./video/renderstate.js";
|
|
|
59
62
|
import CanvasRenderTarget from "./video/rendertarget/canvasrendertarget.js";
|
|
60
63
|
import RenderTarget from "./video/rendertarget/rendertarget.ts";
|
|
61
64
|
import { TextureAtlas } from "./video/texture/atlas.js";
|
|
65
|
+
import NoiseTexture2d from "./video/texture/noise_texture2d.js";
|
|
66
|
+
import Texture2d from "./video/texture/texture2d.ts";
|
|
62
67
|
import { Batcher } from "./video/webgl/batchers/batcher.js";
|
|
63
68
|
import PrimitiveBatcher from "./video/webgl/batchers/primitive_batcher.js";
|
|
64
69
|
import QuadBatcher from "./video/webgl/batchers/quad_batcher.js";
|
|
@@ -99,17 +104,21 @@ export * as input from "./input/input.ts";
|
|
|
99
104
|
export * from "./lang/deprecated.js";
|
|
100
105
|
export { level } from "./level/level.js";
|
|
101
106
|
export { registerTiledObjectClass, registerTiledObjectFactory, } from "./level/tiled/TMXObjectFactory.js";
|
|
107
|
+
export { Light3d } from "./lighting/light3d.ts";
|
|
102
108
|
export * as loader from "./loader/loader.js";
|
|
103
109
|
export { Color } from "./math/color.ts";
|
|
104
110
|
export * as math from "./math/math.ts";
|
|
105
111
|
export { Matrix2d } from "./math/matrix2d.ts";
|
|
106
112
|
export { Matrix3d } from "./math/matrix3d.ts";
|
|
113
|
+
export type { FractalType, NoiseSettings, NoiseType } from "./math/noise.ts";
|
|
114
|
+
export { Noise } from "./math/noise.ts";
|
|
107
115
|
export { ObservableVector2d } from "./math/observableVector2d.ts";
|
|
108
116
|
export { ObservableVector3d } from "./math/observableVector3d.ts";
|
|
109
117
|
export { Vector2d } from "./math/vector2d.ts";
|
|
110
118
|
export { Vector3d } from "./math/vector3d.ts";
|
|
111
119
|
export type { AdapterCapabilities, AdapterOptions, BodyDefinition, BodyShape, BodyType, CollisionResponse, PhysicsAdapter, PhysicsBody, RaycastHit, RaycastHit3d, } from "./physics/adapter.ts";
|
|
112
120
|
export { Bounds } from "./physics/bounds.ts";
|
|
121
|
+
export { AABB3d } from "./physics/broadphase/aabb3d.ts";
|
|
113
122
|
export { default as BuiltinAdapter } from "./physics/builtin/builtin-adapter.ts";
|
|
114
123
|
export { collision } from "./physics/collision.js";
|
|
115
124
|
export * as plugin from "./plugin/plugin.ts";
|
|
@@ -120,7 +129,7 @@ export * as utils from "./utils/utils.ts";
|
|
|
120
129
|
export * from "./version.ts";
|
|
121
130
|
export * as video from "./video/video.js";
|
|
122
131
|
export { Application, Batcher, BitmapText, BitmapTextData, BlurEffect, Body, Camera2d, Camera3d, CameraEffect, CanvasRenderer, CanvasRenderTarget, ChromaticAberrationEffect, Collectable, ColorLayer, ColorMatrix, ColorMatrixEffect, Container, DesaturateEffect, DissolveEffect, Draggable, DropShadowEffect, DropTarget, Entity, // eslint-disable-line @typescript-eslint/no-deprecated
|
|
123
|
-
FadeEffect, FlashEffect, Frustum, GLShader, GlowEffect, Gradient, HologramEffect, ImageLayer, InvertEffect, Light2d, MaskEffect, Mesh, NineSliceSprite, OutlineEffect, Particle, ParticleEmitter, ParticleEmitterSettings, PixelateEffect, Pointer, PrimitiveBatcher, plugins, pool, QuadBatcher, Renderable, Renderer, RenderState, RenderTarget, ScanlineEffect, SepiaEffect, ShaderEffect, ShakeEffect, ShineEffect, Sprite, Stage, save, state, Text, TextureAtlas, Tile, TintPulseEffect, TMXHexagonalRenderer, TMXIsometricRenderer, TMXLayer, TMXOrthogonalRenderer, TMXRenderer, TMXStaggeredRenderer, TMXTileMap, TMXTileset, TMXTilesetGroup, TMXUtils, Trail, Trigger, Tween, timer, UIBaseElement, UISpriteElement, UITextButton, VignetteEffect, WaveEffect, WebGLRenderer, World, };
|
|
132
|
+
FadeEffect, FlashEffect, FrameAnimation, Frustum, GLShader, GLTFModel, GlowEffect, Gradient, HologramEffect, ImageLayer, InvertEffect, Light2d, MaskEffect, Mesh, NineSliceSprite, NoiseTexture2d, OutlineEffect, Particle, ParticleEmitter, ParticleEmitterSettings, PixelateEffect, Pointer, PrimitiveBatcher, plugins, pool, QuadBatcher, Renderable, Renderer, RenderState, RenderTarget, ScanlineEffect, SepiaEffect, ShaderEffect, ShakeEffect, ShineEffect, Sprite, Sprite3d, Stage, save, state, Text, Texture2d, TextureAtlas, Tile, TintPulseEffect, TMXHexagonalRenderer, TMXIsometricRenderer, TMXLayer, TMXOrthogonalRenderer, TMXRenderer, TMXStaggeredRenderer, TMXTileMap, TMXTileset, TMXTilesetGroup, TMXUtils, Trail, Trigger, Tween, timer, UIBaseElement, UISpriteElement, UITextButton, VignetteEffect, WaveEffect, WebGLRenderer, World, };
|
|
124
133
|
/**
|
|
125
134
|
* disable melonJS auto-initialization
|
|
126
135
|
* @see {@link boot}
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAE7B,OAAO,WAA+B,MAAM,8BAA8B,CAAC;AAC3E,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAC3D,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,oBAAoB,MAAM,gDAAgD,CAAC;AAClF,OAAO,oBAAoB,MAAM,gDAAgD,CAAC;AAClF,OAAO,qBAAqB,MAAM,iDAAiD,CAAC;AACpF,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,oBAAoB,MAAM,gDAAgD,CAAC;AAClF,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,IAAI,MAAM,0BAA0B,CAAC;AAC5C,OAAO,UAAU,MAAM,6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