Skip to content

Commit fb1b7cb

Browse files
committed
SimulationOptions.shape改成具体的类型
1 parent be57148 commit fb1b7cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/physics.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface SimulationOptions {
112112
/** 轨迹采样率,每隔 N 步记录一个轨迹点。默认为 1(不采样)。值越大,SVG 越小 */
113113
sampleRate?: number
114114
/** 贡献方块的形状:circle(圆形)或 square(方形)。圆形物理模拟更丝滑,不容易穿模。 */
115-
shape?: string
115+
shape?: 'circle' | 'square'
116116
/** 背景颜色,默认透明 */
117117
backgroundColor?: string
118118
/** 文字颜色,默认黑色 */

0 commit comments

Comments
 (0)