74ed3a483e52787f4654248da92c423a.json
30.1 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=exports.Pattern=exports.Marker=exports.Mask=exports.Use=exports.TextPath=exports.TSpan=exports.Text=exports.Symbol=exports.Svg=exports.Stop=exports.Rect=exports.RadialGradient=exports.Polyline=exports.Polygon=exports.Path=exports.LinearGradient=exports.Line=exports.Image=exports.G=exports.Ellipse=exports.Defs=exports.ClipPath=exports.Circle=void 0;var _classCallCheck2=_interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));var _createClass2=_interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));var _possibleConstructorReturn2=_interopRequireDefault(require(\"@babel/runtime/helpers/possibleConstructorReturn\"));var _getPrototypeOf2=_interopRequireDefault(require(\"@babel/runtime/helpers/getPrototypeOf\"));var _inherits2=_interopRequireDefault(require(\"@babel/runtime/helpers/inherits\"));var _objectWithoutProperties2=_interopRequireDefault(require(\"@babel/runtime/helpers/objectWithoutProperties\"));var _createElement=_interopRequireDefault(require(\"react-native-web/dist/exports/createElement\"));var _resolve=require(\"./lib/resolve\");var _react=require(\"react\");function prepare(props){var translate=props.translate,scale=props.scale,rotation=props.rotation,skewX=props.skewX,skewY=props.skewY,originX=props.originX,originY=props.originY,fontFamily=props.fontFamily,fontSize=props.fontSize,fontWeight=props.fontWeight,fontStyle=props.fontStyle,style=props.style,forwardedRef=props.forwardedRef,clean=(0,_objectWithoutProperties2.default)(props,[\"translate\",\"scale\",\"rotation\",\"skewX\",\"skewY\",\"originX\",\"originY\",\"fontFamily\",\"fontSize\",\"fontWeight\",\"fontStyle\",\"style\",\"forwardedRef\"]);var transform=[];if(originX!=null||originY!=null){transform.push(\"translate(\"+(originX||0)+\", \"+(originY||0)+\")\");}if(translate!=null){transform.push(\"translate(\"+translate+\")\");}if(scale!=null){transform.push(\"scale(\"+scale+\")\");}if(rotation!=null){transform.push(\"rotate(\"+rotation+\")\");}if(skewX!=null){transform.push(\"skewX(\"+skewX+\")\");}if(skewY!=null){transform.push(\"skewY(\"+skewY+\")\");}if(originX!=null||originY!=null){transform.push(\"translate(\"+(-originX||0)+\", \"+(-originY||0)+\")\");}if(transform.length){clean.transform=transform.join(' ');}if(forwardedRef){clean.ref=forwardedRef;}var styles={};if(fontFamily!=null){styles.fontFamily=fontFamily;}if(fontSize!=null){styles.fontSize=fontSize;}if(fontWeight!=null){styles.fontWeight=fontWeight;}if(fontStyle!=null){styles.fontStyle=fontStyle;}clean.style=(0,_resolve.resolve)(style,styles);return clean;}var Circle=function(_Component){(0,_inherits2.default)(Circle,_Component);function Circle(){(0,_classCallCheck2.default)(this,Circle);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Circle).apply(this,arguments));}(0,_createClass2.default)(Circle,[{key:\"render\",value:function render(){return(0,_createElement.default)('circle',prepare(this.props));}}]);return Circle;}(_react.Component);exports.Circle=Circle;var ClipPath=function(_Component2){(0,_inherits2.default)(ClipPath,_Component2);function ClipPath(){(0,_classCallCheck2.default)(this,ClipPath);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(ClipPath).apply(this,arguments));}(0,_createClass2.default)(ClipPath,[{key:\"render\",value:function render(){return(0,_createElement.default)('clipPath',prepare(this.props));}}]);return ClipPath;}(_react.Component);exports.ClipPath=ClipPath;var Defs=function(_Component3){(0,_inherits2.default)(Defs,_Component3);function Defs(){(0,_classCallCheck2.default)(this,Defs);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Defs).apply(this,arguments));}(0,_createClass2.default)(Defs,[{key:\"render\",value:function render(){return(0,_createElement.default)('defs',prepare(this.props));}}]);return Defs;}(_react.Component);exports.Defs=Defs;var Ellipse=function(_Component4){(0,_inherits2.default)(Ellipse,_Component4);function Ellipse(){(0,_classCallCheck2.default)(this,Ellipse);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Ellipse).apply(this,arguments));}(0,_createClass2.default)(Ellipse,[{key:\"render\",value:function render(){return(0,_createElement.default)('ellipse',prepare(this.props));}}]);return Ellipse;}(_react.Component);exports.Ellipse=Ellipse;var G=function(_Component5){(0,_inherits2.default)(G,_Component5);function G(){(0,_classCallCheck2.default)(this,G);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(G).apply(this,arguments));}(0,_createClass2.default)(G,[{key:\"render\",value:function render(){var _this$props=this.props,x=_this$props.x,y=_this$props.y,rest=(0,_objectWithoutProperties2.default)(_this$props,[\"x\",\"y\"]);if((x||y)&&!rest.translate){rest.translate=(x||0)+\", \"+(y||0);}return(0,_createElement.default)('g',prepare(rest));}}]);return G;}(_react.Component);exports.G=G;var Image=function(_Component6){(0,_inherits2.default)(Image,_Component6);function Image(){(0,_classCallCheck2.default)(this,Image);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Image).apply(this,arguments));}(0,_createClass2.default)(Image,[{key:\"render\",value:function render(){return(0,_createElement.default)('image',prepare(this.props));}}]);return Image;}(_react.Component);exports.Image=Image;var Line=function(_Component7){(0,_inherits2.default)(Line,_Component7);function Line(){(0,_classCallCheck2.default)(this,Line);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Line).apply(this,arguments));}(0,_createClass2.default)(Line,[{key:\"render\",value:function render(){return(0,_createElement.default)('line',prepare(this.props));}}]);return Line;}(_react.Component);exports.Line=Line;var LinearGradient=function(_Component8){(0,_inherits2.default)(LinearGradient,_Component8);function LinearGradient(){(0,_classCallCheck2.default)(this,LinearGradient);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(LinearGradient).apply(this,arguments));}(0,_createClass2.default)(LinearGradient,[{key:\"render\",value:function render(){return(0,_createElement.default)('linearGradient',prepare(this.props));}}]);return LinearGradient;}(_react.Component);exports.LinearGradient=LinearGradient;var Path=function(_Component9){(0,_inherits2.default)(Path,_Component9);function Path(){(0,_classCallCheck2.default)(this,Path);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Path).apply(this,arguments));}(0,_createClass2.default)(Path,[{key:\"render\",value:function render(){return(0,_createElement.default)('path',prepare(this.props));}}]);return Path;}(_react.Component);exports.Path=Path;var Polygon=function(_Component10){(0,_inherits2.default)(Polygon,_Component10);function Polygon(){(0,_classCallCheck2.default)(this,Polygon);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Polygon).apply(this,arguments));}(0,_createClass2.default)(Polygon,[{key:\"render\",value:function render(){return(0,_createElement.default)('polygon',prepare(this.props));}}]);return Polygon;}(_react.Component);exports.Polygon=Polygon;var Polyline=function(_Component11){(0,_inherits2.default)(Polyline,_Component11);function Polyline(){(0,_classCallCheck2.default)(this,Polyline);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Polyline).apply(this,arguments));}(0,_createClass2.default)(Polyline,[{key:\"render\",value:function render(){return(0,_createElement.default)('polyline',prepare(this.props));}}]);return Polyline;}(_react.Component);exports.Polyline=Polyline;var RadialGradient=function(_Component12){(0,_inherits2.default)(RadialGradient,_Component12);function RadialGradient(){(0,_classCallCheck2.default)(this,RadialGradient);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(RadialGradient).apply(this,arguments));}(0,_createClass2.default)(RadialGradient,[{key:\"render\",value:function render(){return(0,_createElement.default)('radialGradient',prepare(this.props));}}]);return RadialGradient;}(_react.Component);exports.RadialGradient=RadialGradient;var Rect=function(_Component13){(0,_inherits2.default)(Rect,_Component13);function Rect(){(0,_classCallCheck2.default)(this,Rect);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Rect).apply(this,arguments));}(0,_createClass2.default)(Rect,[{key:\"render\",value:function render(){return(0,_createElement.default)('rect',prepare(this.props));}}]);return Rect;}(_react.Component);exports.Rect=Rect;var Stop=function(_Component14){(0,_inherits2.default)(Stop,_Component14);function Stop(){(0,_classCallCheck2.default)(this,Stop);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Stop).apply(this,arguments));}(0,_createClass2.default)(Stop,[{key:\"render\",value:function render(){return(0,_createElement.default)('stop',prepare(this.props));}}]);return Stop;}(_react.Component);exports.Stop=Stop;var Svg=function(_Component15){(0,_inherits2.default)(Svg,_Component15);function Svg(){(0,_classCallCheck2.default)(this,Svg);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Svg).apply(this,arguments));}(0,_createClass2.default)(Svg,[{key:\"render\",value:function render(){return(0,_createElement.default)('svg',prepare(this.props));}}]);return Svg;}(_react.Component);exports.Svg=Svg;var Symbol=function(_Component16){(0,_inherits2.default)(Symbol,_Component16);function Symbol(){(0,_classCallCheck2.default)(this,Symbol);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Symbol).apply(this,arguments));}(0,_createClass2.default)(Symbol,[{key:\"render\",value:function render(){return(0,_createElement.default)('symbol',prepare(this.props));}}]);return Symbol;}(_react.Component);exports.Symbol=Symbol;var Text=function(_Component17){(0,_inherits2.default)(Text,_Component17);function Text(){(0,_classCallCheck2.default)(this,Text);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Text).apply(this,arguments));}(0,_createClass2.default)(Text,[{key:\"render\",value:function render(){return(0,_createElement.default)('text',prepare(this.props));}}]);return Text;}(_react.Component);exports.Text=Text;var TSpan=function(_Component18){(0,_inherits2.default)(TSpan,_Component18);function TSpan(){(0,_classCallCheck2.default)(this,TSpan);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(TSpan).apply(this,arguments));}(0,_createClass2.default)(TSpan,[{key:\"render\",value:function render(){return(0,_createElement.default)('tspan',prepare(this.props));}}]);return TSpan;}(_react.Component);exports.TSpan=TSpan;var TextPath=function(_Component19){(0,_inherits2.default)(TextPath,_Component19);function TextPath(){(0,_classCallCheck2.default)(this,TextPath);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(TextPath).apply(this,arguments));}(0,_createClass2.default)(TextPath,[{key:\"render\",value:function render(){return(0,_createElement.default)('textPath',prepare(this.props));}}]);return TextPath;}(_react.Component);exports.TextPath=TextPath;var Use=function(_Component20){(0,_inherits2.default)(Use,_Component20);function Use(){(0,_classCallCheck2.default)(this,Use);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Use).apply(this,arguments));}(0,_createClass2.default)(Use,[{key:\"render\",value:function render(){return(0,_createElement.default)('use',prepare(this.props));}}]);return Use;}(_react.Component);exports.Use=Use;var Mask=function(_Component21){(0,_inherits2.default)(Mask,_Component21);function Mask(){(0,_classCallCheck2.default)(this,Mask);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Mask).apply(this,arguments));}(0,_createClass2.default)(Mask,[{key:\"render\",value:function render(){return(0,_createElement.default)('mask',prepare(this.props));}}]);return Mask;}(_react.Component);exports.Mask=Mask;var Marker=function(_Component22){(0,_inherits2.default)(Marker,_Component22);function Marker(){(0,_classCallCheck2.default)(this,Marker);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Marker).apply(this,arguments));}(0,_createClass2.default)(Marker,[{key:\"render\",value:function render(){return(0,_createElement.default)('marker',prepare(this.props));}}]);return Marker;}(_react.Component);exports.Marker=Marker;var Pattern=function(_Component23){(0,_inherits2.default)(Pattern,_Component23);function Pattern(){(0,_classCallCheck2.default)(this,Pattern);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Pattern).apply(this,arguments));}(0,_createClass2.default)(Pattern,[{key:\"render\",value:function render(){return(0,_createElement.default)('pattern',prepare(this.props));}}]);return Pattern;}(_react.Component);exports.Pattern=Pattern;var _default=Svg;exports.default=_default;","map":{"version":3,"sources":["ReactNativeSVG.web.ts"],"names":["translate","scale","rotation","skewX","skewY","originX","originY","fontFamily","fontSize","fontWeight","fontStyle","style","forwardedRef","clean","props","transform","styles","resolve","Circle","createElement","prepare","ClipPath","Defs","Ellipse","G","x","y","rest","Image","Line","LinearGradient","Path","Polygon","Polyline","RadialGradient","Rect","Stop","Svg","Symbol","Text","TSpan","TextPath","Use","Mask","Marker","Pattern"],"mappings":"o9BAAA,gH,kGACA,sCACA,4BAWA,QAAA,CAAA,OAAA,CAAA,KAAA,CAAwB,CAAA,GAEpBA,CAAAA,SAFoB,CAgBlBc,KAhBkB,CAAA,SAAA,CAGpBb,KAHoB,CAgBlBa,KAhBkB,CAAA,KAAA,CAIpBZ,QAJoB,CAgBlBY,KAhBkB,CAAA,QAAA,CAKpBX,KALoB,CAgBlBW,KAhBkB,CAAA,KAAA,CAMpBV,KANoB,CAgBlBU,KAhBkB,CAAA,KAAA,CAOpBT,OAPoB,CAgBlBS,KAhBkB,CAAA,OAAA,CAQpBR,OARoB,CAgBlBQ,KAhBkB,CAAA,OAAA,CASpBP,UAToB,CAgBlBO,KAhBkB,CAAA,UAAA,CAUpBN,QAVoB,CAgBlBM,KAhBkB,CAAA,QAAA,CAWpBL,UAXoB,CAgBlBK,KAhBkB,CAAA,UAAA,CAYpBJ,SAZoB,CAgBlBI,KAhBkB,CAAA,SAAA,CAapBH,KAboB,CAgBlBG,KAhBkB,CAAA,KAAA,CAcpBF,YAdoB,CAgBlBE,KAhBkB,CAAA,YAAA,CAejBD,KAfiB,CAAA,sCAAA,KAAA,CAAA,CAAA,WAAA,CAAA,OAAA,CAAA,UAAA,CAAA,OAAA,CAAA,OAAA,CAAA,SAAA,CAAA,SAAA,CAAA,YAAA,CAAA,UAAA,CAAA,YAAA,CAAA,WAAA,CAAA,OAAA,CAAA,cAAA,CAAA,CAAA,CAkBtB,GAAME,CAAAA,SAAS,CAAf,EAAA,CAEA,GAAIV,OAAO,EAAPA,IAAAA,EAAmBC,OAAO,EAA9B,IAAA,CAAwC,CACtCS,SAAS,CAATA,IAAAA,CAAAA,cAA4BV,OAAO,EAAnCU,CAAAA,EAAAA,IAAAA,EAA6CT,OAAO,EAApDS,CAAA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AAA,CAAA,2BAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,QAAA,CAAA,KAAA,CAAA,QAAA,CAAA,MAAA,EACW,CACP,MAAOzB,2BAAa,QAAbA,CAAwBC,OAAO,CAAC,KAAvC,KAAsC,CAA/BD,CAAP,CAFJ,CAAA,CAAA,CAAA,EAAA,MAAA,CAAA,MAAA,CAAA,CAAA,CAAA,gBAAA,CAAA,C,sBAMA,GAAa0B,CAAAA,OAAb,CAAA,SAAA,YAAA,CAAA,CAAA,uBAAA,OAAA,CAAA,YAAA,EAAA,QAAA,CAAA,OAAA,EAAA,CAAA,6BAAA,IAAA,CAAA,OAAA,EAAA,MAAA,wCAAA,IAAA,CAAA,6BAAA,OAAA,EAAA,KAAA,CAAA,IAAA,CAAA,SAAA,CAAA,CAAA,CAAA,2BAAA,OAAA,CAAA,CAAA,CAAA,GAAA,CAAA,QAAA,CAAA,KAAA,CAAA,QAAA,CAAA,MAAA,EACW,CACP,MAAO1B,2BAAa,SAAbA,CAAyBC,OAAO,CAAC,KAAxC,KAAuC,CAAhCD,CAAP,CAFJ,CAAA,CAAA,CAAA,EAAA,MAAA,CAAA,OAAA,CAAA,CAAA,CAAA,gBAAA,CAAA,C,qCAMA,G","sourcesContent":["import { createElement } from 'react-native-web';\nimport { resolve } from './lib/resolve';\nimport { Component } from 'react';\nimport { NumberProp } from './lib/extract/types';\n\n/**\n * `react-native-svg` supports additional props that aren't defined in the spec.\n * This function replaces them in a spec conforming manner.\n *\n * @param {Object} props Properties given to us.\n * @returns {Object} Cleaned object.\n * @private\n */\nfunction prepare(props) {\n const {\n translate,\n scale,\n rotation,\n skewX,\n skewY,\n originX,\n originY,\n fontFamily,\n fontSize,\n fontWeight,\n fontStyle,\n style,\n forwardedRef,\n ...clean\n } = props;\n\n const transform = [];\n\n if (originX != null || originY != null) {\n transform.push(`translate(${originX || 0}, ${originY || 0})`);\n }\n if (translate != null) {\n transform.push(`translate(${translate})`);\n }\n if (scale != null) {\n transform.push(`scale(${scale})`);\n }\n // rotation maps to rotate, not to collide with the text rotate attribute (which acts per glyph rather than block)\n if (rotation != null) {\n transform.push(`rotate(${rotation})`);\n }\n if (skewX != null) {\n transform.push(`skewX(${skewX})`);\n }\n if (skewY != null) {\n transform.push(`skewY(${skewY})`);\n }\n if (originX != null || originY != null) {\n transform.push(`translate(${-originX || 0}, ${-originY || 0})`);\n }\n\n if (transform.length) {\n clean.transform = transform.join(' ');\n }\n\n if (forwardedRef) {\n clean.ref = forwardedRef;\n }\n\n const styles: {\n fontStyle?: string;\n fontFamily?: string;\n fontSize?: NumberProp;\n fontWeight?: NumberProp;\n } = {};\n\n if (fontFamily != null) {\n styles.fontFamily = fontFamily;\n }\n if (fontSize != null) {\n styles.fontSize = fontSize;\n }\n if (fontWeight != null) {\n styles.fontWeight = fontWeight;\n }\n if (fontStyle != null) {\n styles.fontStyle = fontStyle;\n }\n\n clean.style = resolve(style, styles);\n\n return clean;\n}\n\nexport class Circle extends Component {\n render() {\n return createElement('circle', prepare(this.props));\n }\n}\n\nexport class ClipPath extends Component {\n render() {\n return createElement('clipPath', prepare(this.props));\n }\n}\n\nexport class Defs extends Component {\n render() {\n return createElement('defs', prepare(this.props));\n }\n}\n\nexport class Ellipse extends Component {\n render() {\n return createElement('ellipse', prepare(this.props));\n }\n}\n\nexport class G extends Component<{\n x?: NumberProp;\n y?: NumberProp;\n translate?: string;\n}> {\n render() {\n const { x, y, ...rest } = this.props;\n\n if ((x || y) && !rest.translate) {\n rest.translate = `${x || 0}, ${y || 0}`;\n }\n\n return createElement('g', prepare(rest));\n }\n}\n\nexport class Image extends Component {\n render() {\n return createElement('image', prepare(this.props));\n }\n}\n\nexport class Line extends Component {\n render() {\n return createElement('line', prepare(this.props));\n }\n}\n\nexport class LinearGradient extends Component {\n render() {\n return createElement('linearGradient', prepare(this.props));\n }\n}\n\nexport class Path extends Component {\n render() {\n return createElement('path', prepare(this.props));\n }\n}\n\nexport class Polygon extends Component {\n render() {\n return createElement('polygon', prepare(this.props));\n }\n}\n\nexport class Polyline extends Component {\n render() {\n return createElement('polyline', prepare(this.props));\n }\n}\n\nexport class RadialGradient extends Component {\n render() {\n return createElement('radialGradient', prepare(this.props));\n }\n}\n\nexport class Rect extends Component {\n render() {\n return createElement('rect', prepare(this.props));\n }\n}\n\nexport class Stop extends Component {\n render() {\n return createElement('stop', prepare(this.props));\n }\n}\n\nexport class Svg extends Component {\n render() {\n return createElement('svg', prepare(this.props));\n }\n}\n\nexport class Symbol extends Component {\n render() {\n return createElement('symbol', prepare(this.props));\n }\n}\n\nexport class Text extends Component {\n render() {\n return createElement('text', prepare(this.props));\n }\n}\n\nexport class TSpan extends Component {\n render() {\n return createElement('tspan', prepare(this.props));\n }\n}\n\nexport class TextPath extends Component {\n render() {\n return createElement('textPath', prepare(this.props));\n }\n}\n\nexport class Use extends Component {\n render() {\n return createElement('use', prepare(this.props));\n }\n}\n\nexport class Mask extends Component {\n render() {\n return createElement('mask', prepare(this.props));\n }\n}\n\nexport class Marker extends Component {\n render() {\n return createElement('marker', prepare(this.props));\n }\n}\n\nexport class Pattern extends Component {\n render() {\n return createElement('pattern', prepare(this.props));\n }\n}\n\nexport default Svg;\n"]},"metadata":{},"sourceType":"script"}