From 8e099b3d46bf954a05325c272e92265dee77df7a Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Sat, 28 Sep 2024 17:17:40 -0700 Subject: [PATCH] Swap order of "add" arguments. The TypeScript bindings are not reflecting the actual argument order for the `add` method in `File3dmObjectTable`. --- src/js/rhino3dm.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/rhino3dm.d.ts b/src/js/rhino3dm.d.ts index 0bd3eec3..af48c0e5 100644 --- a/src/js/rhino3dm.d.ts +++ b/src/js/rhino3dm.d.ts @@ -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; /**