@progress/kendo-vue-inputs
Version:
9 lines (8 loc) • 933 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 n=(r,t)=>{if(r%1){const o=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(r*o)/o}return r},f=(r,t)=>r-t*Math.floor(r/t),i=(r,t,o)=>n(r-o,o)<t&&t<r,l=(r,t,o,s)=>t===null?!1:s==="continues"?i(r,t,o)?n(r-o/2,o/2)<=t:r<=t:s==="single"?i(r,t,o)?n(r-o/2,o/2)===t:r===t:!1,c=(r,t,o)=>r==="ltr"?o<t.x+t.width/2:o>t.x+t.width/2;exports.calcIsFirstHalf=c;exports.getRemainder=f;exports.isHalf=i;exports.isSelected=l;exports.toRound=n;