Version 1.1.2

Version 1.1.2 Highlights

List of all changes

Simplified definition for assets

The type of StructureJson.glTF can now either be an Asset with dedicated rootUrl & fileName or a simple string only holding the complete absolute URL.

Earlier versions only accepted an Asset here.

This is a breaking change as the viewer won't allow Asset.rootUrl to be empty anymore. It is recommendet to switch to the new simplified version which accepts the complete URL as a simple string.

Before:

const spec = {
// ...
variants: {
crossbike: {
glTF: {
rootUrl: 'https://combeepublic.blob.core.windows.net/resources/',
fileName: '09XaZlbDG40.glb',
},
// ...
},
},
// ...
};

Now:

const spec = {
// ...
variants: {
crossbike: {
glTF: 'https://combeepublic.blob.core.windows.net/resources/09XaZlbDG40.glb',
// ...
},
},
// ...
};

Simplified definition for elements

The definition of StructureJson.elements can now be written as complex ElementDefinition objects including PathDefinitions with with explicit include & exclude as before, or as simple array of strings which only holds the paths of the nodes which should be included.

Before:

const spec = {
// ...
variants: {
crossbike: {
// ...
elements: {
Main: {
paths: {
include: ['__root__'],
},
},
},
},
},
// ...
};

Now:

const spec = {
// ...
variants: {
crossbike: {
// ...
elements: {
Main: ['__root__'],
},
},
},
// ...
};

Generated using TypeDoc