@types/forge-viewer 7.53.0 → 7.55.3
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 +44 -3
- forge-viewer/package.json +3 -3
- forge-viewer/three/three.d.ts +4 -1
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, 03 Dec 2021 13:31:02 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.55
|
|
2
2
|
// Project: https://forge.autodesk.com/en/docs/viewer/v7/reference/javascript/viewer3d/
|
|
3
3
|
// Definitions by: Autodesk Forge Partner Development <https://github.com/Autodesk-Forge>
|
|
4
4
|
// Alan Smith <https://github.com/alansmithnbs>
|
|
@@ -895,6 +895,20 @@ declare namespace Autodesk {
|
|
|
895
895
|
setUseLeftHandedInput(value: boolean): any;
|
|
896
896
|
setZoomTowardsPivot(value: boolean): any;
|
|
897
897
|
getWorldPoint(x: number, y: number): THREE.Vector3;
|
|
898
|
+
/**
|
|
899
|
+
* Get the current world up direction.
|
|
900
|
+
*
|
|
901
|
+
* @returns the current world up direction (normalized)
|
|
902
|
+
*/
|
|
903
|
+
getWorldUpVector(): THREE.Vector3;
|
|
904
|
+
/**
|
|
905
|
+
* Change the current world up direction.
|
|
906
|
+
*
|
|
907
|
+
* @param up - the new world up direction
|
|
908
|
+
* @param reorient - if true, make sure the camera up is oriented towards the world up direction.
|
|
909
|
+
* @param force - if true, will set the new direction regardless of navigation lock
|
|
910
|
+
*/
|
|
911
|
+
setWorldUpVector(up: THREE.Vector3, reorient: boolean, force: boolean): void;
|
|
898
912
|
screenToViewport(x: number, y: number): THREE.Vector3;
|
|
899
913
|
toOrthographic(): void;
|
|
900
914
|
toPerspective(): void;
|
|
@@ -920,6 +934,7 @@ declare namespace Autodesk {
|
|
|
920
934
|
getIsLocked(): boolean;
|
|
921
935
|
getTool(name: string): ToolInterface;
|
|
922
936
|
getToolNames(): string[];
|
|
937
|
+
recordHomeView(): void;
|
|
923
938
|
setIsLocked(state: boolean): boolean;
|
|
924
939
|
}
|
|
925
940
|
|
|
@@ -2303,6 +2318,31 @@ declare namespace Autodesk {
|
|
|
2303
2318
|
get type(): ViewableType;
|
|
2304
2319
|
}
|
|
2305
2320
|
|
|
2321
|
+
class StreamLine {
|
|
2322
|
+
geometry: THREE.BufferGeometry;
|
|
2323
|
+
|
|
2324
|
+
advance(position: { x: number, y: number, z: number }): void;
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
class StreamLineBuilder {
|
|
2328
|
+
constructor(viewer: Viewing.GuiViewer3D);
|
|
2329
|
+
|
|
2330
|
+
createStreamLine(streamLineSpecs: StreamLineSpecs): StreamLine;
|
|
2331
|
+
destroyStreamLine(streamLine: StreamLine): void;
|
|
2332
|
+
dispose(): void;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
class StreamLineSpecs {
|
|
2336
|
+
lineColor: THREE.Color;
|
|
2337
|
+
lineData: {
|
|
2338
|
+
points: Float32Array;
|
|
2339
|
+
colors?: Float32Array;
|
|
2340
|
+
scaleCallback?: (fraction: number) => number;
|
|
2341
|
+
};
|
|
2342
|
+
lineWidth: number;
|
|
2343
|
+
opacity: number;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2306
2346
|
class SurfaceShading {
|
|
2307
2347
|
constructor(viewer: Viewing.GuiViewer3D, model: Viewing.Model, shadingData: SurfaceShadingData);
|
|
2308
2348
|
|
|
@@ -2750,8 +2790,8 @@ declare namespace Autodesk {
|
|
|
2750
2790
|
getCalibration(): any;
|
|
2751
2791
|
getCalibrationFactor(): number;
|
|
2752
2792
|
getDefaultUnit(): string;
|
|
2753
|
-
getMeasurement(unitType
|
|
2754
|
-
getMeasurementList(unitType
|
|
2793
|
+
getMeasurement(unitType?: string, precision?: number): object;
|
|
2794
|
+
getMeasurementList(unitType?: string, precision?: number): object[];
|
|
2755
2795
|
getPrecision(): number;
|
|
2756
2796
|
getPrecisionOptions(isFractional: boolean): string[];
|
|
2757
2797
|
getUnitOptions(): object[];
|
|
@@ -2801,6 +2841,7 @@ declare namespace Autodesk {
|
|
|
2801
2841
|
datavizDotOverlay: any;
|
|
2802
2842
|
deviceDepthOcclusion: boolean;
|
|
2803
2843
|
hasViewables: boolean;
|
|
2844
|
+
streamLineBuilder: DataVisualization.Core.StreamLineBuilder;
|
|
2804
2845
|
|
|
2805
2846
|
constructor(viewer: Viewing.Viewer3D, options?: {
|
|
2806
2847
|
type: string;
|
forge-viewer/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/forge-viewer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.55.3",
|
|
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": "
|
|
44
|
-
"typeScriptVersion": "3.
|
|
43
|
+
"typesPublisherContentHash": "4100e97589e80a879d4df1d4c02cbc984f51235a409e6863aa0aa9d64aefc3fd",
|
|
44
|
+
"typeScriptVersion": "3.8"
|
|
45
45
|
}
|
forge-viewer/three/three.d.ts
CHANGED
|
@@ -288,9 +288,11 @@ declare namespace THREE {
|
|
|
288
288
|
expandByScalar(scalar: number): Box3;
|
|
289
289
|
expandByVector(vector: Vector3): Box3;
|
|
290
290
|
getBoundingSphere(optionalTarget?: Sphere): Sphere;
|
|
291
|
-
getCenter(): Vector3;
|
|
291
|
+
getCenter(optionalTarget: Vector3): Vector3;
|
|
292
292
|
getParameter(point: Vector3): Vector3;
|
|
293
|
+
getSize(target: Vector3): Vector3;
|
|
293
294
|
intersect(box: Box3): Box3;
|
|
295
|
+
intersectsBox(box: Box3): true;
|
|
294
296
|
isEmpty(): boolean;
|
|
295
297
|
isIntersectionBox(box: Box3): boolean;
|
|
296
298
|
makeEmpty(): Box3;
|
|
@@ -1098,6 +1100,7 @@ declare namespace THREE {
|
|
|
1098
1100
|
getInverse(m: Matrix4, throwOnInvertible?: boolean): Matrix4;
|
|
1099
1101
|
getMaxScaleOnAxis(): number;
|
|
1100
1102
|
identity(): Matrix4;
|
|
1103
|
+
invert(): Matrix4;
|
|
1101
1104
|
lookAt(eye: Vector3, target: Vector3, up: Vector3): Matrix4;
|
|
1102
1105
|
makeBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): Matrix4;
|
|
1103
1106
|
makeRotationAxis(axis: Vector3, angle: number): Matrix4;
|