chore: update ant-design dependencies and add new icon types

This commit is contained in:
Luiz Costa committed 2025-11-18 09:39:51 -03:00
1 parent 775e562fe9
commit 5c0094d74e
22648 files changed
+2140248 -29

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const getOffset = radius => {
if (radius === 0) {
return 0;
}
// 如果要考虑通用性,这里应该用三角函数 Math.sin(45)
// 但是这个场景比较特殊,始终是等腰直角三角形,所以直接用 Math.sqrt() 开方即可
return radius - Math.sqrt(Math.pow(radius, 2) / 2);
};
var _default = exports.default = getOffset;