Skip to content

Commit

Permalink
Add missing types for buildBoxLinesGeometryFromAABB
Browse files Browse the repository at this point in the history
  • Loading branch information
paireks committed Feb 13, 2024
1 parent adfc3bf commit 7bacecd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,25 @@ export declare type buildBoxLinesGeometryConfiguration = {
zSize?: number;
};

export declare type buildBoxLinesGeometryFromAABBConfiguration = {
/* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
id?: string;
/* AABB for which box will be created. */
aabb?: number[];
};

/**
* @desc Creates a box-shaped lines {@link Geometry}.
*
* @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
* @returns {Object} Configuration for a {@link Geometry} subtype.
*/
export function buildBoxLinesGeometry(cfg: buildBoxLinesGeometryConfiguration): Geometry;
export function buildBoxLinesGeometry(cfg: buildBoxLinesGeometryConfiguration): Geometry;

/**
* @desc Creates a box-shaped lines {@link Geometry} from AABB.
*
* @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
* @returns {Object} Configuration for a {@link Geometry} subtype.
*/
export function buildBoxLinesGeometryFromAABB(cfg: buildBoxLinesGeometryFromAABBConfiguration): Geometry;

0 comments on commit 7bacecd

Please sign in to comment.