Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"license": "MIT",
"dependencies": {
"@actions/core": "^3.0.0",
"@dimforge/rapier2d": "^0.19.3",
"@dimforge/rapier2d-compat": "^0.19.3",
"@kitajs/html": "^4.2.13",
"opentype.js": "^2.0.0",
Expand All @@ -67,8 +66,5 @@
"pixi.js": "^8.22.0",
"rollup": "^4.57.1",
"typescript": "^5.9.3"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "*"
}
}
8 changes: 2 additions & 6 deletions src/utils/physics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ export interface TextPathResult {

/**
* 计算所有字形的整体包围盒
* @param textPaths
* @param param1
* @returns
*/
export function getTextBoundBox(
textPaths: TextPathResult[],
Expand Down Expand Up @@ -215,7 +212,6 @@ export function getTextBoundBox(
}
}

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