@shapediver/viewer.features.attribute-visualization 3.16.8 → 3.16.10

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.
@@ -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