@shapediver/viewer.features.attribute-visualization 3.16.7 → 3.16.9
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/implementation/AttributeVisualizationEngine.d.ts +42 -42
- package/dist/implementation/AttributeVisualizationEngine.js +358 -358
- package/dist/implementation/AttributeVisualizationEngine.js.map +1 -1
- package/dist/implementation/AttributeVisualizationUtils.d.ts +11 -11
- package/dist/implementation/AttributeVisualizationUtils.d.ts.map +1 -1
- package/dist/implementation/AttributeVisualizationUtils.js +805 -805
- package/dist/implementation/AttributeVisualizationUtils.js.map +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +15 -15
- package/dist/interfaces/IAttribute.d.ts +20 -20
- package/dist/interfaces/IAttribute.d.ts.map +1 -1
- package/dist/interfaces/IAttribute.js +2 -2
- package/dist/interfaces/IAttributeVisualizationEngine.d.ts +39 -39
- package/dist/interfaces/IAttributeVisualizationEngine.js +2 -2
- package/dist/interfaces/IGradient.d.ts +5 -5
- package/dist/interfaces/IGradient.d.ts.map +1 -1
- package/dist/interfaces/IGradient.js +13 -13
- package/dist/interfaces/ILayer.d.ts +6 -6
- package/dist/interfaces/ILayer.js +2 -2
- package/package.json +7 -7
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { IViewportApi } from "@shapediver/viewer";
|
|
2
|
-
import { IMaterialAbstractData, ISDTFOverview } from "@shapediver/viewer.shared.types";
|
|
3
|
-
import { IAttribute } from "../interfaces/IAttribute";
|
|
4
|
-
import { IAttributeVisualizationEngine } from "../interfaces/IAttributeVisualizationEngine";
|
|
5
|
-
import { ILayer } from "../interfaces/ILayer";
|
|
6
|
-
export declare class AttributeVisualizationEngine implements IAttributeVisualizationEngine {
|
|
7
|
-
#private;
|
|
8
|
-
constructor(viewport: IViewportApi);
|
|
9
|
-
private gatherNodesWithAttributeData;
|
|
10
|
-
get defaultMaterial(): IMaterialAbstractData;
|
|
11
|
-
get defaultLayer(): ILayer;
|
|
12
|
-
get layers(): {
|
|
13
|
-
[key: string]: ILayer;
|
|
14
|
-
};
|
|
15
|
-
get layerMaterialType(): "unlit" | "standard";
|
|
16
|
-
get visualizedMaterialType(): "unlit" | "standard";
|
|
17
|
-
get overview(): ISDTFOverview;
|
|
18
|
-
updateAttributes(attributes: IAttribute[]): void;
|
|
19
|
-
updateDefaultLayer(layer: ILayer): void;
|
|
20
|
-
updateDefaultMaterial(material: IMaterialAbstractData): void;
|
|
21
|
-
updateLayerMaterialType(type: "unlit" | "standard"): void;
|
|
22
|
-
updateVisualizedMaterialType(type: "unlit" | "standard"): void;
|
|
23
|
-
updateLayers(layers: {
|
|
24
|
-
[key: string]: ILayer;
|
|
25
|
-
}): void;
|
|
26
|
-
addListener(cb: () => void): string;
|
|
27
|
-
removeListener(token: string): boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Coalesce multiple rapid update calls into a single
|
|
30
|
-
* constructAttributeVisualization + invalidation pass using microtask scheduling.
|
|
31
|
-
*/
|
|
32
|
-
private scheduleUpdate;
|
|
33
|
-
/**
|
|
34
|
-
* Pre-build a lookup map from "key:typeHint" -> ISDTFAttributeOverview
|
|
35
|
-
* so the hot-path callback avoids Array.filter() per geometry item.
|
|
36
|
-
*/
|
|
37
|
-
private buildOverviewCache;
|
|
38
|
-
private createMaterial;
|
|
39
|
-
private constructAttributeVisualization;
|
|
40
|
-
private createMaterialCopy;
|
|
41
|
-
private createLayers;
|
|
42
|
-
}
|
|
1
|
+
import { IViewportApi } from "@shapediver/viewer";
|
|
2
|
+
import { IMaterialAbstractData, ISDTFOverview } from "@shapediver/viewer.shared.types";
|
|
3
|
+
import { IAttribute } from "../interfaces/IAttribute";
|
|
4
|
+
import { IAttributeVisualizationEngine } from "../interfaces/IAttributeVisualizationEngine";
|
|
5
|
+
import { ILayer } from "../interfaces/ILayer";
|
|
6
|
+
export declare class AttributeVisualizationEngine implements IAttributeVisualizationEngine {
|
|
7
|
+
#private;
|
|
8
|
+
constructor(viewport: IViewportApi);
|
|
9
|
+
private gatherNodesWithAttributeData;
|
|
10
|
+
get defaultMaterial(): IMaterialAbstractData;
|
|
11
|
+
get defaultLayer(): ILayer;
|
|
12
|
+
get layers(): {
|
|
13
|
+
[key: string]: ILayer;
|
|
14
|
+
};
|
|
15
|
+
get layerMaterialType(): "unlit" | "standard";
|
|
16
|
+
get visualizedMaterialType(): "unlit" | "standard";
|
|
17
|
+
get overview(): ISDTFOverview;
|
|
18
|
+
updateAttributes(attributes: IAttribute[]): void;
|
|
19
|
+
updateDefaultLayer(layer: ILayer): void;
|
|
20
|
+
updateDefaultMaterial(material: IMaterialAbstractData): void;
|
|
21
|
+
updateLayerMaterialType(type: "unlit" | "standard"): void;
|
|
22
|
+
updateVisualizedMaterialType(type: "unlit" | "standard"): void;
|
|
23
|
+
updateLayers(layers: {
|
|
24
|
+
[key: string]: ILayer;
|
|
25
|
+
}): void;
|
|
26
|
+
addListener(cb: () => void): string;
|
|
27
|
+
removeListener(token: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Coalesce multiple rapid update calls into a single
|
|
30
|
+
* constructAttributeVisualization + invalidation pass using microtask scheduling.
|
|
31
|
+
*/
|
|
32
|
+
private scheduleUpdate;
|
|
33
|
+
/**
|
|
34
|
+
* Pre-build a lookup map from "key:typeHint" -> ISDTFAttributeOverview
|
|
35
|
+
* so the hot-path callback avoids Array.filter() per geometry item.
|
|
36
|
+
*/
|
|
37
|
+
private buildOverviewCache;
|
|
38
|
+
private createMaterial;
|
|
39
|
+
private constructAttributeVisualization;
|
|
40
|
+
private createMaterialCopy;
|
|
41
|
+
private createLayers;
|
|
42
|
+
}
|
|
43
43
|
//# sourceMappingURL=AttributeVisualizationEngine.d.ts.map
|