Socket
Socket
Sign inDemoInstall

complex-debug

Package Overview
Dependencies
297
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    complex-debug

Debug GUI for ComplexJS


Version published
Maintainers
1
Created

Readme

Source

Complex-debug

Install

install via npm npm install complex-debug --save

Usage

Pass an array of objects with properties tag, props, path and name into the systems constructor. These are the configurations for the components which will be debugged.

{'tag':"cx.physic.component", 'props' : [0, 1], 'path': ['body', 'position'], 'name':'position'}

TAG: define which component should be debugged.

PROPS: define which properties of that component should be debugged. If there is a property inside an object in the component, you can simply pass a path to the property

NAME: Simplified Name in the gui

Complete Usage

 world.addSystem( new DatGuiSystem([
            {'tag':"cx.physic.component", 'props' : [0, 1], 'path': ['body', 'position'], 'name':'position'},
            {'tag':"cx.physic.component", 'props' : [0, 1], 'path': ['body', 'velocity'], 'name':'velocity'},
            {'tag':"cx.physic.component", 'props' : ['mass'], 'path': ['body'], 'name':'body'},
            {'tag':"cx.pixi.sprite", 'props' : ['x', 'y'], 'path': ['sprite', 'scale'], 'name':'scale'},
            {'tag':"cx.debug.datgui.component", 'props' : ['wireFrame']},
            {'tag':"cx.script.component", 'props' : ['velocity'], 'path': ['script'], 'name' : 'script'}
        ]));

Keywords

FAQs

Last updated on 13 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc