@shapediver/viewer.data-engine.material-engine 3.8.15 → 3.9.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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # `@shapediver/viewer.data-engine.material-engine`
2
2
 
3
- This package is part of the [`@shapediver/viewer`](https://www.npmjs.com/package/@shapediver/viewer), you can find all information [here](https://viewer.shapediver.com/v3/latest/api/index.html).
3
+ This package is part of the [`@shapediver/viewer`](https://www.npmjs.com/package/@shapediver/viewer), you can find all information [here](https://viewer.shapediver.com/v3/latest/api/index.html).
@@ -1,7 +1,7 @@
1
- import { IMaterialContentDataV1, IMaterialContentDataV2, IMaterialContentDataV3, ITexture } from '@shapediver/viewer.data-engine.shared-types';
2
- import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
3
- import { ShapeDiverResponseOutputContent } from '@shapediver/sdk.geometry-api-sdk-v2';
4
- import { IMapDataPropertiesDefinition, IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition, MapData, MaterialStandardData } from '@shapediver/viewer.shared.types';
1
+ import { ShapeDiverResponseOutputContent } from "@shapediver/sdk.geometry-api-sdk-v2";
2
+ import { IMaterialContentDataV1, IMaterialContentDataV2, IMaterialContentDataV3, ITexture } from "@shapediver/viewer.data-engine.shared-types";
3
+ import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
4
+ import { IMapDataPropertiesDefinition, IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition, MapData, MaterialStandardData } from "@shapediver/viewer.shared.types";
5
5
  export declare class MaterialEngine {
6
6
  private readonly _converter;
7
7
  private readonly _httpClient;
@@ -17,11 +17,11 @@ export declare class MaterialEngine {
17
17
  createMaterialData(materialProperties: IMaterialAbstractDataProperties): IMaterialAbstractData;
18
18
  createMaterialDataFromDefinition(definition: IMaterialAbstractDataPropertiesDefinition): Promise<IMaterialAbstractData>;
19
19
  /**
20
- * Load the material content into a scene graph node.
21
- *
22
- * @param content the material content
23
- * @returns the scene graph node
24
- */
20
+ * Load the material content into a scene graph node.
21
+ *
22
+ * @param content the material content
23
+ * @returns the scene graph node
24
+ */
25
25
  loadContent(content: ShapeDiverResponseOutputContent): Promise<ITreeNode>;
26
26
  loadMap(url: string, id?: string): Promise<MapData | undefined>;
27
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"MaterialEngine.d.ts","sourceRoot":"","sources":["../src/MaterialEngine.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EAEtB,QAAQ,EACX,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,SAAS,EAAY,MAAM,qCAAqC,CAAC;AAE1E,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AAGtF,OAAO,EACH,4BAA4B,EAC5B,qBAAqB,EACrB,+BAA+B,EAC/B,yCAAyC,EASzC,OAAO,EAKP,oBAAoB,EAIvB,MAAM,iCAAiC,CAAC;AAEzC,qBAAa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiC;IAC5D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmC;IAC/D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IAEnD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAiB;IAMzC,WAAkB,QAAQ,mBAEzB;IAMD;;;;;OAKG;IACI,kBAAkB,CAAC,kBAAkB,EAAE,+BAA+B,GAAG,qBAAqB;IAcxF,gCAAgC,CAAC,UAAU,EAAE,yCAAyC,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAsMpI;;;;;SAKK;IACQ,WAAW,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,SAAS,CAAC;IAoCzE,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC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