@shapediver/viewer.viewport 3.0.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.
- package/LICENSE +73 -0
- package/README.md +1 -0
- package/dist/implementation/PostProcessingApi.d.ts +49 -0
- package/dist/implementation/PostProcessingApi.d.ts.map +1 -0
- package/dist/implementation/PostProcessingApi.js +142 -0
- package/dist/implementation/PostProcessingApi.js.map +1 -0
- package/dist/implementation/ViewportApi.d.ts +200 -0
- package/dist/implementation/ViewportApi.d.ts.map +1 -0
- package/dist/implementation/ViewportApi.js +879 -0
- package/dist/implementation/ViewportApi.js.map +1 -0
- package/dist/implementation/camera/AbstractCameraApi.d.ts +138 -0
- package/dist/implementation/camera/AbstractCameraApi.d.ts.map +1 -0
- package/dist/implementation/camera/AbstractCameraApi.js +473 -0
- package/dist/implementation/camera/AbstractCameraApi.js.map +1 -0
- package/dist/implementation/camera/OrthographicCameraApi.d.ts +11 -0
- package/dist/implementation/camera/OrthographicCameraApi.d.ts.map +1 -0
- package/dist/implementation/camera/OrthographicCameraApi.js +48 -0
- package/dist/implementation/camera/OrthographicCameraApi.js.map +1 -0
- package/dist/implementation/camera/PerspectiveCameraApi.d.ts +11 -0
- package/dist/implementation/camera/PerspectiveCameraApi.d.ts.map +1 -0
- package/dist/implementation/camera/PerspectiveCameraApi.js +47 -0
- package/dist/implementation/camera/PerspectiveCameraApi.js.map +1 -0
- package/dist/implementation/lights/AbstractLightApi.d.ts +20 -0
- package/dist/implementation/lights/AbstractLightApi.d.ts.map +1 -0
- package/dist/implementation/lights/AbstractLightApi.js +81 -0
- package/dist/implementation/lights/AbstractLightApi.js.map +1 -0
- package/dist/implementation/lights/LightSceneApi.d.ts +69 -0
- package/dist/implementation/lights/LightSceneApi.d.ts.map +1 -0
- package/dist/implementation/lights/LightSceneApi.js +172 -0
- package/dist/implementation/lights/LightSceneApi.js.map +1 -0
- package/dist/implementation/lights/types/AmbientLightApi.d.ts +9 -0
- package/dist/implementation/lights/types/AmbientLightApi.d.ts.map +1 -0
- package/dist/implementation/lights/types/AmbientLightApi.js +27 -0
- package/dist/implementation/lights/types/AmbientLightApi.js.map +1 -0
- package/dist/implementation/lights/types/DirectionalLightApi.d.ts +18 -0
- package/dist/implementation/lights/types/DirectionalLightApi.d.ts.map +1 -0
- package/dist/implementation/lights/types/DirectionalLightApi.js +77 -0
- package/dist/implementation/lights/types/DirectionalLightApi.js.map +1 -0
- package/dist/implementation/lights/types/HemisphereLightApi.d.ts +12 -0
- package/dist/implementation/lights/types/HemisphereLightApi.d.ts.map +1 -0
- package/dist/implementation/lights/types/HemisphereLightApi.js +47 -0
- package/dist/implementation/lights/types/HemisphereLightApi.js.map +1 -0
- package/dist/implementation/lights/types/PointLightApi.d.ts +16 -0
- package/dist/implementation/lights/types/PointLightApi.d.ts.map +1 -0
- package/dist/implementation/lights/types/PointLightApi.js +67 -0
- package/dist/implementation/lights/types/PointLightApi.js.map +1 -0
- package/dist/implementation/lights/types/SpotLightApi.d.ts +22 -0
- package/dist/implementation/lights/types/SpotLightApi.d.ts.map +1 -0
- package/dist/implementation/lights/types/SpotLightApi.js +97 -0
- package/dist/implementation/lights/types/SpotLightApi.js.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +160 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/IPostProcessingApi.d.ts +229 -0
- package/dist/interfaces/IPostProcessingApi.d.ts.map +1 -0
- package/dist/interfaces/IPostProcessingApi.js +3 -0
- package/dist/interfaces/IPostProcessingApi.js.map +1 -0
- package/dist/interfaces/IViewportApi.d.ts +632 -0
- package/dist/interfaces/IViewportApi.d.ts.map +1 -0
- package/dist/interfaces/IViewportApi.js +3 -0
- package/dist/interfaces/IViewportApi.js.map +1 -0
- package/dist/interfaces/camera/ICameraApi.d.ts +249 -0
- package/dist/interfaces/camera/ICameraApi.d.ts.map +1 -0
- package/dist/interfaces/camera/ICameraApi.js +3 -0
- package/dist/interfaces/camera/ICameraApi.js.map +1 -0
- package/dist/interfaces/camera/IOrthographicCameraApi.d.ts +14 -0
- package/dist/interfaces/camera/IOrthographicCameraApi.d.ts.map +1 -0
- package/dist/interfaces/camera/IOrthographicCameraApi.js +3 -0
- package/dist/interfaces/camera/IOrthographicCameraApi.js.map +1 -0
- package/dist/interfaces/camera/IPerspectiveCameraApi.d.ts +13 -0
- package/dist/interfaces/camera/IPerspectiveCameraApi.d.ts.map +1 -0
- package/dist/interfaces/camera/IPerspectiveCameraApi.js +3 -0
- package/dist/interfaces/camera/IPerspectiveCameraApi.js.map +1 -0
- package/dist/interfaces/lights/ILightApi.d.ts +36 -0
- package/dist/interfaces/lights/ILightApi.d.ts.map +1 -0
- package/dist/interfaces/lights/ILightApi.js +3 -0
- package/dist/interfaces/lights/ILightApi.js.map +1 -0
- package/dist/interfaces/lights/ILightSceneApi.d.ts +139 -0
- package/dist/interfaces/lights/ILightSceneApi.d.ts.map +1 -0
- package/dist/interfaces/lights/ILightSceneApi.js +3 -0
- package/dist/interfaces/lights/ILightSceneApi.js.map +1 -0
- package/dist/interfaces/lights/types/IAmbientLightApi.d.ts +7 -0
- package/dist/interfaces/lights/types/IAmbientLightApi.d.ts.map +1 -0
- package/dist/interfaces/lights/types/IAmbientLightApi.js +3 -0
- package/dist/interfaces/lights/types/IAmbientLightApi.js.map +1 -0
- package/dist/interfaces/lights/types/IDirectionalLightApi.d.ts +25 -0
- package/dist/interfaces/lights/types/IDirectionalLightApi.d.ts.map +1 -0
- package/dist/interfaces/lights/types/IDirectionalLightApi.js +3 -0
- package/dist/interfaces/lights/types/IDirectionalLightApi.js.map +1 -0
- package/dist/interfaces/lights/types/IHemisphereLightApi.d.ts +13 -0
- package/dist/interfaces/lights/types/IHemisphereLightApi.d.ts.map +1 -0
- package/dist/interfaces/lights/types/IHemisphereLightApi.js +3 -0
- package/dist/interfaces/lights/types/IHemisphereLightApi.js.map +1 -0
- package/dist/interfaces/lights/types/IPointLightApi.d.ts +21 -0
- package/dist/interfaces/lights/types/IPointLightApi.d.ts.map +1 -0
- package/dist/interfaces/lights/types/IPointLightApi.js +3 -0
- package/dist/interfaces/lights/types/IPointLightApi.js.map +1 -0
- package/dist/interfaces/lights/types/ISpotLightApi.d.ts +33 -0
- package/dist/interfaces/lights/types/ISpotLightApi.d.ts.map +1 -0
- package/dist/interfaces/lights/types/ISpotLightApi.js +3 -0
- package/dist/interfaces/lights/types/ISpotLightApi.js.map +1 -0
- package/dist/main.d.ts +29 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +80 -0
- package/dist/main.js.map +1 -0
- package/package.json +78 -0
- package/src/implementation/PostProcessingApi.ts +184 -0
- package/src/implementation/ViewportApi.ts +1060 -0
- package/src/implementation/camera/AbstractCameraApi.ts +556 -0
- package/src/implementation/camera/OrthographicCameraApi.ts +43 -0
- package/src/implementation/camera/PerspectiveCameraApi.ts +43 -0
- package/src/implementation/lights/AbstractLightApi.ts +87 -0
- package/src/implementation/lights/LightSceneApi.ts +198 -0
- package/src/implementation/lights/types/AmbientLightApi.ts +24 -0
- package/src/implementation/lights/types/DirectionalLightApi.ts +80 -0
- package/src/implementation/lights/types/HemisphereLightApi.ts +44 -0
- package/src/implementation/lights/types/PointLightApi.ts +68 -0
- package/src/implementation/lights/types/SpotLightApi.ts +104 -0
- package/src/index.ts +297 -0
- package/src/interfaces/IPostProcessingApi.ts +269 -0
- package/src/interfaces/IViewportApi.ts +629 -0
- package/src/interfaces/camera/ICameraApi.ts +233 -0
- package/src/interfaces/camera/IOrthographicCameraApi.ts +18 -0
- package/src/interfaces/camera/IPerspectiveCameraApi.ts +17 -0
- package/src/interfaces/lights/ILightApi.ts +41 -0
- package/src/interfaces/lights/ILightSceneApi.ts +147 -0
- package/src/interfaces/lights/types/IAmbientLightApi.ts +7 -0
- package/src/interfaces/lights/types/IDirectionalLightApi.ts +29 -0
- package/src/interfaces/lights/types/IHemisphereLightApi.ts +17 -0
- package/src/interfaces/lights/types/IPointLightApi.ts +25 -0
- package/src/interfaces/lights/types/ISpotLightApi.ts +37 -0
- package/src/main.ts +85 -0
- package/tsconfig.json +17 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Required Notice: Copyright 2023 ShapeDiver GmbH (https://www.shapediver.com)
|
|
2
|
+
|
|
3
|
+
https://polyformproject.org/licenses/noncommercial/1.0.0
|
|
4
|
+
|
|
5
|
+
Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
8
|
+
|
|
9
|
+
Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor’s copyright in it for any permitted purpose. However, you may only distribute the software according to Distribution License and make changes or new works based on the software according to Changes and New Works License.
|
|
12
|
+
|
|
13
|
+
Distribution License
|
|
14
|
+
|
|
15
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by Changes and New Works License.
|
|
16
|
+
|
|
17
|
+
Notices
|
|
18
|
+
|
|
19
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with Required Notice: that the licensor provided with the software. For example:
|
|
20
|
+
|
|
21
|
+
Required Notice: Copyright 2023 ShapeDiver GmbH (https://www.shapediver.com)
|
|
22
|
+
|
|
23
|
+
Changes and New Works License
|
|
24
|
+
|
|
25
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
26
|
+
|
|
27
|
+
Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
30
|
+
|
|
31
|
+
Noncommercial Purposes
|
|
32
|
+
|
|
33
|
+
Any noncommercial purpose is a permitted purpose.
|
|
34
|
+
|
|
35
|
+
Personal Uses
|
|
36
|
+
|
|
37
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
38
|
+
|
|
39
|
+
Noncommercial Organizations
|
|
40
|
+
|
|
41
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
42
|
+
|
|
43
|
+
Fair Use
|
|
44
|
+
|
|
45
|
+
You may have “fair use” rights for the software under the law. These terms do not limit them.
|
|
46
|
+
|
|
47
|
+
No Other Rights
|
|
48
|
+
|
|
49
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
50
|
+
|
|
51
|
+
Patent Defense
|
|
52
|
+
|
|
53
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
54
|
+
|
|
55
|
+
Violations
|
|
56
|
+
|
|
57
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
58
|
+
|
|
59
|
+
No Liability
|
|
60
|
+
|
|
61
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
62
|
+
|
|
63
|
+
Definitions
|
|
64
|
+
|
|
65
|
+
The licensor is the individual or entity offering these terms, and the software is the software the licensor makes available under these terms.
|
|
66
|
+
|
|
67
|
+
You refers to the individual or entity agreeing to these terms.
|
|
68
|
+
|
|
69
|
+
Your company is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
70
|
+
|
|
71
|
+
Your licenses are all the licenses granted to you for the software under these terms.
|
|
72
|
+
|
|
73
|
+
Use means anything you do with the software requiring one of your licenses.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `@shapediver/viewer.viewport`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ANTI_ALIASING_TECHNIQUE, Effect, EffectComposer, IPostProcessingEffectDefinition, IPostProcessingEffectsArray, POST_PROCESSING_EFFECT_TYPE, RenderingEngine as RenderingEngineThreeJs } from '@shapediver/viewer.rendering-engine.rendering-engine-threejs';
|
|
2
|
+
import { IPostProcessingApi } from '../interfaces/IPostProcessingApi';
|
|
3
|
+
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
4
|
+
import { IViewportApi } from '../interfaces/IViewportApi';
|
|
5
|
+
export declare class PostProcessingApi implements IPostProcessingApi {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(viewportApi: IViewportApi, renderingEngine: RenderingEngineThreeJs);
|
|
8
|
+
get antiAliasingTechnique(): ANTI_ALIASING_TECHNIQUE;
|
|
9
|
+
set antiAliasingTechnique(value: ANTI_ALIASING_TECHNIQUE);
|
|
10
|
+
get antiAliasingTechniqueMobile(): ANTI_ALIASING_TECHNIQUE;
|
|
11
|
+
set antiAliasingTechniqueMobile(value: ANTI_ALIASING_TECHNIQUE);
|
|
12
|
+
get effectComposer(): EffectComposer | undefined;
|
|
13
|
+
get enablePostProcessingOnMobile(): boolean;
|
|
14
|
+
set enablePostProcessingOnMobile(value: boolean);
|
|
15
|
+
get godRaysEffects(): {
|
|
16
|
+
[key: string]: {
|
|
17
|
+
setLightSource(node: ITreeNode): void;
|
|
18
|
+
removeLightSource(): void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
get manualPostProcessing(): boolean;
|
|
22
|
+
set manualPostProcessing(value: boolean);
|
|
23
|
+
get outlineEffects(): {
|
|
24
|
+
[key: string]: {
|
|
25
|
+
addSelection(node: ITreeNode): void;
|
|
26
|
+
removeSelection(node: ITreeNode): boolean;
|
|
27
|
+
clearSelection(): void;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
get selectiveBloomEffects(): {
|
|
31
|
+
[key: string]: {
|
|
32
|
+
addSelection(node: ITreeNode): void;
|
|
33
|
+
removeSelection(node: ITreeNode): boolean;
|
|
34
|
+
clearSelection(): void;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
get ssaaSampleLevel(): number;
|
|
38
|
+
set ssaaSampleLevel(value: number);
|
|
39
|
+
addEffect(definition: IPostProcessingEffectDefinition): string;
|
|
40
|
+
getDefaultEffectProperties(type: POST_PROCESSING_EFFECT_TYPE): unknown;
|
|
41
|
+
getEffect(token: string): Effect;
|
|
42
|
+
getEffectTokens(): {
|
|
43
|
+
[key: string]: POST_PROCESSING_EFFECT_TYPE;
|
|
44
|
+
};
|
|
45
|
+
getPostProcessingEffectsArray(): IPostProcessingEffectsArray;
|
|
46
|
+
removeEffect(token: string): boolean;
|
|
47
|
+
updateEffect(token: string, definition: IPostProcessingEffectDefinition): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=PostProcessingApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostProcessingApi.d.ts","sourceRoot":"","sources":["../../src/implementation/PostProcessingApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,uBAAuB,EACvB,MAAM,EACN,cAAc,EACd,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,IAAI,sBAAsB,EAC5C,MAAM,8DAA8D,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,iBAAkB,YAAW,kBAAkB;;gBAY5C,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB;IAS9E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AC,KAAK,EAAE,MAAM,GAAG,MAAM;IAOhC,eAAe,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,2BAA2B,CAAA;KAAE;IAIjE,6BAA6B,IAAI,2BAA2B;IAM5D,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASpC,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,+BAA+B,GAAG,IAAI;CASxF"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _PostProcessingApi_inputValidator, _PostProcessingApi_logger, _PostProcessingApi_renderingEngine, _PostProcessingApi_viewportApi;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PostProcessingApi = void 0;
|
|
16
|
+
const viewer_rendering_engine_rendering_engine_threejs_1 = require("@shapediver/viewer.rendering-engine.rendering-engine-threejs");
|
|
17
|
+
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
18
|
+
class PostProcessingApi {
|
|
19
|
+
// #endregion Properties (4)
|
|
20
|
+
// #region Constructors (1)
|
|
21
|
+
constructor(viewportApi, renderingEngine) {
|
|
22
|
+
// #region Properties (4)
|
|
23
|
+
_PostProcessingApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
|
|
24
|
+
_PostProcessingApi_logger.set(this, viewer_shared_services_1.Logger.instance);
|
|
25
|
+
_PostProcessingApi_renderingEngine.set(this, void 0);
|
|
26
|
+
_PostProcessingApi_viewportApi.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _PostProcessingApi_viewportApi, viewportApi, "f");
|
|
28
|
+
__classPrivateFieldSet(this, _PostProcessingApi_renderingEngine, renderingEngine, "f");
|
|
29
|
+
}
|
|
30
|
+
// #endregion Constructors (1)
|
|
31
|
+
// #region Public Getters And Setters (14)
|
|
32
|
+
get antiAliasingTechnique() {
|
|
33
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.antiAliasingTechnique;
|
|
34
|
+
}
|
|
35
|
+
set antiAliasingTechnique(value) {
|
|
36
|
+
const scope = 'antiAliasingTechnique';
|
|
37
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, value, 'enum', true, Object.values(viewer_rendering_engine_rendering_engine_threejs_1.ANTI_ALIASING_TECHNIQUE));
|
|
38
|
+
__classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.antiAliasingTechnique = value;
|
|
39
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was set to: ${value}`);
|
|
40
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
41
|
+
}
|
|
42
|
+
get antiAliasingTechniqueMobile() {
|
|
43
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.antiAliasingTechniqueMobile;
|
|
44
|
+
}
|
|
45
|
+
set antiAliasingTechniqueMobile(value) {
|
|
46
|
+
const scope = 'antiAliasingTechniqueMobile';
|
|
47
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, value, 'enum', true, Object.values(viewer_rendering_engine_rendering_engine_threejs_1.ANTI_ALIASING_TECHNIQUE));
|
|
48
|
+
__classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.antiAliasingTechniqueMobile = value;
|
|
49
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was set to: ${value}`);
|
|
50
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
51
|
+
}
|
|
52
|
+
get effectComposer() {
|
|
53
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.effectComposer;
|
|
54
|
+
}
|
|
55
|
+
get enablePostProcessingOnMobile() {
|
|
56
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.enablePostProcessingOnMobile;
|
|
57
|
+
}
|
|
58
|
+
set enablePostProcessingOnMobile(value) {
|
|
59
|
+
const scope = 'enablePostProcessingOnMobile';
|
|
60
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, value, 'boolean');
|
|
61
|
+
__classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.enablePostProcessingOnMobile = value;
|
|
62
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was set to: ${value}`);
|
|
63
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
64
|
+
}
|
|
65
|
+
get godRaysEffects() {
|
|
66
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.godRaysManagers;
|
|
67
|
+
}
|
|
68
|
+
get manualPostProcessing() {
|
|
69
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.manualPostProcessing;
|
|
70
|
+
}
|
|
71
|
+
set manualPostProcessing(value) {
|
|
72
|
+
const scope = 'manualPostProcessing';
|
|
73
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, value, 'boolean');
|
|
74
|
+
__classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.manualPostProcessing = value;
|
|
75
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was set to: ${value}`);
|
|
76
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
77
|
+
}
|
|
78
|
+
get outlineEffects() {
|
|
79
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.outlineManagers;
|
|
80
|
+
}
|
|
81
|
+
get selectiveBloomEffects() {
|
|
82
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.selectiveBloomManagers;
|
|
83
|
+
}
|
|
84
|
+
get ssaaSampleLevel() {
|
|
85
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.ssaaSampleLevel;
|
|
86
|
+
}
|
|
87
|
+
set ssaaSampleLevel(value) {
|
|
88
|
+
const scope = 'ssaaSampleLevel';
|
|
89
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, value, 'number');
|
|
90
|
+
__classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.ssaaSampleLevel = value;
|
|
91
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was set to: ${value}`);
|
|
92
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
93
|
+
}
|
|
94
|
+
// #endregion Public Getters And Setters (14)
|
|
95
|
+
// #region Public Methods (7)
|
|
96
|
+
addEffect(definition) {
|
|
97
|
+
const scope = 'addEffect';
|
|
98
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, definition, 'object', false);
|
|
99
|
+
const res = __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.addEffect(definition);
|
|
100
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was called with definition ${definition}.`);
|
|
101
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
102
|
+
return res;
|
|
103
|
+
}
|
|
104
|
+
getDefaultEffectProperties(type) {
|
|
105
|
+
const scope = 'getDefaultEffectProperties';
|
|
106
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, type, 'enum', true, Object.values(viewer_rendering_engine_rendering_engine_threejs_1.POST_PROCESSING_EFFECT_TYPE));
|
|
107
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was called with type ${type}.`);
|
|
108
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.getDefaultEffectProperties(type);
|
|
109
|
+
}
|
|
110
|
+
getEffect(token) {
|
|
111
|
+
const scope = 'getEffect';
|
|
112
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, token, 'string');
|
|
113
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was called with token ${token}.`);
|
|
114
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.getEffect(token);
|
|
115
|
+
}
|
|
116
|
+
getEffectTokens() {
|
|
117
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.getEffectTokens();
|
|
118
|
+
}
|
|
119
|
+
getPostProcessingEffectsArray() {
|
|
120
|
+
const scope = 'getPostProcessingEffectsArray';
|
|
121
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was called.`);
|
|
122
|
+
return __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.getPostProcessingEffectsArray();
|
|
123
|
+
}
|
|
124
|
+
removeEffect(token) {
|
|
125
|
+
const scope = 'removeEffect';
|
|
126
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, token, 'string');
|
|
127
|
+
const res = __classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.removeEffect(token);
|
|
128
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was called with token ${token}.`);
|
|
129
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
130
|
+
return res;
|
|
131
|
+
}
|
|
132
|
+
updateEffect(token, definition) {
|
|
133
|
+
const scope = 'updateEffect';
|
|
134
|
+
__classPrivateFieldGet(this, _PostProcessingApi_inputValidator, "f").validateAndError(`PostProcessingApi.${scope}`, token, 'string');
|
|
135
|
+
__classPrivateFieldGet(this, _PostProcessingApi_renderingEngine, "f").postProcessingManager.updateEffect(token, definition);
|
|
136
|
+
__classPrivateFieldGet(this, _PostProcessingApi_logger, "f").debug(`PostProcessingApi.${scope}: ${scope} was called with token ${token} and definition ${definition}.`);
|
|
137
|
+
__classPrivateFieldGet(this, _PostProcessingApi_viewportApi, "f").update();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.PostProcessingApi = PostProcessingApi;
|
|
141
|
+
_PostProcessingApi_inputValidator = new WeakMap(), _PostProcessingApi_logger = new WeakMap(), _PostProcessingApi_renderingEngine = new WeakMap(), _PostProcessingApi_viewportApi = new WeakMap();
|
|
142
|
+
//# sourceMappingURL=PostProcessingApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostProcessingApi.js","sourceRoot":"","sources":["../../src/implementation/PostProcessingApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mIAQsE;AACtE,+EAA4E;AAK5E,MAAa,iBAAiB;IAQ1B,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB,EAAE,eAAuC;QAX9E,yBAAyB;QAEzB,4CAA2C,uCAAc,CAAC,QAAQ,EAAC;QACnE,oCAA2B,+BAAM,CAAC,QAAQ,EAAC;QAC3C,qDAAkD;QAClD,iDAAoC;QAOhC,uBAAA,IAAI,kCAAgB,WAAW,MAAA,CAAC;QAChC,uBAAA,IAAI,sCAAoB,eAAe,MAAA,CAAC;IAC5C,CAAC;IAED,8BAA8B;IAE9B,0CAA0C;IAE1C,IAAW,qBAAqB;QAC5B,OAAO,uBAAA,IAAI,0CAAiB,CAAC,qBAAqB,CAAC,qBAAqB,CAAC;IAC7E,CAAC;IAED,IAAW,qBAAqB,CAAC,KAA8B;QAC3D,MAAM,KAAK,GAAG,uBAAuB,CAAC;QACtC,uBAAA,IAAI,yCAAgB,CAAC,gBAAgB,CAAC,qBAAqB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,0EAAuB,CAAC,CAAC,CAAC;QACjI,uBAAA,IAAI,0CAAiB,CAAC,qBAAqB,CAAC,qBAAqB,GAAG,KAAK,CAAC;QAC1E,uBAAA,IAAI,iCAAQ,CAAC,KAAK,CAAC,qBAAqB,KAAK,KAAK,KAAK,gBAAgB,KAAK,EAAE,CAAC,CAAC;QAChF,uBAAA,IAAI,sCAAa,CAAC,MAAM,EAAE,CAAC;IAC/B,CAAC;IAED,IAAW,2BAA2B;QAClC,OAAO,uBAAA,IAAI,0CAAiB,CAAC,qBAA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AC;QACxH,uBAAA,IAAI,sCAAa,CAAC,MAAM,EAAE,CAAC;IAC/B,CAAC;CAGJ;AAzKD,8CAyKC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { Color, IAnimationData, IGeometryData, ISDTFAttributeVisualizationData, ISDTFItemData, ISDTFOverview, MaterialBasicLineData, MaterialPointData, MaterialStandardData } from '@shapediver/viewer.shared.types';
|
|
3
|
+
import { IDomEventListener, SESSION_SETTINGS_MODE } from '@shapediver/viewer.shared.services';
|
|
4
|
+
import { FLAG_TYPE, RENDERER_TYPE, TEXTURE_ENCODING, TONE_MAPPING } from '@shapediver/viewer.rendering-engine.rendering-engine';
|
|
5
|
+
import { ICameraApi } from '../interfaces/camera/ICameraApi';
|
|
6
|
+
import { ILightSceneApi } from '../interfaces/lights/ILightSceneApi';
|
|
7
|
+
import { IOrthographicCameraApi } from '../interfaces/camera/IOrthographicCameraApi';
|
|
8
|
+
import { IPerspectiveCameraApi } from '../interfaces/camera/IPerspectiveCameraApi';
|
|
9
|
+
import { IPostProcessingApi } from '../interfaces/IPostProcessingApi';
|
|
10
|
+
import { ISettings } from '@shapediver/viewer.settings';
|
|
11
|
+
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
12
|
+
import { IViewportApi } from '../interfaces/IViewportApi';
|
|
13
|
+
import { quat, vec2, vec3 } from 'gl-matrix';
|
|
14
|
+
import { RenderingEngine as RenderingEngineThreeJs } from '@shapediver/viewer.rendering-engine.rendering-engine-threejs';
|
|
15
|
+
export declare class ViewportApi implements IViewportApi {
|
|
16
|
+
#private;
|
|
17
|
+
constructor(renderingEngine: RenderingEngineThreeJs);
|
|
18
|
+
get animations(): {
|
|
19
|
+
[key: string]: IAnimationData;
|
|
20
|
+
};
|
|
21
|
+
get arRotation(): vec3;
|
|
22
|
+
set arRotation(value: vec3);
|
|
23
|
+
get arScale(): vec3;
|
|
24
|
+
set arScale(value: vec3);
|
|
25
|
+
get arTranslation(): vec3;
|
|
26
|
+
set arTranslation(value: vec3);
|
|
27
|
+
get automaticColorAdjustment(): boolean;
|
|
28
|
+
set automaticColorAdjustment(value: boolean);
|
|
29
|
+
get automaticResizing(): boolean;
|
|
30
|
+
set automaticResizing(value: boolean);
|
|
31
|
+
get beautyRenderBlendingDuration(): number;
|
|
32
|
+
set beautyRenderBlendingDuration(value: number);
|
|
33
|
+
get beautyRenderDelay(): number;
|
|
34
|
+
set beautyRenderDelay(value: number);
|
|
35
|
+
get camera(): ICameraApi | null;
|
|
36
|
+
get cameras(): {
|
|
37
|
+
[key: string]: ICameraApi;
|
|
38
|
+
};
|
|
39
|
+
get canvas(): HTMLCanvasElement;
|
|
40
|
+
get clearAlpha(): number;
|
|
41
|
+
set clearAlpha(value: number);
|
|
42
|
+
get clearColor(): Color;
|
|
43
|
+
set clearColor(value: Color);
|
|
44
|
+
get defaultLineMaterial(): MaterialBasicLineData;
|
|
45
|
+
get defaultMaterial(): MaterialStandardData;
|
|
46
|
+
get defaultMaterialColor(): Color;
|
|
47
|
+
set defaultMaterialColor(value: Color);
|
|
48
|
+
get defaultPointMaterial(): MaterialPointData;
|
|
49
|
+
get enableAR(): boolean;
|
|
50
|
+
set enableAR(value: boolean);
|
|
51
|
+
get environmentMap(): string | string[];
|
|
52
|
+
set environmentMap(value: string | string[]);
|
|
53
|
+
get environmentMapAsBackground(): boolean;
|
|
54
|
+
set environmentMapAsBackground(value: boolean);
|
|
55
|
+
get environmentMapBlurriness(): number;
|
|
56
|
+
set environmentMapBlurriness(value: number);
|
|
57
|
+
get environmentMapForUnlitMaterials(): boolean;
|
|
58
|
+
set environmentMapForUnlitMaterials(value: boolean);
|
|
59
|
+
get environmentMapIntensity(): number;
|
|
60
|
+
set environmentMapIntensity(value: number);
|
|
61
|
+
get environmentMapResolution(): string;
|
|
62
|
+
set environmentMapResolution(value: string);
|
|
63
|
+
get environmentMapRotation(): quat;
|
|
64
|
+
set environmentMapRotation(value: quat);
|
|
65
|
+
get gridColor(): Color;
|
|
66
|
+
set gridColor(value: Color);
|
|
67
|
+
get gridVisibility(): boolean;
|
|
68
|
+
set gridVisibility(value: boolean);
|
|
69
|
+
get groundPlaneColor(): Color;
|
|
70
|
+
set groundPlaneColor(value: Color);
|
|
71
|
+
get groundPlaneShadowColor(): Color;
|
|
72
|
+
set groundPlaneShadowColor(value: Color);
|
|
73
|
+
get groundPlaneShadowVisibility(): boolean;
|
|
74
|
+
set groundPlaneShadowVisibility(value: boolean);
|
|
75
|
+
get groundPlaneVisibility(): boolean;
|
|
76
|
+
set groundPlaneVisibility(value: boolean);
|
|
77
|
+
get id(): string;
|
|
78
|
+
get lightScene(): ILightSceneApi | null;
|
|
79
|
+
get lightScenes(): {
|
|
80
|
+
[key: string]: ILightSceneApi;
|
|
81
|
+
};
|
|
82
|
+
get lights(): boolean;
|
|
83
|
+
set lights(value: boolean);
|
|
84
|
+
get maximumRenderingSize(): {
|
|
85
|
+
width: number;
|
|
86
|
+
height: number;
|
|
87
|
+
};
|
|
88
|
+
set maximumRenderingSize(value: {
|
|
89
|
+
width: number;
|
|
90
|
+
height: number;
|
|
91
|
+
});
|
|
92
|
+
get outputEncoding(): TEXTURE_ENCODING;
|
|
93
|
+
set outputEncoding(value: TEXTURE_ENCODING);
|
|
94
|
+
get physicallyCorrectLights(): boolean;
|
|
95
|
+
set physicallyCorrectLights(value: boolean);
|
|
96
|
+
get pointSize(): number;
|
|
97
|
+
set pointSize(value: number);
|
|
98
|
+
get postProcessing(): IPostProcessingApi;
|
|
99
|
+
get postRenderingCallback(): ((renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera) => void) | undefined;
|
|
100
|
+
set postRenderingCallback(value: ((renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera) => void) | undefined);
|
|
101
|
+
get preRenderingCallback(): ((renderer: THREE.WebGLRenderer) => void) | undefined;
|
|
102
|
+
set preRenderingCallback(value: ((renderer: THREE.WebGLRenderer) => void) | undefined);
|
|
103
|
+
get sessionSettingsId(): string | undefined;
|
|
104
|
+
get sessionSettingsMode(): SESSION_SETTINGS_MODE;
|
|
105
|
+
get shadows(): boolean;
|
|
106
|
+
set shadows(value: boolean);
|
|
107
|
+
get show(): boolean;
|
|
108
|
+
set show(value: boolean);
|
|
109
|
+
get showStatistics(): boolean;
|
|
110
|
+
set showStatistics(value: boolean);
|
|
111
|
+
get softShadows(): boolean;
|
|
112
|
+
set softShadows(value: boolean);
|
|
113
|
+
get textureEncoding(): TEXTURE_ENCODING;
|
|
114
|
+
set textureEncoding(value: TEXTURE_ENCODING);
|
|
115
|
+
get threeJsCoreObjects(): {
|
|
116
|
+
scene: THREE.Scene;
|
|
117
|
+
renderer: THREE.WebGLRenderer;
|
|
118
|
+
camera: THREE.Camera;
|
|
119
|
+
};
|
|
120
|
+
get toneMapping(): TONE_MAPPING;
|
|
121
|
+
set toneMapping(value: TONE_MAPPING);
|
|
122
|
+
get toneMappingExposure(): number;
|
|
123
|
+
set toneMappingExposure(value: number);
|
|
124
|
+
get type(): RENDERER_TYPE;
|
|
125
|
+
set type(value: RENDERER_TYPE);
|
|
126
|
+
get visualizeAttributes(): ((overview: ISDTFOverview, itemData?: ISDTFItemData) => ISDTFAttributeVisualizationData) | undefined;
|
|
127
|
+
set visualizeAttributes(value: ((overview: ISDTFOverview, itemData?: ISDTFItemData) => ISDTFAttributeVisualizationData) | undefined);
|
|
128
|
+
addCanvasEventListener(listener: IDomEventListener): string;
|
|
129
|
+
addFlag(flag: FLAG_TYPE): string;
|
|
130
|
+
applyViewportSettings(settings: ISettings, sections?: {
|
|
131
|
+
ar?: boolean | undefined;
|
|
132
|
+
scene?: boolean | undefined;
|
|
133
|
+
camera?: boolean | undefined;
|
|
134
|
+
light?: boolean | undefined;
|
|
135
|
+
environment?: boolean | undefined;
|
|
136
|
+
general?: boolean | undefined;
|
|
137
|
+
postprocessing?: boolean | undefined;
|
|
138
|
+
}): Promise<void>;
|
|
139
|
+
assignCamera(id: string): boolean;
|
|
140
|
+
assignLightScene(id: string): boolean;
|
|
141
|
+
close(): Promise<void>;
|
|
142
|
+
continueRendering(): void;
|
|
143
|
+
convert3Dto2D(p: vec3): {
|
|
144
|
+
container: vec2;
|
|
145
|
+
client: vec2;
|
|
146
|
+
page: vec2;
|
|
147
|
+
hidden: boolean;
|
|
148
|
+
};
|
|
149
|
+
convertToGlTF(node?: ITreeNode): Promise<Blob>;
|
|
150
|
+
createArSessionLink(node?: ITreeNode, qrCode?: boolean, fallbackUrl?: string): Promise<string>;
|
|
151
|
+
createLightScene(properties?: {
|
|
152
|
+
name?: string | undefined;
|
|
153
|
+
standard?: boolean | undefined;
|
|
154
|
+
}): ILightSceneApi;
|
|
155
|
+
createOrthographicCamera(id?: string): IOrthographicCameraApi;
|
|
156
|
+
createPerspectiveCamera(id?: string): IPerspectiveCameraApi;
|
|
157
|
+
createSDTFOverview(node: ITreeNode): ISDTFOverview;
|
|
158
|
+
displayErrorMessage(message: string): void;
|
|
159
|
+
getEnvironmentMapImageUrl(): string;
|
|
160
|
+
getScreenshot(type?: string, quality?: number): string;
|
|
161
|
+
getViewportSettings(): ISettings;
|
|
162
|
+
isMobileDeviceWithoutBrowserARSupport(): boolean;
|
|
163
|
+
pauseRendering(): void;
|
|
164
|
+
pointerEventToRay(event: PointerEvent): {
|
|
165
|
+
origin: vec3;
|
|
166
|
+
direction: vec3;
|
|
167
|
+
};
|
|
168
|
+
raytraceScene(origin: vec3, direction: vec3, root?: ITreeNode): {
|
|
169
|
+
distance: number;
|
|
170
|
+
node: ITreeNode;
|
|
171
|
+
data?: IGeometryData;
|
|
172
|
+
}[];
|
|
173
|
+
removeCamera(id: string): boolean;
|
|
174
|
+
removeCanvasEventListener(token: string): boolean;
|
|
175
|
+
removeFlag(token: string): boolean;
|
|
176
|
+
removeLightScene(id: string): boolean;
|
|
177
|
+
render(): void;
|
|
178
|
+
resetToDefaultCameras(): void;
|
|
179
|
+
resize(width: number, height: number): void;
|
|
180
|
+
restrictEventListeners(allowedListeners: {
|
|
181
|
+
mousewheel?: boolean;
|
|
182
|
+
pointerdown?: boolean;
|
|
183
|
+
pointermove?: boolean;
|
|
184
|
+
pointerup?: boolean;
|
|
185
|
+
pointerout?: boolean;
|
|
186
|
+
keydown?: boolean;
|
|
187
|
+
keyup?: boolean;
|
|
188
|
+
contextmenu?: boolean;
|
|
189
|
+
}): void;
|
|
190
|
+
update(id?: string): void;
|
|
191
|
+
updateDefaultLineMaterial(value: MaterialBasicLineData): void;
|
|
192
|
+
updateDefaultMaterial(value: MaterialStandardData): void;
|
|
193
|
+
updateDefaultPointMaterial(value: MaterialPointData): void;
|
|
194
|
+
updateEnvironmentGeometry(): void;
|
|
195
|
+
updateNode(node: ITreeNode): void;
|
|
196
|
+
updateNodeTransformation(node: ITreeNode): void;
|
|
197
|
+
viewInAR(node?: ITreeNode): Promise<void>;
|
|
198
|
+
viewableInAR(): boolean;
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=ViewportApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewportApi.d.ts","sourceRoot":"","sources":["../../src/implementation/ViewportApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EACH,KAAK,EACL,cAAc,EACd,aAAa,EACb,+BAA+B,EAC/B,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEH,iBAAiB,EAGjB,qBAAqB,EAKxB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACH,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,YAAY,EACf,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6C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