react-art 0.0.0-experimental-13036bfbc-20220121 → 0.0.0-experimental-e28a0db22-20220124
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.
|
@@ -212,7 +212,7 @@ d&&(a.callback=d);wc(e,a);b=Gc(e,g,f);null!==b&&xc(b,e,g);return g}function Lg()
|
|
|
212
212
|
var Mg=Array.prototype.slice,Ng=function(){function b(a,b,d,e,f){this._args=Mg.call(arguments)}b.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return b}(),Og=function(){function b(a,b,d,e,f,g,h){this._args=Mg.call(arguments)}b.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return b}(),Pg=function(){function b(a,b,d,e,f){this._args=Mg.call(arguments)}b.prototype.applyFill=function(a){a.fillImage.apply(a,this._args)};return b}(),Qg=function(b){function a(){return b.apply(this,
|
|
213
213
|
arguments)||this}ka(a,b);var c=a.prototype;c.componentDidMount=function(){var a=this.props;this._surface=ea.Surface(+a.width,+a.height,this._tagRef);a=new Jg(this._surface,0,!1,"");var b=Ig(3,null,null,0);a.current=b;b.stateNode=a;var c=td();c.refCount++;a.pooledCache=c;c.refCount++;b.memoizedState={element:null,cache:c};uc(b);this._mountNode=a;Kg(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,
|
|
214
214
|
+b.height);Kg(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){Kg(null,this._mountNode,this)};c.render=function(){var a=this,b=this.props;return aa.createElement(ea.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 a}(aa.Component),Rg=function(b){function a(a){var c=b.call(this,a)||this;["height",
|
|
215
|
-
"width","x","y"].forEach(function(a){Object.defineProperty(la(c),a,{get:function(){return this._text?this._text[a]:void 0}})});return c}ka(a,b);a.prototype.render=function(){var a=this;return aa.createElement(Na.TEXT,ja({},this.props,{ref:function(b){return a._text=b}}),Qa(this.props.children))};return a}(aa.Component),Sg={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.0.0-rc.0-experimental-
|
|
215
|
+
"width","x","y"].forEach(function(a){Object.defineProperty(la(c),a,{get:function(){return this._text?this._text[a]:void 0}})});return c}ka(a,b);a.prototype.render=function(){var a=this;return aa.createElement(Na.TEXT,ja({},this.props,{ref:function(b){return a._text=b}}),Qa(this.props.children))};return a}(aa.Component),Sg={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.0.0-rc.0-experimental-e28a0db22-20220124",rendererPackageName:"react-art"};
|
|
216
216
|
var Tg={bundleType:Sg.bundleType,version:Sg.version,rendererPackageName:Sg.rendererPackageName,rendererConfig:Sg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ma.ReactCurrentDispatcher,findHostInstanceByFiber:function(b){b=Ka(b);b=null!==b?La(b):null;return null===b?null:b.stateNode},
|
|
217
|
-
findFiberByHostInstance:Sg.findFiberByHostInstance||Lg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-rc.0-experimental-
|
|
217
|
+
findFiberByHostInstance:Sg.findFiberByHostInstance||Lg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-rc.0-experimental-e28a0db22-20220124"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ug=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ug.isDisabled&&Ug.supportsFiber)try{Za=Ug.inject(Tg),$a=Ug}catch(b){}}var Vg=ea.Path;exports.Transform=da;exports.ClippingRectangle=Na.CLIPPING_RECTANGLE;
|
|
218
218
|
exports.Group=Na.GROUP;exports.LinearGradient=Ng;exports.Path=Vg;exports.Pattern=Pg;exports.RadialGradient=Og;exports.Shape=Na.SHAPE;exports.Surface=Qg;exports.Text=Rg;
|
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": "0.0.0-experimental-
|
|
4
|
+
"version": "0.0.0-experimental-e28a0db22-20220124",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"create-react-class": "^15.6.2",
|
|
27
27
|
"loose-envify": "^1.1.0",
|
|
28
28
|
"object-assign": "^4.1.1",
|
|
29
|
-
"scheduler": "0.0.0-experimental-
|
|
29
|
+
"scheduler": "0.0.0-experimental-e28a0db22-20220124"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"react": "0.0.0-experimental-
|
|
32
|
+
"react": "0.0.0-experimental-e28a0db22-20220124"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"LICENSE",
|
|
@@ -245,6 +245,6 @@ this._args)};return a}(),Oh=function(){function a(a,c,d,e,f){this._args=oe.call(
|
|
|
245
245
|
b.memoizedState={element:null,cache:c};fc(b);this._mountNode=a;he(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);he(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){he(null,this._mountNode,this)};c.render=function(){var a=this,b=this.props;return da.createElement(Ka.Surface.tagName,{ref:function(b){return a._tagRef=
|
|
246
246
|
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),Qh=function(a){function b(b){var c=a.call(this,b)||this;["height","width","x","y"].forEach(function(a){Object.defineProperty(qg(c),a,{get:function(){return this._text?this._text[a]:void 0}})});return c}pe(b,a);b.prototype.render=function(){var a=this;return da.createElement(Ja.TEXT,Wc({},this.props,{ref:function(b){return a._text=b}}),we(this.props.children))};
|
|
247
247
|
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:La.ReactCurrentDispatcher,findHostInstanceByFiber:uh,findFiberByHostInstance:a.findFiberByHostInstance||
|
|
248
|
-
vh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-rc.0-experimental-
|
|
248
|
+
vh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-rc.0-experimental-e28a0db22-20220124"};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{Yb=b.inject(a),ma=b}catch(c){}a=b.checkDCE?!0:!1}}return a})({findFiberByHostInstance:function(){return null},bundleType:0,version:"18.0.0-rc.0-experimental-e28a0db22-20220124",
|
|
249
249
|
rendererPackageName:"react-art"});var Rh=Ja.GROUP,Sh=Ja.SHAPE,Th=Ka.Path;V.ClippingRectangle=Ja.CLIPPING_RECTANGLE;V.Group=Rh;V.LinearGradient=Mh;V.Path=Th;V.Pattern=Oh;V.RadialGradient=Nh;V.Shape=Sh;V.Surface=Ph;V.Text=Qh;V.Transform=Y});
|
|
250
250
|
})();
|