@shapediver/viewer.rendering-engine.intersection-restriction-engine 3.16.7 → 3.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/implementation/AbstractRestrictionApi.d.ts +12 -12
- package/dist/api/implementation/AbstractRestrictionApi.js +46 -46
- package/dist/api/implementation/AbstractRestrictionApi.js.map +1 -1
- package/dist/api/implementation/AbstractSnapRestrictionApi.d.ts +12 -12
- package/dist/api/implementation/AbstractSnapRestrictionApi.js +46 -46
- package/dist/api/implementation/AbstractSnapRestrictionApi.js.map +1 -1
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.d.ts +6 -6
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.js +23 -23
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.js.map +1 -1
- package/dist/api/implementation/geometry/GeometryRestrictionApi.d.ts +14 -14
- package/dist/api/implementation/geometry/GeometryRestrictionApi.js +53 -53
- package/dist/api/implementation/geometry/GeometryRestrictionApi.js.map +1 -1
- package/dist/api/implementation/line/LineRestrictionApi.d.ts +10 -10
- package/dist/api/implementation/line/LineRestrictionApi.js +39 -39
- package/dist/api/implementation/line/LineRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/PlaneRestrictionApi.d.ts +19 -19
- package/dist/api/implementation/plane/PlaneRestrictionApi.js +66 -66
- package/dist/api/implementation/plane/PlaneRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.d.ts +9 -9
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.js +39 -39
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.d.ts +6 -6
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.js +23 -23
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/GridRestrictionApi.d.ts +9 -9
- package/dist/api/implementation/plane/snap/GridRestrictionApi.js +39 -39
- package/dist/api/implementation/plane/snap/GridRestrictionApi.js.map +1 -1
- package/dist/api/implementation/point/PointRestrictionApi.d.ts +9 -9
- package/dist/api/implementation/point/PointRestrictionApi.js +36 -36
- package/dist/api/implementation/point/PointRestrictionApi.js.map +1 -1
- package/dist/api/interfaces/IRestrictionApi.d.ts +10 -10
- package/dist/api/interfaces/IRestrictionApi.js +2 -2
- package/dist/api/interfaces/ISnapRestrictionApi.d.ts +12 -12
- package/dist/api/interfaces/ISnapRestrictionApi.js +2 -2
- package/dist/implementation/EventManager.d.ts +25 -25
- package/dist/implementation/EventManager.d.ts.map +1 -1
- package/dist/implementation/EventManager.js +62 -62
- package/dist/implementation/EventManager.js.map +1 -1
- package/dist/implementation/GeometryMathManager.d.ts +87 -87
- package/dist/implementation/GeometryMathManager.js +260 -260
- package/dist/implementation/GeometryMathManager.js.map +1 -1
- package/dist/implementation/RestrictionManager.d.ts +28 -28
- package/dist/implementation/RestrictionManager.js +323 -323
- package/dist/implementation/RestrictionManager.js.map +1 -1
- package/dist/implementation/restrictions/AbstractRestriction.d.ts +42 -42
- package/dist/implementation/restrictions/AbstractRestriction.js +164 -154
- package/dist/implementation/restrictions/AbstractRestriction.js.map +1 -1
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts +35 -35
- package/dist/implementation/restrictions/AbstractSnapRestriction.js +150 -140
- package/dist/implementation/restrictions/AbstractSnapRestriction.js.map +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts +10 -10
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts.map +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.js +50 -50
- package/dist/implementation/restrictions/RestrictionsHelper.js.map +1 -1
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts +17 -17
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js +62 -62
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts +92 -92
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js +410 -400
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js.map +1 -1
- package/dist/implementation/restrictions/line/LineRestriction.d.ts +58 -58
- package/dist/implementation/restrictions/line/LineRestriction.js +291 -281
- package/dist/implementation/restrictions/line/LineRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts +65 -65
- package/dist/implementation/restrictions/plane/PlaneRestriction.js +306 -306
- package/dist/implementation/restrictions/plane/PlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts +39 -39
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js +346 -346
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts +27 -27
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js +239 -229
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts +39 -39
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js +318 -308
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js.map +1 -1
- package/dist/implementation/restrictions/point/PointRestriction.d.ts +45 -45
- package/dist/implementation/restrictions/point/PointRestriction.js +166 -156
- package/dist/implementation/restrictions/point/PointRestriction.js.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +37 -37
- package/dist/interfaces/IDragAnchor.d.ts +8 -8
- package/dist/interfaces/IDragAnchor.js +2 -2
- package/dist/interfaces/IRestriction.d.ts +117 -117
- package/dist/interfaces/IRestriction.d.ts.map +1 -1
- package/dist/interfaces/IRestriction.js +23 -23
- package/dist/interfaces/IRestriction.js.map +1 -1
- package/dist/interfaces/IRestrictionManager.d.ts +13 -13
- package/dist/interfaces/IRestrictionManager.js +2 -2
- package/dist/interfaces/ISnapRestriction.d.ts +81 -81
- package/dist/interfaces/ISnapRestriction.d.ts.map +1 -1
- package/dist/interfaces/ISnapRestriction.js +3 -3
- package/package.json +10 -10
|
@@ -1,141 +1,151 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
this.
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
this.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
this.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
__classPrivateFieldGet(this,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
36
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
37
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
38
|
+
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");
|
|
39
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
40
|
+
};
|
|
41
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
42
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
43
|
+
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");
|
|
44
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
45
|
+
};
|
|
46
|
+
var _AbstractSnapRestriction_id, _AbstractSnapRestriction_parentNode, _AbstractSnapRestriction_viewport, _AbstractSnapRestriction_visualizationNode, _AbstractSnapRestriction_showVisualization;
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.AbstractSnapRestriction = void 0;
|
|
49
|
+
const THREE = __importStar(require("three"));
|
|
50
|
+
const viewer_rendering_engine_rendering_engine_threejs_1 = require("@shapediver/viewer.rendering-engine.rendering-engine-threejs");
|
|
51
|
+
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
|
|
52
|
+
class AbstractSnapRestriction {
|
|
53
|
+
constructor(viewport, parentNode, id, properties) {
|
|
54
|
+
var _a;
|
|
55
|
+
_AbstractSnapRestriction_id.set(this, void 0);
|
|
56
|
+
_AbstractSnapRestriction_parentNode.set(this, void 0);
|
|
57
|
+
_AbstractSnapRestriction_viewport.set(this, void 0);
|
|
58
|
+
_AbstractSnapRestriction_visualizationNode.set(this, new viewer_shared_node_tree_1.TreeNode("RestrictionVisualizationNode"));
|
|
59
|
+
_AbstractSnapRestriction_showVisualization.set(this, false);
|
|
60
|
+
this._active = false;
|
|
61
|
+
this._enableVisualization = true;
|
|
62
|
+
this._enabled = true;
|
|
63
|
+
this._enabledEditable = true;
|
|
64
|
+
this._priority = 0;
|
|
65
|
+
__classPrivateFieldSet(this, _AbstractSnapRestriction_parentNode, parentNode, "f");
|
|
66
|
+
__classPrivateFieldSet(this, _AbstractSnapRestriction_viewport, viewport, "f");
|
|
67
|
+
__classPrivateFieldSet(this, _AbstractSnapRestriction_id, id, "f");
|
|
68
|
+
this._createHelperObjects = (_a = properties === null || properties === void 0 ? void 0 : properties.createHelperObjects) !== null && _a !== void 0 ? _a : true;
|
|
69
|
+
if (this._createHelperObjects) {
|
|
70
|
+
this.createGridHelperObject();
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
this._object3D = new THREE.Object3D();
|
|
74
|
+
this._object3D.visible = false;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
get active() {
|
|
78
|
+
return this._active;
|
|
79
|
+
}
|
|
80
|
+
set active(value) {
|
|
81
|
+
this._active = value;
|
|
82
|
+
}
|
|
83
|
+
get enableVisualization() {
|
|
84
|
+
return this._enableVisualization;
|
|
85
|
+
}
|
|
86
|
+
set enableVisualization(value) {
|
|
87
|
+
this._enableVisualization = value;
|
|
88
|
+
this.showVisualization = value;
|
|
89
|
+
}
|
|
90
|
+
get enabled() {
|
|
91
|
+
return this._enabled;
|
|
92
|
+
}
|
|
93
|
+
set enabled(value) {
|
|
94
|
+
if (this._enabledEditable === false)
|
|
95
|
+
return;
|
|
96
|
+
this._enabled = value;
|
|
97
|
+
this.visibilityChanged(this._object3D.visible);
|
|
98
|
+
}
|
|
99
|
+
get enabledEditable() {
|
|
100
|
+
return this._enabledEditable;
|
|
101
|
+
}
|
|
102
|
+
set enabledEditable(value) {
|
|
103
|
+
this._enabledEditable = value;
|
|
104
|
+
}
|
|
105
|
+
get id() {
|
|
106
|
+
return __classPrivateFieldGet(this, _AbstractSnapRestriction_id, "f");
|
|
107
|
+
}
|
|
108
|
+
get priority() {
|
|
109
|
+
return this._priority;
|
|
110
|
+
}
|
|
111
|
+
set priority(value) {
|
|
112
|
+
this._priority = value;
|
|
113
|
+
}
|
|
114
|
+
get showVisualization() {
|
|
115
|
+
return __classPrivateFieldGet(this, _AbstractSnapRestriction_showVisualization, "f");
|
|
116
|
+
}
|
|
117
|
+
set showVisualization(value) {
|
|
118
|
+
if (this._enableVisualization === false) {
|
|
119
|
+
this._object3D.visible = false;
|
|
120
|
+
this.visibilityChanged(false);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
__classPrivateFieldSet(this, _AbstractSnapRestriction_showVisualization, value, "f");
|
|
124
|
+
this._object3D.visible = value;
|
|
125
|
+
this.visibilityChanged(this._object3D.visible);
|
|
126
|
+
}
|
|
127
|
+
removeVisualization() {
|
|
128
|
+
if (!this._createHelperObjects)
|
|
129
|
+
return;
|
|
130
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_parentNode, "f").removeChild(__classPrivateFieldGet(this, _AbstractSnapRestriction_visualizationNode, "f"));
|
|
131
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_parentNode, "f").updateVersion(false, false);
|
|
132
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_viewport, "f").updateNode(__classPrivateFieldGet(this, _AbstractSnapRestriction_parentNode, "f"));
|
|
133
|
+
}
|
|
134
|
+
createGridHelperObject() {
|
|
135
|
+
if (!this._createHelperObjects)
|
|
136
|
+
return;
|
|
137
|
+
this._object3D = new THREE.Object3D();
|
|
138
|
+
this._object3D.visible = false;
|
|
139
|
+
const node = new viewer_shared_node_tree_1.TreeNode("ThreeJsDataNode");
|
|
140
|
+
const data = new viewer_rendering_engine_rendering_engine_threejs_1.ThreejsData(this._object3D);
|
|
141
|
+
node.addData(data);
|
|
142
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_visualizationNode, "f").addChild(node);
|
|
143
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_visualizationNode, "f").updateVersion();
|
|
144
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_parentNode, "f").addChild(__classPrivateFieldGet(this, _AbstractSnapRestriction_visualizationNode, "f"));
|
|
145
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_parentNode, "f").updateVersion(false, false);
|
|
146
|
+
__classPrivateFieldGet(this, _AbstractSnapRestriction_viewport, "f").updateNode(__classPrivateFieldGet(this, _AbstractSnapRestriction_parentNode, "f"));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.AbstractSnapRestriction = AbstractSnapRestriction;
|
|
150
|
+
_AbstractSnapRestriction_id = new WeakMap(), _AbstractSnapRestriction_parentNode = new WeakMap(), _AbstractSnapRestriction_viewport = new WeakMap(), _AbstractSnapRestriction_visualizationNode = new WeakMap(), _AbstractSnapRestriction_showVisualization = new WeakMap();
|
|
141
151
|
//# sourceMappingURL=AbstractSnapRestriction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractSnapRestriction.js","sourceRoot":"","sources":["../../../src/implementation/restrictions/AbstractSnapRestriction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractSnapRestriction.js","sourceRoot":"","sources":["../../../src/implementation/restrictions/AbstractSnapRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAG/B,mIAAyF;AACzF,iFAAwE;AAcxE,MAAsB,uBAAuB;IAkB5C,YACC,QAAsB,EACtB,UAAqB,EACrB,EAAU,EACV,UAAsC;;QArB9B,8CAAY;QACZ,sDAAuB;QACvB,oDAAwB;QACxB,qDAA+B,IAAI,kCAAQ,CACnD,8BAA8B,CAC9B,EAAC;QAEF,qDAA8B,KAAK,EAAC;QAE1B,YAAO,GAAY,KAAK,CAAC;QAEzB,yBAAoB,GAAY,IAAI,CAAC;QACrC,aAAQ,GAAY,IAAI,CAAC;QACzB,qBAAgB,GAAY,IAAI,CAAC;QAEjC,cAAS,GAAW,CAAC,CAAC;QAQ/B,uBAAA,IAAI,uCAAe,UAAU,MAAA,CAAC;QAC9B,uBAAA,IAAI,qCAAa,QAAQ,MAAA,CAAC;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,IAAI,GAAG,IAAI,8DAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnB,uBAAA,IAAI,kDAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,uBAAA,IAAI,kDAAmB,CAAC,aAAa,EAAE,CAAC;QACxC,uBAAA,IAAI,2CAAY,CAAC,QAAQ,CAAC,uBAAA,IAAI,kDAAmB,CAAC,CAAC;QACnD,uBAAA,IAAI,2CAAY,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC7C,uBAAA,IAAI,yCAAU,CAAC,UAAU,CAAC,uBAAA,IAAI,2CAAY,CAAC,CAAC;IAC7C,CAAC;CACD;AArID,0DAqIC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { mat4, vec3 } from "gl-matrix";
|
|
2
|
-
import { IDragAnchor } from "../../interfaces/IDragAnchor";
|
|
3
|
-
export declare const calculateDragMatrix: (snapPoint: vec3, snapRotation: {
|
|
4
|
-
axis: vec3;
|
|
5
|
-
angle: number;
|
|
6
|
-
}, dragOrigin: vec3, dragAnchors: IDragAnchor[] | undefined, closestPoint: vec3) => {
|
|
7
|
-
matrix: mat4;
|
|
8
|
-
dragAnchor?: IDragAnchor;
|
|
9
|
-
point: vec3;
|
|
10
|
-
};
|
|
1
|
+
import { mat4, vec3 } from "gl-matrix";
|
|
2
|
+
import { IDragAnchor } from "../../interfaces/IDragAnchor";
|
|
3
|
+
export declare const calculateDragMatrix: (snapPoint: vec3, snapRotation: {
|
|
4
|
+
axis: vec3;
|
|
5
|
+
angle: number;
|
|
6
|
+
}, dragOrigin: vec3, dragAnchors: IDragAnchor[] | undefined, closestPoint: vec3) => {
|
|
7
|
+
matrix: mat4;
|
|
8
|
+
dragAnchor?: IDragAnchor;
|
|
9
|
+
point: vec3;
|
|
10
|
+
};
|
|
11
11
|
//# sourceMappingURL=RestrictionsHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RestrictionsHelper.d.ts","sourceRoot":"","sources":["../../../src/implementation/restrictions/RestrictionsHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"RestrictionsHelper.d.ts","sourceRoot":"","sources":["../../../src/implementation/restrictions/RestrictionsHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,eAAO,MAAM,mBAAmB,GAC/B,WAAW,IAAI,EACf,cAAc;IACb,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACd,EACD,YAAY,IAAI,EAChB,aAAa,WAAW,EAAE,YAAK,EAC/B,cAAc,IAAI,KAChB;IACF,MAAM,EAAE,IAAI,CAAC;IACb,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,IAAI,CAAC;CA0CZ,CAAC"}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateDragMatrix = void 0;
|
|
4
|
-
const gl_matrix_1 = require("gl-matrix");
|
|
5
|
-
const calculateDragMatrix = (snapPoint, snapRotation, dragOrigin, dragAnchors = [], closestPoint) => {
|
|
6
|
-
if (dragAnchors.length > 0) {
|
|
7
|
-
const results = [];
|
|
8
|
-
for (let i = 0; i < dragAnchors.length; i++) {
|
|
9
|
-
const matrix = calculateMatrix(dragAnchors[i].position, dragAnchors[i].rotation || {
|
|
10
|
-
axis: gl_matrix_1.vec3.fromValues(0, 0, 1),
|
|
11
|
-
angle: 0,
|
|
12
|
-
}, snapPoint, snapRotation);
|
|
13
|
-
const point = gl_matrix_1.vec3.transformMat4(gl_matrix_1.vec3.create(), dragOrigin, matrix);
|
|
14
|
-
results.push({ matrix, point, dragAnchor: dragAnchors[i] });
|
|
15
|
-
}
|
|
16
|
-
results.sort((a, b) => gl_matrix_1.vec3.distance(a.point, closestPoint) -
|
|
17
|
-
gl_matrix_1.vec3.distance(b.point, closestPoint));
|
|
18
|
-
return results[0];
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
return {
|
|
22
|
-
matrix: calculateMatrix(dragOrigin, { axis: gl_matrix_1.vec3.fromValues(0, 0, 1), angle: 0 }, snapPoint, snapRotation),
|
|
23
|
-
point: dragOrigin,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.calculateDragMatrix = calculateDragMatrix;
|
|
28
|
-
const calculateMatrix = (dragPoint, dragRotation, snapPoint, snapRotation) => {
|
|
29
|
-
const rotationMatrix = gl_matrix_1.mat4.create();
|
|
30
|
-
// apply inverted anchor matrix
|
|
31
|
-
const dragMatrix = gl_matrix_1.mat4.fromRotation(gl_matrix_1.mat4.create(), dragRotation.angle, dragRotation.axis);
|
|
32
|
-
let invertedDragMatrix = gl_matrix_1.mat4.invert(gl_matrix_1.mat4.create(), dragMatrix);
|
|
33
|
-
if (!invertedDragMatrix)
|
|
34
|
-
invertedDragMatrix = gl_matrix_1.mat4.create();
|
|
35
|
-
gl_matrix_1.mat4.multiply(rotationMatrix, rotationMatrix, invertedDragMatrix);
|
|
36
|
-
// apply snap matrix
|
|
37
|
-
const snapMatrix = gl_matrix_1.mat4.fromRotation(gl_matrix_1.mat4.create(), snapRotation.angle, snapRotation.axis);
|
|
38
|
-
gl_matrix_1.mat4.multiply(rotationMatrix, rotationMatrix, snapMatrix);
|
|
39
|
-
// the dragAnchor in the rotated space
|
|
40
|
-
const dragPointTransformed = gl_matrix_1.vec3.transformMat4(gl_matrix_1.vec3.create(), dragPoint, rotationMatrix);
|
|
41
|
-
// distance between snap point and transformed anchor
|
|
42
|
-
const dragTranslation = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), snapPoint, dragPointTransformed);
|
|
43
|
-
// transformation of the difference
|
|
44
|
-
let invertedRotationMatrix = gl_matrix_1.mat4.invert(gl_matrix_1.mat4.create(), rotationMatrix);
|
|
45
|
-
if (!invertedRotationMatrix)
|
|
46
|
-
invertedRotationMatrix = gl_matrix_1.mat4.create();
|
|
47
|
-
gl_matrix_1.vec3.transformMat4(dragTranslation, dragTranslation, invertedRotationMatrix);
|
|
48
|
-
const translationMatrix = gl_matrix_1.mat4.fromTranslation(gl_matrix_1.mat4.create(), dragTranslation);
|
|
49
|
-
return gl_matrix_1.mat4.multiply(gl_matrix_1.mat4.create(), rotationMatrix, translationMatrix);
|
|
50
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateDragMatrix = void 0;
|
|
4
|
+
const gl_matrix_1 = require("gl-matrix");
|
|
5
|
+
const calculateDragMatrix = (snapPoint, snapRotation, dragOrigin, dragAnchors = [], closestPoint) => {
|
|
6
|
+
if (dragAnchors.length > 0) {
|
|
7
|
+
const results = [];
|
|
8
|
+
for (let i = 0; i < dragAnchors.length; i++) {
|
|
9
|
+
const matrix = calculateMatrix(dragAnchors[i].position, dragAnchors[i].rotation || {
|
|
10
|
+
axis: gl_matrix_1.vec3.fromValues(0, 0, 1),
|
|
11
|
+
angle: 0,
|
|
12
|
+
}, snapPoint, snapRotation);
|
|
13
|
+
const point = gl_matrix_1.vec3.transformMat4(gl_matrix_1.vec3.create(), dragOrigin, matrix);
|
|
14
|
+
results.push({ matrix, point, dragAnchor: dragAnchors[i] });
|
|
15
|
+
}
|
|
16
|
+
results.sort((a, b) => gl_matrix_1.vec3.distance(a.point, closestPoint) -
|
|
17
|
+
gl_matrix_1.vec3.distance(b.point, closestPoint));
|
|
18
|
+
return results[0];
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return {
|
|
22
|
+
matrix: calculateMatrix(dragOrigin, { axis: gl_matrix_1.vec3.fromValues(0, 0, 1), angle: 0 }, snapPoint, snapRotation),
|
|
23
|
+
point: dragOrigin,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.calculateDragMatrix = calculateDragMatrix;
|
|
28
|
+
const calculateMatrix = (dragPoint, dragRotation, snapPoint, snapRotation) => {
|
|
29
|
+
const rotationMatrix = gl_matrix_1.mat4.create();
|
|
30
|
+
// apply inverted anchor matrix
|
|
31
|
+
const dragMatrix = gl_matrix_1.mat4.fromRotation(gl_matrix_1.mat4.create(), dragRotation.angle, dragRotation.axis);
|
|
32
|
+
let invertedDragMatrix = gl_matrix_1.mat4.invert(gl_matrix_1.mat4.create(), dragMatrix);
|
|
33
|
+
if (!invertedDragMatrix)
|
|
34
|
+
invertedDragMatrix = gl_matrix_1.mat4.create();
|
|
35
|
+
gl_matrix_1.mat4.multiply(rotationMatrix, rotationMatrix, invertedDragMatrix);
|
|
36
|
+
// apply snap matrix
|
|
37
|
+
const snapMatrix = gl_matrix_1.mat4.fromRotation(gl_matrix_1.mat4.create(), snapRotation.angle, snapRotation.axis);
|
|
38
|
+
gl_matrix_1.mat4.multiply(rotationMatrix, rotationMatrix, snapMatrix);
|
|
39
|
+
// the dragAnchor in the rotated space
|
|
40
|
+
const dragPointTransformed = gl_matrix_1.vec3.transformMat4(gl_matrix_1.vec3.create(), dragPoint, rotationMatrix);
|
|
41
|
+
// distance between snap point and transformed anchor
|
|
42
|
+
const dragTranslation = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), snapPoint, dragPointTransformed);
|
|
43
|
+
// transformation of the difference
|
|
44
|
+
let invertedRotationMatrix = gl_matrix_1.mat4.invert(gl_matrix_1.mat4.create(), rotationMatrix);
|
|
45
|
+
if (!invertedRotationMatrix)
|
|
46
|
+
invertedRotationMatrix = gl_matrix_1.mat4.create();
|
|
47
|
+
gl_matrix_1.vec3.transformMat4(dragTranslation, dragTranslation, invertedRotationMatrix);
|
|
48
|
+
const translationMatrix = gl_matrix_1.mat4.fromTranslation(gl_matrix_1.mat4.create(), dragTranslation);
|
|
49
|
+
return gl_matrix_1.mat4.multiply(gl_matrix_1.mat4.create(), rotationMatrix, translationMatrix);
|
|
50
|
+
};
|
|
51
51
|
//# sourceMappingURL=RestrictionsHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RestrictionsHelper.js","sourceRoot":"","sources":["../../../src/implementation/restrictions/RestrictionsHelper.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAG9B,MAAM,mBAAmB,GAAG,CAClC,SAAe,EACf,YAGC,EACD,UAAgB,EAChB,cAA6B,EAAE,EAC/B,YAAkB,EAKjB,EAAE;IACH,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"RestrictionsHelper.js","sourceRoot":"","sources":["../../../src/implementation/restrictions/RestrictionsHelper.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAG9B,MAAM,mBAAmB,GAAG,CAClC,SAAe,EACf,YAGC,EACD,UAAgB,EAChB,cAA6B,EAAE,EAC/B,YAAkB,EAKjB,EAAE;IACH,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,OAAO,GAIP,EAAE,CAAC;QACT,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,MAAM,MAAM,GAAG,eAAe,CAC7B,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,EACvB,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI;gBAC1B,IAAI,EAAE,gBAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;gBAC9B,KAAK,EAAE,CAAC;aAC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kBAAkB;QAAE,kBAAkB,GAAG,gBAAI,CAAC,MAAM,EAAE,CAAC;IAE5D,gBAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;IAElE,oBAAoB;IACpB,MAAM,UAAU,GAAG,gBAAI,CAAC,YAAY,CACnC,gBAAI,CAAC,MAAM,EAAE,EACb,YAAY,CAAC,KAAK,EAClB,YAAY,CAAC,IAAI,CACjB,CAAC;IACF,gBAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;IAE1D,sCAAsC;IACtC,MAAM,oBAAoB,GAAG,gBAAI,CAAC,aAAa,CAC9C,gBAAI,CAAC,MAAM,EAAE,EACb,SAAS,EACT,cAAc,CACd,CAAC;IAEF,qDAAqD;IACrD,MAAM,eAAe,GAAG,gBAAI,CAAC,GAAG,CAC/B,gBAAI,CAAC,MAAM,EAAE,EACb,SAAS,EACT,oBAAoB,CACpB,CAAC;IAEF,mCAAmC;IACnC,IAAI,sBAAsB,GAAG,gBAAI,CAAC,MAAM,CAAC,gBAAI,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC,CAAC;IACxE,IAAI,CAAC,sBAAsB;QAAE,sBAAsB,GAAG,gBAAI,CAAC,MAAM,EAAE,CAAC;IAEpE,gBAAI,CAAC,aAAa,CACjB,eAAe,EACf,eAAe,EACf,sBAAsB,CACtB,CAAC;IACF,MAAM,iBAAiB,GAAG,gBAAI,CAAC,eAAe,CAC7C,gBAAI,CAAC,MAAM,EAAE,EACb,eAAe,CACf,CAAC;IAEF,OAAO,gBAAI,CAAC,QAAQ,CAAC,gBAAI,CAAC,MAAM,EAAE,EAAE,cAAc,EAAE,iBAAiB,CAAC,CAAC;AACxE,CAAC,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ITreeNode, IViewportApi } from "@shapediver/viewer";
|
|
2
|
-
import { IRay, IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
3
|
-
import { IRestriction, RestrictionMetaData, RestrictionPropertiesBase, RestrictionResult } from "../../../interfaces/IRestriction";
|
|
4
|
-
import { ISnapRestriction } from "../../../interfaces/ISnapRestriction";
|
|
5
|
-
import { GeometryMathManager } from "../../GeometryMathManager";
|
|
6
|
-
import { AbstractRestriction } from "../AbstractRestriction";
|
|
7
|
-
export interface CameraPlaneRestrictionProperties extends RestrictionPropertiesBase {
|
|
8
|
-
}
|
|
9
|
-
export declare class CameraPlaneRestriction extends AbstractRestriction implements IRestriction {
|
|
10
|
-
#private;
|
|
11
|
-
constructor(viewport: IViewportApi, geometryMathManager: GeometryMathManager, parentNode: ITreeNode, id: string, settings: IVisualizationSettings, properties: CameraPlaneRestrictionProperties);
|
|
12
|
-
get snapRestrictions(): {
|
|
13
|
-
[key: string]: ISnapRestriction;
|
|
14
|
-
};
|
|
15
|
-
rayTrace(ray: IRay, metaData: RestrictionMetaData): RestrictionResult | undefined;
|
|
16
|
-
protected visibilityChanged(): void;
|
|
17
|
-
}
|
|
1
|
+
import { ITreeNode, IViewportApi } from "@shapediver/viewer";
|
|
2
|
+
import { IRay, IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
3
|
+
import { IRestriction, RestrictionMetaData, RestrictionPropertiesBase, RestrictionResult } from "../../../interfaces/IRestriction";
|
|
4
|
+
import { ISnapRestriction } from "../../../interfaces/ISnapRestriction";
|
|
5
|
+
import { GeometryMathManager } from "../../GeometryMathManager";
|
|
6
|
+
import { AbstractRestriction } from "../AbstractRestriction";
|
|
7
|
+
export interface CameraPlaneRestrictionProperties extends RestrictionPropertiesBase {
|
|
8
|
+
}
|
|
9
|
+
export declare class CameraPlaneRestriction extends AbstractRestriction implements IRestriction {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(viewport: IViewportApi, geometryMathManager: GeometryMathManager, parentNode: ITreeNode, id: string, settings: IVisualizationSettings, properties: CameraPlaneRestrictionProperties);
|
|
12
|
+
get snapRestrictions(): {
|
|
13
|
+
[key: string]: ISnapRestriction;
|
|
14
|
+
};
|
|
15
|
+
rayTrace(ray: IRay, metaData: RestrictionMetaData): RestrictionResult | undefined;
|
|
16
|
+
protected visibilityChanged(): void;
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=CameraPlaneRestriction.d.ts.map
|