-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1376 from paireks/develop/Polyline_UpdateTypes
Adding missing types for Polyline geometry
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
types/viewer/scene/geometry/builders/buildPolylineGeometry.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Geometry } from "../Geometry"; | ||
|
||
export declare type buildPolylineGeometryConfiguration = { | ||
/* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */ | ||
id?: string; | ||
/* 3D points indicating vertices position. */ | ||
points?: number[]; | ||
}; | ||
|
||
/** | ||
* @desc Creates a 3D polyline {@link Geometry}. | ||
* | ||
* @param {buildBoxLinesGeometryConfiguration} [cfg] Configs | ||
* @returns {Object} Configuration for a {@link Geometry} subtype. | ||
*/ | ||
export function buildPolylineGeometry(cfg: buildPolylineGeometryConfiguration): Geometry; |