Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

complex-debug

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complex-debug

Debug GUI for ComplexJS

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 13 Nov 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc