@shapediver/viewer.rendering-engine.intersection-restriction-engine 3.5.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 +3 -0
- package/dist/api/implementation/AbstractRestrictionApi.d.ts +10 -0
- package/dist/api/implementation/AbstractRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/AbstractRestrictionApi.js +38 -0
- package/dist/api/implementation/AbstractRestrictionApi.js.map +1 -0
- package/dist/api/implementation/AbstractSnapRestrictionApi.d.ts +13 -0
- package/dist/api/implementation/AbstractSnapRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/AbstractSnapRestrictionApi.js +47 -0
- package/dist/api/implementation/AbstractSnapRestrictionApi.js.map +1 -0
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.d.ts +7 -0
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.js +24 -0
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.js.map +1 -0
- package/dist/api/implementation/geometry/GeometryRestrictionApi.d.ts +15 -0
- package/dist/api/implementation/geometry/GeometryRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/geometry/GeometryRestrictionApi.js +54 -0
- package/dist/api/implementation/geometry/GeometryRestrictionApi.js.map +1 -0
- package/dist/api/implementation/line/LineRestrictionApi.d.ts +11 -0
- package/dist/api/implementation/line/LineRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/line/LineRestrictionApi.js +40 -0
- package/dist/api/implementation/line/LineRestrictionApi.js.map +1 -0
- package/dist/api/implementation/plane/PlaneRestrictionApi.d.ts +20 -0
- package/dist/api/implementation/plane/PlaneRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/plane/PlaneRestrictionApi.js +67 -0
- package/dist/api/implementation/plane/PlaneRestrictionApi.js.map +1 -0
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.d.ts +10 -0
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.js +40 -0
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.js.map +1 -0
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.d.ts +7 -0
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.js +24 -0
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.js.map +1 -0
- package/dist/api/implementation/plane/snap/GridRestrictionApi.d.ts +10 -0
- package/dist/api/implementation/plane/snap/GridRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/plane/snap/GridRestrictionApi.js +40 -0
- package/dist/api/implementation/plane/snap/GridRestrictionApi.js.map +1 -0
- package/dist/api/implementation/point/PointRestrictionApi.d.ts +10 -0
- package/dist/api/implementation/point/PointRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/point/PointRestrictionApi.js +37 -0
- package/dist/api/implementation/point/PointRestrictionApi.js.map +1 -0
- package/dist/api/interfaces/IRestrictionApi.d.ts +11 -0
- package/dist/api/interfaces/IRestrictionApi.d.ts.map +1 -0
- package/dist/api/interfaces/IRestrictionApi.js +3 -0
- package/dist/api/interfaces/IRestrictionApi.js.map +1 -0
- package/dist/api/interfaces/ISnapRestrictionApi.d.ts +13 -0
- package/dist/api/interfaces/ISnapRestrictionApi.d.ts.map +1 -0
- package/dist/api/interfaces/ISnapRestrictionApi.js +3 -0
- package/dist/api/interfaces/ISnapRestrictionApi.js.map +1 -0
- package/dist/implementation/EventManager.d.ts +26 -0
- package/dist/implementation/EventManager.d.ts.map +1 -0
- package/dist/implementation/EventManager.js +63 -0
- package/dist/implementation/EventManager.js.map +1 -0
- package/dist/implementation/GeometryMathManager.d.ts +82 -0
- package/dist/implementation/GeometryMathManager.d.ts.map +1 -0
- package/dist/implementation/GeometryMathManager.js +240 -0
- package/dist/implementation/GeometryMathManager.js.map +1 -0
- package/dist/implementation/RestrictionManager.d.ts +29 -0
- package/dist/implementation/RestrictionManager.d.ts.map +1 -0
- package/dist/implementation/RestrictionManager.js +220 -0
- package/dist/implementation/RestrictionManager.js.map +1 -0
- package/dist/implementation/restrictions/AbstractRestriction.d.ts +42 -0
- package/dist/implementation/restrictions/AbstractRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/AbstractRestriction.js +130 -0
- package/dist/implementation/restrictions/AbstractRestriction.js.map +1 -0
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts +32 -0
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/AbstractSnapRestriction.js +125 -0
- package/dist/implementation/restrictions/AbstractSnapRestriction.js.map +1 -0
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts +11 -0
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts.map +1 -0
- package/dist/implementation/restrictions/RestrictionsHelper.js +47 -0
- package/dist/implementation/restrictions/RestrictionsHelper.js.map +1 -0
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts +19 -0
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js +64 -0
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js.map +1 -0
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts +41 -0
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js +259 -0
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js.map +1 -0
- package/dist/implementation/restrictions/line/LineRestriction.d.ts +28 -0
- package/dist/implementation/restrictions/line/LineRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/line/LineRestriction.js +104 -0
- package/dist/implementation/restrictions/line/LineRestriction.js.map +1 -0
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts +68 -0
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/plane/PlaneRestriction.js +259 -0
- package/dist/implementation/restrictions/plane/PlaneRestriction.js.map +1 -0
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts +41 -0
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js +321 -0
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js.map +1 -0
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts +28 -0
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js +172 -0
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js.map +1 -0
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts +40 -0
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js +211 -0
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js.map +1 -0
- package/dist/implementation/restrictions/point/PointRestriction.d.ts +25 -0
- package/dist/implementation/restrictions/point/PointRestriction.d.ts.map +1 -0
- package/dist/implementation/restrictions/point/PointRestriction.js +78 -0
- package/dist/implementation/restrictions/point/PointRestriction.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/IDragAnchor.d.ts +9 -0
- package/dist/interfaces/IDragAnchor.d.ts.map +1 -0
- package/dist/interfaces/IDragAnchor.js +3 -0
- package/dist/interfaces/IDragAnchor.js.map +1 -0
- package/dist/interfaces/IRestriction.d.ts +89 -0
- package/dist/interfaces/IRestriction.d.ts.map +1 -0
- package/dist/interfaces/IRestriction.js +25 -0
- package/dist/interfaces/IRestriction.js.map +1 -0
- package/dist/interfaces/IRestrictionManager.d.ts +14 -0
- package/dist/interfaces/IRestrictionManager.d.ts.map +1 -0
- package/dist/interfaces/IRestrictionManager.js +3 -0
- package/dist/interfaces/IRestrictionManager.js.map +1 -0
- package/dist/interfaces/ISnapRestriction.d.ts +67 -0
- package/dist/interfaces/ISnapRestriction.d.ts.map +1 -0
- package/dist/interfaces/ISnapRestriction.js +4 -0
- package/dist/interfaces/ISnapRestriction.js.map +1 -0
- package/dist/interfaces/IVisualizationSettings.d.ts +33 -0
- package/dist/interfaces/IVisualizationSettings.d.ts.map +1 -0
- package/dist/interfaces/IVisualizationSettings.js +3 -0
- package/dist/interfaces/IVisualizationSettings.js.map +1 -0
- package/package.json +54 -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,10 @@
|
|
|
1
|
+
import { IRestriction } from '../../interfaces/IRestriction';
|
|
2
|
+
import { IRestrictionApi } from '../interfaces/IRestrictionApi';
|
|
3
|
+
export declare abstract class AbstractRestrictionApi implements IRestrictionApi {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(restriction: IRestriction);
|
|
6
|
+
get enabled(): boolean;
|
|
7
|
+
set enabled(value: boolean);
|
|
8
|
+
get id(): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AbstractRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/implementation/AbstractRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,8BAAsB,sBAAuB,YAAW,eAAe;;gBASvD,WAAW,EAAE,YAAY;IAQrC,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,OAAO,EAEhC;IAED,IAAW,EAAE,IAAI,MAAM,CAEtB;CAGJ"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 _AbstractRestrictionApi_restriction;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AbstractRestrictionApi = void 0;
|
|
16
|
+
class AbstractRestrictionApi {
|
|
17
|
+
// #endregion Properties (1)
|
|
18
|
+
// #region Constructors (1)
|
|
19
|
+
constructor(restriction) {
|
|
20
|
+
// #region Properties (1)
|
|
21
|
+
_AbstractRestrictionApi_restriction.set(this, void 0);
|
|
22
|
+
__classPrivateFieldSet(this, _AbstractRestrictionApi_restriction, restriction, "f");
|
|
23
|
+
}
|
|
24
|
+
// #endregion Constructors (1)
|
|
25
|
+
// #region Public Getters And Setters (3)
|
|
26
|
+
get enabled() {
|
|
27
|
+
return __classPrivateFieldGet(this, _AbstractRestrictionApi_restriction, "f").enabled;
|
|
28
|
+
}
|
|
29
|
+
set enabled(value) {
|
|
30
|
+
__classPrivateFieldGet(this, _AbstractRestrictionApi_restriction, "f").enabled = value;
|
|
31
|
+
}
|
|
32
|
+
get id() {
|
|
33
|
+
return __classPrivateFieldGet(this, _AbstractRestrictionApi_restriction, "f").id;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AbstractRestrictionApi = AbstractRestrictionApi;
|
|
37
|
+
_AbstractRestrictionApi_restriction = new WeakMap();
|
|
38
|
+
//# sourceMappingURL=AbstractRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractRestrictionApi.js","sourceRoot":"","sources":["../../../src/api/implementation/AbstractRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,MAAsB,sBAAsB;IAKxC,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB;QARrC,yBAAyB;QAEzB,sDAAoC;QAOhC,uBAAA,IAAI,uCAAgB,WAAW,MAAA,CAAC;IACpC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,OAAO;QACd,OAAO,uBAAA,IAAI,2CAAa,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,IAAW,OAAO,CAAC,KAAc;QAC7B,uBAAA,IAAI,2CAAa,CAAC,OAAO,GAAG,KAAK,CAAC;IACtC,CAAC;IAED,IAAW,EAAE;QACT,OAAO,uBAAA,IAAI,2CAAa,CAAC,EAAE,CAAC;IAChC,CAAC;CAGJ;AA9BD,wDA8BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISnapRestriction } from '../../interfaces/ISnapRestriction';
|
|
2
|
+
import { ISnapRestrictionApi } from '../interfaces/ISnapRestrictionApi';
|
|
3
|
+
export declare abstract class AbstractSnapRestrictionApi implements ISnapRestrictionApi {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(restriction: ISnapRestriction);
|
|
6
|
+
get enabled(): boolean;
|
|
7
|
+
set enabled(value: boolean);
|
|
8
|
+
get enabledEditable(): boolean;
|
|
9
|
+
get id(): string;
|
|
10
|
+
get priority(): number;
|
|
11
|
+
set priority(value: number);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=AbstractSnapRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractSnapRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/implementation/AbstractSnapRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,8BAAsB,0BAA2B,YAAW,mBAAmB;;gBAS/D,WAAW,EAAE,gBAAgB;IAQzC,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,OAAO,EAEhC;IAED,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEhC;CAGJ"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 _AbstractSnapRestrictionApi_restriction;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AbstractSnapRestrictionApi = void 0;
|
|
16
|
+
class AbstractSnapRestrictionApi {
|
|
17
|
+
// #endregion Properties (1)
|
|
18
|
+
// #region Constructors (1)
|
|
19
|
+
constructor(restriction) {
|
|
20
|
+
// #region Properties (1)
|
|
21
|
+
_AbstractSnapRestrictionApi_restriction.set(this, void 0);
|
|
22
|
+
__classPrivateFieldSet(this, _AbstractSnapRestrictionApi_restriction, restriction, "f");
|
|
23
|
+
}
|
|
24
|
+
// #endregion Constructors (1)
|
|
25
|
+
// #region Public Getters And Setters (6)
|
|
26
|
+
get enabled() {
|
|
27
|
+
return __classPrivateFieldGet(this, _AbstractSnapRestrictionApi_restriction, "f").enabled;
|
|
28
|
+
}
|
|
29
|
+
set enabled(value) {
|
|
30
|
+
__classPrivateFieldGet(this, _AbstractSnapRestrictionApi_restriction, "f").enabled = value;
|
|
31
|
+
}
|
|
32
|
+
get enabledEditable() {
|
|
33
|
+
return __classPrivateFieldGet(this, _AbstractSnapRestrictionApi_restriction, "f").enabledEditable;
|
|
34
|
+
}
|
|
35
|
+
get id() {
|
|
36
|
+
return __classPrivateFieldGet(this, _AbstractSnapRestrictionApi_restriction, "f").id;
|
|
37
|
+
}
|
|
38
|
+
get priority() {
|
|
39
|
+
return __classPrivateFieldGet(this, _AbstractSnapRestrictionApi_restriction, "f").priority;
|
|
40
|
+
}
|
|
41
|
+
set priority(value) {
|
|
42
|
+
__classPrivateFieldGet(this, _AbstractSnapRestrictionApi_restriction, "f").priority = value;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.AbstractSnapRestrictionApi = AbstractSnapRestrictionApi;
|
|
46
|
+
_AbstractSnapRestrictionApi_restriction = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=AbstractSnapRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractSnapRestrictionApi.js","sourceRoot":"","sources":["../../../src/api/implementation/AbstractSnapRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,MAAsB,0BAA0B;IAK5C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA6B;QARzC,yBAAyB;QAEzB,0DAAwC;QAOpC,uBAAA,IAAI,2CAAgB,WAAW,MAAA,CAAC;IACpC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,OAAO;QACd,OAAO,uBAAA,IAAI,+CAAa,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,IAAW,OAAO,CAAC,KAAc;QAC7B,uBAAA,IAAI,+CAAa,CAAC,OAAO,GAAG,KAAK,CAAC;IACtC,CAAC;IAED,IAAW,eAAe;QACtB,OAAO,uBAAA,IAAI,+CAAa,CAAC,eAAe,CAAC;IAC7C,CAAC;IAED,IAAW,EAAE;QACT,OAAO,uBAAA,IAAI,+CAAa,CAAC,EAAE,CAAC;IAChC,CAAC;IAED,IAAW,QAAQ;QACf,OAAO,uBAAA,IAAI,+CAAa,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED,IAAW,QAAQ,CAAC,KAAa;QAC7B,uBAAA,IAAI,+CAAa,CAAC,QAAQ,GAAG,KAAK,CAAC;IACvC,CAAC;CAGJ;AA1CD,gEA0CC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbstractRestrictionApi } from '../AbstractRestrictionApi';
|
|
2
|
+
import { CameraPlaneRestriction } from '../../../implementation/restrictions/camera_plane/CameraPlaneRestriction';
|
|
3
|
+
export declare class CameraPlaneRestrictionApi extends AbstractRestrictionApi {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(restriction: CameraPlaneRestriction);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CameraPlaneRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraPlaneRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/camera_plane/CameraPlaneRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0EAA0E,CAAC;AAElH,qBAAa,yBAA0B,SAAQ,sBAAsB;;gBASrD,WAAW,EAAE,sBAAsB;CAMlD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 _CameraPlaneRestrictionApi_cameraPlaneRestriction;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.CameraPlaneRestrictionApi = void 0;
|
|
11
|
+
const AbstractRestrictionApi_1 = require("../AbstractRestrictionApi");
|
|
12
|
+
class CameraPlaneRestrictionApi extends AbstractRestrictionApi_1.AbstractRestrictionApi {
|
|
13
|
+
// #endregion Properties (1)
|
|
14
|
+
// #region Constructors (1)
|
|
15
|
+
constructor(restriction) {
|
|
16
|
+
super(restriction);
|
|
17
|
+
// #region Properties (1)
|
|
18
|
+
_CameraPlaneRestrictionApi_cameraPlaneRestriction.set(this, void 0);
|
|
19
|
+
__classPrivateFieldSet(this, _CameraPlaneRestrictionApi_cameraPlaneRestriction, restriction, "f");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CameraPlaneRestrictionApi = CameraPlaneRestrictionApi;
|
|
23
|
+
_CameraPlaneRestrictionApi_cameraPlaneRestriction = new WeakMap();
|
|
24
|
+
//# sourceMappingURL=CameraPlaneRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraPlaneRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/camera_plane/CameraPlaneRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,sEAAmE;AAGnE,MAAa,yBAA0B,SAAQ,+CAAsB;IAKjE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAmC;QAC3C,KAAK,CAAC,WAAW,CAAC,CAAC;QATvB,yBAAyB;QAEzB,oEAAyD;QAQrD,uBAAA,IAAI,qDAA2B,WAAW,MAAA,CAAC;IAC/C,CAAC;CAGJ;AAfD,8DAeC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AbstractRestrictionApi } from '../AbstractRestrictionApi';
|
|
2
|
+
import { GeometryRestriction } from '../../../implementation/restrictions/geometry/GeometryRestriction';
|
|
3
|
+
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
4
|
+
export declare class GeometryRestrictionApi extends AbstractRestrictionApi {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(restriction: GeometryRestriction);
|
|
7
|
+
get snapToEdges(): boolean;
|
|
8
|
+
set snapToEdges(value: boolean);
|
|
9
|
+
get snapToFaces(): boolean;
|
|
10
|
+
set snapToFaces(value: boolean);
|
|
11
|
+
get snapToVertices(): boolean;
|
|
12
|
+
set snapToVertices(value: boolean);
|
|
13
|
+
updateNodes(nodes: ITreeNode[]): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=GeometryRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeometryRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/geometry/GeometryRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACxG,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAEhE,qBAAa,sBAAuB,SAAQ,sBAAsB;;gBASlD,WAAW,EAAE,mBAAmB;IAS5C,IAAW,WAAW,IAAI,OAAO,CAEhC;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,OAAO,EAEpC;IAED,IAAW,WAAW,IAAI,OAAO,CAEhC;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,OAAO,EAEpC;IAED,IAAW,cAAc,IAAI,OAAO,CAEnC;IAED,IAAW,cAAc,CAAC,KAAK,EAAE,OAAO,EAEvC;IAMM,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI;CAK/C"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 _GeometryRestrictionApi_geometryRestriction;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GeometryRestrictionApi = void 0;
|
|
16
|
+
const AbstractRestrictionApi_1 = require("../AbstractRestrictionApi");
|
|
17
|
+
class GeometryRestrictionApi extends AbstractRestrictionApi_1.AbstractRestrictionApi {
|
|
18
|
+
// #endregion Properties (1)
|
|
19
|
+
// #region Constructors (1)
|
|
20
|
+
constructor(restriction) {
|
|
21
|
+
super(restriction);
|
|
22
|
+
// #region Properties (1)
|
|
23
|
+
_GeometryRestrictionApi_geometryRestriction.set(this, void 0);
|
|
24
|
+
__classPrivateFieldSet(this, _GeometryRestrictionApi_geometryRestriction, restriction, "f");
|
|
25
|
+
}
|
|
26
|
+
// #endregion Constructors (1)
|
|
27
|
+
// #region Public Getters And Setters (6)
|
|
28
|
+
get snapToEdges() {
|
|
29
|
+
return __classPrivateFieldGet(this, _GeometryRestrictionApi_geometryRestriction, "f").snapToEdges;
|
|
30
|
+
}
|
|
31
|
+
set snapToEdges(value) {
|
|
32
|
+
__classPrivateFieldGet(this, _GeometryRestrictionApi_geometryRestriction, "f").snapToEdges = value;
|
|
33
|
+
}
|
|
34
|
+
get snapToFaces() {
|
|
35
|
+
return __classPrivateFieldGet(this, _GeometryRestrictionApi_geometryRestriction, "f").snapToFaces;
|
|
36
|
+
}
|
|
37
|
+
set snapToFaces(value) {
|
|
38
|
+
__classPrivateFieldGet(this, _GeometryRestrictionApi_geometryRestriction, "f").snapToFaces = value;
|
|
39
|
+
}
|
|
40
|
+
get snapToVertices() {
|
|
41
|
+
return __classPrivateFieldGet(this, _GeometryRestrictionApi_geometryRestriction, "f").snapToVertices;
|
|
42
|
+
}
|
|
43
|
+
set snapToVertices(value) {
|
|
44
|
+
__classPrivateFieldGet(this, _GeometryRestrictionApi_geometryRestriction, "f").snapToVertices = value;
|
|
45
|
+
}
|
|
46
|
+
// #endregion Public Getters And Setters (6)
|
|
47
|
+
// #region Public Methods (1)
|
|
48
|
+
updateNodes(nodes) {
|
|
49
|
+
__classPrivateFieldGet(this, _GeometryRestrictionApi_geometryRestriction, "f").updateNodes(nodes);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.GeometryRestrictionApi = GeometryRestrictionApi;
|
|
53
|
+
_GeometryRestrictionApi_geometryRestriction = new WeakMap();
|
|
54
|
+
//# sourceMappingURL=GeometryRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeometryRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/geometry/GeometryRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sEAAmE;AAInE,MAAa,sBAAuB,SAAQ,+CAAsB;IAK9D,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAgC;QACxC,KAAK,CAAC,WAAW,CAAC,CAAC;QATvB,yBAAyB;QAEzB,8DAAmD;QAQ/C,uBAAA,IAAI,+CAAwB,WAAW,MAAA,CAAC;IAC5C,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,WAAW;QAClB,OAAO,uBAAA,IAAI,mDAAqB,CAAC,WAAW,CAAC;IACjD,CAAC;IAED,IAAW,WAAW,CAAC,KAAc;QACjC,uBAAA,IAAI,mDAAqB,CAAC,WAAW,GAAG,KAAK,CAAC;IAClD,CAAC;IAED,IAAW,WAAW;QAClB,OAAO,uBAAA,IAAI,mDAAqB,CAAC,WAAW,CAAC;IACjD,CAAC;IAED,IAAW,WAAW,CAAC,KAAc;QACjC,uBAAA,IAAI,mDAAqB,CAAC,WAAW,GAAG,KAAK,CAAC;IAClD,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,uBAAA,IAAI,mDAAqB,CAAC,cAAc,CAAC;IACpD,CAAC;IAED,IAAW,cAAc,CAAC,KAAc;QACpC,uBAAA,IAAI,mDAAqB,CAAC,cAAc,GAAG,KAAK,CAAC;IACrD,CAAC;IAED,4CAA4C;IAE5C,6BAA6B;IAEtB,WAAW,CAAC,KAAkB;QACjC,uBAAA,IAAI,mDAAqB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;CAGJ;AAnDD,wDAmDC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractRestrictionApi } from '../AbstractRestrictionApi';
|
|
2
|
+
import { LineRestriction } from '../../../implementation/restrictions/line/LineRestriction';
|
|
3
|
+
import { vec3 } from 'gl-matrix';
|
|
4
|
+
export declare class LineRestrictionApi extends AbstractRestrictionApi {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(restriction: LineRestriction);
|
|
7
|
+
get point1(): vec3;
|
|
8
|
+
get point2(): vec3;
|
|
9
|
+
get radius(): number;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=LineRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/line/LineRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,qBAAa,kBAAmB,SAAQ,sBAAsB;;gBAS9C,WAAW,EAAE,eAAe;IASxC,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;CAGJ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 _LineRestrictionApi_lineRestriction;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.LineRestrictionApi = void 0;
|
|
16
|
+
const AbstractRestrictionApi_1 = require("../AbstractRestrictionApi");
|
|
17
|
+
class LineRestrictionApi extends AbstractRestrictionApi_1.AbstractRestrictionApi {
|
|
18
|
+
// #endregion Properties (1)
|
|
19
|
+
// #region Constructors (1)
|
|
20
|
+
constructor(restriction) {
|
|
21
|
+
super(restriction);
|
|
22
|
+
// #region Properties (1)
|
|
23
|
+
_LineRestrictionApi_lineRestriction.set(this, void 0);
|
|
24
|
+
__classPrivateFieldSet(this, _LineRestrictionApi_lineRestriction, restriction, "f");
|
|
25
|
+
}
|
|
26
|
+
// #endregion Constructors (1)
|
|
27
|
+
// #region Public Getters And Setters (3)
|
|
28
|
+
get point1() {
|
|
29
|
+
return __classPrivateFieldGet(this, _LineRestrictionApi_lineRestriction, "f").point1;
|
|
30
|
+
}
|
|
31
|
+
get point2() {
|
|
32
|
+
return __classPrivateFieldGet(this, _LineRestrictionApi_lineRestriction, "f").point2;
|
|
33
|
+
}
|
|
34
|
+
get radius() {
|
|
35
|
+
return __classPrivateFieldGet(this, _LineRestrictionApi_lineRestriction, "f").radius;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.LineRestrictionApi = LineRestrictionApi;
|
|
39
|
+
_LineRestrictionApi_lineRestriction = new WeakMap();
|
|
40
|
+
//# sourceMappingURL=LineRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/line/LineRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sEAAmE;AAInE,MAAa,kBAAmB,SAAQ,+CAAsB;IAK1D,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA4B;QACpC,KAAK,CAAC,WAAW,CAAC,CAAC;QATvB,yBAAyB;QAEzB,sDAA2C;QAQvC,uBAAA,IAAI,uCAAoB,WAAW,MAAA,CAAC;IACxC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,MAAM;QACb,OAAO,uBAAA,IAAI,2CAAiB,CAAC,MAAM,CAAC;IACxC,CAAC;IAED,IAAW,MAAM;QACb,OAAO,uBAAA,IAAI,2CAAiB,CAAC,MAAM,CAAC;IACxC,CAAC;IAED,IAAW,MAAM;QACb,OAAO,uBAAA,IAAI,2CAAiB,CAAC,MAAM,CAAC;IACxC,CAAC;CAGJ;AA/BD,gDA+BC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractRestrictionApi } from '../AbstractRestrictionApi';
|
|
2
|
+
import { AngularRestrictionApi } from './snap/AngularRestrictionApi';
|
|
3
|
+
import { AxisRestrictionApi } from './snap/AxisRestrictionApi';
|
|
4
|
+
import { GridRestrictionApi } from './snap/GridRestrictionApi';
|
|
5
|
+
import { PlaneRestriction } from '../../../implementation/restrictions/plane/PlaneRestriction';
|
|
6
|
+
import { vec3 } from 'gl-matrix';
|
|
7
|
+
export declare class PlaneRestrictionApi extends AbstractRestrictionApi {
|
|
8
|
+
#private;
|
|
9
|
+
constructor(restriction: PlaneRestriction);
|
|
10
|
+
get angularRestrictionApi(): AngularRestrictionApi;
|
|
11
|
+
get axisRestrictionApi(): AxisRestrictionApi;
|
|
12
|
+
get gridRestrictionApi(): GridRestrictionApi;
|
|
13
|
+
get origin(): vec3;
|
|
14
|
+
set origin(value: vec3);
|
|
15
|
+
get vectorU(): vec3;
|
|
16
|
+
set vectorU(value: vec3);
|
|
17
|
+
get vectorV(): vec3;
|
|
18
|
+
set vectorV(value: vec3);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=PlaneRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaneRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/plane/PlaneRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,qBAAa,mBAAoB,SAAQ,sBAAsB;;gBAY/C,WAAW,EAAE,gBAAgB;IAazC,IAAW,qBAAqB,IAAI,qBAAqB,CAExD;IAED,IAAW,kBAAkB,IAAI,kBAAkB,CAElD;IAED,IAAW,kBAAkB,IAAI,kBAAkB,CAElD;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,IAAI,EAE5B;IAED,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,IAAI,EAE7B;IAED,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,IAAI,EAE7B;CAGJ"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 _PlaneRestrictionApi_angularRestrictionApi, _PlaneRestrictionApi_axisRestrictionApi, _PlaneRestrictionApi_gridRestrictionApi, _PlaneRestrictionApi_planeRestriction;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PlaneRestrictionApi = void 0;
|
|
16
|
+
const AbstractRestrictionApi_1 = require("../AbstractRestrictionApi");
|
|
17
|
+
const AngularRestrictionApi_1 = require("./snap/AngularRestrictionApi");
|
|
18
|
+
const AxisRestrictionApi_1 = require("./snap/AxisRestrictionApi");
|
|
19
|
+
const GridRestrictionApi_1 = require("./snap/GridRestrictionApi");
|
|
20
|
+
class PlaneRestrictionApi extends AbstractRestrictionApi_1.AbstractRestrictionApi {
|
|
21
|
+
// #endregion Properties (4)
|
|
22
|
+
// #region Constructors (1)
|
|
23
|
+
constructor(restriction) {
|
|
24
|
+
super(restriction);
|
|
25
|
+
// #region Properties (4)
|
|
26
|
+
_PlaneRestrictionApi_angularRestrictionApi.set(this, void 0);
|
|
27
|
+
_PlaneRestrictionApi_axisRestrictionApi.set(this, void 0);
|
|
28
|
+
_PlaneRestrictionApi_gridRestrictionApi.set(this, void 0);
|
|
29
|
+
_PlaneRestrictionApi_planeRestriction.set(this, void 0);
|
|
30
|
+
__classPrivateFieldSet(this, _PlaneRestrictionApi_planeRestriction, restriction, "f");
|
|
31
|
+
__classPrivateFieldSet(this, _PlaneRestrictionApi_gridRestrictionApi, new GridRestrictionApi_1.GridRestrictionApi(restriction.gridRestriction), "f");
|
|
32
|
+
__classPrivateFieldSet(this, _PlaneRestrictionApi_angularRestrictionApi, new AngularRestrictionApi_1.AngularRestrictionApi(restriction.angularRestriction), "f");
|
|
33
|
+
__classPrivateFieldSet(this, _PlaneRestrictionApi_axisRestrictionApi, new AxisRestrictionApi_1.AxisRestrictionApi(restriction.axisRestriction), "f");
|
|
34
|
+
}
|
|
35
|
+
// #endregion Constructors (1)
|
|
36
|
+
// #region Public Getters And Setters (9)
|
|
37
|
+
get angularRestrictionApi() {
|
|
38
|
+
return __classPrivateFieldGet(this, _PlaneRestrictionApi_angularRestrictionApi, "f");
|
|
39
|
+
}
|
|
40
|
+
get axisRestrictionApi() {
|
|
41
|
+
return __classPrivateFieldGet(this, _PlaneRestrictionApi_axisRestrictionApi, "f");
|
|
42
|
+
}
|
|
43
|
+
get gridRestrictionApi() {
|
|
44
|
+
return __classPrivateFieldGet(this, _PlaneRestrictionApi_gridRestrictionApi, "f");
|
|
45
|
+
}
|
|
46
|
+
get origin() {
|
|
47
|
+
return __classPrivateFieldGet(this, _PlaneRestrictionApi_planeRestriction, "f").origin;
|
|
48
|
+
}
|
|
49
|
+
set origin(value) {
|
|
50
|
+
__classPrivateFieldGet(this, _PlaneRestrictionApi_planeRestriction, "f").origin = value;
|
|
51
|
+
}
|
|
52
|
+
get vectorU() {
|
|
53
|
+
return __classPrivateFieldGet(this, _PlaneRestrictionApi_planeRestriction, "f").vectorU;
|
|
54
|
+
}
|
|
55
|
+
set vectorU(value) {
|
|
56
|
+
__classPrivateFieldGet(this, _PlaneRestrictionApi_planeRestriction, "f").vectorU = value;
|
|
57
|
+
}
|
|
58
|
+
get vectorV() {
|
|
59
|
+
return __classPrivateFieldGet(this, _PlaneRestrictionApi_planeRestriction, "f").vectorV;
|
|
60
|
+
}
|
|
61
|
+
set vectorV(value) {
|
|
62
|
+
__classPrivateFieldGet(this, _PlaneRestrictionApi_planeRestriction, "f").vectorV = value;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.PlaneRestrictionApi = PlaneRestrictionApi;
|
|
66
|
+
_PlaneRestrictionApi_angularRestrictionApi = new WeakMap(), _PlaneRestrictionApi_axisRestrictionApi = new WeakMap(), _PlaneRestrictionApi_gridRestrictionApi = new WeakMap(), _PlaneRestrictionApi_planeRestriction = new WeakMap();
|
|
67
|
+
//# sourceMappingURL=PlaneRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaneRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/plane/PlaneRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sEAAmE;AACnE,wEAAqE;AACrE,kEAA+D;AAC/D,kEAA+D;AAI/D,MAAa,mBAAoB,SAAQ,+CAAsB;IAQ3D,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA6B;QACrC,KAAK,CAAC,WAAW,CAAC,CAAC;QAZvB,yBAAyB;QAEzB,6DAAuD;QACvD,0DAAiD;QACjD,0DAAiD;QACjD,wDAA6C;QAQzC,uBAAA,IAAI,yCAAqB,WAAW,MAAA,CAAC;QAErC,uBAAA,IAAI,2CAAuB,IAAI,uCAAkB,CAAC,WAAW,CAAC,eAAe,CAAC,MAAA,CAAC;QAC/E,uBAAA,IAAI,8CAA0B,IAAI,6CAAqB,CAAC,WAAW,CAAC,kBAAkB,CAAC,MAAA,CAAC;QACxF,uBAAA,IAAI,2CAAuB,IAAI,uCAAkB,CAAC,WAAW,CAAC,eAAe,CAAC,MAAA,CAAC;IACnF,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,qBAAqB;QAC5B,OAAO,uBAAA,IAAI,kDAAuB,CAAC;IACvC,CAAC;IAED,IAAW,kBAAkB;QACzB,OAAO,uBAAA,IAAI,+CAAoB,CAAC;IACpC,CAAC;IAED,IAAW,kBAAkB;QACzB,OAAO,uBAAA,IAAI,+CAAoB,CAAC;IACpC,CAAC;IAED,IAAW,MAAM;QACb,OAAO,uBAAA,IAAI,6CAAkB,CAAC,MAAM,CAAC;IACzC,CAAC;IAED,IAAW,MAAM,CAAC,KAAW;QACzB,uBAAA,IAAI,6CAAkB,CAAC,MAAM,GAAG,KAAK,CAAC;IAC1C,CAAC;IAED,IAAW,OAAO;QACd,OAAO,uBAAA,IAAI,6CAAkB,CAAC,OAAO,CAAC;IAC1C,CAAC;IAED,IAAW,OAAO,CAAC,KAAW;QAC1B,uBAAA,IAAI,6CAAkB,CAAC,OAAO,GAAG,KAAK,CAAC;IAC3C,CAAC;IAED,IAAW,OAAO;QACd,OAAO,uBAAA,IAAI,6CAAkB,CAAC,OAAO,CAAC;IAC1C,CAAC;IAED,IAAW,OAAO,CAAC,KAAW;QAC1B,uBAAA,IAAI,6CAAkB,CAAC,OAAO,GAAG,KAAK,CAAC;IAC3C,CAAC;CAGJ;AA9DD,kDA8DC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractSnapRestrictionApi } from '../../AbstractSnapRestrictionApi';
|
|
2
|
+
import { AngularRestriction } from '../../../../implementation/restrictions/plane/snap/AngularRestriction';
|
|
3
|
+
export declare class AngularRestrictionApi extends AbstractSnapRestrictionApi {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(restriction: AngularRestriction);
|
|
6
|
+
get angleStep(): number;
|
|
7
|
+
set angleStep(value: number);
|
|
8
|
+
get angleStepEditable(): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AngularRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AngularRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AngularRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uEAAuE,CAAC;AAE3G,qBAAa,qBAAsB,SAAQ,0BAA0B;;gBASrD,WAAW,EAAE,kBAAkB;IAS3C,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED,IAAW,iBAAiB,IAAI,OAAO,CAEtC;CAGJ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 _AngularRestrictionApi_angularRestriction;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AngularRestrictionApi = void 0;
|
|
16
|
+
const AbstractSnapRestrictionApi_1 = require("../../AbstractSnapRestrictionApi");
|
|
17
|
+
class AngularRestrictionApi extends AbstractSnapRestrictionApi_1.AbstractSnapRestrictionApi {
|
|
18
|
+
// #endregion Properties (1)
|
|
19
|
+
// #region Constructors (1)
|
|
20
|
+
constructor(restriction) {
|
|
21
|
+
super(restriction);
|
|
22
|
+
// #region Properties (1)
|
|
23
|
+
_AngularRestrictionApi_angularRestriction.set(this, void 0);
|
|
24
|
+
__classPrivateFieldSet(this, _AngularRestrictionApi_angularRestriction, restriction, "f");
|
|
25
|
+
}
|
|
26
|
+
// #endregion Constructors (1)
|
|
27
|
+
// #region Public Getters And Setters (3)
|
|
28
|
+
get angleStep() {
|
|
29
|
+
return __classPrivateFieldGet(this, _AngularRestrictionApi_angularRestriction, "f").angleStep;
|
|
30
|
+
}
|
|
31
|
+
set angleStep(value) {
|
|
32
|
+
__classPrivateFieldGet(this, _AngularRestrictionApi_angularRestriction, "f").angleStep = value;
|
|
33
|
+
}
|
|
34
|
+
get angleStepEditable() {
|
|
35
|
+
return __classPrivateFieldGet(this, _AngularRestrictionApi_angularRestriction, "f").angleStepEditable;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.AngularRestrictionApi = AngularRestrictionApi;
|
|
39
|
+
_AngularRestrictionApi_angularRestriction = new WeakMap();
|
|
40
|
+
//# sourceMappingURL=AngularRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AngularRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AngularRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iFAA8E;AAG9E,MAAa,qBAAsB,SAAQ,uDAA0B;IAKjE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA+B;QACvC,KAAK,CAAC,WAAW,CAAC,CAAC;QATvB,yBAAyB;QAEzB,4DAAiD;QAQ7C,uBAAA,IAAI,6CAAuB,WAAW,MAAA,CAAC;IAC3C,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,SAAS;QAChB,OAAO,uBAAA,IAAI,iDAAoB,CAAC,SAAS,CAAC;IAC9C,CAAC;IAED,IAAW,SAAS,CAAC,KAAa;QAC9B,uBAAA,IAAI,iDAAoB,CAAC,SAAS,GAAG,KAAK,CAAC;IAC/C,CAAC;IAED,IAAW,iBAAiB;QACxB,OAAO,uBAAA,IAAI,iDAAoB,CAAC,iBAAiB,CAAC;IACtD,CAAC;CAGJ;AA/BD,sDA+BC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbstractSnapRestrictionApi } from '../../AbstractSnapRestrictionApi';
|
|
2
|
+
import { AxisRestriction } from '../../../../implementation/restrictions/plane/snap/AxisRestriction';
|
|
3
|
+
export declare class AxisRestrictionApi extends AbstractSnapRestrictionApi {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(restriction: AxisRestriction);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=AxisRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxisRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AxisRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AAErG,qBAAa,kBAAmB,SAAQ,0BAA0B;;gBASlD,WAAW,EAAE,eAAe;CAM3C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 _AxisRestrictionApi_axisRestriction;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AxisRestrictionApi = void 0;
|
|
11
|
+
const AbstractSnapRestrictionApi_1 = require("../../AbstractSnapRestrictionApi");
|
|
12
|
+
class AxisRestrictionApi extends AbstractSnapRestrictionApi_1.AbstractSnapRestrictionApi {
|
|
13
|
+
// #endregion Properties (1)
|
|
14
|
+
// #region Constructors (1)
|
|
15
|
+
constructor(restriction) {
|
|
16
|
+
super(restriction);
|
|
17
|
+
// #region Properties (1)
|
|
18
|
+
_AxisRestrictionApi_axisRestriction.set(this, void 0);
|
|
19
|
+
__classPrivateFieldSet(this, _AxisRestrictionApi_axisRestriction, restriction, "f");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AxisRestrictionApi = AxisRestrictionApi;
|
|
23
|
+
_AxisRestrictionApi_axisRestriction = new WeakMap();
|
|
24
|
+
//# sourceMappingURL=AxisRestrictionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxisRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AxisRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,iFAA8E;AAG9E,MAAa,kBAAmB,SAAQ,uDAA0B;IAK9D,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA4B;QACpC,KAAK,CAAC,WAAW,CAAC,CAAC;QATvB,yBAAyB;QAEzB,sDAA2C;QAQvC,uBAAA,IAAI,uCAAoB,WAAW,MAAA,CAAC;IACxC,CAAC;CAGJ;AAfD,gDAeC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractSnapRestrictionApi } from '../../AbstractSnapRestrictionApi';
|
|
2
|
+
import { GridRestriction } from '../../../../implementation/restrictions/plane/snap/GridRestriction';
|
|
3
|
+
export declare class GridRestrictionApi extends AbstractSnapRestrictionApi {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(restriction: GridRestriction);
|
|
6
|
+
get gridUnit(): number;
|
|
7
|
+
set gridUnit(value: number);
|
|
8
|
+
get gridUnitEditable(): boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GridRestrictionApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/GridRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAC;AAErG,qBAAa,kBAAmB,SAAQ,0BAA0B;;gBASlD,WAAW,EAAE,eAAe;IASxC,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED,IAAW,gBAAgB,IAAI,OAAO,CAErC;CAGJ"}
|