@melonjs/debug-plugin 14.4.6 → 14.4.7
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 +6 -6
- package/dist/melonjs-debug-plugin.js +2 -2
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -9,13 +9,13 @@ Installation
|
|
|
9
9
|
|
|
10
10
|
Then import and instantiante the debug plugin in your project. For example:
|
|
11
11
|
```JavaScript
|
|
12
|
-
|
|
12
|
+
import { utils, plugin } from 'melonjs';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
// dynamically import the plugin
|
|
15
|
+
import("@melonjs/debug-plugin").then((debugPlugin) => {
|
|
16
|
+
// automatically register the debug panel
|
|
17
|
+
utils.function.defer(plugin.register, this, debugPlugin.DebugPanelPlugin, "debugPanel");
|
|
18
|
+
});
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Usage
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* melonJS debug plugin - v14.4.
|
|
2
|
+
* melonJS debug plugin - v14.4.7
|
|
3
3
|
* http://www.melonjs.org
|
|
4
4
|
* @melonjs/debug-plugin is licensed under the MIT License.
|
|
5
5
|
* http://www.opensource.org/licenses/mit-license
|
|
@@ -71,7 +71,7 @@ class DebugPanel extends Renderable {
|
|
|
71
71
|
this.name = "debugPanel";
|
|
72
72
|
|
|
73
73
|
// the debug panel version
|
|
74
|
-
this.version = "14.4.
|
|
74
|
+
this.version = "14.4.7";
|
|
75
75
|
|
|
76
76
|
// persistent
|
|
77
77
|
this.isPersistent = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melonjs/debug-plugin",
|
|
3
|
-
"version": "14.4.
|
|
3
|
+
"version": "14.4.7",
|
|
4
4
|
"description": "melonJS debug plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "npm run lint && rollup -c --silent",
|
|
68
68
|
"lint": "eslint src/**.js rollup.config.mjs",
|
|
69
|
-
"
|
|
70
|
-
"prepublishOnly": "npm run build && npm run test",
|
|
69
|
+
"prepublishOnly": "npm run build",
|
|
71
70
|
"clean": "del-cli --force build/*.*"
|
|
72
71
|
}
|
|
73
72
|
}
|