avocado-old/packages/graphics/index.js
2019-09-19 03:19:24 -05:00

23 lines
698 B
JavaScript

const PIXI = 'undefined' !== typeof window ? require('pixi.js') : undefined;
export {Canvas} from './canvas';
export {Color} from './color';
export {Container} from './container';
export {hasGraphics} from './has-graphics';
export {Image} from './image';
export {Primitives} from './primitives';
export {Renderable} from './renderable';
export {Renderer} from './renderer';
export {Sprite} from './sprite';
export {Stage} from './stage';
// Proton.
export {Proton, TextNode, TextNodeRenderer} from './proton';
// Pixelly!
if (PIXI) {
PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST
// Kill PIXI's ticker.
const ticker = PIXI.ticker.shared;
ticker.autoStart = false;
ticker.stop();
}