MCPcopy Create free account
hub / github.com/melonjs/melonJS / toggle

Method toggle

packages/debug-plugin/src/index.js:352–358  ·  view source on GitHub ↗

* toggle the debug panel visibility state

()

Source from the content-addressed store, hash-verified

350 * toggle the debug panel visibility state
351 */
352 toggle() {
353 if (this.visible) {
354 this.hide();
355 } else {
356 this.show();
357 }
358 }
359
360 /** @private */
361 _drawQuadTree() {

Callers 1

constructorMethod · 0.95

Calls 2

hideMethod · 0.95
showMethod · 0.95

Tested by

no test coverage detected