@shapediver/viewer.shared.types 3.14.5 → 3.14.7
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/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/attribute-visualization/index.d.ts +51 -0
- package/dist/interfaces/attribute-visualization/index.d.ts.map +1 -0
- package/dist/interfaces/attribute-visualization/index.js +23 -0
- package/dist/interfaces/attribute-visualization/index.js.map +1 -0
- package/dist/interfaces/parameter/IInteractionParameterSettings.d.ts +310 -310
- package/dist/interfaces/renderingEngine/cameraTypes.d.ts +60 -0
- package/dist/interfaces/renderingEngine/cameraTypes.d.ts.map +1 -0
- package/dist/interfaces/renderingEngine/cameraTypes.js +19 -0
- package/dist/interfaces/renderingEngine/cameraTypes.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IBox } from "@shapediver/viewer.shared.math";
|
|
2
|
+
import { vec2, vec3 } from "gl-matrix";
|
|
3
|
+
export declare enum CAMERA_TYPE {
|
|
4
|
+
PERSPECTIVE = "perspective",
|
|
5
|
+
ORTHOGRAPHIC = "orthographic"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ORTHOGRAPHIC_CAMERA_DIRECTION {
|
|
8
|
+
TOP = "top",
|
|
9
|
+
BOTTOM = "bottom",
|
|
10
|
+
LEFT = "left",
|
|
11
|
+
RIGHT = "right",
|
|
12
|
+
FRONT = "front",
|
|
13
|
+
BACK = "back",
|
|
14
|
+
CUSTOM = "custom"
|
|
15
|
+
}
|
|
16
|
+
declare type CameraProperties = {
|
|
17
|
+
readonly type: CAMERA_TYPE;
|
|
18
|
+
autoAdjust: boolean;
|
|
19
|
+
boundingBox: IBox;
|
|
20
|
+
cameraMovementDuration: number;
|
|
21
|
+
defaultPosition: vec3;
|
|
22
|
+
defaultTarget: vec3;
|
|
23
|
+
enableCameraControls: boolean;
|
|
24
|
+
name?: string;
|
|
25
|
+
order?: number;
|
|
26
|
+
position: vec3;
|
|
27
|
+
revertAtMouseUp: boolean;
|
|
28
|
+
revertAtMouseUpDuration: number;
|
|
29
|
+
sceneRotation: vec2;
|
|
30
|
+
target: vec3;
|
|
31
|
+
useNodeData: boolean;
|
|
32
|
+
zoomExtentsFactor: number;
|
|
33
|
+
};
|
|
34
|
+
export declare type OrthographicCameraProperties = CameraProperties & {
|
|
35
|
+
direction: ORTHOGRAPHIC_CAMERA_DIRECTION;
|
|
36
|
+
};
|
|
37
|
+
export declare type PerspectiveCameraProperties = CameraProperties & {
|
|
38
|
+
fov: number;
|
|
39
|
+
};
|
|
40
|
+
export interface ICameraOptions {
|
|
41
|
+
/**
|
|
42
|
+
* The coordinate type of the camera interpolation. (default: 'cylindrical')
|
|
43
|
+
*/
|
|
44
|
+
coordinates?: "spherical" | "linear" | "cylindrical";
|
|
45
|
+
/**
|
|
46
|
+
* The duration of the camera movement. (default: cameraMovementDuration set in the settings)
|
|
47
|
+
* When set to 0, the camera is immediately updated to the specified position and target.
|
|
48
|
+
*/
|
|
49
|
+
duration?: number;
|
|
50
|
+
/**
|
|
51
|
+
* The easing type of the camera interpolation. (default: 'Quadratic.InOut')
|
|
52
|
+
*/
|
|
53
|
+
easing?: "Linear.None" | "Quadratic.In" | "Quadratic.Out" | "Quadratic.InOut" | "Cubic.In" | "Cubic.Out" | "Cubic.InOut" | "Quartic.In" | "Quartic.Out" | "Quartic.InOut" | "Quintic.In" | "Quintic.Out" | "Quintic.InOut" | "Sinusoidal.In" | "Sinusoidal.Out" | "Sinusoidal.InOut" | "Exponential.In" | "Exponential.Out" | "Exponential.InOut" | "Circular.In" | "Circular.Out" | "Circular.InOut" | "Elastic.In" | "Elastic.Out" | "Elastic.InOut" | "Back.In" | "Back.Out" | "Back.InOut" | "Bounce.In" | "Bounce.Out" | "Bounce.InOut" | Function;
|
|
54
|
+
/**
|
|
55
|
+
* The interpolation type of the camera interpolation. (default: 'CatmullRom')
|
|
56
|
+
*/
|
|
57
|
+
interpolation?: "Linear" | "Bezier" | "CatmullRom" | Function;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=cameraTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cameraTypes.d.ts","sourceRoot":"","sources":["../../../src/interfaces/renderingEngine/cameraTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AAErC,oBAAY,WAAW;IACtB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;CAC7B;AAED,oBAAY,6BAA6B;IACxC,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;CACjB;AAED,aAAK,gBAAgB,GAAG;IACvB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,IAAI,CAAC;IAClB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,IAAI,CAAC;IACtB,aAAa,EAAE,IAAI,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC;IACf,eAAe,EAAE,OAAO,CAAC;IACzB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,IAAI,CAAC;IACpB,MAAM,EAAE,IAAI,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,oBAAY,4BAA4B,GAAG,gBAAgB,GAAG;IAC7D,SAAS,EAAE,6BAA6B,CAAC;CACzC,CAAC;AACF,oBAAY,2BAA2B,GAAG,gBAAgB,GAAG;IAC5D,GAAG,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,WAAW,cAAc;IAG9B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,aAAa,CAAC;IACrD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EACJ,aAAa,GACb,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,UAAU,GACV,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,YAAY,GACZ,aAAa,GACb,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,GACnB,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,SAAS,GACT,UAAU,GACV,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,cAAc,GACd,QAAQ,CAAC;IACZ;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,CAAC;CAG9D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ORTHOGRAPHIC_CAMERA_DIRECTION = exports.CAMERA_TYPE = void 0;
|
|
4
|
+
var CAMERA_TYPE;
|
|
5
|
+
(function (CAMERA_TYPE) {
|
|
6
|
+
CAMERA_TYPE["PERSPECTIVE"] = "perspective";
|
|
7
|
+
CAMERA_TYPE["ORTHOGRAPHIC"] = "orthographic";
|
|
8
|
+
})(CAMERA_TYPE = exports.CAMERA_TYPE || (exports.CAMERA_TYPE = {}));
|
|
9
|
+
var ORTHOGRAPHIC_CAMERA_DIRECTION;
|
|
10
|
+
(function (ORTHOGRAPHIC_CAMERA_DIRECTION) {
|
|
11
|
+
ORTHOGRAPHIC_CAMERA_DIRECTION["TOP"] = "top";
|
|
12
|
+
ORTHOGRAPHIC_CAMERA_DIRECTION["BOTTOM"] = "bottom";
|
|
13
|
+
ORTHOGRAPHIC_CAMERA_DIRECTION["LEFT"] = "left";
|
|
14
|
+
ORTHOGRAPHIC_CAMERA_DIRECTION["RIGHT"] = "right";
|
|
15
|
+
ORTHOGRAPHIC_CAMERA_DIRECTION["FRONT"] = "front";
|
|
16
|
+
ORTHOGRAPHIC_CAMERA_DIRECTION["BACK"] = "back";
|
|
17
|
+
ORTHOGRAPHIC_CAMERA_DIRECTION["CUSTOM"] = "custom";
|
|
18
|
+
})(ORTHOGRAPHIC_CAMERA_DIRECTION = exports.ORTHOGRAPHIC_CAMERA_DIRECTION || (exports.ORTHOGRAPHIC_CAMERA_DIRECTION = {}));
|
|
19
|
+
//# sourceMappingURL=cameraTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cameraTypes.js","sourceRoot":"","sources":["../../../src/interfaces/renderingEngine/cameraTypes.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;AAC9B,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAY,6BAQX;AARD,WAAY,6BAA6B;IACxC,4CAAW,CAAA;IACX,kDAAiB,CAAA;IACjB,8CAAa,CAAA;IACb,gDAAe,CAAA;IACf,gDAAe,CAAA;IACf,8CAAa,CAAA;IACb,kDAAiB,CAAA;AAClB,CAAC,EARW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAQxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.types",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@shapediver/sdk.geometry-api-sdk-v2": "2.10.0",
|
|
42
42
|
"@shapediver/sdk.sdtf-v1": "1.6.1",
|
|
43
|
-
"@shapediver/viewer.shared.math": "3.14.
|
|
44
|
-
"@shapediver/viewer.shared.node-tree": "3.14.
|
|
45
|
-
"@shapediver/viewer.shared.services": "3.14.
|
|
43
|
+
"@shapediver/viewer.shared.math": "3.14.7",
|
|
44
|
+
"@shapediver/viewer.shared.node-tree": "3.14.7",
|
|
45
|
+
"@shapediver/viewer.shared.services": "3.14.7",
|
|
46
46
|
"gl-matrix": "3.3.0",
|
|
47
47
|
"zod": "3.23.8"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "5c476972a92a48aff5f90e4e247cbe41b351d546"
|
|
50
50
|
}
|