@combeenation/3d-viewer 10.0.0 → 11.0.0

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": "@combeenation/3d-viewer",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "Combeenation 3D Viewer",
5
5
  "homepage": "https://github.com/Combeenation/3d-viewer#readme",
6
6
  "bugs": {
@@ -46,12 +46,12 @@
46
46
  },
47
47
  "prettier": "@combeenation/prettier-config",
48
48
  "dependencies": {
49
- "@babylonjs/core": "5.27.1",
50
- "@babylonjs/inspector": "5.27.1",
51
- "@babylonjs/loaders": "5.27.1",
52
- "@babylonjs/materials": "5.27.1",
53
- "@babylonjs/node-editor": "5.27.1",
54
- "@babylonjs/serializers": "5.27.1",
49
+ "@babylonjs/core": "6.27.1",
50
+ "@babylonjs/inspector": "6.27.1",
51
+ "@babylonjs/loaders": "6.27.1",
52
+ "@babylonjs/materials": "6.27.1",
53
+ "@babylonjs/node-editor": "6.27.1",
54
+ "@babylonjs/serializers": "6.27.1",
55
55
  "eventemitter3": "4.0.7",
56
56
  "gsap": "3.11.2",
57
57
  "is-svg": "^5.0.0",
@@ -475,7 +475,7 @@ The inspector can only be used in development builds.`);
475
475
  settings?.mimeType ?? 'image/png',
476
476
  settings?.samples ?? 1,
477
477
  settings?.antialiasing ?? false,
478
- settings?.fileName ?? 'screenshot.png',
478
+ settings?.fileName,
479
479
  settings?.renderSprites ?? false
480
480
  );
481
481
  });
@@ -755,7 +755,7 @@ The inspector can only be used in development builds.`);
755
755
  * Required for babylon files & materials loaded from "Combeenation configurator assets".
756
756
  */
757
757
  protected initCbnBabylonLoaderPlugin() {
758
- const previousLoaderPlugin = SceneLoader.GetPluginForExtension('babylon') as ISceneLoaderPlugin;
758
+ const previousLoaderPlugin = SceneLoader.GetPluginForExtension('.babylon') as ISceneLoaderPlugin;
759
759
  const customLoaderPlugin = getCustomCbnBabylonLoaderPlugin(previousLoaderPlugin);
760
760
  SceneLoader.RegisterPlugin(customLoaderPlugin);
761
761
  }
@@ -283,7 +283,8 @@ type ScreenshotSettings = {
283
283
  samples?: number;
284
284
  /** Default `false` */
285
285
  antialiasing?: boolean;
286
- /** Default `screenshot.png` */
286
+ /** NOTE: after update to Babylon.js V6: if file name is given, the screenshot image will be downloaded and the base64
287
+ * string will NOT be returned! */
287
288
  fileName?: string;
288
289
  /** Default `false` */
289
290
  renderSprites?: boolean;