react-art 18.0.0 → 18.1.0-next-aa05e7315-20220331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,7 +199,7 @@ d&&(b.callback=d);lc(e,b);a=vc(e,g,f);null!==a&&mc(a,e,g);return g}function kg()
|
|
|
199
199
|
var lg=Array.prototype.slice,mg=function(){function a(a,c,d,e,f){this._args=lg.call(arguments)}a.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return a}(),ng=function(){function a(a,c,d,e,f,g,h){this._args=lg.call(arguments)}a.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return a}(),og=function(){function a(a,c,d,e,f){this._args=lg.call(arguments)}a.prototype.applyFill=function(a){a.fillImage.apply(a,this._args)};return a}(),pg=function(a){function b(){return a.apply(this,
|
|
200
200
|
arguments)||this}ha(b,a);var c=b.prototype;c.componentDidMount=function(){var a=this.props;this._surface=ca.Surface(+a.width,+a.height,this._tagRef);a=new ig(this._surface,0,!1,"",void 0);var b=hg(3,null,null,0);a.current=b;b.stateNode=a;b.memoizedState={element:null,isDehydrated:!1,cache:null,transitions:null};ic(b);this._mountNode=a;jg(this.props.children,this._mountNode,this)};c.componentDidUpdate=function(a){var b=this.props;b.height===a.height&&b.width===a.width||this._surface.resize(+b.width,
|
|
201
201
|
+b.height);jg(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){jg(null,this._mountNode,this)};c.render=function(){var a=this,b=this.props;return aa.createElement(ca.Surface.tagName,{ref:function(b){return a._tagRef=b},accessKey:b.accessKey,className:b.className,draggable:b.draggable,role:b.role,style:b.style,tabIndex:b.tabIndex,title:b.title})};return b}(aa.Component),qg=function(a){function b(b){var c=a.call(this,b)||this;["height",
|
|
202
|
-
"width","x","y"].forEach(function(a){Object.defineProperty(ja(c),a,{get:function(){return this._text?this._text[a]:void 0}})});return c}ha(b,a);b.prototype.render=function(){var a=this;return aa.createElement(Ja.TEXT,fa({},this.props,{ref:function(b){return a._text=b}}),La(this.props.children))};return b}(aa.Component),rg={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.
|
|
202
|
+
"width","x","y"].forEach(function(a){Object.defineProperty(ja(c),a,{get:function(){return this._text?this._text[a]:void 0}})});return c}ha(b,a);b.prototype.render=function(){var a=this;return aa.createElement(Ja.TEXT,fa({},this.props,{ref:function(b){return a._text=b}}),La(this.props.children))};return b}(aa.Component),rg={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.1.0-aa05e7315-20220331",rendererPackageName:"react-art"};
|
|
203
203
|
var sg={bundleType:rg.bundleType,version:rg.version,rendererPackageName:rg.rendererPackageName,rendererConfig:rg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:la.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Fa(a);a=null!==a?Ga(a):null;return null===a?null:a.stateNode},
|
|
204
|
-
findFiberByHostInstance:rg.findFiberByHostInstance||kg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.
|
|
204
|
+
findFiberByHostInstance:rg.findFiberByHostInstance||kg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-aa05e7315-20220331"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tg.isDisabled&&tg.supportsFiber)try{Ua=tg.inject(sg),Va=tg}catch(a){}}var ug=ca.Path;exports.Transform=ba;exports.ClippingRectangle=Ja.CLIPPING_RECTANGLE;exports.Group=Ja.GROUP;
|
|
205
205
|
exports.LinearGradient=mg;exports.Path=ug;exports.Pattern=og;exports.RadialGradient=ng;exports.Shape=Ja.SHAPE;exports.Surface=pg;exports.Text=qg;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-art",
|
|
3
3
|
"description": "React ART is a JavaScript library for drawing vector graphics using React. It provides declarative and reactive bindings to the ART library. Using the same declarative API you can render the output to either Canvas, SVG or VML (IE8).",
|
|
4
|
-
"version": "18.
|
|
4
|
+
"version": "18.1.0-next-aa05e7315-20220331",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"art": "^0.10.1",
|
|
26
26
|
"create-react-class": "^15.6.2",
|
|
27
27
|
"loose-envify": "^1.1.0",
|
|
28
|
-
"scheduler": "
|
|
28
|
+
"scheduler": "0.22.0-next-aa05e7315-20220331"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"react": "
|
|
31
|
+
"react": "18.1.0-next-aa05e7315-20220331"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"LICENSE",
|
|
@@ -236,6 +236,6 @@ this._args)};return a}(),ph=function(){function a(a,c,d,e,f){this._args=Vd.call(
|
|
|
236
236
|
cache:null,transitions:null};cd(b);this._mountNode=a;Od(this.props.children,this._mountNode,this)};c.componentDidUpdate=function(a,b){b=this.props;b.height===a.height&&b.width===a.width||this._surface.resize(+b.width,+b.height);Od(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){Od(null,this._mountNode,this)};c.render=function(){var a=this,b=this.props;return da.createElement(Ha.Surface.tagName,{ref:function(b){return a._tagRef=
|
|
237
237
|
b},accessKey:b.accessKey,className:b.className,draggable:b.draggable,role:b.role,style:b.style,tabIndex:b.tabIndex,title:b.title})};return b}(da.Component),rh=function(a){function b(b){var c=a.call(this,b)||this;["height","width","x","y"].forEach(function(a){Object.defineProperty(Rf(c),a,{get:function(){return this._text?this._text[a]:void 0}})});return c}Wd(b,a);b.prototype.render=function(){var a=this;return da.createElement(Ga.TEXT,Gc({},this.props,{ref:function(b){return a._text=b}}),de(this.props.children))};
|
|
238
238
|
return b}(da.Component);(function(a){a={bundleType:a.bundleType,version:a.version,rendererPackageName:a.rendererPackageName,rendererConfig:a.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ja.ReactCurrentDispatcher,findHostInstanceByFiber:Wg,findFiberByHostInstance:a.findFiberByHostInstance||
|
|
239
|
-
Xg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.
|
|
239
|
+
Xg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-aa05e7315-20220331"};if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)a=!1;else{var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)a=!0;else{try{Hb=b.inject(a),ia=b}catch(c){}a=b.checkDCE?!0:!1}}return a})({findFiberByHostInstance:function(){return null},bundleType:0,version:"18.1.0-aa05e7315-20220331",rendererPackageName:"react-art"});
|
|
240
240
|
var sh=Ga.GROUP,th=Ga.SHAPE,uh=Ha.Path;Q.ClippingRectangle=Ga.CLIPPING_RECTANGLE;Q.Group=sh;Q.LinearGradient=nh;Q.Path=uh;Q.Pattern=ph;Q.RadialGradient=oh;Q.Shape=th;Q.Surface=qh;Q.Text=rh;Q.Transform=S});
|
|
241
241
|
})();
|