@types/forge-viewer 7.58.0 → 7.59.0
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 +1 -1
- forge-viewer/index.d.ts +46 -5
- forge-viewer/package.json +2 -2
forge-viewer/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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: Fri, 07 Jan 2022 11:01:22 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Autodesk`, `THREE`
|
|
14
14
|
|
forge-viewer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Forge Viewer 7.
|
|
1
|
+
// Type definitions for non-npm package Forge Viewer 7.59
|
|
2
2
|
// Project: https://forge.autodesk.com/en/docs/viewer/v7/developers_guide/overview/
|
|
3
3
|
// Definitions by: Autodesk Forge Partner Development <https://github.com/Autodesk-Forge>
|
|
4
4
|
// Alan Smith <https://github.com/alansmithnbs>
|
|
@@ -427,7 +427,7 @@ declare namespace Autodesk {
|
|
|
427
427
|
fetchAlignmentsForNodes(nodes: BubbleNode[]): any;
|
|
428
428
|
getFloorSelector(): any;
|
|
429
429
|
getModel(node: BubbleNode): Model;
|
|
430
|
-
getModelAndWait(node: BubbleNode): Promise<Model>;
|
|
430
|
+
getModelAndWait(node: BubbleNode, checkIfVisible?: boolean): Promise<Model>;
|
|
431
431
|
getVisibleNodes(): BubbleNode[];
|
|
432
432
|
hide(node: BubbleNode): void;
|
|
433
433
|
hideAll(): void;
|
|
@@ -1062,14 +1062,19 @@ declare namespace Autodesk {
|
|
|
1062
1062
|
constructor(container: HTMLElement, config?: Viewer3DConfig);
|
|
1063
1063
|
|
|
1064
1064
|
canvas: HTMLCanvasElement;
|
|
1065
|
+
canvasWrap: HTMLElement;
|
|
1066
|
+
clientContainer: HTMLElement;
|
|
1065
1067
|
config: Viewer3DConfig;
|
|
1066
1068
|
container: HTMLElement;
|
|
1067
1069
|
navigation: Navigation;
|
|
1068
1070
|
id: number;
|
|
1069
1071
|
impl: Private.Viewer3DImpl;
|
|
1072
|
+
loadedExtensions: { [key: string]: Extension };
|
|
1070
1073
|
model: Model;
|
|
1071
1074
|
prefs: Private.ViewerPreferences;
|
|
1075
|
+
running: boolean;
|
|
1072
1076
|
started: boolean;
|
|
1077
|
+
theme: string;
|
|
1073
1078
|
toolbar: UI.ToolBar;
|
|
1074
1079
|
|
|
1075
1080
|
start(urn?: string, onSuccesfullCallback?: () => void, onErrorCallback?: (errorCode: number, errorMessage: string, statusCode: number, statusText: string) => void): any;
|
|
@@ -1257,12 +1262,12 @@ declare namespace Autodesk {
|
|
|
1257
1262
|
}
|
|
1258
1263
|
|
|
1259
1264
|
class GuiViewer3D extends Viewer3D {
|
|
1260
|
-
toolController: ToolController;
|
|
1261
1265
|
autocam: any;
|
|
1262
|
-
progressbar: any;
|
|
1263
|
-
utilities: ViewingUtilities;
|
|
1264
1266
|
dockingPanels: any;
|
|
1265
1267
|
overlays: OverlayManager;
|
|
1268
|
+
progressbar: Private.ProgressBar;
|
|
1269
|
+
toolController: ToolController;
|
|
1270
|
+
utilities: ViewingUtilities;
|
|
1266
1271
|
|
|
1267
1272
|
addPanel(panel: UI.DockingPanel): boolean;
|
|
1268
1273
|
createDebugSubmenu(button: UI.Button): void;
|
|
@@ -1375,6 +1380,36 @@ declare namespace Autodesk {
|
|
|
1375
1380
|
currentNodeIds: object[];
|
|
1376
1381
|
}
|
|
1377
1382
|
|
|
1383
|
+
namespace Multipage {
|
|
1384
|
+
namespace Events {
|
|
1385
|
+
const FocusedPageChanged = 'focusedPageChanged';
|
|
1386
|
+
const PageLoaded = 'pageLoaded';
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
class MultipageExtension extends Extension {
|
|
1390
|
+
constructor(viewer: Viewer3D, options?: any);
|
|
1391
|
+
|
|
1392
|
+
focusedPage: any;
|
|
1393
|
+
mode: string;
|
|
1394
|
+
modes: string[];
|
|
1395
|
+
multipageTool: ToolInterface;
|
|
1396
|
+
name: string;
|
|
1397
|
+
|
|
1398
|
+
focusFirstPage(): string;
|
|
1399
|
+
focusLastPage(): string;
|
|
1400
|
+
focusNextPage(): string;
|
|
1401
|
+
focusOnPage(pageToFocus: any, immediate?: boolean): string;
|
|
1402
|
+
focusPrevPage(): string;
|
|
1403
|
+
getAllPages(): any[];
|
|
1404
|
+
getCurrentPageIndex(): number;
|
|
1405
|
+
getFocusedPage(): any;
|
|
1406
|
+
getNearestPages(): any[];
|
|
1407
|
+
isPageLoaded(page: any): boolean;
|
|
1408
|
+
isPageInView(page: any): boolean;
|
|
1409
|
+
loadFocusedPage(): Promise<void>;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1378
1413
|
namespace PDF {
|
|
1379
1414
|
class PDFExtension extends Extension {
|
|
1380
1415
|
constructor(viewer: Viewer3D, options?: {
|
|
@@ -1688,6 +1723,12 @@ declare namespace Autodesk {
|
|
|
1688
1723
|
webStorage(name: string, value: any): any;
|
|
1689
1724
|
}
|
|
1690
1725
|
|
|
1726
|
+
class ProgressBar {
|
|
1727
|
+
lastValue: number;
|
|
1728
|
+
|
|
1729
|
+
setPercent(pct: number): void;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1691
1732
|
class BoundsCallback implements GeometryCallback {
|
|
1692
1733
|
constructor(bounds: THREE.Box3);
|
|
1693
1734
|
|
forge-viewer/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/forge-viewer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.59.0",
|
|
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",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {},
|
|
42
42
|
"dependencies": {},
|
|
43
|
-
"typesPublisherContentHash": "
|
|
43
|
+
"typesPublisherContentHash": "3c0be4af8ca03cae8c5da39b8c8c6ffaf6d3f951d41d11c4e5a739912127c2db",
|
|
44
44
|
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|