@combeenation/3d-viewer 5.0.0 → 5.0.1
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/manager/gltfExportManager.d.ts +3 -3
- package/dist/lib-cjs/api/manager/gltfExportManager.js +3 -3
- package/dist/lib-cjs/api/manager/gltfExportManager.js.map +1 -1
- package/dist/lib-cjs/index.d.ts +2 -1
- package/dist/lib-cjs/index.js +3 -1
- package/dist/lib-cjs/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/manager/gltfExportManager.ts +3 -4
- package/src/index.ts +2 -0
- package/src/pagesconfig.json +2 -2
|
@@ -13,21 +13,21 @@ export declare class GltfExportManager {
|
|
|
13
13
|
/**
|
|
14
14
|
* Exports selected nodes to a file.
|
|
15
15
|
* @param filename optional name of the exported .GLB file.
|
|
16
|
-
* @param exportOptions export options to be merged with default options.
|
|
16
|
+
* @param exportOptions export options to be merged with default options.
|
|
17
17
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export.
|
|
18
18
|
*/
|
|
19
19
|
exportGlb(filename?: string, exportOptions?: IExportOptions, excluded?: ExcludedGeometry): Promise<File | undefined>;
|
|
20
20
|
/**
|
|
21
21
|
* Exports selected nodes to GLTF. This may result in more than one file, since textures are exported separately.
|
|
22
22
|
* @param filename name of the main (text-based) .GLTF file referring to separate texture files.
|
|
23
|
-
* @param exportOptions export options to be merged with default options.
|
|
23
|
+
* @param exportOptions export options to be merged with default options.
|
|
24
24
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export.
|
|
25
25
|
*/
|
|
26
26
|
exportGltfToFile(filename: string, exportOptions?: IExportOptions, excluded?: ExcludedGeometry): Promise<void>;
|
|
27
27
|
/**
|
|
28
28
|
* Exports selected nodes to GLB. This results in one binary file.
|
|
29
29
|
* @param filename name of the .GLB file.
|
|
30
|
-
* @param exportOptions export options to be merged with default options.
|
|
30
|
+
* @param exportOptions export options to be merged with default options.
|
|
31
31
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export
|
|
32
32
|
*/
|
|
33
33
|
exportGlbToFile(filename: string, exportOptions?: IExportOptions, excluded?: ExcludedGeometry): Promise<void>;
|
|
@@ -29,7 +29,7 @@ var GltfExportManager = /** @class */ (function () {
|
|
|
29
29
|
/**
|
|
30
30
|
* Exports selected nodes to a file.
|
|
31
31
|
* @param filename optional name of the exported .GLB file.
|
|
32
|
-
* @param exportOptions export options to be merged with default options.
|
|
32
|
+
* @param exportOptions export options to be merged with default options.
|
|
33
33
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export.
|
|
34
34
|
*/
|
|
35
35
|
GltfExportManager.prototype.exportGlb = function (filename, exportOptions, excluded) {
|
|
@@ -65,7 +65,7 @@ var GltfExportManager = /** @class */ (function () {
|
|
|
65
65
|
/**
|
|
66
66
|
* Exports selected nodes to GLTF. This may result in more than one file, since textures are exported separately.
|
|
67
67
|
* @param filename name of the main (text-based) .GLTF file referring to separate texture files.
|
|
68
|
-
* @param exportOptions export options to be merged with default options.
|
|
68
|
+
* @param exportOptions export options to be merged with default options.
|
|
69
69
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export.
|
|
70
70
|
*/
|
|
71
71
|
GltfExportManager.prototype.exportGltfToFile = function (filename, exportOptions, excluded) {
|
|
@@ -89,7 +89,7 @@ var GltfExportManager = /** @class */ (function () {
|
|
|
89
89
|
/**
|
|
90
90
|
* Exports selected nodes to GLB. This results in one binary file.
|
|
91
91
|
* @param filename name of the .GLB file.
|
|
92
|
-
* @param exportOptions export options to be merged with default options.
|
|
92
|
+
* @param exportOptions export options to be merged with default options.
|
|
93
93
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export
|
|
94
94
|
*/
|
|
95
95
|
GltfExportManager.prototype.exportGlbToFile = function (filename, exportOptions, excluded) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gltfExportManager.js","sourceRoot":"","sources":["../../../../src/api/manager/gltfExportManager.ts"],"names":[],"mappings":";;;;AAAA,wCAAuC;AACvC,yEAAwE;AACxE,+DAA0D;AAC1D,oEAAmE;
|
|
1
|
+
{"version":3,"file":"gltfExportManager.js","sourceRoot":"","sources":["../../../../src/api/manager/gltfExportManager.ts"],"names":[],"mappings":";;;;AAAA,wCAAuC;AACvC,yEAAwE;AACxE,+DAA0D;AAC1D,oEAAmE;AACnE,sDAAqE;AACrE,2DAAwE;AACxE,uCAAkC;AAElC;IACE;;OAEG;IACH,2BAAgC,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAElD;;OAEG;IACiB,wBAAM,GAA1B,UAA2B,MAAc;;;gBACvC,sBAAO,IAAI,iBAAiB,CAAC,MAAM,CAAC,EAAC;;;KACtC;IAED;;;;;OAKG;IACU,qCAAS,GAAtB,UACE,QAA2B,EAC3B,aAAkC,EAClC,QAA2B;QAF3B,yBAAA,EAAA,2BAA2B;QAC3B,8BAAA,EAAA,kBAAkC;;;;;;wBAGlC,IAAI,CAAC,gBAAgB,EAAE,CAAC;wBACR,qBAAM,yBAAW,CAAC,QAAQ,CACxC,IAAI,CAAC,MAAM,CAAC,KAAK,EACjB,OAAO,EACP,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,QAAQ,CAAC,CAChD,EAAA;;wBAJK,OAAO,GAAG,SAIf;wBACD,IAAI,CAAC,iBAAiB,EAAE,CAAC;wBACnB,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;wBAE/C,iFAAiF;wBACjF,IAAI,OAAO,YAAY,IAAI,EAAE;4BAC3B,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;gCAC9B,QAAQ,IAAI,MAAM,CAAC;6BACpB;4BACD,sBAAO,IAAI,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,EAAC;yBACtC;6BAAM;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;QACxC,cAAc,CAAC,0BAA0B,GAAG,IAAI,CAAC,CAAC,kDAAkD;QACpG,cAAc,CAAC,KAAK,GAAG,GAAG,CAAC;QAC3B,cAAc,CAAC,WAAW,GAAG,IAAI,mBAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACvD,cAAc,CAAC,gBAAgB,GAAG,yBAAW,CAAC,sBAAsB,CAAC;QACrE,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC/B,cAAc,CAAC,SAAS,GAAG,IAAI,CAAC;QAEhC,OAAO,cAAc,CAAC;IACxB,CAAC;IAED;;;OAGG;IACO,qDAAyB,GAAnC,UAAoC,GAAgB;QAClD,OAAO,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC;IACjC,CAAC;IACH,wBAAC;AAAD,CAAC,AAtLD,IAsLC;AAtLY,8CAAiB"}
|
package/dist/lib-cjs/index.d.ts
CHANGED
|
@@ -41,8 +41,9 @@ import { ViewerLight } from './api/classes/viewerLight';
|
|
|
41
41
|
import { AnimationManager } from './api/manager/animationManager';
|
|
42
42
|
import { SceneManager } from './api/manager/sceneManager';
|
|
43
43
|
import { VariantInstanceManager } from './api/manager/variantInstanceManager';
|
|
44
|
+
import { GltfExportManager } from './api/manager/gltfExportManager';
|
|
44
45
|
import * as BabylonHelper from './api/util/babylonHelper';
|
|
45
46
|
/**
|
|
46
47
|
* Expose some frequently used babylon modules by our consumers.
|
|
47
48
|
*/
|
|
48
|
-
export { AnimationManager, Variant, VariantInstanceManager, Viewer, ParameterObservable, Parameterizable, VariantParameterizable, ViewerLight, emitter as Emitter, EventEmitter, Event, Parameter, VariantInstance, Color3, Color4, Vector3, AbstractMesh, InstancedMesh, Mesh, TransformNode, Node, Material, PBRMaterial, StandardMaterial, Scene, Engine, ArcRotateCamera, DynamicTexture, CubeTexture, MeshBuilder, Texture, BabylonAnimation, HemisphericLight, DirectionalLight, Element, EventBroadcaster, SceneManager, PlacementAnimation, BabylonHelper, };
|
|
49
|
+
export { AnimationManager, Variant, VariantInstanceManager, Viewer, ParameterObservable, Parameterizable, VariantParameterizable, ViewerLight, emitter as Emitter, EventEmitter, Event, Parameter, VariantInstance, Color3, Color4, Vector3, AbstractMesh, InstancedMesh, Mesh, TransformNode, Node, Material, PBRMaterial, StandardMaterial, Scene, Engine, ArcRotateCamera, DynamicTexture, CubeTexture, MeshBuilder, Texture, BabylonAnimation, HemisphericLight, DirectionalLight, Element, EventBroadcaster, SceneManager, PlacementAnimation, BabylonHelper, GltfExportManager, };
|
package/dist/lib-cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference path="api/util/globalTypes.ts" />
|
|
3
3
|
/// <reference types="gsap" />
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.BabylonHelper = exports.PlacementAnimation = exports.SceneManager = exports.EventBroadcaster = exports.Element = exports.DirectionalLight = exports.HemisphericLight = exports.BabylonAnimation = exports.Texture = exports.MeshBuilder = exports.CubeTexture = exports.DynamicTexture = exports.ArcRotateCamera = exports.Engine = exports.Scene = exports.StandardMaterial = exports.PBRMaterial = exports.Material = exports.Node = exports.TransformNode = exports.Mesh = exports.InstancedMesh = exports.AbstractMesh = exports.Vector3 = exports.Color4 = exports.Color3 = exports.VariantInstance = exports.Parameter = exports.Event = exports.EventEmitter = exports.Emitter = exports.ViewerLight = exports.VariantParameterizable = exports.Parameterizable = exports.ParameterObservable = exports.Viewer = exports.VariantInstanceManager = exports.Variant = exports.AnimationManager = void 0;
|
|
5
|
+
exports.GltfExportManager = exports.BabylonHelper = exports.PlacementAnimation = exports.SceneManager = exports.EventBroadcaster = exports.Element = exports.DirectionalLight = exports.HemisphericLight = exports.BabylonAnimation = exports.Texture = exports.MeshBuilder = exports.CubeTexture = exports.DynamicTexture = exports.ArcRotateCamera = exports.Engine = exports.Scene = exports.StandardMaterial = exports.PBRMaterial = exports.Material = exports.Node = exports.TransformNode = exports.Mesh = exports.InstancedMesh = exports.AbstractMesh = exports.Vector3 = exports.Color4 = exports.Color3 = exports.VariantInstance = exports.Parameter = exports.Event = exports.EventEmitter = exports.Emitter = exports.ViewerLight = exports.VariantParameterizable = exports.Parameterizable = exports.ParameterObservable = exports.Viewer = exports.VariantInstanceManager = exports.Variant = exports.AnimationManager = void 0;
|
|
6
6
|
var animation_1 = require("@babylonjs/core/Animations/animation");
|
|
7
7
|
Object.defineProperty(exports, "BabylonAnimation", { enumerable: true, get: function () { return animation_1.Animation; } });
|
|
8
8
|
var arcRotateCamera_1 = require("@babylonjs/core/Cameras/arcRotateCamera");
|
|
@@ -83,6 +83,8 @@ var sceneManager_1 = require("./api/manager/sceneManager");
|
|
|
83
83
|
Object.defineProperty(exports, "SceneManager", { enumerable: true, get: function () { return sceneManager_1.SceneManager; } });
|
|
84
84
|
var variantInstanceManager_1 = require("./api/manager/variantInstanceManager");
|
|
85
85
|
Object.defineProperty(exports, "VariantInstanceManager", { enumerable: true, get: function () { return variantInstanceManager_1.VariantInstanceManager; } });
|
|
86
|
+
var gltfExportManager_1 = require("./api/manager/gltfExportManager");
|
|
87
|
+
Object.defineProperty(exports, "GltfExportManager", { enumerable: true, get: function () { return gltfExportManager_1.GltfExportManager; } });
|
|
86
88
|
var BabylonHelper = require("./api/util/babylonHelper");
|
|
87
89
|
exports.BabylonHelper = BabylonHelper;
|
|
88
90
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,gDAAgD;AAChD,8BAA8B;;;AAE9B,kEAAqF;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,gDAAgD;AAChD,8BAA8B;;;AAE9B,kEAAqF;AAiFnF,iGAjFoB,qBAAgB,OAiFpB;AAhFlB,2EAA0E;AA2ExE,gGA3EO,iCAAe,OA2EP;AA1EjB,yDAAwD;AAy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,yEAAwE;AAoBtE,oGApBO,yCAAmB,OAoBP;AAnBrB,uEAAsE;AAoDpE,mGApDO,uCAAkB,OAoDP;AAnDpB,iDAAgD;AAe9C,wFAfO,iBAAO,OAeP;AAdT,iEAAgE;AAyB9D,gGAzBO,iCAAe,OAyBP;AAxBjB,+CAA8C;AAe5C,uFAfO,eAAM,OAeP;AAdR,yDAAwD;AAkBtD,4FAlBO,yBAAW,OAkBP;AAjBb,mEAAkE;AAUhE,iGAVO,mCAAgB,OAUP;AATlB,2DAA0D;AA6CxD,6FA7CO,2BAAY,OA6CP;AA5Cd,+EAA8E;AAU5E,uGAVO,+CAAsB,OAUP;AATxB,qEAAoE;AA8ClE,kGA9CO,qCAAiB,OA8CP;AA7CnB,wDAA0D;AA4CxD,sCAAa"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@ import { Mesh } from '@babylonjs/core';
|
|
|
2
2
|
import { PBRMaterial } from '@babylonjs/core/Materials/PBR/pbrMaterial';
|
|
3
3
|
import { Color3 } from '@babylonjs/core/Maths/math.color';
|
|
4
4
|
import { AbstractMesh } from '@babylonjs/core/Meshes/abstractMesh';
|
|
5
|
-
import { Scene } from '@babylonjs/core/scene';
|
|
6
5
|
import { GLTF2Export, IExportOptions } from '@babylonjs/serializers';
|
|
7
6
|
import { isMeshIncludedInExclusionList } from '../util/structureHelper';
|
|
8
7
|
import { merge } from 'lodash-es';
|
|
@@ -23,7 +22,7 @@ export class GltfExportManager {
|
|
|
23
22
|
/**
|
|
24
23
|
* Exports selected nodes to a file.
|
|
25
24
|
* @param filename optional name of the exported .GLB file.
|
|
26
|
-
* @param exportOptions export options to be merged with default options.
|
|
25
|
+
* @param exportOptions export options to be merged with default options.
|
|
27
26
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export.
|
|
28
27
|
*/
|
|
29
28
|
public async exportGlb(
|
|
@@ -55,7 +54,7 @@ export class GltfExportManager {
|
|
|
55
54
|
/**
|
|
56
55
|
* Exports selected nodes to GLTF. This may result in more than one file, since textures are exported separately.
|
|
57
56
|
* @param filename name of the main (text-based) .GLTF file referring to separate texture files.
|
|
58
|
-
* @param exportOptions export options to be merged with default options.
|
|
57
|
+
* @param exportOptions export options to be merged with default options.
|
|
59
58
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export.
|
|
60
59
|
*/
|
|
61
60
|
public async exportGltfToFile(filename: string, exportOptions: IExportOptions = {}, excluded?: ExcludedGeometry) {
|
|
@@ -71,7 +70,7 @@ export class GltfExportManager {
|
|
|
71
70
|
/**
|
|
72
71
|
* Exports selected nodes to GLB. This results in one binary file.
|
|
73
72
|
* @param filename name of the .GLB file.
|
|
74
|
-
* @param exportOptions export options to be merged with default options.
|
|
73
|
+
* @param exportOptions export options to be merged with default options.
|
|
75
74
|
* @param excluded optional list of geometry (meshes, elements, variants, variantInstances) to be excluded from export
|
|
76
75
|
*/
|
|
77
76
|
public async exportGlbToFile(filename: string, exportOptions: IExportOptions = {}, excluded?: ExcludedGeometry) {
|
package/src/index.ts
CHANGED
|
@@ -44,6 +44,7 @@ import { ViewerLight } from './api/classes/viewerLight';
|
|
|
44
44
|
import { AnimationManager } from './api/manager/animationManager';
|
|
45
45
|
import { SceneManager } from './api/manager/sceneManager';
|
|
46
46
|
import { VariantInstanceManager } from './api/manager/variantInstanceManager';
|
|
47
|
+
import { GltfExportManager } from './api/manager/gltfExportManager';
|
|
47
48
|
import * as BabylonHelper from './api/util/babylonHelper';
|
|
48
49
|
|
|
49
50
|
/**
|
|
@@ -89,4 +90,5 @@ export {
|
|
|
89
90
|
SceneManager,
|
|
90
91
|
PlacementAnimation,
|
|
91
92
|
BabylonHelper,
|
|
93
|
+
GltfExportManager,
|
|
92
94
|
};
|
package/src/pagesconfig.json
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"source": "./doc/release-notes/version-details/4-3-0.md"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
"title": "Version 5.0.
|
|
32
|
-
"source": "./doc/release-notes/version-details/5-0-
|
|
31
|
+
"title": "Version 5.0.1",
|
|
32
|
+
"source": "./doc/release-notes/version-details/5-0-1.md"
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
35
|
}
|