react-art 18.3.0 → 18.3.1
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.
|
@@ -200,7 +200,7 @@ d&&(b.callback=d);a=Jc(e,b,g);null!==a&&(Ad(a,e,g,f),Kc(a,e,g));return g}functio
|
|
|
200
200
|
var tg=Array.prototype.slice,ug=function(){function a(a,c,d,e,f){this._args=tg.call(arguments)}a.prototype.applyFill=function(a){a.fillLinear.apply(a,this._args)};return a}(),vg=function(){function a(a,c,d,e,f,g,h){this._args=tg.call(arguments)}a.prototype.applyFill=function(a){a.fillRadial.apply(a,this._args)};return a}(),wg=function(){function a(a,c,d,e,f){this._args=tg.call(arguments)}a.prototype.applyFill=function(a){a.fillImage.apply(a,this._args)};return a}(),xg=function(a){function b(){return a.apply(this,
|
|
201
201
|
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 qg(this._surface,0,!1,"",void 0);var b=pg(3,null,null,0);a.current=b;b.stateNode=a;b.memoizedState={element:null,isDehydrated:!1,cache:null,transitions:null,pendingSuspenseBoundaries:null};Gc(b);this._mountNode=a;rg(this.props.children,this._mountNode,this)};c.componentDidUpdate=function(a){var b=this.props;b.height===a.height&&b.width===a.width||
|
|
202
202
|
this._surface.resize(+b.width,+b.height);rg(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){rg(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),yg=function(a){function b(b){var c=
|
|
203
|
-
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(Ha.TEXT,fa({},this.props,{ref:function(b){return a._text=b}}),Ja(this.props.children))};return b}(aa.Component),zg={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.
|
|
203
|
+
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(Ha.TEXT,fa({},this.props,{ref:function(b){return a._text=b}}),Ja(this.props.children))};return b}(aa.Component),zg={findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.1",rendererPackageName:"react-art"};
|
|
204
204
|
var Ag={bundleType:zg.bundleType,version:zg.version,rendererPackageName:zg.rendererPackageName,rendererConfig:zg.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=Ea(a);a=null!==a?Fa(a):null;return null===a?null:a.stateNode},
|
|
205
|
-
findFiberByHostInstance:zg.findFiberByHostInstance||sg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.
|
|
205
|
+
findFiberByHostInstance:zg.findFiberByHostInstance||sg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Bg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bg.isDisabled&&Bg.supportsFiber)try{Ta=Bg.inject(Ag),Ua=Bg}catch(a){}}var Cg=ca.Path;exports.Transform=ba;exports.ClippingRectangle=Ha.CLIPPING_RECTANGLE;exports.Group=Ha.GROUP;
|
|
206
206
|
exports.LinearGradient=ug;exports.Path=Cg;exports.Pattern=wg;exports.RadialGradient=vg;exports.Shape=Ha.SHAPE;exports.Surface=xg;exports.Text=yg;
|
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.3.
|
|
4
|
+
"version": "18.3.1",
|
|
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.23.
|
|
28
|
+
"scheduler": "^0.23.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"react": "^18.3.
|
|
31
|
+
"react": "^18.3.1"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"LICENSE",
|
|
@@ -235,7 +235,7 @@ Array.prototype.slice,vh=function(){function a(a,c,d,e,f){this._args=$d.call(arg
|
|
|
235
235
|
arguments)||this}ae(b,a);var c=b.prototype;c.componentDidMount=function(){var a=this.props;this._surface=Ka.Surface(+a.width,+a.height,this._tagRef);a=new ch(this._surface,0,!1,"",void 0);var b=ta(3,null,null,0);a.current=b;b.stateNode=a;b.memoizedState={element:null,isDehydrated:!1,cache:null,transitions:null,pendingSuspenseBoundaries:null};hd(b);this._mountNode=a;Td(this.props.children,this._mountNode,this)};c.componentDidUpdate=function(a,b){b=this.props;b.height===a.height&&b.width===a.width||
|
|
236
236
|
this._surface.resize(+b.width,+b.height);Td(this.props.children,this._mountNode,this);this._surface.render&&this._surface.render()};c.componentWillUnmount=function(){Td(null,this._mountNode,this)};c.render=function(){var a=this,b=this.props;return la.createElement(Ka.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}(la.Component),zh=function(a){function b(b){var c=
|
|
237
237
|
a.call(this,b)||this;["height","width","x","y"].forEach(function(a){Object.defineProperty(Xf(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 la.createElement(Ja.TEXT,Gc({},this.props,{ref:function(b){return a._text=b}}),ie(this.props.children))};return b}(la.Component);(function(a){a={bundleType:a.bundleType,version:a.version,rendererPackageName:a.rendererPackageName,rendererConfig:a.rendererConfig,overrideHookState:null,
|
|
238
|
-
overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Na.ReactCurrentDispatcher,findHostInstanceByFiber:dh,findFiberByHostInstance:a.findFiberByHostInstance||eh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.
|
|
239
|
-
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{Mb=b.inject(a),ma=b}catch(c){}a=b.checkDCE?!0:!1}}return a})({findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.
|
|
238
|
+
overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Na.ReactCurrentDispatcher,findHostInstanceByFiber:dh,findFiberByHostInstance:a.findFiberByHostInstance||eh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"};
|
|
239
|
+
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{Mb=b.inject(a),ma=b}catch(c){}a=b.checkDCE?!0:!1}}return a})({findFiberByHostInstance:function(){return null},bundleType:0,version:"18.3.1-next-f1338f8080-20240426",rendererPackageName:"react-art"});var Ah=Ja.GROUP,Bh=Ja.SHAPE,Ch=Ka.Path;Q.ClippingRectangle=Ja.CLIPPING_RECTANGLE;Q.Group=Ah;Q.LinearGradient=vh;Q.Path=Ch;Q.Pattern=xh;Q.RadialGradient=
|
|
240
240
|
wh;Q.Shape=Bh;Q.Surface=yh;Q.Text=zh;Q.Transform=T});
|
|
241
241
|
})();
|