@xeokit/xeokit-sdk 2.4.0-alpha-26 → 2.4.0-alpha-28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.4.0-alpha-26",
3
+ "version": "2.4.0-alpha-28",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -198,6 +198,34 @@ export declare class Viewer {
198
198
  */
199
199
  getSnapshot(params: { width?: number, height?: number, format?: "jpeg" | "png"| "bmp", includeGizmos?: boolean }): string;
200
200
 
201
+ /**
202
+ * Gets a snapshot of this Viewer's {@link Scene} as a Base64-encoded image which includes
203
+ * the HTML elements created by various plugins.
204
+ *
205
+ * The snapshot image is composed of an image of the viewer canvas, overlaid with an image
206
+ * of the HTML container element belonging to each installed Viewer plugin. Each container
207
+ * element is only rendered once, so it's OK for plugins to share the same container.
208
+ *
209
+ * #### Usage:
210
+ *
211
+ * ````javascript
212
+ * viewer.getSnapshotWithPlugins({
213
+ * width: 500,
214
+ * height: 500,
215
+ * format: "png"
216
+ * }).then((imageData)=>{
217
+ *
218
+ * });
219
+ * ````
220
+ * @param {*} [params] Capture options.
221
+ * @param {Number} [params.width] Desired width of result in pixels - defaults to width of canvas.
222
+ * @param {Number} [params.height] Desired height of result in pixels - defaults to height of canvas.
223
+ * @param {String} [params.format="jpeg"] Desired format; "jpeg", "png" or "bmp".
224
+ * @param {Boolean} [params.includeGizmos=false] When true, will include gizmos like {@link SectionPlane} in the snapshot.
225
+ * @returns {Promise} Promise which returns a string-encoded image data URI.
226
+ */
227
+ getSnapshotWithPlugins(params: { width?: number, height?: number, format?: "jpeg" | "png"| "bmp", includeGizmos?: boolean }): Promise<String>;
228
+
201
229
  /**
202
230
  * Exits snapshot mode.
203
231
  *