UNPKG

@chief-editor/shape

Version:

Shape for chief editor

1 lines 1.16 kB
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(r[o[i]]=t[o[i]])}return r};import React from"react";export function Arrow(t){var e=t.width,r=t.height,o=t.ratio,i=void 0===o?"none":o,n=t.strokeDasharray,a=t.strokeWidth,s=void 0===a?0:a,h=__rest(t,["width","height","ratio","strokeDasharray","strokeWidth"]),l=300,c=300;return n&&(l+=s,c+=s),React.createElement("svg",{width:e,height:r,viewBox:-s/2+" "+-s/2+" "+l+" "+c,fill:"none",preserveAspectRatio:i},React.createElement("path",__assign({},h,{strokeWidth:s,strokeDasharray:n,fillRule:"evenodd",clipRule:"evenodd",d:"M155.068 254L300 150L155.068 46L155.068 118H0V182H155.068V254Z"})))}