Skip to content

Commit

Permalink
Swap order of "add" arguments.
Browse files Browse the repository at this point in the history
The TypeScript bindings are not reflecting the actual argument order for the `add` method in `File3dmObjectTable`.
  • Loading branch information
prideout authored Sep 29, 2024
1 parent 2be2968 commit 8e099b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/rhino3dm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3124,11 +3124,11 @@ declare module 'rhino3dm' {
addBrep(brep:Brep): string;
/**
* @description Duplicates the object, then adds a copy of the object to the document.
* @param {ObjectAttributes} attributes
* @param {GeometryBase} geometry
* @param {ObjectAttributes} attributes
* @returns {string} A unique identifier for the object.
*/
add(attributes: ObjectAttributes, geometry: GeometryBase): string;
add(geometry: GeometryBase, attributes: ObjectAttributes): string;
/** ... */
addObject(): void;
/**
Expand Down

0 comments on commit 8e099b3

Please sign in to comment.