UNPKG

react-filerobot-image-editor

Version:

React component version of filerobot image editor (FIE).

1 lines 1.25 kB
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["id","name","fill","pointerLength","pointerWidth","scaleX","scaleY","rotation","annotationEvents","points","lineCap","stroke","strokeWidth","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","shadowOpacity","opacity"];import React from"react";import{Arrow}from"react-konva";import nodesCommonPropTypes from"../nodesCommonPropTypes";var ArrowNode=function(a){var b=a.id,c=a.name,d=a.fill,e=a.pointerLength,f=a.pointerWidth,g=a.scaleX,h=void 0===g?1:g,i=a.scaleY,j=void 0===i?1:i,k=a.rotation,l=void 0===k?0:k,m=a.annotationEvents,n=a.points,o=a.lineCap,p=void 0===o?"butt":o,q=a.stroke,r=void 0===q?"#000000":q,s=a.strokeWidth,t=void 0===s?6:s,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(Arrow,_extends({id:b,name:c,rotation:l,scaleX:h,scaleY:j,stroke:r,strokeWidth:t,shadowOffsetX:u,shadowOffsetY:v,shadowBlur:w,shadowColor:x,shadowOpacity:y,fill:d,x:0,y:0,points:n,pointerLength:e,pointerWidth:f,lineCap:p,opacity:A},m,B))};export default ArrowNode;