@progress/kendo-vue-inputs
Version:
9 lines (8 loc) • 904 B
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 $=(o,t)=>{const n=t[0]-o[0],e=t[1]-o[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(e,2)),angle:Math.atan2(e,n)}},b=o=>(t,n,e,s)=>{const c=n||t,l=e||t,h=.1,a=o(c,l),g=a.angle+(s?Math.PI:0),r=a.length*h,M=t[0]+Math.cos(g)*r,m=t[1]+Math.sin(g)*r;return[M,m]},d=o=>(t,n,e)=>{const[s,c]=o(e[n-1],e[n-2],t),[l,h]=o(t,e[n-1],e[n+1],!0);return`C ${s},${c} ${l},${h} ${t[0]},${t[1]}`};exports.bezierCommand=d;exports.controlPoint=b;exports.line=$;