refactor(thumbnail): [PKG-TOOL-THUMB-04] type runtime modules and retain emitter attribution

This commit is contained in:
Harvey Zhao committed 2026-09-13 04:45:01 +08:00
1 parent efd9f42fb9
commit 15485b6420
37 files changed
+8446 -152

No files matched your search

@@ -0,0 +1,9 @@
export function getFileName(name: string) {
const nameArray = name.split('.')
nameArray.pop()
return nameArray.join('.')
}
export function clamp(num: number, a: number, b: number) {
return Math.max(Math.min(num, Math.max(a, b)), Math.min(a, b))
}