text: (window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"./src/components/Sprite.mdx":function(e,n,t){"use strict";t.r(n);var o=t("./node_modules/react/index.js"),a=t.n(o),r=t("./node_modules/@mdx-js/tag/dist/index.js"),s=t("./node_modules/docz/dist/index.m.js"),p=t("./src/stage/index.js"),c=t("./src/index.js");function i(e,n){if(null==e)return{};var t,o,a=function(e,n){if(null==e)return{};var t,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}n.default=function(e){var n=e.components,t=i(e,["components"]);return a.a.createElement(r.MDXTag,{name:"wrapper",components:n},a.a.createElement(r.MDXTag,{name:"h1",components:n,props:{id:"sprite"}},"Sprite"),a.a.createElement(r.MDXTag,{name:"h2",components:n,props:{id:"props"}},"Props"),a.a.createElement(r.MDXTag,{name:"p",components:n},a.a.createElement(r.MDXTag,{name:"a",components:n,parentName:"p",props:{href:"http://pixijs.download/dev/docs/PIXI.Sprite.html"}},"http://pixijs.download/dev/docs/PIXI.Sprite.html")),a.a.createElement(r.MDXTag,{name:"h2",components:n,props:{id:"usage"}},"Usage"),a.a.createElement(s.Playground,{__position:0,__code:'<Stage width={300} height={300} options={{ backgroundColor: 0xeef1f5 }}>\n  <Sprite\n    image="https://s3-us-west-2.amazonaws.com/s.cdpn.io/693612/coin.png"\n    scale={{ x: 0.5, y: 0.5 }}\n    anchor={0.5}\n    x={150}\n    y={150}\n  />\n</Stage>',__scope:{props:t,Stage:p.a,Sprite:c.h}},a.a.createElement(p.a,{width:300,height:300,options:{backgroundColor:15659509}},a.a.createElement(c.h,{image:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/693612/coin.png",scale:{x:.5,y:.5},anchor:.5,x:150,y:150}))),a.a.createElement(r.MDXTag,{name:"h2",components:n,props:{id:"example"}},"Example"),a.a.createElement("iframe",{height:500,scrolling:"no",title:"Sprite",src:"//codepen.io/inlet/embed/f68c95780536e31af9678bab19fdd4b5/?height=300&theme-id=33987&default-tab=result&embed-version=2",frameBorder:"no",allowFullScreen:!0,style:{width:"100%"}}))}}}]);