UNPKG

react-filerobot-image-editor

Version:

React component version of filerobot image editor (FIE).

1 lines 1.2 kB
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["id","name","fill","x","y","width","height","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity","cornerRadius"];import React from"react";import{Rect}from"react-konva";import nodesCommonPropTypes from"../nodesCommonPropTypes";var RectNode=function(a){var b=a.id,c=a.name,d=a.fill,e=a.x,f=a.y,g=a.width,h=void 0===g?0:g,i=a.height,j=void 0===i?0:i,k=a.scaleX,l=void 0===k?1:k,m=a.scaleY,n=void 0===m?1:m,o=a.rotation,p=void 0===o?0:o,q=a.annotationEvents,r=a.stroke,s=a.strokeWidth,t=a.shadowOffsetX,u=a.shadowOffsetY,v=a.shadowBlur,w=a.shadowColor,x=a.shadowOpacity,y=a.opacity,z=void 0===y?1:y,A=a.cornerRadius,B=void 0===A?0:A,C=_objectWithoutProperties(a,_excluded);return React.createElement(Rect,_extends({id:b,name:c,rotation:p,scaleX:l,scaleY:n,stroke:r,strokeWidth:s,shadowOffsetX:t,shadowOffsetY:u,shadowBlur:v,shadowColor:w,shadowOpacity:x,fill:d,x:e,y:f,width:h,height:j,opacity:z,cornerRadius:B},q,C))};export default RectNode;