@shapediver/viewer.session 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/ExportApi.d.ts +36 -0
- package/dist/implementation/ExportApi.d.ts.map +1 -0
- package/dist/implementation/ExportApi.js +140 -0
- package/dist/implementation/ExportApi.js.map +1 -0
- package/dist/implementation/FileParameterApi.d.ts +10 -0
- package/dist/implementation/FileParameterApi.d.ts.map +1 -0
- package/dist/implementation/FileParameterApi.js +50 -0
- package/dist/implementation/FileParameterApi.js.map +1 -0
- package/dist/implementation/OutputApi.d.ts +38 -0
- package/dist/implementation/OutputApi.d.ts.map +1 -0
- package/dist/implementation/OutputApi.js +165 -0
- package/dist/implementation/OutputApi.js.map +1 -0
- package/dist/implementation/ParameterApi.d.ts +38 -0
- package/dist/implementation/ParameterApi.d.ts.map +1 -0
- package/dist/implementation/ParameterApi.js +151 -0
- package/dist/implementation/ParameterApi.js.map +1 -0
- package/dist/implementation/SessionApi.d.ts +98 -0
- package/dist/implementation/SessionApi.d.ts.map +1 -0
- package/dist/implementation/SessionApi.js +361 -0
- package/dist/implementation/SessionApi.js.map +1 -0
- package/dist/implementation/data/OutputApiData.d.ts +20 -0
- package/dist/implementation/data/OutputApiData.d.ts.map +1 -0
- package/dist/implementation/data/OutputApiData.js +51 -0
- package/dist/implementation/data/OutputApiData.js.map +1 -0
- package/dist/implementation/data/SessionApiData.d.ts +20 -0
- package/dist/implementation/data/SessionApiData.d.ts.map +1 -0
- package/dist/implementation/data/SessionApiData.js +51 -0
- package/dist/implementation/data/SessionApiData.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +120 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/IExportApi.d.ts +27 -0
- package/dist/interfaces/IExportApi.d.ts.map +1 -0
- package/dist/interfaces/IExportApi.js +3 -0
- package/dist/interfaces/IExportApi.js.map +1 -0
- package/dist/interfaces/IFileParameterApi.d.ts +35 -0
- package/dist/interfaces/IFileParameterApi.d.ts.map +1 -0
- package/dist/interfaces/IFileParameterApi.js +3 -0
- package/dist/interfaces/IFileParameterApi.js.map +1 -0
- package/dist/interfaces/IOutputApi.d.ts +75 -0
- package/dist/interfaces/IOutputApi.d.ts.map +1 -0
- package/dist/interfaces/IOutputApi.js +3 -0
- package/dist/interfaces/IOutputApi.js.map +1 -0
- package/dist/interfaces/IParameterApi.d.ts +46 -0
- package/dist/interfaces/IParameterApi.d.ts.map +1 -0
- package/dist/interfaces/IParameterApi.js +3 -0
- package/dist/interfaces/IParameterApi.js.map +1 -0
- package/dist/interfaces/ISessionApi.d.ts +477 -0
- package/dist/interfaces/ISessionApi.d.ts.map +1 -0
- package/dist/interfaces/ISessionApi.js +3 -0
- package/dist/interfaces/ISessionApi.js.map +1 -0
- package/dist/interfaces/data/IOutputApiData.d.ts +7 -0
- package/dist/interfaces/data/IOutputApiData.d.ts.map +1 -0
- package/dist/interfaces/data/IOutputApiData.js +3 -0
- package/dist/interfaces/data/IOutputApiData.js.map +1 -0
- package/dist/interfaces/data/ISessionApiData.d.ts +7 -0
- package/dist/interfaces/data/ISessionApiData.d.ts.map +1 -0
- package/dist/interfaces/data/ISessionApiData.js +3 -0
- package/dist/interfaces/data/ISessionApiData.js.map +1 -0
- package/dist/main.d.ts +37 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +96 -0
- package/dist/main.js.map +1 -0
- package/package.json +63 -0
- package/src/implementation/ExportApi.ts +158 -0
- package/src/implementation/FileParameterApi.ts +34 -0
- package/src/implementation/OutputApi.ts +178 -0
- package/src/implementation/ParameterApi.ts +176 -0
- package/src/implementation/SessionApi.ts +408 -0
- package/src/implementation/data/OutputApiData.ts +53 -0
- package/src/implementation/data/SessionApiData.ts +53 -0
- package/src/index.ts +225 -0
- package/src/interfaces/IExportApi.ts +29 -0
- package/src/interfaces/IFileParameterApi.ts +39 -0
- package/src/interfaces/IOutputApi.ts +85 -0
- package/src/interfaces/IParameterApi.ts +55 -0
- package/src/interfaces/ISessionApi.ts +461 -0
- package/src/interfaces/data/IOutputApiData.ts +16 -0
- package/src/interfaces/data/ISessionApiData.ts +16 -0
- package/src/main.ts +95 -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.session`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IExport } from '@shapediver/viewer.session-engine.session-engine';
|
|
2
|
+
import { IExportApi } from '../interfaces/IExportApi';
|
|
3
|
+
import { ShapeDiverResponseExport, ShapeDiverResponseExportContent, ShapeDiverResponseExportDefinitionType, ShapeDiverResponseExportResult, ShapeDiverResponseModelComputationStatus, ShapeDiverResponseParameterGroup } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
4
|
+
export declare class ExportApi implements IExportApi {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(exportD: IExport);
|
|
7
|
+
get content(): ShapeDiverResponseExportContent[] | undefined;
|
|
8
|
+
get delay(): number | undefined;
|
|
9
|
+
get dependency(): string[];
|
|
10
|
+
get displayname(): string | undefined;
|
|
11
|
+
set displayname(value: string | undefined);
|
|
12
|
+
get filename(): string | undefined;
|
|
13
|
+
get group(): ShapeDiverResponseParameterGroup | undefined;
|
|
14
|
+
get hidden(): boolean;
|
|
15
|
+
set hidden(value: boolean);
|
|
16
|
+
get id(): string;
|
|
17
|
+
get maxWaitTime(): number;
|
|
18
|
+
set maxWaitTime(value: number);
|
|
19
|
+
get msg(): string | undefined;
|
|
20
|
+
get name(): string;
|
|
21
|
+
get order(): number | undefined;
|
|
22
|
+
set order(value: number | undefined);
|
|
23
|
+
get result(): ShapeDiverResponseExportResult | undefined;
|
|
24
|
+
get status_collect(): ShapeDiverResponseModelComputationStatus | undefined;
|
|
25
|
+
get status_computation(): ShapeDiverResponseModelComputationStatus | undefined;
|
|
26
|
+
get tooltip(): string | undefined;
|
|
27
|
+
set tooltip(value: string | undefined);
|
|
28
|
+
get type(): ShapeDiverResponseExportDefinitionType;
|
|
29
|
+
get uid(): string | undefined;
|
|
30
|
+
get version(): string | undefined;
|
|
31
|
+
request(parameters?: {
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
}): Promise<ShapeDiverResponseExport>;
|
|
34
|
+
updateExport(): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=ExportApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportApi.d.ts","sourceRoot":"","sources":["../../src/implementation/ExportApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EACH,wBAAwB,EACxB,+BAA+B,EAC/B,sCAAsC,EACtC,8BAA8B,EAC9B,wCAAwC,EACxC,gCAAgC,EACnC,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,SAAU,YAAW,UAAU;;gBAW5B,OAAO,EAAE,OAAO;IAQ5B,IAAW,OAAO,IAAI,+BAA+B,EAAE,GAAG,SAAS,CAElE;IAED,IAAW,KAAK,IAAI,MAAM,GAAG,SAAS,CAErC;IAED,IAAW,UAAU,IAAI,MAAM,EAAE,CAEhC;IAED,IAAW,WAAW,IAAI,MAAM,GAAG,SAAS,CAE3C;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAK/C;IAED,IAAW,QAAQ,IAAI,MAAM,GAAG,SAAS,CAExC;IAED,IAAW,KAAK,IAAI,gCAAgC,GAAG,SAAS,CAE/D;IAED,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,OAAO,EAK/B;IAED,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,EAKnC;IAED,IAAW,GAAG,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,KAAK,IAAI,MAAM,GAAG,SAAS,CAErC;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAKzC;IAED,IAAW,MAAM,IAAI,8BAA8B,GAAG,SAAS,CAE9D;IAED,IAAW,cAAc,IAAI,wCAAwC,GAAG,SAAS,CAEhF;IAED,IAAW,kBAAkB,IAAI,wCAAwC,GAAG,SAAS,CAEpF;IAED,IAAW,OAAO,IAAI,MAAM,GAAG,SAAS,CAEvC;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAK3C;IAED,IAAW,IAAI,IAAI,sCAAsC,CAExD;IAED,IAAW,GAAG,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAW,OAAO,IAAI,MAAM,GAAG,SAAS,CAEvC;IAMY,OAAO,CAAC,UAAU,GAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAM7F,YAAY;CAKtB"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
12
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
13
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
14
|
+
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");
|
|
15
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
|
+
};
|
|
17
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
18
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
19
|
+
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");
|
|
20
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
21
|
+
};
|
|
22
|
+
var _ExportApi_export, _ExportApi_inputValidator, _ExportApi_logger;
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.ExportApi = void 0;
|
|
25
|
+
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
26
|
+
class ExportApi {
|
|
27
|
+
// #endregion Properties (3)
|
|
28
|
+
// #region Constructors (1)
|
|
29
|
+
constructor(exportD) {
|
|
30
|
+
// #region Properties (3)
|
|
31
|
+
_ExportApi_export.set(this, void 0);
|
|
32
|
+
_ExportApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
|
|
33
|
+
_ExportApi_logger.set(this, viewer_shared_services_1.Logger.instance);
|
|
34
|
+
__classPrivateFieldSet(this, _ExportApi_export, exportD, "f");
|
|
35
|
+
}
|
|
36
|
+
// #endregion Constructors (1)
|
|
37
|
+
// #region Public Getters And Setters (24)
|
|
38
|
+
get content() {
|
|
39
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").content;
|
|
40
|
+
}
|
|
41
|
+
get delay() {
|
|
42
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").delay;
|
|
43
|
+
}
|
|
44
|
+
get dependency() {
|
|
45
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").dependency;
|
|
46
|
+
}
|
|
47
|
+
get displayname() {
|
|
48
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").displayname;
|
|
49
|
+
}
|
|
50
|
+
set displayname(value) {
|
|
51
|
+
const scope = 'displayname';
|
|
52
|
+
__classPrivateFieldGet(this, _ExportApi_inputValidator, "f").validateAndError(`ExportApi.${scope}`, value, 'string', false);
|
|
53
|
+
__classPrivateFieldGet(this, _ExportApi_export, "f").displayname = value;
|
|
54
|
+
__classPrivateFieldGet(this, _ExportApi_logger, "f").debug(`ExportApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _ExportApi_export, "f").displayname}.`);
|
|
55
|
+
}
|
|
56
|
+
get filename() {
|
|
57
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").filename;
|
|
58
|
+
}
|
|
59
|
+
get group() {
|
|
60
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").group;
|
|
61
|
+
}
|
|
62
|
+
get hidden() {
|
|
63
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").hidden;
|
|
64
|
+
}
|
|
65
|
+
set hidden(value) {
|
|
66
|
+
const scope = 'hidden';
|
|
67
|
+
__classPrivateFieldGet(this, _ExportApi_inputValidator, "f").validateAndError(`ExportApi.${scope}`, value, 'boolean');
|
|
68
|
+
__classPrivateFieldGet(this, _ExportApi_export, "f").hidden = value;
|
|
69
|
+
__classPrivateFieldGet(this, _ExportApi_logger, "f").debug(`ExportApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _ExportApi_export, "f").hidden}.`);
|
|
70
|
+
}
|
|
71
|
+
get id() {
|
|
72
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").id;
|
|
73
|
+
}
|
|
74
|
+
get maxWaitTime() {
|
|
75
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").maxWaitTime;
|
|
76
|
+
}
|
|
77
|
+
set maxWaitTime(value) {
|
|
78
|
+
const scope = 'maxWaitTime';
|
|
79
|
+
__classPrivateFieldGet(this, _ExportApi_inputValidator, "f").validateAndError(`ExportApi.${scope}`, value, 'number');
|
|
80
|
+
__classPrivateFieldGet(this, _ExportApi_export, "f").maxWaitTime = value;
|
|
81
|
+
__classPrivateFieldGet(this, _ExportApi_logger, "f").debug(`ExportApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _ExportApi_export, "f").maxWaitTime}.`);
|
|
82
|
+
}
|
|
83
|
+
get msg() {
|
|
84
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").msg;
|
|
85
|
+
}
|
|
86
|
+
get name() {
|
|
87
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").name;
|
|
88
|
+
}
|
|
89
|
+
get order() {
|
|
90
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").order;
|
|
91
|
+
}
|
|
92
|
+
set order(value) {
|
|
93
|
+
const scope = 'order';
|
|
94
|
+
__classPrivateFieldGet(this, _ExportApi_inputValidator, "f").validateAndError(`ExportApi.${scope}`, value, 'number', false);
|
|
95
|
+
__classPrivateFieldGet(this, _ExportApi_export, "f").order = value;
|
|
96
|
+
__classPrivateFieldGet(this, _ExportApi_logger, "f").debug(`ExportApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _ExportApi_export, "f").order}.`);
|
|
97
|
+
}
|
|
98
|
+
get result() {
|
|
99
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").result;
|
|
100
|
+
}
|
|
101
|
+
get status_collect() {
|
|
102
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").status_collect;
|
|
103
|
+
}
|
|
104
|
+
get status_computation() {
|
|
105
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").status_computation;
|
|
106
|
+
}
|
|
107
|
+
get tooltip() {
|
|
108
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").tooltip;
|
|
109
|
+
}
|
|
110
|
+
set tooltip(value) {
|
|
111
|
+
const scope = 'tooltip';
|
|
112
|
+
__classPrivateFieldGet(this, _ExportApi_inputValidator, "f").validateAndError(`ExportApi.${scope}`, value, 'string', false);
|
|
113
|
+
__classPrivateFieldGet(this, _ExportApi_export, "f").tooltip = value;
|
|
114
|
+
__classPrivateFieldGet(this, _ExportApi_logger, "f").debug(`ExportApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _ExportApi_export, "f").tooltip}.`);
|
|
115
|
+
}
|
|
116
|
+
get type() {
|
|
117
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").type;
|
|
118
|
+
}
|
|
119
|
+
get uid() {
|
|
120
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").uid;
|
|
121
|
+
}
|
|
122
|
+
get version() {
|
|
123
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").version;
|
|
124
|
+
}
|
|
125
|
+
// #endregion Public Getters And Setters (24)
|
|
126
|
+
// #region Public Methods (2)
|
|
127
|
+
request(parameters = {}) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const scope = 'request';
|
|
130
|
+
__classPrivateFieldGet(this, _ExportApi_inputValidator, "f").validateAndError(`ExportApi.${scope}`, parameters, 'object');
|
|
131
|
+
return __classPrivateFieldGet(this, _ExportApi_export, "f").request(parameters);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
updateExport() {
|
|
135
|
+
__classPrivateFieldGet(this, _ExportApi_export, "f").updateExport();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.ExportApi = ExportApi;
|
|
139
|
+
_ExportApi_export = new WeakMap(), _ExportApi_inputValidator = new WeakMap(), _ExportApi_logger = new WeakMap();
|
|
140
|
+
//# sourceMappingURL=ExportApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportApi.js","sourceRoot":"","sources":["../../src/implementation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C;IAED,IAAW,OAAO;QACd,OAAO,uBAAA,IAAI,yBAAQ,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,6CAA6C;IAE7C,6BAA6B;IAEhB,OAAO,CAAC,aAAyC,EAAE;;YAC5D,MAAM,KAAK,GAAG,SAAS,CAAC;YACxB,uBAAA,IAAI,iCAAgB,CAAC,gBAAgB,CAAC,aAAa,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;YAClF,OAAO,uBAAA,IAAI,yBAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC5C,CAAC;KAAA;IAEM,YAAY;QACf,uBAAA,IAAI,yBAAQ,CAAC,YAAY,EAAE,CAAC;IAChC,CAAC;CAGJ;AAjJD,8BAiJC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IFileParameter } from '@shapediver/viewer.session-engine.session-engine';
|
|
2
|
+
import { IFileParameterApi } from '../interfaces/IFileParameterApi';
|
|
3
|
+
import { ParameterApi } from './ParameterApi';
|
|
4
|
+
export declare class FileParameterApi extends ParameterApi<File | Blob | string> implements IFileParameterApi {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(parameter: IFileParameter);
|
|
7
|
+
getFilename(fileId?: string): Promise<string | undefined>;
|
|
8
|
+
upload(): Promise<string>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=FileParameterApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileParameterApi.d.ts","sourceRoot":"","sources":["../../src/implementation/FileParameterApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,qBAAa,gBAAiB,SAAQ,YAAY,CAAC,IAAI,GAAG,IAAI,GAAG,MAAM,CAAE,YAAW,iBAAiB;;gBAUrF,SAAS,EAAE,cAAc;IASxB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI/D,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;CAKnC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
12
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
13
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
14
|
+
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");
|
|
15
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
|
+
};
|
|
17
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
18
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
19
|
+
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");
|
|
20
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
21
|
+
};
|
|
22
|
+
var _FileParameterApi_logger, _FileParameterApi_parameter;
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.FileParameterApi = void 0;
|
|
25
|
+
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
26
|
+
const ParameterApi_1 = require("./ParameterApi");
|
|
27
|
+
class FileParameterApi extends ParameterApi_1.ParameterApi {
|
|
28
|
+
// #endregion Properties (2)
|
|
29
|
+
// #region Constructors (1)
|
|
30
|
+
constructor(parameter) {
|
|
31
|
+
super(parameter);
|
|
32
|
+
// #region Properties (2)
|
|
33
|
+
_FileParameterApi_logger.set(this, viewer_shared_services_1.Logger.instance);
|
|
34
|
+
_FileParameterApi_parameter.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _FileParameterApi_parameter, parameter, "f");
|
|
36
|
+
}
|
|
37
|
+
// #endregion Constructors (1)
|
|
38
|
+
// #region Public Methods (2)
|
|
39
|
+
getFilename(fileId) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return __classPrivateFieldGet(this, _FileParameterApi_parameter, "f").getFilename(fileId);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
upload() {
|
|
45
|
+
return __classPrivateFieldGet(this, _FileParameterApi_parameter, "f").upload();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.FileParameterApi = FileParameterApi;
|
|
49
|
+
_FileParameterApi_logger = new WeakMap(), _FileParameterApi_parameter = new WeakMap();
|
|
50
|
+
//# sourceMappingURL=FileParameterApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileParameterApi.js","sourceRoot":"","sources":["../../src/implementation/FileParameterApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,+EAA4D;AAC5D,iDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,2BAAkC;IAMpE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,SAAyB;QACjC,KAAK,CAAC,SAAS,CAAC,CAAC;QAVrB,yBAAyB;QAEzB,mCAA2B,+BAAM,CAAC,QAAQ,EAAC;QAC3C,8CAAoC;QAQhC,uBAAA,IAAI,+BAAc,SAAS,MAAA,CAAC;IAChC,CAAC;IAED,8BAA8B;IAE9B,6BAA6B;IAEhB,WAAW,CAAC,MAAe;;YACpC,OAAO,uBAAA,IAAI,mCAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;KAAA;IAEM,MAAM;QACT,OAAO,uBAAA,IAAI,mCAAW,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC;CAGJ;AA5BD,4CA4BC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IOutput, ShapeDiverResponseOutputChunk, ShapeDiverResponseOutputContent } from '@shapediver/viewer.session-engine.session-engine';
|
|
2
|
+
import { IOutputApi } from '../interfaces/IOutputApi';
|
|
3
|
+
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
4
|
+
import { ShapeDiverResponseModelComputationStatus } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
5
|
+
export declare class OutputApi implements IOutputApi {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(output: IOutput);
|
|
8
|
+
get bbmax(): number[] | undefined;
|
|
9
|
+
get bbmin(): number[] | undefined;
|
|
10
|
+
get chunks(): ShapeDiverResponseOutputChunk[] | undefined;
|
|
11
|
+
get content(): ShapeDiverResponseOutputContent[] | undefined;
|
|
12
|
+
get delay(): number | undefined;
|
|
13
|
+
get dependency(): string[];
|
|
14
|
+
get displayname(): string | undefined;
|
|
15
|
+
set displayname(value: string | undefined);
|
|
16
|
+
get format(): string[];
|
|
17
|
+
get freeze(): boolean;
|
|
18
|
+
set freeze(value: boolean);
|
|
19
|
+
get hidden(): boolean;
|
|
20
|
+
set hidden(value: boolean);
|
|
21
|
+
get id(): string;
|
|
22
|
+
get material(): string | undefined;
|
|
23
|
+
get msg(): string | undefined;
|
|
24
|
+
get name(): string;
|
|
25
|
+
get node(): ITreeNode | undefined;
|
|
26
|
+
get order(): number | undefined;
|
|
27
|
+
set order(value: number | undefined);
|
|
28
|
+
get status_collect(): ShapeDiverResponseModelComputationStatus | undefined;
|
|
29
|
+
get status_computation(): ShapeDiverResponseModelComputationStatus | undefined;
|
|
30
|
+
get tooltip(): string | undefined;
|
|
31
|
+
set tooltip(value: string | undefined);
|
|
32
|
+
get uid(): string | undefined;
|
|
33
|
+
get updateCallback(): ((newNode?: ITreeNode, oldNode?: ITreeNode) => void | Promise<void>) | null;
|
|
34
|
+
set updateCallback(value: ((newNode?: ITreeNode, oldNode?: ITreeNode) => void | Promise<void>) | null);
|
|
35
|
+
get version(): string;
|
|
36
|
+
updateOutputContent(outputContent: ShapeDiverResponseOutputContent[], preventUpdate?: boolean): Promise<ITreeNode | undefined>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=OutputApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputApi.d.ts","sourceRoot":"","sources":["../../src/implementation/OutputApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AAC3I,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEhE,OAAO,EAAE,wCAAwC,EAAE,MAAM,qCAAqC,CAAC;AAE/F,qBAAa,SAAU,YAAW,UAAU;;gBAW5B,MAAM,EAAE,OAAO;IAa3B,IAAW,KAAK,IAAI,MAAM,EAAE,GAAG,SAAS,CAEvC;IAED,IAAW,KAAK,IAAI,MAAM,EAAE,GAAG,SAAS,CAEvC;IAED,IAAW,MAAM,IAAI,6BAA6B,EAAE,GAAG,SAAS,CAE/D;IAED,IAAW,OAAO,IAAI,+BAA+B,EAAE,GAAG,SAAS,CAElE;IAED,IAAW,KAAK,I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AK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,EAS3G;IAED,IAAW,OAAO,IAAI,MAAM,CAE3B;IAMY,mBAAmB,CAAC,aAAa,EAAE,+BAA+B,EAAE,EAAE,aAAa,GAAE,OAAe,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;CAQrJ"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
12
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
13
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
14
|
+
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");
|
|
15
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
|
+
};
|
|
17
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
18
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
19
|
+
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");
|
|
20
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
21
|
+
};
|
|
22
|
+
var _OutputApi_inputValidator, _OutputApi_logger, _OutputApi_output;
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.OutputApi = void 0;
|
|
25
|
+
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
26
|
+
const OutputApiData_1 = require("./data/OutputApiData");
|
|
27
|
+
class OutputApi {
|
|
28
|
+
// #endregion Properties (3)
|
|
29
|
+
// #region Constructors (1)
|
|
30
|
+
constructor(output) {
|
|
31
|
+
// #region Properties (3)
|
|
32
|
+
_OutputApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
|
|
33
|
+
_OutputApi_logger.set(this, viewer_shared_services_1.Logger.instance);
|
|
34
|
+
_OutputApi_output.set(this, void 0);
|
|
35
|
+
__classPrivateFieldSet(this, _OutputApi_output, output, "f");
|
|
36
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").updateCallback = (newNode) => {
|
|
37
|
+
if (newNode && newNode.data.findIndex(d => d instanceof OutputApiData_1.OutputApiData) === -1)
|
|
38
|
+
newNode.addData(new OutputApiData_1.OutputApiData(this));
|
|
39
|
+
};
|
|
40
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").updateCallback(this.node);
|
|
41
|
+
}
|
|
42
|
+
// #endregion Constructors (1)
|
|
43
|
+
// #region Public Getters And Setters (28)
|
|
44
|
+
get bbmax() {
|
|
45
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").bbmax;
|
|
46
|
+
}
|
|
47
|
+
get bbmin() {
|
|
48
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").bbmin;
|
|
49
|
+
}
|
|
50
|
+
get chunks() {
|
|
51
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").chunks;
|
|
52
|
+
}
|
|
53
|
+
get content() {
|
|
54
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").content;
|
|
55
|
+
}
|
|
56
|
+
get delay() {
|
|
57
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").delay;
|
|
58
|
+
}
|
|
59
|
+
get dependency() {
|
|
60
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").dependency;
|
|
61
|
+
}
|
|
62
|
+
get displayname() {
|
|
63
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").displayname;
|
|
64
|
+
}
|
|
65
|
+
set displayname(value) {
|
|
66
|
+
const scope = 'displayname';
|
|
67
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, value, 'string', false);
|
|
68
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").displayname = value;
|
|
69
|
+
__classPrivateFieldGet(this, _OutputApi_logger, "f").debug(`OutputApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _OutputApi_output, "f").displayname}.`);
|
|
70
|
+
}
|
|
71
|
+
get format() {
|
|
72
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").format;
|
|
73
|
+
}
|
|
74
|
+
get freeze() {
|
|
75
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").freeze;
|
|
76
|
+
}
|
|
77
|
+
set freeze(value) {
|
|
78
|
+
const scope = 'freeze';
|
|
79
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, value, 'boolean');
|
|
80
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").freeze = value;
|
|
81
|
+
__classPrivateFieldGet(this, _OutputApi_logger, "f").debug(`OutputApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _OutputApi_output, "f").freeze}.`);
|
|
82
|
+
}
|
|
83
|
+
get hidden() {
|
|
84
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").hidden;
|
|
85
|
+
}
|
|
86
|
+
set hidden(value) {
|
|
87
|
+
const scope = 'hidden';
|
|
88
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, value, 'boolean');
|
|
89
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").hidden = value;
|
|
90
|
+
__classPrivateFieldGet(this, _OutputApi_logger, "f").debug(`OutputApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _OutputApi_output, "f").hidden}.`);
|
|
91
|
+
}
|
|
92
|
+
get id() {
|
|
93
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").id;
|
|
94
|
+
}
|
|
95
|
+
get material() {
|
|
96
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").material;
|
|
97
|
+
}
|
|
98
|
+
get msg() {
|
|
99
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").msg;
|
|
100
|
+
}
|
|
101
|
+
get name() {
|
|
102
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").name;
|
|
103
|
+
}
|
|
104
|
+
get node() {
|
|
105
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").node;
|
|
106
|
+
}
|
|
107
|
+
get order() {
|
|
108
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").order;
|
|
109
|
+
}
|
|
110
|
+
set order(value) {
|
|
111
|
+
const scope = 'order';
|
|
112
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, value, 'number', false);
|
|
113
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").order = value;
|
|
114
|
+
__classPrivateFieldGet(this, _OutputApi_logger, "f").debug(`OutputApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _OutputApi_output, "f").order}.`);
|
|
115
|
+
}
|
|
116
|
+
get status_collect() {
|
|
117
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").status_collect;
|
|
118
|
+
}
|
|
119
|
+
get status_computation() {
|
|
120
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").status_computation;
|
|
121
|
+
}
|
|
122
|
+
get tooltip() {
|
|
123
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").tooltip;
|
|
124
|
+
}
|
|
125
|
+
set tooltip(value) {
|
|
126
|
+
const scope = 'tooltip';
|
|
127
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, value, 'string', false);
|
|
128
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").tooltip = value;
|
|
129
|
+
__classPrivateFieldGet(this, _OutputApi_logger, "f").debug(`OutputApi.${scope}: ${scope} was updated to ${__classPrivateFieldGet(this, _OutputApi_output, "f").tooltip}.`);
|
|
130
|
+
}
|
|
131
|
+
get uid() {
|
|
132
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").uid;
|
|
133
|
+
}
|
|
134
|
+
get updateCallback() {
|
|
135
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").updateCallback;
|
|
136
|
+
}
|
|
137
|
+
set updateCallback(value) {
|
|
138
|
+
const scope = 'updateCallback';
|
|
139
|
+
if (value)
|
|
140
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, value, 'function', false);
|
|
141
|
+
__classPrivateFieldGet(this, _OutputApi_output, "f").updateCallback = (newNode, oldNode) => __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
if (newNode && newNode.data.findIndex(d => d instanceof OutputApiData_1.OutputApiData) === -1)
|
|
143
|
+
newNode.addData(new OutputApiData_1.OutputApiData(this));
|
|
144
|
+
if (value)
|
|
145
|
+
yield Promise.resolve(value(newNode, oldNode));
|
|
146
|
+
});
|
|
147
|
+
__classPrivateFieldGet(this, _OutputApi_logger, "f").debug(`OutputApi.${scope}: ${scope} was updated to ${value}.`);
|
|
148
|
+
}
|
|
149
|
+
get version() {
|
|
150
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").version;
|
|
151
|
+
}
|
|
152
|
+
// #endregion Public Getters And Setters (28)
|
|
153
|
+
// #region Public Methods (1)
|
|
154
|
+
updateOutputContent(outputContent, preventUpdate = false) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const scope = 'updateOutputContent';
|
|
157
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, outputContent, 'array');
|
|
158
|
+
__classPrivateFieldGet(this, _OutputApi_inputValidator, "f").validateAndError(`OutputApi.${scope}`, preventUpdate, 'boolean');
|
|
159
|
+
return __classPrivateFieldGet(this, _OutputApi_output, "f").updateOutputContent(outputContent, preventUpdate);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
exports.OutputApi = OutputApi;
|
|
164
|
+
_OutputApi_inputValidator = new WeakMap(), _OutputApi_logger = new WeakMap(), _OutputApi_output = new WeakMap();
|
|
165
|
+
//# sourceMappingURL=OutputApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputApi.js","sourceRoot":"","sources":["../../src/implementation/OutputApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA4E;AAI5E,wDAAqD;AAGrD,MAAa,SAAS;IAOlB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,MAAe;QAV3B,yBAAyB;QAEzB,oCAA2C,uCAAc,CAAC,QAAQ,EAAC;QACnE,4BAA2B,+BAAM,CAAC,QAAQ,EAAC;QAC3C,oCAA0B;QAOtB,uBAAA,IAAI,qBAAW,MAAM,MAAA,CAAC;QACtB,uBAAA,IAAI,yBAAQ,CAAC,cAAc,GAAG,CAAC,OAAmB,EAAE,EAAE;YAClD,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,6BAAa,CAAC,KAAK,CAAC,CAAC;gBACzE,OAAO,CAAC,OAAO,CAAC,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,CAAC,CAAC;QACF,uBAAA,IAAI,yBAAQ,CAAC,cAAc,CAAC,I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BA0KC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IParameter } from '@shapediver/viewer.session-engine.session-engine';
|
|
2
|
+
import { IParameterApi } from '../interfaces/IParameterApi';
|
|
3
|
+
import { PARAMETER_TYPE, PARAMETER_VISUALIZATION } from '@shapediver/viewer.shared.types';
|
|
4
|
+
import { ShapeDiverResponseParameterGroup, ShapeDiverResponseParameterStructure } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
5
|
+
export declare class ParameterApi<T> implements IParameterApi<T> {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(parameter: IParameter<T>);
|
|
8
|
+
get choices(): string[] | undefined;
|
|
9
|
+
get decimalplaces(): number | undefined;
|
|
10
|
+
get defval(): string;
|
|
11
|
+
get displayname(): string | undefined;
|
|
12
|
+
set displayname(value: string | undefined);
|
|
13
|
+
get expression(): string | undefined;
|
|
14
|
+
get format(): string[] | undefined;
|
|
15
|
+
get group(): ShapeDiverResponseParameterGroup | undefined;
|
|
16
|
+
get hidden(): boolean;
|
|
17
|
+
set hidden(value: boolean);
|
|
18
|
+
get id(): string;
|
|
19
|
+
get max(): number | undefined;
|
|
20
|
+
get min(): number | undefined;
|
|
21
|
+
get name(): string;
|
|
22
|
+
get order(): number | undefined;
|
|
23
|
+
set order(value: number | undefined);
|
|
24
|
+
get sessionValue(): T | string;
|
|
25
|
+
set sessionValue(value: T | string);
|
|
26
|
+
get structure(): ShapeDiverResponseParameterStructure | undefined;
|
|
27
|
+
get tooltip(): string | undefined;
|
|
28
|
+
set tooltip(value: string | undefined);
|
|
29
|
+
get type(): PARAMETER_TYPE;
|
|
30
|
+
get value(): T | string;
|
|
31
|
+
set value(value: T | string);
|
|
32
|
+
get visualization(): PARAMETER_VISUALIZATION | undefined;
|
|
33
|
+
isValid(value: unknown, throwError?: boolean): boolean;
|
|
34
|
+
resetToDefaultValue(): void;
|
|
35
|
+
resetToSessionValue(): void;
|
|
36
|
+
stringify(): string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=ParameterApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParameterApi.d.ts","sourceRoot":"","sources":["../../src/implementation/ParameterApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAE7H,qBAAa,YAAY,CAAC,CAAC,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;;gBAWxC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IAQpC,IAAW,OAAO,IAAI,MAAM,EAAE,GAAG,SAAS,CAEzC;IAED,IAAW,aAAa,IAAI,MAAM,GAAG,SAAS,CAE7C;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,WAAW,IAAI,MAAM,GAAG,SAAS,CAE3C;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAK/C;IAED,IAAW,UAAU,IAAI,MAAM,GAAG,SAAS,CAE1C;IAED,IAAW,MAAM,IAAI,MAAM,EAAE,GAAG,SAAS,CAExC;IAED,IAAW,KAAK,IAAI,gCAAgC,GAAG,SAAS,CAE/D;IAED,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,OAAO,EAK/B;IAED,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,GAAG,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAW,GAAG,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,KAAK,IAAI,MAAM,GAAG,SAAS,CAErC;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,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