@progress/kendo-react-inputs
Version:
React Inputs offer a customizable interface for users to enter and pick different information. KendoReact Input package
9 lines (8 loc) • 1.08 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=(n,t)=>n.length===0?"":`<path d="${n.reduce((e,o,c,h)=>c===0?`M ${o[0]},${o[1]}`:`${e} ${t(o,c,h)}`,"")}" fill="none" stroke="white" stroke-width="1"/>`,u=(n,t)=>{const s=t[0]-n[0],e=t[1]-n[1];return{length:Math.sqrt(Math.pow(s,2)+Math.pow(e,2)),angle:Math.atan2(e,s)}},m=n=>(t,s,e,o)=>{const c=s||t,h=e||t,l=.1,r=n(c,h),a=r.angle+(o?Math.PI:0),g=r.length*l,$=t[0]+Math.cos(a)*g,d=t[1]+Math.sin(a)*g;return[$,d]},P=n=>(t,s,e)=>{const[o,c]=n(e[s-1],e[s-2],t),[h,l]=n(t,e[s-1],e[s+1],!0);return`C ${o},${c} ${h},${l} ${t[0]},${t[1]}`};exports.bezierCommand=P;exports.controlPoint=m;exports.line=u;exports.svgPath=M;