Skip to content

Commit

Permalink
update plugin and fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed May 12, 2023
1 parent 7d5d392 commit a8c9c63
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
8 changes: 3 additions & 5 deletions dist/@melonjs/debug-plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
declare const DebugPanelPlugin_base: any;
/**
* @classdesc
* a simple debug panel plugin <br>
Expand All @@ -22,12 +21,10 @@ declare const DebugPanelPlugin_base: any;
* &bull; the hitbox or bounding box for all objects <br>
* &bull; current velocity vector <br>
* &bull; quadtree spatial visualization <br>
* @augments plugin.Base
* @augments plugin.BasePlugin
*/
export class DebugPanelPlugin extends DebugPanelPlugin_base {
[x: string]: any;
export class DebugPanelPlugin extends plugin.BasePlugin {
constructor(debugToggle: any);
version: string;
panel: DebugPanel;
/**
* show the debug panel
Expand All @@ -42,6 +39,7 @@ export class DebugPanelPlugin extends DebugPanelPlugin_base {
*/
toggle(): void;
}
import { plugin } from 'melonjs';
declare class DebugPanel extends Renderable {
constructor(debugToggle?: number);
checkbox: {};
Expand Down
10 changes: 5 additions & 5 deletions dist/@melonjs/debug-plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS debug plugin - v14.6.2
* melonJS debug plugin - v14.6.3
* http://www.melonjs.org
* @melonjs/debug-plugin is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down Expand Up @@ -71,7 +71,7 @@ class DebugPanel extends Renderable {
this.name = "debugPanel";

// the debug panel version
this.version = "14.6.2";
this.version = "14.6.3";

// persistent
this.isPersistent = true;
Expand Down Expand Up @@ -588,16 +588,16 @@ class DebugPanel extends Renderable {
* &bull; the hitbox or bounding box for all objects <br>
* &bull; current velocity vector <br>
* &bull; quadtree spatial visualization <br>
* @augments plugin.Base
* @augments plugin.BasePlugin
*/
class DebugPanelPlugin extends plugin.Base {
class DebugPanelPlugin extends plugin.BasePlugin {

constructor(debugToggle) {
// call the super constructor
super();

// minimum melonJS version expected
this.version = "15.1.5";
this.version = "15.2.0";

this.panel = new DebugPanel(debugToggle);

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@melonjs/debug-plugin",
"version": "14.6.2",
"version": "14.6.3",
"description": "melonJS debug plugin",
"type": "module",
"keywords": [
Expand Down Expand Up @@ -48,7 +48,7 @@
"LICENSE"
],
"peerDependencies": {
"melonjs": "^15.1.6"
"melonjs": "^15.2.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.21.8",
Expand All @@ -59,7 +59,7 @@
"@rollup/plugin-replace": "^5.0.2",
"del-cli": "^5.0.0",
"eslint": "^8.40.0",
"eslint-plugin-jsdoc": "^44.2.2",
"eslint-plugin-jsdoc": "^44.2.3",
"rollup": "^3.21.6",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-string": "^3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ import { DebugPanel } from "./debugPanel";
* &bull; the hitbox or bounding box for all objects <br>
* &bull; current velocity vector <br>
* &bull; quadtree spatial visualization <br>
* @augments plugin.Base
* @augments plugin.BasePlugin
*/
export class DebugPanelPlugin extends plugin.Base {
export class DebugPanelPlugin extends plugin.BasePlugin {

constructor(debugToggle) {
// call the super constructor
super();

// minimum melonJS version expected
this.version = "15.1.5";
this.version = "15.2.0";

this.panel = new DebugPanel(debugToggle);

Expand Down

0 comments on commit a8c9c63

Please sign in to comment.