@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
14 lines • 554 B
TypeScript
import { CurvePath } from "three";
import type { Vector } from "three";
/**
* 闭合曲线路径
* @remarks
* 在 three@0.156.1 中 `CurvePath.prototype.closePath()` 方法有bug,执行方法后,无论 CurvePath 是3维曲线还是2维曲线,都只会以起终两点添加一段2维直线 `LineCurve`
* @param curvePath
*/
export declare function closeCurvePath(curvePath: CurvePath<Vector>): CurvePath<Vector>;
/**
* 修复 three中发现的bug
*/
export declare function threeBugPatch(): void;
//# sourceMappingURL=three-bug-patch.d.ts.map