@shapediver/viewer.rendering-engine.intersection-restriction-engine 3.9.0 → 3.9.1
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/README.md +1 -1
- package/dist/api/implementation/AbstractRestrictionApi.d.ts +2 -2
- package/dist/api/implementation/AbstractRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/AbstractRestrictionApi.js.map +1 -1
- package/dist/api/implementation/AbstractSnapRestrictionApi.d.ts +2 -2
- package/dist/api/implementation/AbstractSnapRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/AbstractSnapRestrictionApi.js.map +1 -1
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.d.ts +2 -2
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.js.map +1 -1
- package/dist/api/implementation/geometry/GeometryRestrictionApi.d.ts +3 -3
- package/dist/api/implementation/geometry/GeometryRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/geometry/GeometryRestrictionApi.js.map +1 -1
- package/dist/api/implementation/line/LineRestrictionApi.d.ts +3 -3
- package/dist/api/implementation/line/LineRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/line/LineRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/PlaneRestrictionApi.d.ts +6 -6
- package/dist/api/implementation/plane/PlaneRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/plane/PlaneRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.d.ts +2 -2
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.d.ts +2 -2
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/GridRestrictionApi.d.ts +2 -2
- package/dist/api/implementation/plane/snap/GridRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/plane/snap/GridRestrictionApi.js.map +1 -1
- package/dist/api/implementation/point/PointRestrictionApi.d.ts +3 -3
- package/dist/api/implementation/point/PointRestrictionApi.d.ts.map +1 -1
- package/dist/api/implementation/point/PointRestrictionApi.js.map +1 -1
- package/dist/api/interfaces/IRestrictionApi.d.ts.map +1 -1
- package/dist/api/interfaces/ISnapRestrictionApi.d.ts +1 -1
- package/dist/api/interfaces/ISnapRestrictionApi.d.ts.map +1 -1
- package/dist/implementation/EventManager.d.ts +3 -3
- package/dist/implementation/EventManager.d.ts.map +1 -1
- package/dist/implementation/EventManager.js.map +1 -1
- package/dist/implementation/GeometryMathManager.d.ts +4 -4
- package/dist/implementation/GeometryMathManager.d.ts.map +1 -1
- package/dist/implementation/GeometryMathManager.js +25 -13
- package/dist/implementation/GeometryMathManager.js.map +1 -1
- package/dist/implementation/RestrictionManager.d.ts +7 -6
- package/dist/implementation/RestrictionManager.d.ts.map +1 -1
- package/dist/implementation/RestrictionManager.js +65 -29
- package/dist/implementation/RestrictionManager.js.map +1 -1
- package/dist/implementation/restrictions/AbstractRestriction.d.ts +7 -7
- package/dist/implementation/restrictions/AbstractRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/AbstractRestriction.js +8 -5
- package/dist/implementation/restrictions/AbstractRestriction.js.map +1 -1
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts +7 -7
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/AbstractSnapRestriction.js +4 -4
- package/dist/implementation/restrictions/AbstractSnapRestriction.js.map +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts +2 -2
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts.map +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.js +7 -3
- package/dist/implementation/restrictions/RestrictionsHelper.js.map +1 -1
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts +7 -7
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js +2 -2
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts +8 -8
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js +67 -30
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js.map +1 -1
- package/dist/implementation/restrictions/line/LineRestriction.d.ts +20 -9
- package/dist/implementation/restrictions/line/LineRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/line/LineRestriction.js +66 -9
- package/dist/implementation/restrictions/line/LineRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts +11 -11
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/PlaneRestriction.js +34 -16
- package/dist/implementation/restrictions/plane/PlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts +9 -9
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js +86 -35
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts +8 -8
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js +79 -24
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts +8 -8
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js +58 -19
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js.map +1 -1
- package/dist/implementation/restrictions/point/PointRestriction.d.ts +8 -8
- package/dist/implementation/restrictions/point/PointRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/point/PointRestriction.js +5 -4
- package/dist/implementation/restrictions/point/PointRestriction.js.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IDragAnchor.d.ts +1 -1
- package/dist/interfaces/IDragAnchor.d.ts.map +1 -1
- package/dist/interfaces/IRestriction.d.ts +14 -13
- package/dist/interfaces/IRestriction.d.ts.map +1 -1
- package/dist/interfaces/IRestriction.js +2 -2
- package/dist/interfaces/IRestriction.js.map +1 -1
- package/dist/interfaces/IRestrictionManager.d.ts +2 -2
- package/dist/interfaces/IRestrictionManager.d.ts.map +1 -1
- package/dist/interfaces/ISnapRestriction.d.ts +3 -3
- package/dist/interfaces/ISnapRestriction.d.ts.map +1 -1
- package/dist/interfaces/ISnapRestriction.js.map +1 -1
- package/dist/interfaces/IVisualizationSettings.d.ts +1 -1
- package/dist/interfaces/IVisualizationSettings.d.ts.map +1 -1
- package/package.json +52 -52
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# `@shapediver/viewer.rendering-engine.intersection-restriction-engine`
|
|
2
2
|
|
|
3
|
-
This package is part of the [`@shapediver/viewer`](https://www.npmjs.com/package/@shapediver/viewer), you can find all information [here](https://viewer.shapediver.com/v3/latest/api/index.html).
|
|
3
|
+
This package is part of the [`@shapediver/viewer`](https://www.npmjs.com/package/@shapediver/viewer), you can find all information [here](https://viewer.shapediver.com/v3/latest/api/index.html).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRestriction } from
|
|
2
|
-
import { IRestrictionApi } from
|
|
1
|
+
import { IRestriction } from "../../interfaces/IRestriction";
|
|
2
|
+
import { IRestrictionApi } from "../interfaces/IRestrictionApi";
|
|
3
3
|
export declare abstract class AbstractRestrictionApi implements IRestrictionApi {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(restriction: IRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/implementation/AbstractRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AbstractRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/implementation/AbstractRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAE9D,8BAAsB,sBAAuB,YAAW,eAAe;;gBAS1D,WAAW,EAAE,YAAY;IAQrC,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,OAAO,EAEhC;IAED,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,OAAO,EAEjC;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,EAAE,IAAI,MAAM,CAEtB;CAGD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractRestrictionApi.js","sourceRoot":"","sources":["../../../src/api/implementation/AbstractRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,MAAsB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"AbstractRestrictionApi.js","sourceRoot":"","sources":["../../../src/api/implementation/AbstractRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,MAAsB,sBAAsB;IAK3C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB;QARrC,yBAAyB;QAEzB,sDAAoC;QAOnC,uBAAA,IAAI,uCAAgB,WAAW,MAAA,CAAC;IACjC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,OAAO;QACjB,OAAO,uBAAA,IAAI,2CAAa,CAAC,OAAO,CAAC;IAClC,CAAC;IAED,IAAW,OAAO,CAAC,KAAc;QAChC,uBAAA,IAAI,2CAAa,CAAC,OAAO,GAAG,KAAK,CAAC;IACnC,CAAC;IAED,IAAW,QAAQ;QAClB,OAAO,uBAAA,IAAI,2CAAa,CAAC,QAAQ,CAAC;IACnC,CAAC;IAED,IAAW,QAAQ,CAAC,KAAc;QACjC,uBAAA,IAAI,2CAAa,CAAC,QAAQ,GAAG,KAAK,CAAC;IACpC,CAAC;IAED,IAAW,QAAQ;QAClB,OAAO,uBAAA,IAAI,2CAAa,CAAC,QAAQ,CAAC;IACnC,CAAC;IAED,IAAW,EAAE;QACZ,OAAO,uBAAA,IAAI,2CAAa,CAAC,EAAE,CAAC;IAC7B,CAAC;CAGD;AA1CD,wDA0CC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISnapRestriction } from
|
|
2
|
-
import { ISnapRestrictionApi } from
|
|
1
|
+
import { ISnapRestriction } from "../../interfaces/ISnapRestriction";
|
|
2
|
+
import { ISnapRestrictionApi } from "../interfaces/ISnapRestrictionApi";
|
|
3
3
|
export declare abstract class AbstractSnapRestrictionApi implements ISnapRestrictionApi {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(restriction: ISnapRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractSnapRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/implementation/AbstractSnapRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AbstractSnapRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/implementation/AbstractSnapRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AAEtE,8BAAsB,0BACrB,YAAW,mBAAmB;;gBAUlB,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;CAGD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractSnapRestrictionApi.js","sourceRoot":"","sources":["../../../src/api/implementation/AbstractSnapRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,MAAsB,0BAA0B;
|
|
1
|
+
{"version":3,"file":"AbstractSnapRestrictionApi.js","sourceRoot":"","sources":["../../../src/api/implementation/AbstractSnapRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,MAAsB,0BAA0B;IAO/C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA6B;QARzC,yBAAyB;QAEzB,0DAAwC;QAOvC,uBAAA,IAAI,2CAAgB,WAAW,MAAA,CAAC;IACjC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,OAAO;QACjB,OAAO,uBAAA,IAAI,+CAAa,CAAC,OAAO,CAAC;IAClC,CAAC;IAED,IAAW,OAAO,CAAC,KAAc;QAChC,uBAAA,IAAI,+CAAa,CAAC,OAAO,GAAG,KAAK,CAAC;IACnC,CAAC;IAED,IAAW,eAAe;QACzB,OAAO,uBAAA,IAAI,+CAAa,CAAC,eAAe,CAAC;IAC1C,CAAC;IAED,IAAW,EAAE;QACZ,OAAO,uBAAA,IAAI,+CAAa,CAAC,EAAE,CAAC;IAC7B,CAAC;IAED,IAAW,QAAQ;QAClB,OAAO,uBAAA,IAAI,+CAAa,CAAC,QAAQ,CAAC;IACnC,CAAC;IAED,IAAW,QAAQ,CAAC,KAAa;QAChC,uBAAA,IAAI,+CAAa,CAAC,QAAQ,GAAG,KAAK,CAAC;IACpC,CAAC;CAGD;AA5CD,gEA4CC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CameraPlaneRestriction } from "../../../implementation/restrictions/camera_plane/CameraPlaneRestriction";
|
|
2
|
+
import { AbstractRestrictionApi } from "../AbstractRestrictionApi";
|
|
3
3
|
export declare class CameraPlaneRestrictionApi extends AbstractRestrictionApi {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(restriction: CameraPlaneRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CameraPlaneRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/camera_plane/CameraPlaneRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CameraPlaneRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/camera_plane/CameraPlaneRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0EAA0E,CAAC;AAChH,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,yBAA0B,SAAQ,sBAAsB;;gBASxD,WAAW,EAAE,sBAAsB;CAM/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CameraPlaneRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/camera_plane/CameraPlaneRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CameraPlaneRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/camera_plane/CameraPlaneRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;AACA,sEAAiE;AAEjE,MAAa,yBAA0B,SAAQ,+CAAsB;IAKpE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAmC;QAC9C,KAAK,CAAC,WAAW,CAAC,CAAC;QATpB,yBAAyB;QAEzB,oEAAyD;QAQxD,uBAAA,IAAI,qDAA2B,WAAW,MAAA,CAAC;IAC5C,CAAC;CAGD;AAfD,8DAeC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GeometryRestriction } from
|
|
3
|
-
import {
|
|
1
|
+
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
2
|
+
import { GeometryRestriction } from "../../../implementation/restrictions/geometry/GeometryRestriction";
|
|
3
|
+
import { AbstractRestrictionApi } from "../AbstractRestrictionApi";
|
|
4
4
|
export declare class GeometryRestrictionApi extends AbstractRestrictionApi {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(restriction: GeometryRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/geometry/GeometryRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GeometryRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/geometry/GeometryRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAC,mBAAmB,EAAC,MAAM,mEAAmE,CAAC;AACtG,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,sBAAuB,SAAQ,sBAAsB;;gBASrD,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;CAK5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/geometry/GeometryRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GeometryRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/geometry/GeometryRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,sEAAiE;AAEjE,MAAa,sBAAuB,SAAQ,+CAAsB;IAKjE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAgC;QAC3C,KAAK,CAAC,WAAW,CAAC,CAAC;QATpB,yBAAyB;QAEzB,8DAAmD;QAQlD,uBAAA,IAAI,+CAAwB,WAAW,MAAA,CAAC;IACzC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,WAAW;QACrB,OAAO,uBAAA,IAAI,mDAAqB,CAAC,WAAW,CAAC;IAC9C,CAAC;IAED,IAAW,WAAW,CAAC,KAAc;QACpC,uBAAA,IAAI,mDAAqB,CAAC,WAAW,GAAG,KAAK,CAAC;IAC/C,CAAC;IAED,IAAW,WAAW;QACrB,OAAO,uBAAA,IAAI,mDAAqB,CAAC,WAAW,CAAC;IAC9C,CAAC;IAED,IAAW,WAAW,CAAC,KAAc;QACpC,uBAAA,IAAI,mDAAqB,CAAC,WAAW,GAAG,KAAK,CAAC;IAC/C,CAAC;IAED,IAAW,cAAc;QACxB,OAAO,uBAAA,IAAI,mDAAqB,CAAC,cAAc,CAAC;IACjD,CAAC;IAED,IAAW,cAAc,CAAC,KAAc;QACvC,uBAAA,IAAI,mDAAqB,CAAC,cAAc,GAAG,KAAK,CAAC;IAClD,CAAC;IAED,4CAA4C;IAE5C,6BAA6B;IAEtB,WAAW,CAAC,KAAkB;QACpC,uBAAA,IAAI,mDAAqB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;CAGD;AAnDD,wDAmDC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LineRestriction } from
|
|
3
|
-
import {
|
|
1
|
+
import { vec3 } from "gl-matrix";
|
|
2
|
+
import { LineRestriction } from "../../../implementation/restrictions/line/LineRestriction";
|
|
3
|
+
import { AbstractRestrictionApi } from "../AbstractRestrictionApi";
|
|
4
4
|
export declare class LineRestrictionApi extends AbstractRestrictionApi {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(restriction: LineRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/line/LineRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LineRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/line/LineRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,eAAe,EAAC,MAAM,2DAA2D,CAAC;AAC1F,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,kBAAmB,SAAQ,sBAAsB;;gBASjD,WAAW,EAAE,eAAe;IASxC,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;CAGD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/line/LineRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"LineRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/line/LineRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,sEAAiE;AAEjE,MAAa,kBAAmB,SAAQ,+CAAsB;IAK7D,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA4B;QACvC,KAAK,CAAC,WAAW,CAAC,CAAC;QATpB,yBAAyB;QAEzB,sDAA2C;QAQ1C,uBAAA,IAAI,uCAAoB,WAAW,MAAA,CAAC;IACrC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,MAAM;QAChB,OAAO,uBAAA,IAAI,2CAAiB,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,IAAW,MAAM;QAChB,OAAO,uBAAA,IAAI,2CAAiB,CAAC,MAAM,CAAC;IACrC,CAAC;IAED,IAAW,MAAM;QAChB,OAAO,uBAAA,IAAI,2CAAiB,CAAC,MAAM,CAAC;IACrC,CAAC;CAGD;AA/BD,gDA+BC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { vec3 } from "gl-matrix";
|
|
2
|
+
import { PlaneRestriction } from "../../../implementation/restrictions/plane/PlaneRestriction";
|
|
3
|
+
import { AbstractRestrictionApi } from "../AbstractRestrictionApi";
|
|
4
|
+
import { AngularRestrictionApi } from "./snap/AngularRestrictionApi";
|
|
5
|
+
import { AxisRestrictionApi } from "./snap/AxisRestrictionApi";
|
|
6
|
+
import { GridRestrictionApi } from "./snap/GridRestrictionApi";
|
|
7
7
|
export declare class PlaneRestrictionApi extends AbstractRestrictionApi {
|
|
8
8
|
#private;
|
|
9
9
|
constructor(restriction: PlaneRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaneRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/plane/PlaneRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PlaneRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/plane/PlaneRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,6DAA6D,CAAC;AAC7F,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAE7D,qBAAa,mBAAoB,SAAQ,sBAAsB;;gBAYlD,WAAW,EAAE,gBAAgB;IAmBzC,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;CAGD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaneRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/plane/PlaneRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PlaneRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/plane/PlaneRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,sEAAiE;AACjE,wEAAmE;AACnE,kEAA6D;AAC7D,kEAA6D;AAE7D,MAAa,mBAAoB,SAAQ,+CAAsB;IAQ9D,4BAA4B;IAE5B,2BAA2B;IAE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CAGD;AApED,kDAoEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AngularRestriction } from "../../../../implementation/restrictions/plane/snap/AngularRestriction";
|
|
2
|
+
import { AbstractSnapRestrictionApi } from "../../AbstractSnapRestrictionApi";
|
|
3
3
|
export declare class AngularRestrictionApi extends AbstractSnapRestrictionApi {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(restriction: AngularRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AngularRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AngularRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AngularRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AngularRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,uEAAuE,CAAC;AACzG,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAE5E,qBAAa,qBAAsB,SAAQ,0BAA0B;;gBASxD,WAAW,EAAE,kBAAkB;IAS3C,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED,IAAW,iBAAiB,IAAI,OAAO,CAEtC;CAGD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AngularRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AngularRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AngularRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AngularRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iFAA4E;AAE5E,MAAa,qBAAsB,SAAQ,uDAA0B;IAKpE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA+B;QAC1C,KAAK,CAAC,WAAW,CAAC,CAAC;QATpB,yBAAyB;QAEzB,4DAAiD;QAQhD,uBAAA,IAAI,6CAAuB,WAAW,MAAA,CAAC;IACxC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,SAAS;QACnB,OAAO,uBAAA,IAAI,iDAAoB,CAAC,SAAS,CAAC;IAC3C,CAAC;IAED,IAAW,SAAS,CAAC,KAAa;QACjC,uBAAA,IAAI,iDAAoB,CAAC,SAAS,GAAG,KAAK,CAAC;IAC5C,CAAC;IAED,IAAW,iBAAiB;QAC3B,OAAO,uBAAA,IAAI,iDAAoB,CAAC,iBAAiB,CAAC;IACnD,CAAC;CAGD;AA/BD,sDA+BC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AxisRestriction } from "../../../../implementation/restrictions/plane/snap/AxisRestriction";
|
|
2
|
+
import { AbstractSnapRestrictionApi } from "../../AbstractSnapRestrictionApi";
|
|
3
3
|
export declare class AxisRestrictionApi extends AbstractSnapRestrictionApi {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(restriction: AxisRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AxisRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AxisRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AxisRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,oEAAoE,CAAC;AACnG,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAE5E,qBAAa,kBAAmB,SAAQ,0BAA0B;;gBASrD,WAAW,EAAE,eAAe;CAMxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AxisRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AxisRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/AxisRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;AACA,iFAA4E;AAE5E,MAAa,kBAAmB,SAAQ,uDAA0B;IAKjE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA4B;QACvC,KAAK,CAAC,WAAW,CAAC,CAAC;QATpB,yBAAyB;QAEzB,sDAA2C;QAQ1C,uBAAA,IAAI,uCAAoB,WAAW,MAAA,CAAC;IACrC,CAAC;CAGD;AAfD,gDAeC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { GridRestriction } from "../../../../implementation/restrictions/plane/snap/GridRestriction";
|
|
2
|
+
import { AbstractSnapRestrictionApi } from "../../AbstractSnapRestrictionApi";
|
|
3
3
|
export declare class GridRestrictionApi extends AbstractSnapRestrictionApi {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(restriction: GridRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/GridRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GridRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/GridRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,oEAAoE,CAAC;AACnG,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAE5E,qBAAa,kBAAmB,SAAQ,0BAA0B;;gBASrD,WAAW,EAAE,eAAe;IASxC,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED,IAAW,gBAAgB,IAAI,OAAO,CAErC;CAGD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/GridRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GridRestrictionApi.js","sourceRoot":"","sources":["../../../../../src/api/implementation/plane/snap/GridRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iFAA4E;AAE5E,MAAa,kBAAmB,SAAQ,uDAA0B;IAKjE,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA4B;QACvC,KAAK,CAAC,WAAW,CAAC,CAAC;QATpB,yBAAyB;QAEzB,sDAA2C;QAQ1C,uBAAA,IAAI,uCAAoB,WAAW,MAAA,CAAC;IACrC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,QAAQ;QAClB,OAAO,uBAAA,IAAI,2CAAiB,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAW,QAAQ,CAAC,KAAa;QAChC,uBAAA,IAAI,2CAAiB,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxC,CAAC;IAED,IAAW,gBAAgB;QAC1B,OAAO,uBAAA,IAAI,2CAAiB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;CAGD;AA/BD,gDA+BC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PointRestriction } from
|
|
3
|
-
import {
|
|
1
|
+
import { vec3 } from "gl-matrix";
|
|
2
|
+
import { PointRestriction } from "../../../implementation/restrictions/point/PointRestriction";
|
|
3
|
+
import { AbstractRestrictionApi } from "../AbstractRestrictionApi";
|
|
4
4
|
export declare class PointRestrictionApi extends AbstractRestrictionApi {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(restriction: PointRestriction);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/point/PointRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PointRestrictionApi.d.ts","sourceRoot":"","sources":["../../../../src/api/implementation/point/PointRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,6DAA6D,CAAC;AAC7F,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;AAEjE,qBAAa,mBAAoB,SAAQ,sBAAsB;;gBASlD,WAAW,EAAE,gBAAgB;IASzC,IAAW,KAAK,IAAI,IAAI,CAEvB;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;CAGD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/point/PointRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PointRestrictionApi.js","sourceRoot":"","sources":["../../../../src/api/implementation/point/PointRestrictionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,sEAAiE;AAEjE,MAAa,mBAAoB,SAAQ,+CAAsB;IAK9D,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAA6B;QACxC,KAAK,CAAC,WAAW,CAAC,CAAC;QATpB,yBAAyB;QAEzB,wDAA6C;QAQ5C,uBAAA,IAAI,yCAAqB,WAAW,MAAA,CAAC;IACtC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,KAAK;QACf,OAAO,uBAAA,IAAI,6CAAkB,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,IAAW,MAAM;QAChB,OAAO,uBAAA,IAAI,6CAAkB,CAAC,MAAM,CAAC;IACtC,CAAC;CAGD;AA3BD,kDA2BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/interfaces/IRestrictionApi.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;
|
|
1
|
+
{"version":3,"file":"IRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/interfaces/IRestrictionApi.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAG/B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAGjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISnapRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/interfaces/ISnapRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ISnapRestrictionApi.d.ts","sourceRoot":"","sources":["../../../src/api/interfaces/ISnapRestrictionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAG3D;;;OAGG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAGjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { IViewportApi } from "@shapediver/viewer";
|
|
2
|
+
import { IDomEventListener } from "@shapediver/viewer.shared.services";
|
|
3
|
+
import { IRay } from "@shapediver/viewer.shared.types";
|
|
4
4
|
declare type Callbacks = {
|
|
5
5
|
onDown: (event: PointerEvent, ray: IRay) => void;
|
|
6
6
|
onMove: (event: PointerEvent, ray: IRay) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventManager.d.ts","sourceRoot":"","sources":["../../src/implementation/EventManager.ts"],"names":[],"mappings":"AAAA,OAAO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
|
-
{"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../src/implementation/EventManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAeA,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"EventManager.js","sourceRoot":"","sources":["../../src/implementation/EventManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAeA,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,YAAY;IAOxB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,QAAsB,EAAE,SAAoB;QAVxD,yBAAyB;QAEzB,0CAA+B;QAC/B,yDAA2C;QAC3C,yCAAiC;QAOhC,uBAAA,IAAI,0BAAa,QAAQ,MAAA,CAAC;QAC1B,uBAAA,IAAI,2BAAc,SAAS,MAAA,CAAC;QAC5B,uBAAA,IAAI,0CACH,uBAAA,IAAI,8BAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAA,CAAC;IAC9C,CAAC;IAED,8BAA8B;IAE9B,6BAA6B;IAEtB,KAAK;QACX,uBAAA,IAAI,8BAAU,CAAC,yBAAyB,CACvC,uBAAA,IAAI,8CAA0B,CAC9B,CAAC;IACH,CAAC;IAEM,SAAS,CAAC,KAAoB;QACpC,uBAAA,IAAI,+BAAW,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAEM,OAAO,CAAC,KAAoB;QAClC,uBAAA,IAAI,+BAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAEM,YAAY,KAAU,CAAC;IAEvB,aAAa,CAAC,KAAmB;QACvC,MAAM,GAAG,GAAG,uBAAA,IAAI,8BAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACpD,uBAAA,IAAI,+BAAW,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC;IAEM,YAAY,KAAU,CAAC;IAEvB,aAAa,CAAC,KAAmB;QACvC,MAAM,GAAG,GAAG,uBAAA,IAAI,8BAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACpD,uBAAA,IAAI,+BAAW,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC;IAEM,YAAY,CAAC,KAAmB;QACtC,MAAM,GAAG,GAAG,uBAAA,IAAI,8BAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACpD,uBAAA,IAAI,+BAAW,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACnC,CAAC;IAEM,WAAW,CAAC,KAAmB;QACrC,MAAM,GAAG,GAAG,uBAAA,IAAI,8BAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACpD,uBAAA,IAAI,+BAAW,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;CAGD;AA7DD,oCA6DC;;AAED,yBAAyB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { IViewportApi } from "@shapediver/viewer";
|
|
2
|
+
import { IRay } from "@shapediver/viewer.shared.types";
|
|
3
|
+
import { vec3 } from "gl-matrix";
|
|
4
|
+
import { IVisualizationSettings } from "../interfaces/IVisualizationSettings";
|
|
5
5
|
export declare class GeometryMathManager {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(viewport: IViewportApi, settings: IVisualizationSettings);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryMathManager.d.ts","sourceRoot":"","sources":["../../src/implementation/GeometryMathManager.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GeometryMathManager.d.ts","sourceRoot":"","sources":["../../src/implementation/GeometryMathManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAC,IAAI,EAA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AAI,CAAC;QAAC,kBAAkB,EAAE,IAAI,CAAA;KAAC;IAwDhD,wBAAwB,CAC9B,MAAM,EAAE,IAAI,EACZ,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,MAAM;;;;CAmClB"}
|
|
@@ -46,9 +46,13 @@ class GeometryMathManager {
|
|
|
46
46
|
const lineStart = gl_matrix_1.vec3.fromValues(positionArray.at(firstIndex * 3), positionArray.at(firstIndex * 3 + 1), positionArray.at(firstIndex * 3 + 2));
|
|
47
47
|
const lineEnd = gl_matrix_1.vec3.fromValues(positionArray.at(secondIndex * 3), positionArray.at(secondIndex * 3 + 1), positionArray.at(secondIndex * 3 + 2));
|
|
48
48
|
const { closestPointOnRay, closestPointOnLine } = this.closestPointsRayLine(ray, lineStart, lineEnd);
|
|
49
|
-
if (this.screenSpaceDistanceCheck(closestPointOnRay, closestPointOnLine, __classPrivateFieldGet(this, _GeometryMathManager_settings, "f").points.size_0 *
|
|
49
|
+
if (this.screenSpaceDistanceCheck(closestPointOnRay, closestPointOnLine, __classPrivateFieldGet(this, _GeometryMathManager_settings, "f").points.size_0 *
|
|
50
|
+
__classPrivateFieldGet(this, _GeometryMathManager_settings, "f").distanceMultiplicationFactor).check === false)
|
|
50
51
|
continue;
|
|
51
|
-
distances.push({
|
|
52
|
+
distances.push({
|
|
53
|
+
index: [firstIndex, secondIndex],
|
|
54
|
+
distance: gl_matrix_1.vec3.distance(closestPointOnRay, closestPointOnLine),
|
|
55
|
+
});
|
|
52
56
|
}
|
|
53
57
|
// if there are no distances, return
|
|
54
58
|
if (distances.length === 0)
|
|
@@ -70,9 +74,13 @@ class GeometryMathManager {
|
|
|
70
74
|
const point = gl_matrix_1.vec3.fromValues(positionArray.at(i), positionArray.at(i + 1), positionArray.at(i + 2));
|
|
71
75
|
// distance from point to ray
|
|
72
76
|
const closestPoint = this.closestPoint(ray, point);
|
|
73
|
-
if (this.screenSpaceDistanceCheck(point, closestPoint, __classPrivateFieldGet(this, _GeometryMathManager_settings, "f").points.size_0 *
|
|
77
|
+
if (this.screenSpaceDistanceCheck(point, closestPoint, __classPrivateFieldGet(this, _GeometryMathManager_settings, "f").points.size_0 *
|
|
78
|
+
__classPrivateFieldGet(this, _GeometryMathManager_settings, "f").distanceMultiplicationFactor).check === false)
|
|
74
79
|
continue;
|
|
75
|
-
distances.push({
|
|
80
|
+
distances.push({
|
|
81
|
+
index: i / 3,
|
|
82
|
+
distance: gl_matrix_1.vec3.distance(point, closestPoint),
|
|
83
|
+
});
|
|
76
84
|
}
|
|
77
85
|
// if there are no distances, return
|
|
78
86
|
if (distances.length === 0)
|
|
@@ -153,7 +161,8 @@ class GeometryMathManager {
|
|
|
153
161
|
const closestPointOnRay = ray.origin;
|
|
154
162
|
const closestPointOnLine = gl_matrix_1.vec3.add(gl_matrix_1.vec3.create(), lineStart, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), lineDirection, gl_matrix_1.vec3.dot(gl_matrix_1.vec3.subtract(gl_matrix_1.vec3.create(), ray.origin, lineStart), lineDirection)));
|
|
155
163
|
return {
|
|
156
|
-
closestPointOnRay,
|
|
164
|
+
closestPointOnRay,
|
|
165
|
+
closestPointOnLine,
|
|
157
166
|
};
|
|
158
167
|
}
|
|
159
168
|
const t = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), lineStart, ray.origin);
|
|
@@ -174,7 +183,8 @@ class GeometryMathManager {
|
|
|
174
183
|
closestPointOnLine = gl_matrix_1.vec3.add(gl_matrix_1.vec3.create(), lineStart, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), lineDirection, uValue));
|
|
175
184
|
}
|
|
176
185
|
return {
|
|
177
|
-
closestPointOnRay,
|
|
186
|
+
closestPointOnRay,
|
|
187
|
+
closestPointOnLine,
|
|
178
188
|
};
|
|
179
189
|
}
|
|
180
190
|
/**
|
|
@@ -194,7 +204,8 @@ class GeometryMathManager {
|
|
|
194
204
|
const closestPointOnRay1 = ray1.origin;
|
|
195
205
|
const closestPointOnRay2 = gl_matrix_1.vec3.add(gl_matrix_1.vec3.create(), ray2.origin, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), ray2.direction, gl_matrix_1.vec3.dot(gl_matrix_1.vec3.subtract(gl_matrix_1.vec3.create(), ray1.origin, ray2.origin), ray2.direction)));
|
|
196
206
|
return {
|
|
197
|
-
closestPointOnRay1,
|
|
207
|
+
closestPointOnRay1,
|
|
208
|
+
closestPointOnRay2,
|
|
198
209
|
};
|
|
199
210
|
}
|
|
200
211
|
const t = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), ray2.origin, ray1.origin);
|
|
@@ -205,7 +216,8 @@ class GeometryMathManager {
|
|
|
205
216
|
const closestPointOnRay1 = gl_matrix_1.vec3.add(gl_matrix_1.vec3.create(), ray1.origin, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), ray1.direction, tValue));
|
|
206
217
|
const closestPointOnRay2 = gl_matrix_1.vec3.add(gl_matrix_1.vec3.create(), ray2.origin, gl_matrix_1.vec3.scale(gl_matrix_1.vec3.create(), ray2.direction, uValue));
|
|
207
218
|
return {
|
|
208
|
-
closestPointOnRay1,
|
|
219
|
+
closestPointOnRay1,
|
|
220
|
+
closestPointOnRay2,
|
|
209
221
|
};
|
|
210
222
|
}
|
|
211
223
|
screenSpaceDistanceCheck(point1, point2, threshold) {
|
|
@@ -215,10 +227,10 @@ class GeometryMathManager {
|
|
|
215
227
|
const screenPos2 = camera.project(gl_matrix_1.vec3.clone(point2));
|
|
216
228
|
const width = __classPrivateFieldGet(this, _GeometryMathManager_viewport, "f").canvas.width;
|
|
217
229
|
const height = __classPrivateFieldGet(this, _GeometryMathManager_viewport, "f").canvas.height;
|
|
218
|
-
const x1 =
|
|
219
|
-
const y1 = -(
|
|
220
|
-
const x2 =
|
|
221
|
-
const y2 = -(
|
|
230
|
+
const x1 = screenPos1[0] * (width / 2) + width / 2;
|
|
231
|
+
const y1 = -(screenPos1[1] * (height / 2) + height / 2);
|
|
232
|
+
const x2 = screenPos2[0] * (width / 2) + width / 2;
|
|
233
|
+
const y2 = -(screenPos2[1] * (height / 2) + height / 2);
|
|
222
234
|
const distanceSquared = Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2);
|
|
223
235
|
/**
|
|
224
236
|
* Logic: The actual calculation would be
|
|
@@ -231,7 +243,7 @@ class GeometryMathManager {
|
|
|
231
243
|
*/
|
|
232
244
|
return {
|
|
233
245
|
distanceSquared: distanceSquared,
|
|
234
|
-
check: distanceSquared * 4 < Math.pow(threshold, 2)
|
|
246
|
+
check: distanceSquared * 4 < Math.pow(threshold, 2),
|
|
235
247
|
};
|
|
236
248
|
}
|
|
237
249
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryMathManager.js","sourceRoot":"","sources":["../../src/implementation/GeometryMathManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GeometryMathManager.js","sourceRoot":"","sources":["../../src/implementation/GeometryMathManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,yCAA+B;AAG/B,MAAa,mBAAmB;IAM/B,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,QAAsB,EAAE,QAAgC;QATpE,yBAAyB;QAEzB,gDAA2C;QAC3C,gDAAiC;QAOhC,uBAAA,IAAI,iCAAa,QAAQ,MAAA,CAAC;QAC1B,uBAAA,IAAI,iCAAa,QAAQ,MAAA,CAAC;IAC3B,CAAC;IAED,8BAA8B;IAE9B,6BAA6B;IAE7B;;;;;OAKG;IACI,kBAAkB,CACxB,GAAS,EACT,aAA2B,EAC3B,iBAAqC;QAErC,6CAA6C;QAC7C,IAAI,CAAC,iBAAiB;YAAE,OAAO;QAE/B;;WAEG;QACH,MAAM,SAAS,GAGT,EAAE,CAAC;QAET,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YACrD,MAAM,UAAU,GA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
import { IVisualizationSettings } from
|
|
1
|
+
import { IViewportApi } from "@shapediver/viewer";
|
|
2
|
+
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
3
|
+
import { IRay } from "@shapediver/viewer.shared.types";
|
|
4
|
+
import { DraggingRestrictionMetaData, DrawingRestrictionMetaData, IRestriction, RayTraceResult, RestrictionProperties } from "../interfaces/IRestriction";
|
|
5
|
+
import { IRestrictionManager } from "../interfaces/IRestrictionManager";
|
|
6
|
+
import { IVisualizationSettings } from "../interfaces/IVisualizationSettings";
|
|
7
7
|
export declare class RestrictionManager implements IRestrictionManager {
|
|
8
8
|
#private;
|
|
9
9
|
constructor(viewport: IViewportApi, parentNode?: ITreeNode, restrictions?: RestrictionProperties[], settings?: IVisualizationSettings);
|
|
@@ -16,6 +16,7 @@ export declare class RestrictionManager implements IRestrictionManager {
|
|
|
16
16
|
addRestriction(properties: RestrictionProperties): string | undefined;
|
|
17
17
|
close(): void;
|
|
18
18
|
getPressedKeys(): string[];
|
|
19
|
+
getToggleKeys(): string[];
|
|
19
20
|
getRestriction(token: string): IRestriction | undefined;
|
|
20
21
|
rayTrace(ray: IRay, metaData: DrawingRestrictionMetaData | DraggingRestrictionMetaData): RayTraceResult | undefined;
|
|
21
22
|
removeRestriction(token: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RestrictionManager.d.ts","sourceRoot":"","sources":["../../src/implementation/RestrictionManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RestrictionManager.d.ts","sourceRoot":"","sources":["../../src/implementation/RestrictionManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAY,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAW,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAGN,IAAI,EACJ,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,2BAA2B,EAC3B,0BAA0B,EAC1B,YAAY,EAEZ,cAAc,EACd,qB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