@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/dist/lib-cjs/api/classes/viewer.js +3 -3
- package/dist/lib-cjs/api/classes/viewer.js.map +1 -1
- package/dist/lib-cjs/api/util/globalTypes.d.ts +2 -1
- package/dist/lib-cjs/buildinfo.json +1 -1
- package/dist/lib-cjs/commonjs.tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/api/classes/viewer.ts +2 -2
- package/src/api/util/globalTypes.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combeenation/3d-viewer",
|
|
3
|
-
"version": "
|
|
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": "
|
|
50
|
-
"@babylonjs/inspector": "
|
|
51
|
-
"@babylonjs/loaders": "
|
|
52
|
-
"@babylonjs/materials": "
|
|
53
|
-
"@babylonjs/node-editor": "
|
|
54
|
-
"@babylonjs/serializers": "
|
|
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
|
|
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
|
-
/**
|
|
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;
|