Skip to content

Commit 8bd2e74

Browse files
authored
Merge pull request #37 from flycran/chore/quality-cleanup
chore: 清理死依赖与残留注释
2 parents 22dbd26 + 894abff commit 8bd2e74

4 files changed

Lines changed: 2 additions & 19 deletions

File tree

‎bun.lock‎

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index.js‎

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"license": "MIT",
4747
"dependencies": {
4848
"@actions/core": "^3.0.0",
49-
"@dimforge/rapier2d": "^0.19.3",
5049
"@dimforge/rapier2d-compat": "^0.19.3",
5150
"@kitajs/html": "^4.2.13",
5251
"opentype.js": "^2.0.0",
@@ -67,8 +66,5 @@
6766
"pixi.js": "^8.22.0",
6867
"rollup": "^4.57.1",
6968
"typescript": "^5.9.3"
70-
},
71-
"optionalDependencies": {
72-
"@rollup/rollup-linux-x64-gnu": "*"
7369
}
7470
}

‎src/utils/physics.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ export interface TextPathResult {
179179

180180
/**
181181
* 计算所有字形的整体包围盒
182-
* @param textPaths
183-
* @param param1
184-
* @returns
185182
*/
186183
export function getTextBoundBox(
187184
textPaths: TextPathResult[],
@@ -215,7 +212,6 @@ export function getTextBoundBox(
215212
}
216213
}
217214

218-
/** 渲染用贡献方块:轨迹已统一为关键帧形态(未压缩时为无 span 的全量关键帧) */
219215
/** 渲染产物:模拟产出的贡献方块叠加压缩后的轨迹 */
220216
export interface RenderedContribution
221217
extends Omit<ContributionJson, 'trajectory'> {
@@ -247,8 +243,8 @@ export interface SimulationOptions {
247243
/** 字体大小 */
248244
fontSize?: number
249245
/**
250-
* 轨迹压缩容差,单位 SVG 像素。播放时每个原始时刻的插值坐标与真实坐标
251-
* 在横向、纵向上各自的偏差不超过该值
246+
* 轨迹压缩容差,单位 SVG 坐标单位。播放时每个原始时刻的插值坐标与真实坐标
247+
* 的偏差不超过该值(CSS 引擎按轴向、SMIL 按合成位移)
252248
*/
253249
compressionTolerance?: number
254250
/** 禁用轨迹压缩,保留完整轨迹。调试用途,action无法禁用压缩 */

0 commit comments

Comments
 (0)