@xeokit/xeokit-sdk 2.4.0-alpha-26 → 2.4.0-alpha-27
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/xeokit-sdk.cjs.js
CHANGED
|
@@ -110653,6 +110653,10 @@ class Viewer {
|
|
|
110653
110653
|
* Gets a snapshot of this Viewer's {@link Scene} as a Base64-encoded image which includes
|
|
110654
110654
|
* the HTML elements created by various plugins.
|
|
110655
110655
|
*
|
|
110656
|
+
* The snapshot image is composed of an image of the viewer canvas, overlaid with an image
|
|
110657
|
+
* of the HTML container element belonging to each installed Viewer plugin. Each container
|
|
110658
|
+
* element is only rendered once, so it's OK for plugins to share the same container.
|
|
110659
|
+
*
|
|
110656
110660
|
* #### Usage:
|
|
110657
110661
|
*
|
|
110658
110662
|
* ````javascript
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -110649,6 +110649,10 @@ class Viewer {
|
|
|
110649
110649
|
* Gets a snapshot of this Viewer's {@link Scene} as a Base64-encoded image which includes
|
|
110650
110650
|
* the HTML elements created by various plugins.
|
|
110651
110651
|
*
|
|
110652
|
+
* The snapshot image is composed of an image of the viewer canvas, overlaid with an image
|
|
110653
|
+
* of the HTML container element belonging to each installed Viewer plugin. Each container
|
|
110654
|
+
* element is only rendered once, so it's OK for plugins to share the same container.
|
|
110655
|
+
*
|
|
110652
110656
|
* #### Usage:
|
|
110653
110657
|
*
|
|
110654
110658
|
* ````javascript
|
package/dist/xeokit-sdk.es5.js
CHANGED
|
@@ -23836,6 +23836,10 @@ doublePickFlyTo:true});this._plugins=[];/**
|
|
|
23836
23836
|
* Gets a snapshot of this Viewer's {@link Scene} as a Base64-encoded image which includes
|
|
23837
23837
|
* the HTML elements created by various plugins.
|
|
23838
23838
|
*
|
|
23839
|
+
* The snapshot image is composed of an image of the viewer canvas, overlaid with an image
|
|
23840
|
+
* of the HTML container element belonging to each installed Viewer plugin. Each container
|
|
23841
|
+
* element is only rendered once, so it's OK for plugins to share the same container.
|
|
23842
|
+
*
|
|
23839
23843
|
* #### Usage:
|
|
23840
23844
|
*
|
|
23841
23845
|
* ````javascript
|
package/package.json
CHANGED
package/types/viewer/Viewer.d.ts
CHANGED
|
@@ -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
|
*
|