Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
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

latest
Source
npmnpm
Version
3.1.0
Version published
Maintainers
1
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

ComplexJS

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