{"repo":"nenjack/pixi-shim","free":true,"listed":false,"github":"https://github.com/nenjack/pixi-shim","clone":"git clone https://github.com/nenjack/pixi-shim.git","description":"PIXI.js Back-End \"shim\". For mocking Canvas in Node.js with ❤️","language":"JavaScript","stars":47,"topics":["pixijs","pixi-shim","canvas","singleton","pixi"],"license":null,"category":"game-templates","readme_excerpt":"PIXI-SHIM PIXI.js Back-End \"shim\". For mocking Canvas in Node.js with ❤️ Purpouse 1. Designed for node - it makes you run universal javascript code that is designed with pixi.js on node.js environment 2. It is very lazy - meaning it won't load anything twice and won't attempt to load it if it's not required 3. It wont even load itself twice - while including multiple instances of pixi.js can cause Cannot redefine property isJson Error Lazy loading with lazy polyfill of - DOM - Window - Canvas - PIXI - other polyfills (requestAnimationFrame, etc.) Usage Usage if your game/app is feature-heavy: and it still doesn't work, you might need to and then do Installation DEBUG environment flag DEBUG enables DEBUG with progress on which polyfill have been loaded Canvas.toDataURL() a bit hackish but works, see: - https://github.com/Prozi/pixi-shim/blob/master/pixi.spec.js - https://github.com/Prozi/pixi-shim/blob/master/to-data-url.js Tests https://app.circleci.com/pipelines/github/Prozi/pixi-shim License MIT You can buy me a coffee https://paypal.me/jacekpietal","default_branch":null,"files":null,"tree":[],"storefront":"/r/nenjack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nenjack/pixi-shim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}