@shapediver/viewer.features.drawing-tools 3.1.2 → 3.2.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/dist/api/implementation/DrawingToolsApi.d.ts.map +1 -1
- package/dist/api/implementation/DrawingToolsApi.js +0 -6
- package/dist/api/implementation/DrawingToolsApi.js.map +1 -1
- package/dist/api/implementation/restrictions/plane/PlaneRestrictionApi.d.ts +4 -2
- package/dist/api/implementation/restrictions/plane/PlaneRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/restrictions/plane/PlaneRestrictionApi.js +17 -11
- package/dist/api/implementation/restrictions/plane/PlaneRestrictionApi.js.map +1 -1
- package/dist/api/implementation/restrictions/plane/snap/AxisRestrictionApi.d.ts +7 -0
- package/dist/api/implementation/restrictions/plane/snap/AxisRestrictionApi.d.ts.map +1 -0
- package/dist/api/implementation/restrictions/{axis → plane/snap}/AxisRestrictionApi.js +2 -2
- package/dist/api/implementation/restrictions/plane/snap/AxisRestrictionApi.js.map +1 -0
- package/dist/api/interfaces/IDrawingToolsApi.d.ts +1 -2
- package/dist/api/interfaces/IDrawingToolsApi.d.ts.map +1 -1
- package/dist/business/implementation/DrawingToolsManager.d.ts.map +1 -1
- package/dist/business/implementation/DrawingToolsManager.js +0 -1
- package/dist/business/implementation/DrawingToolsManager.js.map +1 -1
- package/dist/business/implementation/managers/TextVisualizationManager.d.ts.map +1 -1
- package/dist/business/implementation/managers/TextVisualizationManager.js +52 -28
- package/dist/business/implementation/managers/TextVisualizationManager.js.map +1 -1
- package/dist/business/implementation/managers/geometry/GeometryMathManager.d.ts +17 -8
- package/dist/business/implementation/managers/geometry/GeometryMathManager.d.ts.map +1 -1
- package/dist/business/implementation/managers/geometry/GeometryMathManager.js +31 -16
- package/dist/business/implementation/managers/geometry/GeometryMathManager.js.map +1 -1
- package/dist/business/implementation/managers/interaction/RestrictionManager.d.ts.map +1 -1
- package/dist/business/implementation/managers/interaction/RestrictionManager.js +0 -4
- package/dist/business/implementation/managers/interaction/RestrictionManager.js.map +1 -1
- package/dist/business/implementation/managers/interaction/restrictions/plane/PlaneRestriction.d.ts +8 -0
- package/dist/business/implementation/managers/interaction/restrictions/plane/PlaneRestriction.d.ts.map +1 -1
- package/dist/business/implementation/managers/interaction/restrictions/plane/PlaneRestriction.js +107 -43
- package/dist/business/implementation/managers/interaction/restrictions/plane/PlaneRestriction.js.map +1 -1
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AngularRestriction.d.ts +3 -2
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AngularRestriction.d.ts.map +1 -1
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AngularRestriction.js +38 -29
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AngularRestriction.js.map +1 -1
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.d.ts +26 -0
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.js +93 -0
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.js.map +1 -0
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.d.ts +4 -2
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.d.ts.map +1 -1
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.js +18 -34
- package/dist/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.js.map +1 -1
- package/dist/business/interfaces/IDrawingToolsManager.d.ts +2 -3
- package/dist/business/interfaces/IDrawingToolsManager.d.ts.map +1 -1
- package/dist/business/interfaces/IDrawingToolsManager.js.map +1 -1
- package/dist/business/interfaces/IRestriction.d.ts +0 -1
- package/dist/business/interfaces/IRestriction.d.ts.map +1 -1
- package/dist/business/interfaces/IRestriction.js +0 -1
- package/dist/business/interfaces/IRestriction.js.map +1 -1
- package/dist/business/interfaces/ISnapRestriction.d.ts +7 -5
- package/dist/business/interfaces/ISnapRestriction.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/api/implementation/DrawingToolsApi.ts +1 -6
- package/src/api/implementation/restrictions/plane/PlaneRestrictionApi.ts +19 -12
- package/src/api/implementation/restrictions/{axis → plane/snap}/AxisRestrictionApi.ts +3 -3
- package/src/api/interfaces/IDrawingToolsApi.ts +1 -2
- package/src/business/implementation/DrawingToolsManager.ts +0 -1
- package/src/business/implementation/managers/TextVisualizationManager.ts +52 -28
- package/src/business/implementation/managers/geometry/GeometryMathManager.ts +36 -20
- package/src/business/implementation/managers/interaction/RestrictionManager.ts +0 -3
- package/src/business/implementation/managers/interaction/restrictions/plane/PlaneRestriction.ts +127 -47
- package/src/business/implementation/managers/interaction/restrictions/plane/snap/AngularRestriction.ts +38 -28
- package/src/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.ts +116 -0
- package/src/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.ts +21 -37
- package/src/business/interfaces/IDrawingToolsManager.ts +2 -3
- package/src/business/interfaces/IRestriction.ts +0 -1
- package/src/business/interfaces/ISnapRestriction.ts +9 -9
- package/src/index.ts +4 -4
- package/dist/api/implementation/restrictions/axis/AxisRestrictionApi.d.ts +0 -7
- package/dist/api/implementation/restrictions/axis/AxisRestrictionApi.d.ts.map +0 -1
- package/dist/api/implementation/restrictions/axis/AxisRestrictionApi.js.map +0 -1
- package/dist/business/implementation/managers/interaction/restrictions/axis/AxisRestriction.d.ts +0 -22
- package/dist/business/implementation/managers/interaction/restrictions/axis/AxisRestriction.d.ts.map +0 -1
- package/dist/business/implementation/managers/interaction/restrictions/axis/AxisRestriction.js +0 -96
- package/dist/business/implementation/managers/interaction/restrictions/axis/AxisRestriction.js.map +0 -1
- package/src/business/implementation/managers/interaction/restrictions/axis/AxisRestriction.ts +0 -107
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _AngularRestriction_activationKey, _AngularRestriction_drawingToolsManager, _AngularRestriction_geometryMathManager, _AngularRestriction_planeRestriction, _AngularRestriction_settings, _AngularRestriction_active, _AngularRestriction_activePolarGrids, _AngularRestriction_angleStep, _AngularRestriction_angleStepEditable, _AngularRestriction_angles, _AngularRestriction_labelNext, _AngularRestriction_labelPrevious,
|
|
13
|
+
var _AngularRestriction_activationKey, _AngularRestriction_drawingToolsManager, _AngularRestriction_geometryMathManager, _AngularRestriction_planeRestriction, _AngularRestriction_settings, _AngularRestriction_active, _AngularRestriction_activePolarGrids, _AngularRestriction_angleStep, _AngularRestriction_angleStepEditable, _AngularRestriction_angles, _AngularRestriction_labelNext, _AngularRestriction_labelPrevious, _AngularRestriction_priority;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.AngularRestriction = void 0;
|
|
16
16
|
const AbstractRestriction_1 = require("../../AbstractRestriction");
|
|
@@ -21,12 +21,12 @@ const gl_matrix_1 = require("gl-matrix");
|
|
|
21
21
|
// #endregion Type aliases (1)
|
|
22
22
|
// #region Classes (1)
|
|
23
23
|
class AngularRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
24
|
-
// #endregion Properties (
|
|
24
|
+
// #endregion Properties (13)
|
|
25
25
|
// #region Constructors (1)
|
|
26
26
|
constructor(drawingToolsManager, planeRestriction, properties) {
|
|
27
27
|
var _a, _b, _c;
|
|
28
28
|
super(drawingToolsManager, 'angular');
|
|
29
|
-
// #region Properties (
|
|
29
|
+
// #region Properties (13)
|
|
30
30
|
_AngularRestriction_activationKey.set(this, void 0);
|
|
31
31
|
_AngularRestriction_drawingToolsManager.set(this, void 0);
|
|
32
32
|
_AngularRestriction_geometryMathManager.set(this, void 0);
|
|
@@ -42,20 +42,11 @@ class AngularRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
42
42
|
_AngularRestriction_angles.set(this, []);
|
|
43
43
|
_AngularRestriction_labelNext.set(this, void 0);
|
|
44
44
|
_AngularRestriction_labelPrevious.set(this, void 0);
|
|
45
|
-
_AngularRestriction_normal.set(this, void 0);
|
|
46
45
|
_AngularRestriction_priority.set(this, 0);
|
|
47
|
-
_AngularRestriction_vectorU.set(this, void 0);
|
|
48
|
-
_AngularRestriction_vectorV.set(this, void 0);
|
|
49
46
|
__classPrivateFieldSet(this, _AngularRestriction_drawingToolsManager, drawingToolsManager, "f");
|
|
50
47
|
__classPrivateFieldSet(this, _AngularRestriction_geometryMathManager, drawingToolsManager.geometryMathManager, "f");
|
|
51
48
|
__classPrivateFieldSet(this, _AngularRestriction_settings, drawingToolsManager.settings, "f");
|
|
52
49
|
__classPrivateFieldSet(this, _AngularRestriction_planeRestriction, planeRestriction, "f");
|
|
53
|
-
// we store the properties of the plane restriction
|
|
54
|
-
// as we need them to calculate the transformation matrices
|
|
55
|
-
// and the offset of the grid size to the origin
|
|
56
|
-
__classPrivateFieldSet(this, _AngularRestriction_vectorU, planeRestriction.vectorU, "f");
|
|
57
|
-
__classPrivateFieldSet(this, _AngularRestriction_vectorV, planeRestriction.vectorV, "f");
|
|
58
|
-
__classPrivateFieldSet(this, _AngularRestriction_normal, planeRestriction.normal, "f");
|
|
59
50
|
__classPrivateFieldSet(this, _AngularRestriction_activationKey, (properties === null || properties === void 0 ? void 0 : properties.activationKey) || 'a', "f");
|
|
60
51
|
this.enabled = (_a = properties === null || properties === void 0 ? void 0 : properties.enabled) !== null && _a !== void 0 ? _a : false;
|
|
61
52
|
this._enabledEditable = (_b = properties === null || properties === void 0 ? void 0 : properties.enabledEditable) !== null && _b !== void 0 ? _b : true;
|
|
@@ -108,7 +99,7 @@ class AngularRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
108
99
|
}
|
|
109
100
|
// #endregion Public Getters And Setters (8)
|
|
110
101
|
// #region Public Methods (2)
|
|
111
|
-
snap(point, metaData) {
|
|
102
|
+
snap(ray, point, metaData) {
|
|
112
103
|
// if the restriction is not enabled OR the activation key is set and the key is not pressed, return
|
|
113
104
|
if (this.enabled === false && __classPrivateFieldGet(this, _AngularRestriction_drawingToolsManager, "f").keyPressed(__classPrivateFieldGet(this, _AngularRestriction_activationKey, "f")) === false)
|
|
114
105
|
return;
|
|
@@ -153,10 +144,10 @@ class AngularRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
153
144
|
const previousPointFromData = gl_matrix_1.vec3.fromValues(positionArray.at((previousIndex * 3)), positionArray.at((previousIndex * 3) + 1), positionArray.at((previousIndex * 3) + 2));
|
|
154
145
|
const previousPreviousPointFromData = gl_matrix_1.vec3.fromValues(positionArray.at((previousPreviousIndex * 3)), positionArray.at((previousPreviousIndex * 3) + 1), positionArray.at((previousPreviousIndex * 3) + 2));
|
|
155
146
|
// project them onto the same plane as the point
|
|
156
|
-
const nextPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), nextPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this,
|
|
157
|
-
const nextNextPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), nextNextPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this,
|
|
158
|
-
const previousPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), previousPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this,
|
|
159
|
-
const previousPreviousPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), previousPreviousPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this,
|
|
147
|
+
const nextPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), nextPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal, gl_matrix_1.vec3.dot(gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), nextPointFromData, point), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal)));
|
|
148
|
+
const nextNextPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), nextNextPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal, gl_matrix_1.vec3.dot(gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), nextNextPointFromData, point), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal)));
|
|
149
|
+
const previousPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), previousPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal, gl_matrix_1.vec3.dot(gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), previousPointFromData, point), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal)));
|
|
150
|
+
const previousPreviousPointProjected = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), previousPreviousPointFromData, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal, gl_matrix_1.vec3.dot(gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), previousPreviousPointFromData, point), __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").normal)));
|
|
160
151
|
// project the point onto the XY-Plane
|
|
161
152
|
const pointProjected = gl_matrix_1.vec3.transformMat4(gl_matrix_1.vec3.create(), point, __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").transformationToXYPlaneMatrix);
|
|
162
153
|
gl_matrix_1.vec3.transformMat4(nextPointProjected, nextPointProjected, __classPrivateFieldGet(this, _AngularRestriction_planeRestriction, "f").transformationToXYPlaneMatrix);
|
|
@@ -217,11 +208,7 @@ class AngularRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
217
208
|
return resultPointPreviousAngle;
|
|
218
209
|
}
|
|
219
210
|
}
|
|
220
|
-
updatePlaneDefinition(
|
|
221
|
-
__classPrivateFieldSet(this, _AngularRestriction_vectorU, vectorU, "f");
|
|
222
|
-
__classPrivateFieldSet(this, _AngularRestriction_vectorV, vectorV, "f");
|
|
223
|
-
__classPrivateFieldSet(this, _AngularRestriction_normal, normal, "f");
|
|
224
|
-
}
|
|
211
|
+
updatePlaneDefinition() { }
|
|
225
212
|
// #endregion Public Methods (2)
|
|
226
213
|
// #region Protected Methods (1)
|
|
227
214
|
visibilityChanged(visible) {
|
|
@@ -248,27 +235,49 @@ class AngularRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
248
235
|
radius = 1;
|
|
249
236
|
const text = document.createElement('div');
|
|
250
237
|
text.className = 'label';
|
|
238
|
+
label = new CSS2DRenderer_1.CSS2DObject(text);
|
|
239
|
+
// remove the old style, if there is one
|
|
240
|
+
document.head.querySelectorAll('style').forEach(style => {
|
|
241
|
+
var _a;
|
|
242
|
+
if ((_a = style.textContent) === null || _a === void 0 ? void 0 : _a.includes(label.uuid))
|
|
243
|
+
document.head.removeChild(style);
|
|
244
|
+
});
|
|
245
|
+
const parent = document.createElement('div');
|
|
246
|
+
parent.className = `angular-label-parent-${label.uuid}`;
|
|
251
247
|
const child = document.createElement('div');
|
|
252
|
-
child.className =
|
|
248
|
+
child.className = `angular-label-${label.uuid}`;
|
|
253
249
|
const style = document.createElement('style');
|
|
254
250
|
style.textContent = `
|
|
255
|
-
.angular-label {
|
|
251
|
+
.angular-label-${label.uuid} {
|
|
256
252
|
display: flex;
|
|
257
253
|
justify-content: center;
|
|
258
254
|
align-items: center;
|
|
259
|
-
width:
|
|
260
|
-
height:
|
|
255
|
+
width: 32px;
|
|
256
|
+
height: 32px;
|
|
261
257
|
color: white;
|
|
262
258
|
background-color: ${__classPrivateFieldGet(this, _AngularRestriction_settings, "f").visualization.points.color_1};
|
|
263
259
|
border-radius: 50%;
|
|
264
260
|
font-size: 16px;
|
|
265
261
|
text-align: center;
|
|
266
262
|
}
|
|
263
|
+
|
|
264
|
+
.angular-label-parent-${label.uuid} {
|
|
265
|
+
display: flex;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
align-items: center;
|
|
268
|
+
width: 40px; /* 32px + 2 * 4px border width */
|
|
269
|
+
height: 40px; /* 32px + 2 * 4px border width */
|
|
270
|
+
border-radius: 50%;
|
|
271
|
+
background: conic-gradient(
|
|
272
|
+
${__classPrivateFieldGet(this, _AngularRestriction_settings, "f").visualization.points.color_2} 0% ${(angle / Math.PI) * 100}%,
|
|
273
|
+
${__classPrivateFieldGet(this, _AngularRestriction_settings, "f").visualization.points.color_1} ${(angle / Math.PI) * 100}% 100%
|
|
274
|
+
);
|
|
275
|
+
}
|
|
267
276
|
`;
|
|
268
277
|
document.head.appendChild(style);
|
|
278
|
+
parent.appendChild(child);
|
|
269
279
|
child.textContent = `${(0, numberCleaner_1.numberCleaner)((angle / Math.PI) * 180)}°`;
|
|
270
|
-
text.appendChild(
|
|
271
|
-
label = new CSS2DRenderer_1.CSS2DObject(text);
|
|
280
|
+
text.appendChild(parent);
|
|
272
281
|
label.position.set(position[0], position[1], position[2]);
|
|
273
282
|
label.visible = false;
|
|
274
283
|
this._object3D.add(label);
|
|
@@ -303,6 +312,6 @@ class AngularRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
303
312
|
}
|
|
304
313
|
}
|
|
305
314
|
exports.AngularRestriction = AngularRestriction;
|
|
306
|
-
_AngularRestriction_activationKey = new WeakMap(), _AngularRestriction_drawingToolsManager = new WeakMap(), _AngularRestriction_geometryMathManager = new WeakMap(), _AngularRestriction_planeRestriction = new WeakMap(), _AngularRestriction_settings = new WeakMap(), _AngularRestriction_active = new WeakMap(), _AngularRestriction_activePolarGrids = new WeakMap(), _AngularRestriction_angleStep = new WeakMap(), _AngularRestriction_angleStepEditable = new WeakMap(), _AngularRestriction_angles = new WeakMap(), _AngularRestriction_labelNext = new WeakMap(), _AngularRestriction_labelPrevious = new WeakMap(),
|
|
315
|
+
_AngularRestriction_activationKey = new WeakMap(), _AngularRestriction_drawingToolsManager = new WeakMap(), _AngularRestriction_geometryMathManager = new WeakMap(), _AngularRestriction_planeRestriction = new WeakMap(), _AngularRestriction_settings = new WeakMap(), _AngularRestriction_active = new WeakMap(), _AngularRestriction_activePolarGrids = new WeakMap(), _AngularRestriction_angleStep = new WeakMap(), _AngularRestriction_angleStepEditable = new WeakMap(), _AngularRestriction_angles = new WeakMap(), _AngularRestriction_labelNext = new WeakMap(), _AngularRestriction_labelPrevious = new WeakMap(), _AngularRestriction_priority = new WeakMap();
|
|
307
316
|
// #endregion Classes (1)
|
|
308
317
|
//# sourceMappingURL=AngularRestriction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AngularRestriction.js","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/AngularRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAgE;AAChE,4EAAuE;AAIvE,sEAAmE;AAGnE,+CAA+C;AAE/C,yCAAiC;AAiBjC,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,kBAAmB,SAAQ,yCAAmB;IAwBvD,6BAA6B;IAE7B,2BAA2B;IAE3B,YAAY,mBAAwC,EAAE,gBAAkC,EAAE,UAAyC;;QAC/H,KAAK,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC;QA5B1C,0BAA0B;QAE1B,oDAAgC;QAChC,0DAAmD;QACnD,0DAAmD;QACnD,uDAA6C;QAC7C,+CAA6B;QAE7B,qCAAmB,KAAK,EAAC;QACzB,+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iB;YACjB,YAAY;YACZ,YAAY;SACf,CAAC;IACN,CAAC;IAEO,YAAY,CAAC,KAAa;QAC9B,OAAO,KAAK,GAAG,CAAC,GAAG,uBAAA,IAAI,+CAAqB,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;IAC9F,CAAC;IAEO,gBAAgB,CAAC,KAAa;QAClC,OAAO,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,uBAAA,IAAI,+CAAqB,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;IAC9F,CAAC;CAGJ;AA9VD,gDA8VC;;AAED,yBAAyB"}
|
|
1
|
+
{"version":3,"file":"AngularRestriction.js","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/AngularRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAgE;AAChE,4EAAuE;AAKvE,sEAAmE;AAGnE,+CAA+C;AAE/C,yCAAiC;AAiBjC,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,kBAAmB,SAAQ,yCAAmB;IAqBvD,6BAA6B;IAE7B,2BAA2B;IAE3B,YAAY,mBAAwC,EAAE,gBAAkC,EAAE,UAAyC;;QAC/H,KAAK,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC;QAzB1C,0BAA0B;QAE1B,oDAAgC;QAChC,0DAAmD;QACnD,0DAAmD;QACnD,uDAA6C;QAC7C,+CAA6B;QAE7B,qCAAmB,KAAK,EAAC;QACzB,+CAAoB;YAChB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;SAClB,EAAC;QACF,gDAAmB;QACnB,gDAA8B,IAAI,EAAC;QACnC,qCAAoB,EAAE,EAAC;QACvB,gDAAyB;QACzB,oDAA6B;QAC7B,uCAAoB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AG,uBAAA,IAAI,kCAAQ,CAAC,CAAC,CAAC,CAAC;YAE9B,IAAI,IAAI,CAAC,GAAG,CAAC,cAAc,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,GAAG,YAAY,CAAC;gBAC1E,YAAY,GAAG,KAAK,CAAC;SAC5B;QAED,sCAAsC;QACtC,MAAM,iBAAiB,GAAG,YAAY,GAAG,cAAc,CAAC;QAExD,OAAO;YACH,iBAAiB;YACjB,YAAY;YACZ,YAAY;SACf,CAAC;IACN,CAAC;IAEO,YAAY,CAAC,KAAa;QAC9B,OAAO,KAAK,GAAG,CAAC,GAAG,uBAAA,IAAI,+CAAqB,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;IAC9F,CAAC;IAEO,gBAAgB,CAAC,KAAa;QAClC,OAAO,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,uBAAA,IAAI,+CAAqB,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;IAC9F,CAAC;CAGJ;AAvWD,gDAuWC;;AAED,yBAAyB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AbstractRestriction } from '../../AbstractRestriction';
|
|
2
|
+
import { DrawingToolsManager } from '../../../../../DrawingToolsManager';
|
|
3
|
+
import { IRay } from '@shapediver/viewer.features.interaction';
|
|
4
|
+
import { ISnapRestriction, SnapRestrictionProperties } from '../../../../../../interfaces/ISnapRestriction';
|
|
5
|
+
import { PlaneRestriction } from '../PlaneRestriction';
|
|
6
|
+
import { RestrictionMetaData } from '../../../../../../interfaces/IRestriction';
|
|
7
|
+
import { vec3 } from 'gl-matrix';
|
|
8
|
+
export declare type AxisRestrictionProperties = {
|
|
9
|
+
activationKeyX?: string;
|
|
10
|
+
activationKeyY?: string;
|
|
11
|
+
activationKeyZ?: string;
|
|
12
|
+
activationKeyPlane?: string;
|
|
13
|
+
} & SnapRestrictionProperties;
|
|
14
|
+
export declare class AxisRestriction extends AbstractRestriction implements ISnapRestriction {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(drawingToolsManager: DrawingToolsManager, planeRestriction: PlaneRestriction, properties?: AxisRestrictionProperties);
|
|
17
|
+
get active(): boolean;
|
|
18
|
+
set active(value: boolean);
|
|
19
|
+
get enabledEditable(): boolean;
|
|
20
|
+
get priority(): number;
|
|
21
|
+
set priority(value: number);
|
|
22
|
+
snap(ray: IRay, point: vec3, metaData?: RestrictionMetaData): vec3 | undefined;
|
|
23
|
+
updatePlaneDefinition(): void;
|
|
24
|
+
protected visibilityChanged(): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=AxisRestriction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxisRestriction.d.ts","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC,oBAAY,yBAAyB,GAAG;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,GAAG,yBAAyB,CAAC;AAM9B,qBAAa,eAAgB,SAAQ,mBAAoB,YAAW,gBAAgB;;gBAkBpE,mBAAmB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,yBAAyB;IAkBhI,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,OAAO,EAI/B;IAED,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEhC;IAMM,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS;IAoB9E,qBAAqB,IAAI,IAAI;IAMpC,SAAS,CAAC,iBAAiB,IAAI,IAAI;CAGtC"}
|
package/dist/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
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 _AxisRestriction_activationKeyX, _AxisRestriction_activationKeyY, _AxisRestriction_activationKeyZ, _AxisRestriction_activationKeyPlane, _AxisRestriction_drawingToolsManager, _AxisRestriction_planeRestriction, _AxisRestriction_active, _AxisRestriction_geometryMathManager, _AxisRestriction_priority;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AxisRestriction = void 0;
|
|
16
|
+
const AbstractRestriction_1 = require("../../AbstractRestriction");
|
|
17
|
+
// #endregion Type aliases (1)
|
|
18
|
+
// #region Classes (1)
|
|
19
|
+
class AxisRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
20
|
+
// #endregion Properties (8)
|
|
21
|
+
// #region Constructors (1)
|
|
22
|
+
constructor(drawingToolsManager, planeRestriction, properties) {
|
|
23
|
+
super(drawingToolsManager, 'axis');
|
|
24
|
+
// #region Properties (8)
|
|
25
|
+
_AxisRestriction_activationKeyX.set(this, void 0);
|
|
26
|
+
_AxisRestriction_activationKeyY.set(this, void 0);
|
|
27
|
+
_AxisRestriction_activationKeyZ.set(this, void 0);
|
|
28
|
+
_AxisRestriction_activationKeyPlane.set(this, void 0);
|
|
29
|
+
_AxisRestriction_drawingToolsManager.set(this, void 0);
|
|
30
|
+
_AxisRestriction_planeRestriction.set(this, void 0);
|
|
31
|
+
_AxisRestriction_active.set(this, false);
|
|
32
|
+
_AxisRestriction_geometryMathManager.set(this, void 0);
|
|
33
|
+
_AxisRestriction_priority.set(this, 0);
|
|
34
|
+
__classPrivateFieldSet(this, _AxisRestriction_drawingToolsManager, drawingToolsManager, "f");
|
|
35
|
+
__classPrivateFieldSet(this, _AxisRestriction_planeRestriction, planeRestriction, "f");
|
|
36
|
+
__classPrivateFieldSet(this, _AxisRestriction_geometryMathManager, drawingToolsManager.geometryMathManager, "f");
|
|
37
|
+
__classPrivateFieldSet(this, _AxisRestriction_activationKeyX, (properties === null || properties === void 0 ? void 0 : properties.activationKeyX) || 'x', "f");
|
|
38
|
+
__classPrivateFieldSet(this, _AxisRestriction_activationKeyY, (properties === null || properties === void 0 ? void 0 : properties.activationKeyY) || 'y', "f");
|
|
39
|
+
__classPrivateFieldSet(this, _AxisRestriction_activationKeyZ, (properties === null || properties === void 0 ? void 0 : properties.activationKeyZ) || 'z', "f");
|
|
40
|
+
__classPrivateFieldSet(this, _AxisRestriction_activationKeyPlane, (properties === null || properties === void 0 ? void 0 : properties.activationKeyPlane) || 'p', "f");
|
|
41
|
+
__classPrivateFieldSet(this, _AxisRestriction_priority, (properties === null || properties === void 0 ? void 0 : properties.priority) || 1, "f");
|
|
42
|
+
}
|
|
43
|
+
// #endregion Constructors (1)
|
|
44
|
+
// #region Public Getters And Setters (5)
|
|
45
|
+
get active() {
|
|
46
|
+
return __classPrivateFieldGet(this, _AxisRestriction_active, "f");
|
|
47
|
+
}
|
|
48
|
+
set active(value) {
|
|
49
|
+
__classPrivateFieldSet(this, _AxisRestriction_active, value, "f");
|
|
50
|
+
// if (this.#gridHelper) this.#gridHelper.visible = value;
|
|
51
|
+
}
|
|
52
|
+
get enabledEditable() {
|
|
53
|
+
return this._enabledEditable;
|
|
54
|
+
}
|
|
55
|
+
get priority() {
|
|
56
|
+
return __classPrivateFieldGet(this, _AxisRestriction_priority, "f");
|
|
57
|
+
}
|
|
58
|
+
set priority(value) {
|
|
59
|
+
__classPrivateFieldSet(this, _AxisRestriction_priority, value, "f");
|
|
60
|
+
}
|
|
61
|
+
// #endregion Public Getters And Setters (5)
|
|
62
|
+
// #region Public Methods (2)
|
|
63
|
+
snap(ray, point, metaData) {
|
|
64
|
+
if (this.enabled === false)
|
|
65
|
+
return;
|
|
66
|
+
if (!metaData || !metaData.referencePoint)
|
|
67
|
+
return;
|
|
68
|
+
const xPressed = __classPrivateFieldGet(this, _AxisRestriction_drawingToolsManager, "f").keyPressed(__classPrivateFieldGet(this, _AxisRestriction_activationKeyX, "f"));
|
|
69
|
+
const yPressed = __classPrivateFieldGet(this, _AxisRestriction_drawingToolsManager, "f").keyPressed(__classPrivateFieldGet(this, _AxisRestriction_activationKeyY, "f"));
|
|
70
|
+
const zPressed = __classPrivateFieldGet(this, _AxisRestriction_drawingToolsManager, "f").keyPressed(__classPrivateFieldGet(this, _AxisRestriction_activationKeyZ, "f"));
|
|
71
|
+
const pPressed = __classPrivateFieldGet(this, _AxisRestriction_drawingToolsManager, "f").keyPressed('p');
|
|
72
|
+
if (xPressed) {
|
|
73
|
+
return __classPrivateFieldGet(this, _AxisRestriction_geometryMathManager, "f").closestPoint({ origin: metaData.referencePoint, direction: __classPrivateFieldGet(this, _AxisRestriction_planeRestriction, "f").vectorU }, point);
|
|
74
|
+
}
|
|
75
|
+
else if (yPressed) {
|
|
76
|
+
return __classPrivateFieldGet(this, _AxisRestriction_geometryMathManager, "f").closestPoint({ origin: metaData.referencePoint, direction: __classPrivateFieldGet(this, _AxisRestriction_planeRestriction, "f").vectorV }, point);
|
|
77
|
+
}
|
|
78
|
+
else if (zPressed) {
|
|
79
|
+
return __classPrivateFieldGet(this, _AxisRestriction_geometryMathManager, "f").closestPointsRayRay({ origin: metaData.referencePoint, direction: __classPrivateFieldGet(this, _AxisRestriction_planeRestriction, "f").normal }, ray).closestPointOnRay1;
|
|
80
|
+
}
|
|
81
|
+
else if (pPressed) {
|
|
82
|
+
return __classPrivateFieldGet(this, _AxisRestriction_geometryMathManager, "f").closestPointOnPlane(__classPrivateFieldGet(this, _AxisRestriction_planeRestriction, "f").origin, __classPrivateFieldGet(this, _AxisRestriction_planeRestriction, "f").normal, point);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
updatePlaneDefinition() { }
|
|
86
|
+
// #endregion Public Methods (2)
|
|
87
|
+
// #region Protected Methods (1)
|
|
88
|
+
visibilityChanged() { }
|
|
89
|
+
}
|
|
90
|
+
exports.AxisRestriction = AxisRestriction;
|
|
91
|
+
_AxisRestriction_activationKeyX = new WeakMap(), _AxisRestriction_activationKeyY = new WeakMap(), _AxisRestriction_activationKeyZ = new WeakMap(), _AxisRestriction_activationKeyPlane = new WeakMap(), _AxisRestriction_drawingToolsManager = new WeakMap(), _AxisRestriction_planeRestriction = new WeakMap(), _AxisRestriction_active = new WeakMap(), _AxisRestriction_geometryMathManager = new WeakMap(), _AxisRestriction_priority = new WeakMap();
|
|
92
|
+
// #endregion Classes (1)
|
|
93
|
+
//# sourceMappingURL=AxisRestriction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxisRestriction.js","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/AxisRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mEAAgE;AAkBhE,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,eAAgB,SAAQ,yCAAmB;IAcpD,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,mBAAwC,EAAE,gBAAkC,EAAE,UAAsC;QAC5H,KAAK,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QAlBvC,yBAAyB;QAEzB,kDAAiC;QACjC,kDAAiC;QACjC,kDAAiC;QACjC,sDAAqC;QACrC,uDAAmD;QACnD,oDAA6C;QAE7C,kCAAmB,KAAK,EAAC;QACzB,uDAA0C;QAC1C,oCAAoB,CAAC,EAAC;QAQlB,uBAAA,IAAI,wCAAwB,mBAAmB,MAAA,CAAC;QAChD,uBAAA,IAAI,qCAAqB,gBAAgB,MAAA,CAAC;QAC1C,uBAAA,IAAI,wCAAwB,mBAAmB,CAAC,mBAAmB,MAAA,CAAC;QAEpE,uBAAA,IAAI,mCAAmB,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,cAAc,KAAI,GAAG,MAAA,CAAC;QACzD,uBAAA,IAAI,mCAAmB,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,cAAc,KAAI,GAAG,MAAA,CAAC;QACzD,uBAA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AAC;QAC5E,MAAM,QAAQ,GAAG,uBAAA,IAAI,4CAAqB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAE3D,IAAI,QAAQ,EAAE;YACV,OAAO,uBAAA,IAAI,4CAAqB,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE,uBAAA,IAAI,yCAAkB,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC;SACxI;aAAM,IAAI,QAAQ,EAAE;YACjB,OAAO,uBAAA,IAAI,4CAAqB,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE,uBAAA,IAAI,yCAAkB,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC;SACxI;aAAM,IAAI,QAAQ,EAAE;YACjB,OAAO,uBAAA,IAAI,4CAAqB,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE,uBAAA,IAAI,yCAAkB,CAAC,MAAM,EAAE,EAAE,GAAG,CAAC,CAAC,kBAAkB,CAAC;SAC/J;aAAM,IAAI,QAAQ,EAAE;YACjB,OAAO,uBAAA,IAAI,4CAAqB,CAAC,mBAAmB,CAAC,uBAAA,IAAI,yCAAkB,CAAC,MAAM,EAAE,uBAAA,IAAI,yCAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SAC7H;IACL,CAAC;IAEM,qBAAqB,KAAU,CAAC;IAEvC,gCAAgC;IAEhC,gCAAgC;IAEtB,iBAAiB,KAAW,CAAC;CAG1C;AA3FD,0CA2FC;;AAED,yBAAyB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AbstractRestriction } from '../../AbstractRestriction';
|
|
2
2
|
import { DrawingToolsManager } from '../../../../../DrawingToolsManager';
|
|
3
|
+
import { IRay } from '@shapediver/viewer.features.interaction';
|
|
3
4
|
import { ISnapRestriction, SnapRestrictionProperties } from '../../../../../../interfaces/ISnapRestriction';
|
|
4
5
|
import { PlaneRestriction } from '../PlaneRestriction';
|
|
6
|
+
import { RestrictionMetaData } from '../../../../../../interfaces/IRestriction';
|
|
5
7
|
import { vec3 } from 'gl-matrix';
|
|
6
8
|
/**
|
|
7
9
|
* Properties for the grid restriction
|
|
@@ -28,8 +30,8 @@ export declare class GridRestriction extends AbstractRestriction implements ISna
|
|
|
28
30
|
get gridUnitEditable(): boolean;
|
|
29
31
|
get priority(): number;
|
|
30
32
|
set priority(value: number);
|
|
31
|
-
snap(point: vec3): vec3 | undefined;
|
|
32
|
-
updatePlaneDefinition(
|
|
33
|
+
snap(ray: IRay, point: vec3, metaData: RestrictionMetaData): vec3 | undefined;
|
|
34
|
+
updatePlaneDefinition(): void;
|
|
33
35
|
protected visibilityChanged(visible: boolean): void;
|
|
34
36
|
private createGridVisualization;
|
|
35
37
|
private createOffsetFromUnit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRestriction.d.ts","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"GridRestriction.d.ts","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC;;GAEG;AACH,oBAAY,yBAAyB,GAAG;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,yBAAyB,CAAC;AAM9B,qBAAa,eAAgB,SAAQ,mBAAoB,YAAW,gBAAgB;;gBAmBpE,mBAAmB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,yBAAyB;IAwBhI,IAAW,MAAM,IAAI,OAAO,CAE3B;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,OAAO,EAI/B;IAED,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAMhC;IAED,IAAW,gBAAgB,IAAI,OAAO,CAErC;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEhC;IAOM,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS;IA+C7E,qBAAqB,IAAI,IAAI;IASpC,SAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAYnD,OAAO,CAAC,uBAAuB;IAiD/B,OAAO,CAAC,oBAAoB;CAQ/B"}
|
package/dist/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.js
CHANGED
|
@@ -33,7 +33,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
33
33
|
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");
|
|
34
34
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
35
35
|
};
|
|
36
|
-
var _GridRestriction_activationKey, _GridRestriction_drawingToolsManager, _GridRestriction_planeRestriction, _GridRestriction_active, _GridRestriction_gridHelper, _GridRestriction_gridSize, _GridRestriction_gridUnit, _GridRestriction_gridUnitEditable,
|
|
36
|
+
var _GridRestriction_activationKey, _GridRestriction_drawingToolsManager, _GridRestriction_planeRestriction, _GridRestriction_active, _GridRestriction_gridHelper, _GridRestriction_gridSize, _GridRestriction_gridUnit, _GridRestriction_gridUnitEditable, _GridRestriction_offsetFromUnit, _GridRestriction_priority;
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.GridRestriction = void 0;
|
|
39
39
|
const THREE = __importStar(require("three"));
|
|
@@ -43,12 +43,12 @@ const gl_matrix_1 = require("gl-matrix");
|
|
|
43
43
|
// #endregion Type aliases (1)
|
|
44
44
|
// #region Classes (1)
|
|
45
45
|
class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
46
|
-
// #endregion Properties (
|
|
46
|
+
// #endregion Properties (10)
|
|
47
47
|
// #region Constructors (1)
|
|
48
48
|
constructor(drawingToolsManager, planeRestriction, properties) {
|
|
49
49
|
var _a, _b, _c;
|
|
50
50
|
super(drawingToolsManager, 'grid');
|
|
51
|
-
// #region Properties (
|
|
51
|
+
// #region Properties (10)
|
|
52
52
|
_GridRestriction_activationKey.set(this, void 0);
|
|
53
53
|
_GridRestriction_drawingToolsManager.set(this, void 0);
|
|
54
54
|
_GridRestriction_planeRestriction.set(this, void 0);
|
|
@@ -57,21 +57,10 @@ class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
57
57
|
_GridRestriction_gridSize.set(this, 100);
|
|
58
58
|
_GridRestriction_gridUnit.set(this, void 0);
|
|
59
59
|
_GridRestriction_gridUnitEditable.set(this, true);
|
|
60
|
-
_GridRestriction_normal.set(this, void 0);
|
|
61
60
|
_GridRestriction_offsetFromUnit.set(this, gl_matrix_1.vec3.create());
|
|
62
|
-
_GridRestriction_origin.set(this, void 0);
|
|
63
61
|
_GridRestriction_priority.set(this, 0);
|
|
64
|
-
_GridRestriction_vectorU.set(this, void 0);
|
|
65
|
-
_GridRestriction_vectorV.set(this, void 0);
|
|
66
62
|
__classPrivateFieldSet(this, _GridRestriction_drawingToolsManager, drawingToolsManager, "f");
|
|
67
63
|
__classPrivateFieldSet(this, _GridRestriction_planeRestriction, planeRestriction, "f");
|
|
68
|
-
// we store the properties of the plane restriction
|
|
69
|
-
// as we need them to calculate the transformation matrices
|
|
70
|
-
// and the offset of the grid size to the origin
|
|
71
|
-
__classPrivateFieldSet(this, _GridRestriction_vectorU, planeRestriction.vectorU, "f");
|
|
72
|
-
__classPrivateFieldSet(this, _GridRestriction_vectorV, planeRestriction.vectorV, "f");
|
|
73
|
-
__classPrivateFieldSet(this, _GridRestriction_normal, planeRestriction.normal, "f");
|
|
74
|
-
__classPrivateFieldSet(this, _GridRestriction_origin, planeRestriction.origin, "f");
|
|
75
64
|
__classPrivateFieldSet(this, _GridRestriction_activationKey, (properties === null || properties === void 0 ? void 0 : properties.activationKey) || 'g', "f");
|
|
76
65
|
this.enabled = (_a = properties === null || properties === void 0 ? void 0 : properties.enabled) !== null && _a !== void 0 ? _a : false;
|
|
77
66
|
this._enabledEditable = (_b = properties === null || properties === void 0 ? void 0 : properties.enabledEditable) !== null && _b !== void 0 ? _b : true;
|
|
@@ -118,7 +107,7 @@ class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
118
107
|
// #endregion Public Getters And Setters (8)
|
|
119
108
|
// #region Public Methods (2)
|
|
120
109
|
// public get
|
|
121
|
-
snap(point) {
|
|
110
|
+
snap(ray, point, metaData) {
|
|
122
111
|
// if the restriction is not enabled OR the activation key is set and the key is not pressed, return
|
|
123
112
|
if (this.enabled === false && __classPrivateFieldGet(this, _GridRestriction_drawingToolsManager, "f").keyPressed(__classPrivateFieldGet(this, _GridRestriction_activationKey, "f")) === false)
|
|
124
113
|
return;
|
|
@@ -128,12 +117,11 @@ class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
128
117
|
* 2. Move the grid helper to the projected origin
|
|
129
118
|
*/
|
|
130
119
|
// vector from the point to the origin
|
|
131
|
-
const v = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this,
|
|
120
|
+
const v = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin, point);
|
|
132
121
|
// dot product of the vector and the normal
|
|
133
|
-
const dot = gl_matrix_1.vec3.dot(v, __classPrivateFieldGet(this,
|
|
122
|
+
const dot = gl_matrix_1.vec3.dot(v, __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").normal);
|
|
134
123
|
// projection of the origin onto the plane that is created by the point and the normal
|
|
135
|
-
const
|
|
136
|
-
const projectedOrigin = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), adjustedOrigin, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _GridRestriction_normal, "f"), dot));
|
|
124
|
+
const projectedOrigin = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").normal, dot));
|
|
137
125
|
// we move the grid helper to the projected origin
|
|
138
126
|
if (__classPrivateFieldGet(this, _GridRestriction_gridHelper, "f")) {
|
|
139
127
|
__classPrivateFieldGet(this, _GridRestriction_gridHelper, "f").position.copy(new THREE.Vector3(projectedOrigin[0], projectedOrigin[1], projectedOrigin[2]));
|
|
@@ -149,18 +137,14 @@ class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
149
137
|
const rotatedPoint = gl_matrix_1.vec3.transformMat4(gl_matrix_1.vec3.create(), point, __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").transformationToXYPlaneMatrix);
|
|
150
138
|
// Snap the offset to the grid
|
|
151
139
|
const snappedOffset = gl_matrix_1.vec3.create();
|
|
152
|
-
snappedOffset[0] = Math.round(rotatedPoint[0] / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f")) * __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f");
|
|
153
|
-
snappedOffset[1] = Math.round(rotatedPoint[1] / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f")) * __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f");
|
|
140
|
+
snappedOffset[0] = Math.round(rotatedPoint[0] / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f")) * __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") - __classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[0];
|
|
141
|
+
snappedOffset[1] = Math.round(rotatedPoint[1] / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f")) * __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") - __classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[1];
|
|
154
142
|
snappedOffset[2] = rotatedPoint[2];
|
|
155
143
|
// Move the snapped point back to the original coordinate system
|
|
156
144
|
const snappedPoint = gl_matrix_1.vec3.transformMat4(gl_matrix_1.vec3.create(), snappedOffset, __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").transformationFromXYPlaneMatrix);
|
|
157
145
|
return snappedPoint;
|
|
158
146
|
}
|
|
159
|
-
updatePlaneDefinition(
|
|
160
|
-
__classPrivateFieldSet(this, _GridRestriction_origin, origin, "f");
|
|
161
|
-
__classPrivateFieldSet(this, _GridRestriction_vectorU, vectorU, "f");
|
|
162
|
-
__classPrivateFieldSet(this, _GridRestriction_vectorV, vectorV, "f");
|
|
163
|
-
__classPrivateFieldSet(this, _GridRestriction_normal, normal, "f");
|
|
147
|
+
updatePlaneDefinition() {
|
|
164
148
|
this.createOffsetFromUnit();
|
|
165
149
|
this.createGridVisualization();
|
|
166
150
|
}
|
|
@@ -197,7 +181,7 @@ class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
197
181
|
gridSize += __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f");
|
|
198
182
|
// todo adjust grid size so that is divisible by grid unit
|
|
199
183
|
__classPrivateFieldSet(this, _GridRestriction_gridHelper, new THREE.GridHelper(gridSize, gridSize / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f"), 0x666666, 0x222222), "f");
|
|
200
|
-
const adjustedOrigin = gl_matrix_1.vec3.add(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this,
|
|
184
|
+
const adjustedOrigin = gl_matrix_1.vec3.add(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin, __classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f"));
|
|
201
185
|
__classPrivateFieldGet(this, _GridRestriction_gridHelper, "f").position.copy(new THREE.Vector3(adjustedOrigin[0], adjustedOrigin[1], adjustedOrigin[2]));
|
|
202
186
|
__classPrivateFieldGet(this, _GridRestriction_gridHelper, "f").visible = false;
|
|
203
187
|
__classPrivateFieldGet(this, _GridRestriction_gridHelper, "f").renderOrder = 100;
|
|
@@ -205,9 +189,9 @@ class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
205
189
|
__classPrivateFieldGet(this, _GridRestriction_gridHelper, "f").material.transparent = true;
|
|
206
190
|
// three.js uses a right-handed coordinate system, so we need to rotate the grid helper
|
|
207
191
|
const rotationMatrix = new THREE.Matrix4().fromArray([
|
|
208
|
-
__classPrivateFieldGet(this,
|
|
209
|
-
__classPrivateFieldGet(this,
|
|
210
|
-
__classPrivateFieldGet(this,
|
|
192
|
+
__classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").vectorU[0], __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").vectorU[1], __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").vectorU[2], 0,
|
|
193
|
+
__classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").vectorV[0], __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").vectorV[1], __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").vectorV[2], 0,
|
|
194
|
+
__classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").normal[0], __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").normal[1], __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").normal[2], 0,
|
|
211
195
|
0, 0, 0, 1
|
|
212
196
|
]);
|
|
213
197
|
__classPrivateFieldGet(this, _GridRestriction_gridHelper, "f").rotation.setFromRotationMatrix(rotationMatrix);
|
|
@@ -217,12 +201,12 @@ class GridRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
|
217
201
|
}
|
|
218
202
|
createOffsetFromUnit() {
|
|
219
203
|
// Calculate the offset of the rotated point from the rotated origin
|
|
220
|
-
__classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[0] = __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") * Math.round(__classPrivateFieldGet(this,
|
|
221
|
-
__classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[1] = __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") * Math.round(__classPrivateFieldGet(this,
|
|
222
|
-
__classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[2] = __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") * Math.round(__classPrivateFieldGet(this,
|
|
204
|
+
__classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[0] = __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") * Math.round(__classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin[0] / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f")) - __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin[0];
|
|
205
|
+
__classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[1] = __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") * Math.round(__classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin[1] / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f")) - __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin[1];
|
|
206
|
+
__classPrivateFieldGet(this, _GridRestriction_offsetFromUnit, "f")[2] = __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f") * Math.round(__classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin[2] / __classPrivateFieldGet(this, _GridRestriction_gridUnit, "f")) - __classPrivateFieldGet(this, _GridRestriction_planeRestriction, "f").origin[2];
|
|
223
207
|
}
|
|
224
208
|
}
|
|
225
209
|
exports.GridRestriction = GridRestriction;
|
|
226
|
-
_GridRestriction_activationKey = new WeakMap(), _GridRestriction_drawingToolsManager = new WeakMap(), _GridRestriction_planeRestriction = new WeakMap(), _GridRestriction_active = new WeakMap(), _GridRestriction_gridHelper = new WeakMap(), _GridRestriction_gridSize = new WeakMap(), _GridRestriction_gridUnit = new WeakMap(), _GridRestriction_gridUnitEditable = new WeakMap(),
|
|
210
|
+
_GridRestriction_activationKey = new WeakMap(), _GridRestriction_drawingToolsManager = new WeakMap(), _GridRestriction_planeRestriction = new WeakMap(), _GridRestriction_active = new WeakMap(), _GridRestriction_gridHelper = new WeakMap(), _GridRestriction_gridSize = new WeakMap(), _GridRestriction_gridUnit = new WeakMap(), _GridRestriction_gridUnitEditable = new WeakMap(), _GridRestriction_offsetFromUnit = new WeakMap(), _GridRestriction_priority = new WeakMap();
|
|
227
211
|
// #endregion Classes (1)
|
|
228
212
|
//# sourceMappingURL=GridRestriction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRestriction.js","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,mEAAgE;
|
|
1
|
+
{"version":3,"file":"GridRestriction.js","sourceRoot":"","sources":["../../../../../../../../src/business/implementation/managers/interaction/restrictions/plane/snap/GridRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,mEAAgE;AAChE,+CAAoD;AAMpD,yCAAiC;AAoBjC,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,eAAgB,SAAQ,yCAAmB;IAepD,6BAA6B;IAE7B,2BAA2B;IAE3B,YAAY,mBAAwC,EAAE,gBAAkC,EAAE,UAAsC;;QAC5H,KAAK,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QAnBvC,0BAA0B;QAE1B,iDAAgC;QAChC,uDAAmD;QACnD,oDAA6C;QAE7C,kCAAmB,KAAK,EAAC;QACzB,8CAA+B;QAC/B,oCAAoB,GAAG,EAAC;QACxB,4CAAkB;QAClB,4CAA6B,IAAI,EAAC;QAClC,0CAAwB,gBAAI,CAAC,MAAM,EAAE,EAAC;QACtC,oCAAoB,CAAC,EAAC;QASlB,uBAAA,IAAI,wCAAwB,mBAAmB,MAAA,CAAC;QAChD,uBAAA,IAAI,qCAAqB,gBAAgB,MAAA,CAAC;QAE1C,uBAAA,IAAI,kCAAkB,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,KAAI,GAAG,MAAA,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,mCAAI,KAAK,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,eAAe,mCAAI,IAAI,CAAC;QAC5D,uBAAA,IAAI,6BAAa,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,KAAI,CAAC,MAAA,CAAC;QAC3C,uBAAA,IAAI,qCAAqB,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,gBAAgB,mCAAI,IAAI,M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,CAAC,cAAc,CAAC,CAAC;QAChE,2GAA2G;QAC3G,uBAAA,IAAI,mCAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QAEtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,uBAAA,IAAI,mCAAY,CAAC,CAAC;IACzC,CAAC;IAEO,oBAAoB;QACxB,oEAAoE;QACpE,uBAAA,IAAI,uCAAgB,CAAC,CAAC,CAAC,GAAG,uBAAA,IAAI,iCAAU,GAAG,IAAI,CAAC,KAAK,CAAC,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,uBAAA,IAAI,iCAAU,CAAC,GAAG,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC5I,uBAAA,IAAI,uCAAgB,CAAC,CAAC,CAAC,GAAG,uBAAA,IAAI,iCAAU,GAAG,IAAI,CAAC,KAAK,CAAC,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,uBAAA,IAAI,iCAAU,CAAC,GAAG,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC5I,uBAAA,IAAI,uCAAgB,CAAC,CAAC,CAAC,GAAG,uBAAA,IAAI,iCAAU,GAAG,IAAI,CAAC,KAAK,CAAC,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,uBAAA,IAAI,iCAAU,CAAC,GAAG,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAChJ,CAAC;CAGJ;AAnND,0CAmNC;;AAED,yBAAyB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AxisRestrictionProperties } from '../implementation/managers/interaction/restrictions/axis/AxisRestriction';
|
|
2
1
|
import { GeometryRestrictionProperties } from '../implementation/managers/interaction/restrictions/geometry/GeometryRestriction';
|
|
3
2
|
import { IManager } from './IManager';
|
|
4
3
|
import { IMapData, IMaterialBasicLineDataProperties, IMaterialMultiPointDataProperties } from '@shapediver/viewer.shared.types';
|
|
@@ -115,10 +114,10 @@ export declare type Settings = {
|
|
|
115
114
|
* The restrictions of the drawing tool.
|
|
116
115
|
*
|
|
117
116
|
* Here you can define the restrictions that are used when interacting with the drawing tool.
|
|
118
|
-
* At least one restriction is required, the plane
|
|
117
|
+
* At least one restriction is required, the plane restriction is added by default if no restrictions are defined.
|
|
119
118
|
*/
|
|
120
119
|
restrictions: {
|
|
121
|
-
[key: string]: RestrictionProperties | PlaneRestrictionProperties | GeometryRestrictionProperties
|
|
120
|
+
[key: string]: RestrictionProperties | PlaneRestrictionProperties | GeometryRestrictionProperties;
|
|
122
121
|
};
|
|
123
122
|
/**
|
|
124
123
|
* The visualization settings of the drawing tool.
|