2019-03-25 19:02:30 -05:00
|
|
|
const PIXI = 'undefined' !== typeof window ? require('pixi.js') : undefined;
|
|
|
|
|
2019-03-25 19:03:34 -05:00
|
|
|
export {Canvas} from './canvas';
|
2019-03-18 20:06:47 -05:00
|
|
|
export {Color} from './color';
|
|
|
|
export {Container} from './container';
|
2019-03-19 18:04:37 -05:00
|
|
|
export {hasGraphics} from './has-graphics';
|
2019-03-18 20:06:47 -05:00
|
|
|
export {Image} from './image';
|
|
|
|
export {Primitives} from './primitives';
|
|
|
|
export {Renderable} from './renderable';
|
|
|
|
export {Renderer} from './renderer';
|
|
|
|
export {Sprite} from './sprite';
|
2019-03-30 05:08:33 -05:00
|
|
|
export {Stage} from './stage';
|
2019-04-19 00:50:15 -05:00
|
|
|
// Proton.
|
|
|
|
export {Proton, TextNode, TextNodeRenderer} from './proton';
|
|
|
|
// Pixelly!
|
2019-03-25 19:02:30 -05:00
|
|
|
if (PIXI) {
|
2019-03-25 20:25:33 -05:00
|
|
|
PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST
|
2019-04-24 02:43:34 -05:00
|
|
|
// Kill PIXI's ticker.
|
|
|
|
const ticker = PIXI.ticker.shared;
|
|
|
|
ticker.autoStart = false;
|
|
|
|
ticker.stop();
|
2019-03-25 19:02:30 -05:00
|
|
|
}
|