@types/forge-viewer 7.69.9 → 7.89.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.
- forge-viewer/README.md +2 -2
- forge-viewer/index.d.ts +69 -8
- forge-viewer/package.json +13 -3
forge-viewer/README.md
CHANGED
|
@@ -8,8 +8,8 @@ This package contains type definitions for forge-viewer (https://forge.autodesk.
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/forge-viewer.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 17 Jun 2024 20:35:45 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
15
|
-
These definitions were written by [Autodesk Forge Partner Development](https://github.com/Autodesk-Forge), [Alan Smith](https://github.com/alansmithnbs), [Jan Liska](https://github.com/liskaj), [Petr Broz](https://github.com/petrbroz), and [Cyrille Fauvel](https://github.com/cyrillef).
|
|
15
|
+
These definitions were written by [Autodesk Forge Partner Development](https://github.com/Autodesk-Forge), [Autodesk Developer Advocacy and Support](https://github.com/autodesk-platform-services), [Alan Smith](https://github.com/alansmithnbs), [Jan Liska](https://github.com/liskaj), [Petr Broz](https://github.com/petrbroz), [Eason Kang](https://github.com/yiskang), and [Cyrille Fauvel](https://github.com/cyrillef).
|
forge-viewer/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ declare namespace Autodesk {
|
|
|
32
32
|
RTC_ERROR = 12,
|
|
33
33
|
UNSUPORTED_FILE_EXTENSION = 13,
|
|
34
34
|
VIEWER_INTERNAL_ERROR = 14,
|
|
35
|
+
WEBGL_LOST_CONTEXT = 15,
|
|
36
|
+
LOAD_CANCELED = 16,
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
enum SelectionMode {
|
|
@@ -256,11 +258,16 @@ declare namespace Autodesk {
|
|
|
256
258
|
|
|
257
259
|
interface LoadModelOptions {
|
|
258
260
|
fileLoader?: FileLoader | undefined;
|
|
261
|
+
keepCurrentModels?: boolean;
|
|
259
262
|
loadOptions?: object | undefined;
|
|
260
263
|
sharedPropertyDbPath?: string | undefined;
|
|
261
|
-
ids?:
|
|
262
|
-
|
|
264
|
+
ids?: number[] | undefined;
|
|
265
|
+
loadAsHidden?: boolean;
|
|
263
266
|
modelNameOverride?: string;
|
|
267
|
+
placementTransform?: THREE.Matrix4 | undefined;
|
|
268
|
+
applyScaling?: string | { from: string; to: string };
|
|
269
|
+
applyPlacementInModelUnits?: boolean;
|
|
270
|
+
globalOffset?: THREE.Vector3 | undefined;
|
|
264
271
|
[key: string]: any;
|
|
265
272
|
}
|
|
266
273
|
|
|
@@ -503,6 +510,7 @@ declare namespace Autodesk {
|
|
|
503
510
|
isRevitPdf(): boolean;
|
|
504
511
|
isViewable(): boolean;
|
|
505
512
|
isViewPreset(): boolean;
|
|
513
|
+
isMasterView(): boolean;
|
|
506
514
|
lineageUrn(encode?: boolean): string;
|
|
507
515
|
name(): string;
|
|
508
516
|
search(propsToMatch: BubbleNodeSearchProps): BubbleNode[];
|
|
@@ -703,6 +711,7 @@ declare namespace Autodesk {
|
|
|
703
711
|
class Model {
|
|
704
712
|
id: number;
|
|
705
713
|
visibilityManager: Private.VisibilityManager;
|
|
714
|
+
idRemap: Int32Array;
|
|
706
715
|
|
|
707
716
|
clearThemingColors(): void;
|
|
708
717
|
fetchTopology(maxSizeMB: number): Promise<object>;
|
|
@@ -757,7 +766,7 @@ declare namespace Autodesk {
|
|
|
757
766
|
errorCallback?: (err: any) => void,
|
|
758
767
|
options?: { needExternalId: boolean },
|
|
759
768
|
): void;
|
|
760
|
-
getPropertyDb(): PropDbLoader;
|
|
769
|
+
getPropertyDb(): Private.PropDbLoader;
|
|
761
770
|
getPropertySet(
|
|
762
771
|
dbIds: number[],
|
|
763
772
|
options: {
|
|
@@ -774,6 +783,7 @@ declare namespace Autodesk {
|
|
|
774
783
|
needsExternalId?: boolean | undefined;
|
|
775
784
|
},
|
|
776
785
|
): Promise<PropertySet>;
|
|
786
|
+
getPropertyHashes(): Promise<string[]>;
|
|
777
787
|
geomPolyCount(): number;
|
|
778
788
|
getDefaultCamera(): THREE.Camera;
|
|
779
789
|
getDisplayUnit(): string;
|
|
@@ -893,10 +903,6 @@ declare namespace Autodesk {
|
|
|
893
903
|
}
|
|
894
904
|
}
|
|
895
905
|
|
|
896
|
-
interface PropDbLoader {
|
|
897
|
-
executeUserFunction(userFunc: (pdb: any, ...args: any[]) => any, args?: any): Promise<any>;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
906
|
interface PropertyResult {
|
|
901
907
|
dbId: number;
|
|
902
908
|
externalId?: string | undefined;
|
|
@@ -1198,7 +1204,11 @@ declare namespace Autodesk {
|
|
|
1198
1204
|
onErrorCallback?: (errorCode: number, errorMessage: string, errorArgs: any) => void,
|
|
1199
1205
|
): any;
|
|
1200
1206
|
unloadModel(model: Model): void;
|
|
1201
|
-
loadDocumentNode(
|
|
1207
|
+
loadDocumentNode(
|
|
1208
|
+
avDocument: Document,
|
|
1209
|
+
manifestNode: any,
|
|
1210
|
+
/*BubbleNode*/ options?: LoadModelOptions,
|
|
1211
|
+
): Promise<Model>;
|
|
1202
1212
|
unloadDocumentNode(manifestNode: any /*BubbleNode*/): boolean;
|
|
1203
1213
|
getDimensions(): Private.Dimensions;
|
|
1204
1214
|
resize(): void;
|
|
@@ -1878,6 +1888,57 @@ declare namespace Autodesk {
|
|
|
1878
1888
|
onVertex?(cx: number, cy: number, vpId: number): void;
|
|
1879
1889
|
}
|
|
1880
1890
|
|
|
1891
|
+
class PropDbLoader {
|
|
1892
|
+
model: Autodesk.Viewing.Model;
|
|
1893
|
+
needsDbIdRemap: boolean;
|
|
1894
|
+
processLoadResult(result: any): void;
|
|
1895
|
+
load(options: any): void;
|
|
1896
|
+
|
|
1897
|
+
getProperties(
|
|
1898
|
+
dbId: number,
|
|
1899
|
+
successCallback?: (r: PropertyResult) => void,
|
|
1900
|
+
errorCallback?: (err: any) => void,
|
|
1901
|
+
): void;
|
|
1902
|
+
getProperties2(
|
|
1903
|
+
dbIds: number[],
|
|
1904
|
+
successCallback?: (r: PropertyResult) => void,
|
|
1905
|
+
errorCallback?: (err: any) => void,
|
|
1906
|
+
options?: { needExternalId: boolean },
|
|
1907
|
+
): void;
|
|
1908
|
+
getBulkProperties(
|
|
1909
|
+
dbIds: number[],
|
|
1910
|
+
options?: {
|
|
1911
|
+
propFilter?: string[] | undefined;
|
|
1912
|
+
ignoreHidden?: boolean | undefined;
|
|
1913
|
+
},
|
|
1914
|
+
successCallback?: (r: PropertyResult[]) => void,
|
|
1915
|
+
errorCallback?: (err: any) => void,
|
|
1916
|
+
ignoreHidden?: boolean,
|
|
1917
|
+
): void;
|
|
1918
|
+
getBulkProperties2(
|
|
1919
|
+
dbIds: number[],
|
|
1920
|
+
options?: {
|
|
1921
|
+
propFilter?: string[] | undefined;
|
|
1922
|
+
categoryFilter?: string[] | undefined;
|
|
1923
|
+
ignoreHidden?: boolean | undefined;
|
|
1924
|
+
needExternalId?: boolean | undefined;
|
|
1925
|
+
},
|
|
1926
|
+
successCallback?: (r: PropertyResult[]) => void,
|
|
1927
|
+
errorCallback?: (s: any, m: any, d: any) => void,
|
|
1928
|
+
): void;
|
|
1929
|
+
getPropertySet(
|
|
1930
|
+
dbIds: number[],
|
|
1931
|
+
options: {
|
|
1932
|
+
propFilter?: string[] | undefined;
|
|
1933
|
+
ignoreHidden?: boolean | undefined;
|
|
1934
|
+
needsExternalId?: boolean | undefined;
|
|
1935
|
+
},
|
|
1936
|
+
): void;
|
|
1937
|
+
executeUserFunction(userFunc: (pdb: any, ...args: any[]) => any, args?: any): Promise<any>;
|
|
1938
|
+
getLoadProgress(): number;
|
|
1939
|
+
isLoadDone(): boolean;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1881
1942
|
interface GeometryList {
|
|
1882
1943
|
disableStreaming: boolean;
|
|
1883
1944
|
geomBoxes: Float32Array;
|
forge-viewer/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/forge-viewer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.89.1",
|
|
4
4
|
"description": "TypeScript definitions for forge-viewer",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/forge-viewer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"githubUsername": "Autodesk-Forge",
|
|
11
11
|
"url": "https://github.com/Autodesk-Forge"
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
"name": "Autodesk Developer Advocacy and Support",
|
|
15
|
+
"githubUsername": "autodesk-platform-services",
|
|
16
|
+
"url": "https://github.com/autodesk-platform-services"
|
|
17
|
+
},
|
|
13
18
|
{
|
|
14
19
|
"name": "Alan Smith",
|
|
15
20
|
"githubUsername": "alansmithnbs",
|
|
@@ -25,6 +30,11 @@
|
|
|
25
30
|
"githubUsername": "petrbroz",
|
|
26
31
|
"url": "https://github.com/petrbroz"
|
|
27
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"name": "Eason Kang",
|
|
35
|
+
"githubUsername": "yiskang",
|
|
36
|
+
"url": "https://github.com/yiskang"
|
|
37
|
+
},
|
|
28
38
|
{
|
|
29
39
|
"name": "Cyrille Fauvel",
|
|
30
40
|
"githubUsername": "cyrillef",
|
|
@@ -40,7 +50,7 @@
|
|
|
40
50
|
},
|
|
41
51
|
"scripts": {},
|
|
42
52
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
44
|
-
"typeScriptVersion": "4.
|
|
53
|
+
"typesPublisherContentHash": "702fd908ec1b2cb02245c3ba750b8a6433824b37ea7e6efab07a387d91bff9c8",
|
|
54
|
+
"typeScriptVersion": "4.7",
|
|
45
55
|
"nonNpm": true
|
|
46
56
|
}
|