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","radiusX","radiusY","scaleX","scaleY","rotation","annotationEvents","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];import React from"react";import{Ellipse}from"react-konva";import nodesCommonPropTypes from"../nodesCommonPropTypes";var EllipseNode=function(a){var b=a.id,c=a.name,d=a.fill,e=void 0===d?"#000000":d,f=a.x,g=a.y,h=a.radiusX,i=void 0===h?0:h,j=a.radiusY,k=void 0===j?0:j,l=a.scaleX,m=void 0===l?1:l,n=a.scaleY,o=void 0===n?1:n,p=a.rotation,q=void 0===p?0:p,r=a.annotationEvents,s=a.stroke,t=a.strokeWidth,u=a.shadowOffsetX,v=a.shadowOffsetY,w=a.shadowBlur,x=a.shadowColor,y=a.shadowOpacity,z=a.opacity,A=void 0===z?1:z,B=_objectWithoutProperties(a,_excluded);return React.createElement(Ellipse,_extends({id:b,name:c,rotation:q,scaleX:m,scaleY:o,stroke:s,strokeWidth:t,shadowOffsetX:u,shadowOffsetY:v,shadowBlur:w,shadowColor:x,shadowOpacity:y,fill:e,x:f,y:g,radiusX:i,radiusY:k,offsetX:-i,offsetY:-k,opacity:A},r,B))};export default EllipseNode;