react-art 0.0.0-experimental-dd2d65227-20220708 → 0.0.0-experimental-e225fa43a-20220711
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&&(b.callback=d);a=Lc(e,b,g);null!==a&&(Wc(a,e,g,f),Mc(a,e,g));return g}functio
|
|
|
212
212
|
var gh=Array.prototype.slice,hh=function(){function a(a,c,d,e,f){this._args=gh.call(arguments)}a.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return a}(),ih=function(){function a(a,c,d,e,f,g,h){this._args=gh.call(arguments)}a.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return a}(),jh=function(){function a(a,c,d,e,f){this._args=gh.call(arguments)}a.prototype.applyFill=function(a){a.fillImage.apply(a,this._args)};return a}(),kh=function(a){function b(){return a.apply(this,
|
|
213
213
|
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 dh(this._surface,0,!1,"",void 0);var b=ch(3,null,null,0);a.current=b;b.stateNode=a;var c=Md();c.refCount++;a.pooledCache=c;c.refCount++;b.memoizedState={element:null,isDehydrated:!1,cache:c};Jc(b);this._mountNode=a;eh(this.props.children,this._mountNode,this)};c.componentDidUpdate=function(a){var b=this.props;b.height===a.height&&b.width===a.width||
|
|
214
214
|
this._surface.resize(+b.width,+b.height);eh(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){eh(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),lh=function(a){function b(b){var c=
|
|
215
|
-
a.call(this,b)||this;["height","width","x","y"].forEach(function(a){Object.defineProperty(ia(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(Ma.TEXT,fa({},this.props,{ref:function(b){return a._text=b}}),Oa(this.props.children))};return b}(aa.Component),mh={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.0-experimental-
|
|
215
|
+
a.call(this,b)||this;["height","width","x","y"].forEach(function(a){Object.defineProperty(ia(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(Ma.TEXT,fa({},this.props,{ref:function(b){return a._text=b}}),Oa(this.props.children))};return b}(aa.Component),mh={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.0-experimental-e225fa43a-20220711",rendererPackageName:"react-art"};
|
|
216
216
|
var nh={bundleType:mh.bundleType,version:mh.version,rendererPackageName:mh.rendererPackageName,rendererConfig:mh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ka.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Ja(a);a=null!==a?Ka(a):null;return null===a?null:a.stateNode},
|
|
217
|
-
findFiberByHostInstance:mh.findFiberByHostInstance||fh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-next-
|
|
217
|
+
findFiberByHostInstance:mh.findFiberByHostInstance||fh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-next-e225fa43a-20220711"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oh.isDisabled&&oh.supportsFiber)try{Ya=oh.inject(nh),Za=oh}catch(a){}}var ph=ca.Path;exports.Transform=ba;exports.ClippingRectangle=Ma.CLIPPING_RECTANGLE;exports.Group=Ma.GROUP;
|
|
218
218
|
exports.LinearGradient=hh;exports.Path=ph;exports.Pattern=jh;exports.RadialGradient=ih;exports.Shape=Ma.SHAPE;exports.Surface=kh;exports.Text=lh;
|
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-e225fa43a-20220711",
|
|
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": "0.0.0-experimental-
|
|
28
|
+
"scheduler": "0.0.0-experimental-e225fa43a-20220711"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"react": "0.0.0-experimental-
|
|
31
|
+
"react": "0.0.0-experimental-e225fa43a-20220711"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"LICENSE",
|
|
@@ -247,7 +247,7 @@ Array.prototype.slice,hi=function(){function a(a,c,d,e,f){this._args=ze.call(arg
|
|
|
247
247
|
arguments)||this}Ae(b,a);var c=b.prototype;c.componentDidMount=function(){var a=this.props;this._surface=Qa.Surface(+a.width,+a.height,this._tagRef);a=new Ph(this._surface,0,!1,"",void 0);var b=ra(3,null,null,0);a.current=b;b.stateNode=a;var c=Od();c.refCount++;a.pooledCache=c;c.refCount++;b.memoizedState={element:null,isDehydrated:!1,cache:c};lc(b);this._mountNode=a;se(this.props.children,this._mountNode,this)};c.componentDidUpdate=function(a,b){b=this.props;b.height===a.height&&b.width===a.width||
|
|
248
248
|
this._surface.resize(+b.width,+b.height);se(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){se(null,this._mountNode,this)};c.render=function(){var a=this,b=this.props;return ja.createElement(Qa.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}(ja.Component),li=function(a){function b(b){var c=
|
|
249
249
|
a.call(this,b)||this;["height","width","x","y"].forEach(function(a){Object.defineProperty(Fg(c),a,{get:function(){return this._text?this._text[a]:void 0}})});return c}Ae(b,a);b.prototype.render=function(){var a=this;return ja.createElement(Pa.TEXT,$c({},this.props,{ref:function(b){return a._text=b}}),He(this.props.children))};return b}(ja.Component);(function(a){a={bundleType:a.bundleType,version:a.version,rendererPackageName:a.rendererPackageName,rendererConfig:a.rendererConfig,overrideHookState:null,
|
|
250
|
-
overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ua.ReactCurrentDispatcher,findHostInstanceByFiber:Qh,findFiberByHostInstance:a.findFiberByHostInstance||Rh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-experimental-
|
|
251
|
-
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{$b=b.inject(a),sa=b}catch(c){}a=b.checkDCE?!0:!1}}return a})({findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.0-next-
|
|
250
|
+
overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ua.ReactCurrentDispatcher,findHostInstanceByFiber:Qh,findFiberByHostInstance:a.findFiberByHostInstance||Rh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.0-experimental-e225fa43a-20220711"};
|
|
251
|
+
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{$b=b.inject(a),sa=b}catch(c){}a=b.checkDCE?!0:!1}}return a})({findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.0-next-e225fa43a-20220711",rendererPackageName:"react-art"});var mi=Pa.GROUP,ni=Pa.SHAPE,oi=Qa.Path;T.ClippingRectangle=Pa.CLIPPING_RECTANGLE;T.Group=mi;T.LinearGradient=hi;T.Path=oi;T.Pattern=ji;T.RadialGradient=ii;
|
|
252
252
|
T.Shape=ni;T.Surface=ki;T.Text=li;T.Transform=X});
|
|
253
253
|
})();
|