Skip to content

Commit a8c9c63

Browse files
committed
update plugin and fix typings
1 parent 7d5d392 commit a8c9c63

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

dist/@melonjs/debug-plugin.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
declare const DebugPanelPlugin_base: any;
21
/**
32
* @classdesc
43
* a simple debug panel plugin <br>
@@ -22,12 +21,10 @@ declare const DebugPanelPlugin_base: any;
2221
* &bull; the hitbox or bounding box for all objects <br>
2322
* &bull; current velocity vector <br>
2423
* &bull; quadtree spatial visualization <br>
25-
* @augments plugin.Base
24+
* @augments plugin.BasePlugin
2625
*/
27-
export class DebugPanelPlugin extends DebugPanelPlugin_base {
28-
[x: string]: any;
26+
export class DebugPanelPlugin extends plugin.BasePlugin {
2927
constructor(debugToggle: any);
30-
version: string;
3128
panel: DebugPanel;
3229
/**
3330
* show the debug panel
@@ -42,6 +39,7 @@ export class DebugPanelPlugin extends DebugPanelPlugin_base {
4239
*/
4340
toggle(): void;
4441
}
42+
import { plugin } from 'melonjs';
4543
declare class DebugPanel extends Renderable {
4644
constructor(debugToggle?: number);
4745
checkbox: {};

dist/@melonjs/debug-plugin.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* melonJS debug plugin - v14.6.2
2+
* melonJS debug plugin - v14.6.3
33
* http://www.melonjs.org
44
* @melonjs/debug-plugin is licensed under the MIT License.
55
* http://www.opensource.org/licenses/mit-license
@@ -71,7 +71,7 @@ class DebugPanel extends Renderable {
7171
this.name = "debugPanel";
7272

7373
// the debug panel version
74-
this.version = "14.6.2";
74+
this.version = "14.6.3";
7575

7676
// persistent
7777
this.isPersistent = true;
@@ -588,16 +588,16 @@ class DebugPanel extends Renderable {
588588
* &bull; the hitbox or bounding box for all objects <br>
589589
* &bull; current velocity vector <br>
590590
* &bull; quadtree spatial visualization <br>
591-
* @augments plugin.Base
591+
* @augments plugin.BasePlugin
592592
*/
593-
class DebugPanelPlugin extends plugin.Base {
593+
class DebugPanelPlugin extends plugin.BasePlugin {
594594

595595
constructor(debugToggle) {
596596
// call the super constructor
597597
super();
598598

599599
// minimum melonJS version expected
600-
this.version = "15.1.5";
600+
this.version = "15.2.0";
601601

602602
this.panel = new DebugPanel(debugToggle);
603603

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@melonjs/debug-plugin",
3-
"version": "14.6.2",
3+
"version": "14.6.3",
44
"description": "melonJS debug plugin",
55
"type": "module",
66
"keywords": [
@@ -48,7 +48,7 @@
4848
"LICENSE"
4949
],
5050
"peerDependencies": {
51-
"melonjs": "^15.1.6"
51+
"melonjs": "^15.2.0"
5252
},
5353
"devDependencies": {
5454
"@babel/eslint-parser": "^7.21.8",
@@ -59,7 +59,7 @@
5959
"@rollup/plugin-replace": "^5.0.2",
6060
"del-cli": "^5.0.0",
6161
"eslint": "^8.40.0",
62-
"eslint-plugin-jsdoc": "^44.2.2",
62+
"eslint-plugin-jsdoc": "^44.2.3",
6363
"rollup": "^3.21.6",
6464
"rollup-plugin-bundle-size": "^1.0.3",
6565
"rollup-plugin-string": "^3.0.0",

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ import { DebugPanel } from "./debugPanel";
2424
* &bull; the hitbox or bounding box for all objects <br>
2525
* &bull; current velocity vector <br>
2626
* &bull; quadtree spatial visualization <br>
27-
* @augments plugin.Base
27+
* @augments plugin.BasePlugin
2828
*/
29-
export class DebugPanelPlugin extends plugin.Base {
29+
export class DebugPanelPlugin extends plugin.BasePlugin {
3030

3131
constructor(debugToggle) {
3232
// call the super constructor
3333
super();
3434

3535
// minimum melonJS version expected
36-
this.version = "15.1.5";
36+
this.version = "15.2.0";
3737

3838
this.panel = new DebugPanel(debugToggle);
3939

0 commit comments

Comments
 (0)