UNPKG

@three3d/effect

Version:

@three3d/effect 提供了 ThreeJS 的特效

28 lines (16 loc) 808 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/effect](./effect.md) &gt; [pathItemToCurves](./effect.pathitemtocurves.md) ## pathItemToCurves() function pathItem 转 曲线 **Signature:** ```typescript export declare function pathItemToCurves<Vec extends Vector3 | Vector2>(item: PathItem<Vec>, lastPoint?: Vec | null, continuous?: boolean): Curve<Vec>[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | item | [PathItem](./effect.pathitem.md)<!-- -->&lt;Vec&gt; | | | lastPoint | Vec \| null | _(Optional)_ | | continuous | boolean | _(Optional)_ 是否生成连续的曲线;如果是,则会连接 lastPoint 和 曲线开始点 | **Returns:** Curve&lt;Vec&gt;\[\]