GithubHelp home page GithubHelp logo

isabella232 / pixi-closure-compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pixijs/pixi-closure-compiler

0.0 0.0 0.0 544 KB

closure compiler externs for pixijs

JavaScript 99.98% HTML 0.02%

pixi-closure-compiler's Introduction

Closure Compiler Externs for PIXI version 4.x

New project structure.

externs:

pixi-3.0.8-externs.js    
pixi-4.x-externs.js

test:

libs ---- pixi.js / pixi.min.js (4.8.8)
out  ---- index.js (clousured)
src  ---- index.js (PIXI example basic)
index.html

Test options ( in this case I used PIXI 4.8.8 )

To generate example, you can write:

  • npm run build

To launch a browser for testing different params. You can write more.

  • npm install -g http-server
  • $> http-server

TIPS:

You must use 'window' for test unused objects, for example:

window["rectangle"] = new PIXI.Rectangle();

window["mySprite] = new PIXI.Sprite(PIXI.Texture.WHITE);


Closure Compiler Externs for PIXI version 3.0.8

TODO:

  • few type warnings to sort out ( problems related to externs file ):

  • source code inconsistencies ( problems related probably to the source code, issue reported here: Issue#2304):

    • src/externs/pixi-3.0.8-externs.js:2745: WARNING - mismatch of the generateTexture property type and the type of the property it overrides from superclass PIXI.DisplayObject original: function (this:PIXI.DisplayObject, (PIXI.CanvasRenderer|PIXI.WebGLRenderer|null), number, number=): (PIXI.Texture|null) override: function (this:PIXI.Container, (PIXI.CanvasRenderer|PIXI.WebGLRenderer|null), number, number): (PIXI.Texture|null) PIXI.Container.prototype.generateTexture = function (renderer, resolution, scaleMode) {}; ^

    • src/externs/pixi-3.0.8-externs.js:3360: WARNING - mismatch of the generateTexture property type and the type of the property it overrides from superclass PIXI.DisplayObject original: function (this:PIXI.Container, (PIXI.CanvasRenderer|PIXI.WebGLRenderer|null), number, number): (PIXI.Texture|null) override: function (this:PIXI.Graphics, number, number, number=): (PIXI.Texture|null) PIXI.Graphics.prototype.generateTexture = function (resolution, scaleMode) {}; ^

pixi-closure-compiler's People

Contributors

lukaszgrela avatar patricksanchez avatar rtalon83 avatar sanchez404 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.