diff --git a/packages/graphics/has-graphics.js b/packages/graphics/has-graphics.js new file mode 100644 index 0000000..a531581 --- /dev/null +++ b/packages/graphics/has-graphics.js @@ -0,0 +1,2 @@ +const hasGraphics = 'undefined' !== typeof window; +export {hasGraphics}; diff --git a/packages/graphics/index.js b/packages/graphics/index.js index 953cbcd..99a14b7 100644 --- a/packages/graphics/index.js +++ b/packages/graphics/index.js @@ -1,10 +1,8 @@ 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'; - -const hasGraphics = 'undefined' !== typeof window; -export {hasGraphics};