Code Monkey home page Code Monkey logo

pixi-inspector's Introduction

Pixi Inspector

An extension to the Chrome DevTools for inspecting Pixi.js games/applications.

Installation

Install (Pixi Inspector from the Chrome Web Store)[https://chrome.google.com/webstore/detail/pixi-inspector/aamddddknhcagpehecnhphigffljadon]

Features

  • Shows the scene graph
  • View and edit the properties of the selected node
  • The selected node is available in the Console as $pixi
  • Highlight (the bounds of) the node on hover
  • Right click(Right click + Alt for mobile) on the canvas to select the node at that position.
  • Use shielded symbols("") for set value null or NaN or undefined otherwise will be set "null" or "NaN" or "undefined" like string. Example use "\null" => null, "\NaN" => NaN, "\undefined" => undefined

Build from source

  • git clone [email protected]:bfanger/pixi-inspector.git
  • cd pixi-inspector
  • npm install
  • npm run build
  • Go to chrome://extensions/, click load unpacked extension... and browse to the build folder.

Development

Run npm run dev and open http://localhost:8080/webpack-dev-server/tests/ (or http://localhost:8080/tests/)

This loads the pixi-inspector into the same page as an example PIXI scene, which makes debugging easier. However in the chrome-extension environment, you don't have direct access to the PIXI object or console.log (The injected pixi.inspector.js is the exception) Use the AsyncInspector service to interact with the inspected page from the panel.

Run npm run build:watch and load the unpacked extension from the build folder. To ensure the latest code is running, refresh the extensions page, close devtools, refresh the page and reopen devtools.

Run DEBUG_DEVTOOLS_RX=1 npm run build:watch to debug the communication between the differrent processen.

pixi-inspector's People

Contributors

bfanger avatar matsmaker avatar inceon avatar u546342 avatar csomakk avatar dpr00f avatar

Watchers

James Cloos avatar Yehua avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.