@inweb/client 25.8.20 → 25.8.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -280,8 +280,8 @@
280
280
  .then((array) => array.filter(({ custom_fields = {} }) => custom_fields.modelId === this.id || custom_fields.modelName === this.name));
281
281
  }
282
282
  /**
283
- * Adds a new viewpoint to the owner file/assembly. To create a new viewpoint use
284
- * `Viewer.createViewpoint()`.
283
+ * Saves a new model owner file/assembly viewpoint to the server. To create a new viewpoint
284
+ * use `Viewer.createViewpoint()`.
285
285
  *
286
286
  * @param viewpoint - Viewpoint.
287
287
  */
@@ -301,10 +301,10 @@
301
301
  return this._file.deleteViewpoint(guid);
302
302
  }
303
303
  /**
304
- * Returns viewpoint preview image as
304
+ * Returns viewpoint snapshot as base64-encoded
305
305
  * {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}.
306
306
  *
307
- * @param guid - Viewpoint GIID.
307
+ * @param guid - Viewpoint GUID.
308
308
  */
309
309
  getSnapshot(guid) {
310
310
  return this._file.getSnapshot(guid);
@@ -999,7 +999,7 @@
999
999
  .then((viewpoints) => viewpoints.result);
1000
1000
  }
1001
1001
  /**
1002
- * Adds a new viewpoint to the assembly. To create a viewpoint use `Viewer.createViewpoint()`.
1002
+ * Saves a new assembly viewpoint to the server. To create a viewpoint use `Viewer.createViewpoint()`.
1003
1003
  *
1004
1004
  * @param viewpoint - Viewpoint.
1005
1005
  */
@@ -1016,7 +1016,7 @@
1016
1016
  return this.internalDelete(`/viewpoints/${guid}`).then((response) => response.json());
1017
1017
  }
1018
1018
  /**
1019
- * Returns viewpoint preview image as
1019
+ * Returns viewpoint snapshot as base64-encoded
1020
1020
  * {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}.
1021
1021
  *
1022
1022
  * @param guid - Viewpoint GUID.
@@ -1025,7 +1025,7 @@
1025
1025
  return this.internalGet(`/viewpoints/${guid}/snapshot`).then((response) => response.text());
1026
1026
  }
1027
1027
  /**
1028
- * Returns viewpoint preview data.
1028
+ * Returns viewpoint snapshot data.
1029
1029
  *
1030
1030
  * @param guid - Viewpoint GUID.
1031
1031
  * @param bitmapGuid - Bitmap GUID.
@@ -2279,7 +2279,7 @@
2279
2279
  .then((viewpoints) => viewpoints.result);
2280
2280
  }
2281
2281
  /**
2282
- * Adds a new viewpoint to the file. To create a viewpoint use `Viewer.createViewpoint()`.
2282
+ * Saves a new file viewpoint to the server. To create a viewpoint use `Viewer.createViewpoint()`.
2283
2283
  *
2284
2284
  * @param viewpoint - Viewpoint.
2285
2285
  */
@@ -2296,7 +2296,7 @@
2296
2296
  return this.internalDelete(`/viewpoints/${guid}`).then((response) => response.json());
2297
2297
  }
2298
2298
  /**
2299
- * Returns viewpoint preview image as
2299
+ * Returns viewpoint snapshot as base64-encoded
2300
2300
  * {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}.
2301
2301
  *
2302
2302
  * @param guid - Viewpoint GUID.
@@ -2305,7 +2305,7 @@
2305
2305
  return this.internalGet(`/viewpoints/${guid}/snapshot`).then((response) => response.text());
2306
2306
  }
2307
2307
  /**
2308
- * Returns viewpoint preview data.
2308
+ * Returns viewpoint snapshot data.
2309
2309
  *
2310
2310
  * @param guid - Viewpoint GUID.
2311
2311
  * @param bitmapGuid - Bitmap GUID.
@@ -2540,7 +2540,7 @@
2540
2540
  * - `readViewpoint` - The ability to read file viewpoints.
2541
2541
  * - `createViewpoint` - The ability to create file viewpoints.
2542
2542
  *
2543
- * @param grantedTo - A collection of principials that will get access to the file.
2543
+ * @param grantedTo - A list of principials that will get access to the file.
2544
2544
  * @param _public - Specifies whether all users have access to the file or not.
2545
2545
  */
2546
2546
  createPermission(actions, grantedTo, _public) {
@@ -3831,7 +3831,7 @@
3831
3831
  .then((data) => ({
3832
3832
  ...data,
3833
3833
  server: data.version,
3834
- client: "25.8.20",
3834
+ client: "25.8.22",
3835
3835
  }));
3836
3836
  }
3837
3837
  /**
@@ -4525,7 +4525,7 @@
4525
4525
  }
4526
4526
 
4527
4527
  ///////////////////////////////////////////////////////////////////////////////
4528
- const version = "25.8.20";
4528
+ const version = "25.8.22";
4529
4529
 
4530
4530
  exports.Assembly = Assembly;
4531
4531
  exports.ClashTest = ClashTest;