@shapediver/viewer.rendering-engine.intersection-restriction-engine 3.18.2 → 3.19.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/LICENSE +73 -73
- package/README.md +3 -3
- package/dist/api/implementation/AbstractRestrictionApi.d.ts +2 -2
- package/dist/api/implementation/AbstractRestrictionApi.d.ts.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/geometry/GeometryRestrictionApi.d.ts +1 -1
- package/dist/api/implementation/geometry/GeometryRestrictionApi.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/GeometryMathManager.d.ts +2 -2
- package/dist/implementation/GeometryMathManager.d.ts.map +1 -1
- package/dist/implementation/GeometryMathManager.js.map +1 -1
- package/dist/implementation/RestrictionManager.d.ts +5 -5
- package/dist/implementation/RestrictionManager.d.ts.map +1 -1
- package/dist/implementation/RestrictionManager.js.map +1 -1
- package/dist/implementation/restrictions/AbstractRestriction.d.ts +5 -5
- package/dist/implementation/restrictions/AbstractRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/AbstractRestriction.js.map +1 -1
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts +5 -5
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/AbstractSnapRestriction.js.map +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts.map +1 -1
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts +4 -4
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts +5 -5
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js.map +1 -1
- package/dist/implementation/restrictions/line/LineRestriction.d.ts +5 -5
- package/dist/implementation/restrictions/line/LineRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/line/LineRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts +7 -7
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/PlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts +4 -4
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js +26 -26
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts +4 -4
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts +4 -4
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js.map +1 -1
- package/dist/implementation/restrictions/point/PointRestriction.d.ts +4 -4
- package/dist/implementation/restrictions/point/PointRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/point/PointRestriction.js.map +1 -1
- package/dist/index.d.ts +17 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IRestriction.d.ts +9 -9
- package/dist/interfaces/IRestriction.d.ts.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 +2 -2
- package/dist/interfaces/ISnapRestriction.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/point/PointRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"PointRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/point/PointRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqF;AAKrF,yCAA+B;AAC/B,6CAA+B;AAQ/B,gEAA2D;AAE3D,IAAI,YAAY,GACf,uBAAc,CAAC,QAAQ;KACrB,OAAO,CAAC,0DAA0D,CAAC;KACnE,IAAI,CAAC,CAAC,OAA6B,EAAE,EAAE;IACvC,YAAY,GAAG,IAAI,KAAK,CAAC,OAAO,CAC/B,OAAQ,CAAC,KAAyB,CAClC,CAAC;IACF,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC;IAChC,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC,CAAC;AA8BL,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,gBACZ,SAAQ,yCAAmB;IAiB3B,4BAA4B;IAE5B,2BAA2B;IAE3B,YACC,QAAsB,EACtB,mBAAwC,EACxC,UAAqB,EACrB,EAAU,EACV,QAAgC,EAChC,UAAsC;;QAEtC,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC;QA1B7C,yBAAyB;QAEhB,6CAAwB;QAEjC,0CAAa;QACb,2CAAgB;QAChB,6CAAkC;QAClC,6CAAuD,EAAE,EAAC;QAC1D,gDAAuC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAC;QAC5D,8CAAoB;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BAAA,IAAI,+BAAO;oBACxB,wCAAwC,EAAE,QAAQ;oBAClD,WAAW,EAAE,IAAI;iBACjB,CAAC;YACH,CAAC;YAED,8DAA8D;YAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,uBAAA,IAAI,gCAAQ,GAAG,uBAAA,IAAI,gCAAQ,GAAG,QAAQ,CAAC,CAAC;YACjE,6BAA6B;YAC7B,MAAM,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;YACzB,MAAM,wBAAwB,GAAG,gBAAI,CAAC,WAAW,CAChD,gBAAI,CAAC,MAAM,EAAE,EACb,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,SAAS,EACb,KAAK,CACL,CAAC;YAEF,OAAO;gBACN,wBAAwB,EAAE,wBAAwB;gBAClD,+CAA+C,EAAE,KAAK,GAAG,KAAK;gBAC9D,WAAW,EAAE,uBAAA,IAAI,+BAAO;gBACxB,wCAAwC,EAAE,QAAQ;gBAClD,WAAW,EAAE,IAAI;aACjB,CAAC;QACH,CAAC;QACD,OAAO;IACR,CAAC;IAED,gCAAgC;IAEhC,gCAAgC;IAEtB,iBAAiB,KAAU,CAAC;CAGtC;AA5KD,4CA4KC;;AAED,yBAAyB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
1
|
+
import { type IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
2
2
|
import { CameraPlaneRestrictionApi } from "./api/implementation/camera_plane/CameraPlaneRestrictionApi";
|
|
3
3
|
import { GeometryRestrictionApi } from "./api/implementation/geometry/GeometryRestrictionApi";
|
|
4
4
|
import { LineRestrictionApi } from "./api/implementation/line/LineRestrictionApi";
|
|
@@ -7,22 +7,23 @@ import { AngularRestrictionApi } from "./api/implementation/plane/snap/AngularRe
|
|
|
7
7
|
import { AxisRestrictionApi } from "./api/implementation/plane/snap/AxisRestrictionApi";
|
|
8
8
|
import { GridRestrictionApi } from "./api/implementation/plane/snap/GridRestrictionApi";
|
|
9
9
|
import { PointRestrictionApi } from "./api/implementation/point/PointRestrictionApi";
|
|
10
|
-
import { IRestrictionApi } from "./api/interfaces/IRestrictionApi";
|
|
11
|
-
import { ISnapRestrictionApi } from "./api/interfaces/ISnapRestrictionApi";
|
|
10
|
+
import { type IRestrictionApi } from "./api/interfaces/IRestrictionApi";
|
|
11
|
+
import { type ISnapRestrictionApi } from "./api/interfaces/ISnapRestrictionApi";
|
|
12
12
|
import { EventManager } from "./implementation/EventManager";
|
|
13
13
|
import { GeometryMathManager } from "./implementation/GeometryMathManager";
|
|
14
14
|
import { RestrictionManager } from "./implementation/RestrictionManager";
|
|
15
|
-
import { CameraPlaneRestriction, CameraPlaneRestrictionProperties } from "./implementation/restrictions/camera_plane/CameraPlaneRestriction";
|
|
16
|
-
import { GeometryRestriction, GeometryRestrictionProperties } from "./implementation/restrictions/geometry/GeometryRestriction";
|
|
17
|
-
import { LineRestriction, LineRestrictionProperties } from "./implementation/restrictions/line/LineRestriction";
|
|
18
|
-
import { PlaneRestriction, PlaneRestrictionProperties } from "./implementation/restrictions/plane/PlaneRestriction";
|
|
19
|
-
import { AngularRestrictionProperties } from "./implementation/restrictions/plane/snap/AngularRestriction";
|
|
20
|
-
import { AxisRestrictionProperties } from "./implementation/restrictions/plane/snap/AxisRestriction";
|
|
21
|
-
import { GridRestrictionProperties } from "./implementation/restrictions/plane/snap/GridRestriction";
|
|
22
|
-
import { PointRestriction, PointRestrictionProperties } from "./implementation/restrictions/point/PointRestriction";
|
|
23
|
-
import { IDragAnchor } from "./interfaces/IDragAnchor";
|
|
24
|
-
import { DraggingRestrictionMetaData, DrawingRestrictionMetaData, IRestriction, RayTraceResult, RESTRICTION_TYPE, RestrictionMetaData, RestrictionProperties, RestrictionPropertiesBase } from "./interfaces/IRestriction";
|
|
25
|
-
import { IRestrictionManager } from "./interfaces/IRestrictionManager";
|
|
26
|
-
import { ISnapRestriction, SnapRestrictionProperties } from "./interfaces/ISnapRestriction";
|
|
27
|
-
export { AngularRestrictionApi, AxisRestrictionApi, CameraPlaneRestriction, CameraPlaneRestrictionApi, EventManager, GeometryMathManager, GeometryRestriction, GeometryRestrictionApi, GridRestrictionApi, LineRestriction, LineRestrictionApi, PlaneRestriction, PlaneRestrictionApi, PointRestriction, PointRestrictionApi, RESTRICTION_TYPE, RestrictionManager
|
|
15
|
+
import { CameraPlaneRestriction, type CameraPlaneRestrictionProperties } from "./implementation/restrictions/camera_plane/CameraPlaneRestriction";
|
|
16
|
+
import { GeometryRestriction, type GeometryRestrictionProperties } from "./implementation/restrictions/geometry/GeometryRestriction";
|
|
17
|
+
import { LineRestriction, type LineRestrictionProperties } from "./implementation/restrictions/line/LineRestriction";
|
|
18
|
+
import { PlaneRestriction, type PlaneRestrictionProperties } from "./implementation/restrictions/plane/PlaneRestriction";
|
|
19
|
+
import { type AngularRestrictionProperties } from "./implementation/restrictions/plane/snap/AngularRestriction";
|
|
20
|
+
import { type AxisRestrictionProperties } from "./implementation/restrictions/plane/snap/AxisRestriction";
|
|
21
|
+
import { type GridRestrictionProperties } from "./implementation/restrictions/plane/snap/GridRestriction";
|
|
22
|
+
import { PointRestriction, type PointRestrictionProperties } from "./implementation/restrictions/point/PointRestriction";
|
|
23
|
+
import { type IDragAnchor } from "./interfaces/IDragAnchor";
|
|
24
|
+
import { type DraggingRestrictionMetaData, type DrawingRestrictionMetaData, type IRestriction, type RayTraceResult, RESTRICTION_TYPE, type RestrictionMetaData, type RestrictionProperties, type RestrictionPropertiesBase } from "./interfaces/IRestriction";
|
|
25
|
+
import { type IRestrictionManager } from "./interfaces/IRestrictionManager";
|
|
26
|
+
import { type ISnapRestriction, type SnapRestrictionProperties } from "./interfaces/ISnapRestriction";
|
|
27
|
+
export { AngularRestrictionApi, AxisRestrictionApi, CameraPlaneRestriction, CameraPlaneRestrictionApi, EventManager, GeometryMathManager, GeometryRestriction, GeometryRestrictionApi, GridRestrictionApi, LineRestriction, LineRestrictionApi, PlaneRestriction, PlaneRestrictionApi, PointRestriction, PointRestrictionApi, RESTRICTION_TYPE, RestrictionManager };
|
|
28
|
+
export type { AngularRestrictionProperties, AxisRestrictionProperties, CameraPlaneRestrictionProperties, DraggingRestrictionMetaData, DrawingRestrictionMetaData, GeometryRestrictionProperties, GridRestrictionProperties, IDragAnchor, IRestriction, IRestrictionApi, IRestrictionManager, ISnapRestriction, ISnapRestrictionApi, IVisualizationSettings, LineRestrictionProperties, PlaneRestrictionProperties, PointRestrictionProperties, RayTraceResult, RestrictionMetaData, RestrictionProperties, RestrictionPropertiesBase, SnapRestrictionProperties };
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAC,yBAAyB,EAAC,MAAM,6DAA6D,CAAC;AACtG,OAAO,EAAC,sBAAsB,EAAC,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAC,kBAAkB,EAAC,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAC,qBAAqB,EAAC,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAC,mBAAmB,EAAC,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAC,K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BAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAAC,CAAC;AACrB,YAAY,EAAC,4BAA4B,EACxC,yBAAyB,EACzB,gCAAgC,EAChC,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EAAC,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,2GAAsG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,2GAAsG;AAiDrG,0GAjDO,qDAAyB,OAiDP;AAhD1B,iGAA4F;AAoD3F,uGApDO,+CAAsB,OAoDP;AAnDvB,qFAAgF;AAsD/E,mGAtDO,uCAAkB,OAsDP;AArDnB,wFAAmF;AAuDlF,oGAvDO,yCAAmB,OAuDP;AAtDpB,iGAA4F;AA0CpF,sGA1CA,6CAAqB,OA0CA;AAzC7B,2FAAsF;AA0CrF,mGA1CO,uCAAkB,OA0CP;AAzCnB,2FAAsF;AAgDrF,mGAhDO,uCAAkB,OAgDP;AA/CnB,wFAAmF;AAqDlF,oGArDO,yCAAmB,OAqDP;AAlDpB,gEAA2D;AAwC1D,6FAxCO,2BAAY,OAwCP;AAvCb,8EAAyE;AAwCxE,oGAxCO,yCAAmB,OAwCP;AAvCpB,4EAAuE;AAkDtE,mGAlDO,uCAAkB,OAkDP;AAjDnB,8GAEiH;AAiChH,uGAlCA,+CAAsB,OAkCA;AAhCvB,oGAEuG;AAkCtG,oGAnCA,yCAAmB,OAmCA;AAjCpB,wFAE2F;AAkC1F,gGAnCA,iCAAe,OAmCA;AAjChB,2FAE8F;AAiC7F,iGAlCA,mCAAgB,OAkCA;AA7BjB,2FAE8F;AA6B7F,iGA9BA,mCAAgB,OA8BA;AA3BjB,4DAQkE;AAqBjE,iGAxBA,+BAAgB,OAwBA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { mat4, vec3 } from "gl-matrix";
|
|
2
|
-
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
3
|
-
import { IRay } from "@shapediver/viewer.shared.types";
|
|
4
|
-
import { CameraPlaneRestrictionProperties } from "../implementation/restrictions/camera_plane/CameraPlaneRestriction";
|
|
5
|
-
import { GeometryRestrictionProperties } from "../implementation/restrictions/geometry/GeometryRestriction";
|
|
6
|
-
import { LineRestrictionProperties } from "../implementation/restrictions/line/LineRestriction";
|
|
7
|
-
import { PlaneRestrictionProperties } from "../implementation/restrictions/plane/PlaneRestriction";
|
|
8
|
-
import { PointRestrictionProperties } from "../implementation/restrictions/point/PointRestriction";
|
|
9
|
-
import { IDragAnchor } from "./IDragAnchor";
|
|
10
|
-
import { ISnapRestriction } from "./ISnapRestriction";
|
|
2
|
+
import { type ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
3
|
+
import { type IRay } from "@shapediver/viewer.shared.types";
|
|
4
|
+
import { type CameraPlaneRestrictionProperties } from "../implementation/restrictions/camera_plane/CameraPlaneRestriction";
|
|
5
|
+
import { type GeometryRestrictionProperties } from "../implementation/restrictions/geometry/GeometryRestriction";
|
|
6
|
+
import { type LineRestrictionProperties } from "../implementation/restrictions/line/LineRestriction";
|
|
7
|
+
import { type PlaneRestrictionProperties } from "../implementation/restrictions/plane/PlaneRestriction";
|
|
8
|
+
import { type PointRestrictionProperties } from "../implementation/restrictions/point/PointRestriction";
|
|
9
|
+
import { type IDragAnchor } from "./IDragAnchor";
|
|
10
|
+
import { type ISnapRestriction } from "./ISnapRestriction";
|
|
11
11
|
export declare enum RESTRICTION_TYPE {
|
|
12
12
|
PLANE = "plane",
|
|
13
13
|
GEOMETRY = "geometry",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IRestriction.d.ts","sourceRoot":"","sources":["../../src/interfaces/IRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AAErC,OAAO,EAAC,SAAS,EAAC,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"IRestriction.d.ts","sourceRoot":"","sources":["../../src/interfaces/IRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AAErC,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAC,KAAK,IAAI,EAAC,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAC,KAAK,gCAAgC,EAAC,MAAM,oEAAoE,CAAC;AACzH,OAAO,EAAC,KAAK,6BAA6B,EAAC,MAAM,6DAA6D,CAAC;AAC/G,OAAO,EAAC,KAAK,yBAAyB,EAAC,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAC,KAAK,0BAA0B,EAAC,MAAM,uDAAuD,CAAC;AACtG,OAAO,EAAC,KAAK,0BAA0B,EAAC,MAAM,uDAAuD,CAAC;AACtG,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEzD,oBAAY,gBAAgB;IAC3B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,YAAY,iBAAiB;CAC7B;AAED,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACvE,WAAW,C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C5C,WAAW,mBAAmB,KAC5B,QAAQ,IAAI,sCAEd,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRay } from "@shapediver/viewer.shared.types";
|
|
2
|
-
import { DraggingRestrictionMetaData, DrawingRestrictionMetaData, IRestriction, RayTraceResult, RestrictionProperties, TransformationToolsRestrictionMetaData } from "./IRestriction";
|
|
1
|
+
import { type IRay } from "@shapediver/viewer.shared.types";
|
|
2
|
+
import { type DraggingRestrictionMetaData, type DrawingRestrictionMetaData, type IRestriction, type RayTraceResult, type RestrictionProperties, type TransformationToolsRestrictionMetaData } from "./IRestriction";
|
|
3
3
|
export interface IRestrictionManager {
|
|
4
4
|
readonly restrictions: {
|
|
5
5
|
[token: string]: IRestriction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IRestrictionManager.d.ts","sourceRoot":"","sources":["../../src/interfaces/IRestrictionManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"IRestrictionManager.d.ts","sourceRoot":"","sources":["../../src/interfaces/IRestrictionManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,EAAC,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EACN,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,sCAAsC,EAAC,MAAM,gBAAgB,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAGnC,QAAQ,CAAC,YAAY,EAAE;QAAC,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAA;KAAC,CAAC;IAEvD,4BAA4B,EAAE,OAAO,CAAC;IAMtC,cAAc,CAAC,UAAU,EAAE,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAAC;IACtE,KAAK,IAAI,IAAI,CAAC;IACd,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IACxD,QAAQ,CACP,GAAG,EAAE,IAAI,EACT,QAAQ,CAAC,EACN,0BAA0B,GAC1B,2BAA2B,GAC3B,sCAAsC,GACvC,cAAc,GAAG,SAAS,CAAC;IAC9B,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAG1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IRay } from "@shapediver/viewer.shared.types";
|
|
1
|
+
import { type IRay } from "@shapediver/viewer.shared.types";
|
|
2
2
|
import { vec3 } from "gl-matrix";
|
|
3
|
-
import { RestrictionMetaData, RestrictionResult } from "./IRestriction";
|
|
3
|
+
import { type RestrictionMetaData, type RestrictionResult } from "./IRestriction";
|
|
4
4
|
export type SnapRestrictionProperties = {
|
|
5
5
|
/**
|
|
6
6
|
* Whether to create visual helper objects (grid, axis, etc.) for restrictions. (default: true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISnapRestriction.d.ts","sourceRoot":"","sources":["../../src/interfaces/ISnapRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"ISnapRestriction.d.ts","sourceRoot":"","sources":["../../src/interfaces/ISnapRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,EAAC,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAIhF,MAAM,MAAM,yBAAyB,GAAG;IACvC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAMF,MAAM,WAAW,gBAAgB;IAGhC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAM3B;;OAEG;IACH,mBAAmB,IAAI,IAAI,CAAC;IAC5B;;;;;;;;OAQG;IACH,IAAI,CACH,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,GAAG,SAAS,CAAC;CAGjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.rendering-engine.intersection-restriction-engine",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"testEnvironment": "node"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@shapediver/viewer": "3.
|
|
42
|
-
"@shapediver/viewer.rendering-engine.intersection-engine": "3.
|
|
43
|
-
"@shapediver/viewer.rendering-engine.rendering-engine-threejs": "3.
|
|
44
|
-
"@shapediver/viewer.shared.math": "3.
|
|
45
|
-
"@shapediver/viewer.shared.node-tree": "3.
|
|
46
|
-
"@shapediver/viewer.shared.services": "3.
|
|
47
|
-
"@shapediver/viewer.shared.types": "3.
|
|
41
|
+
"@shapediver/viewer": "3.19.1",
|
|
42
|
+
"@shapediver/viewer.rendering-engine.intersection-engine": "3.19.1",
|
|
43
|
+
"@shapediver/viewer.rendering-engine.rendering-engine-threejs": "3.19.1",
|
|
44
|
+
"@shapediver/viewer.shared.math": "3.19.1",
|
|
45
|
+
"@shapediver/viewer.shared.node-tree": "3.19.1",
|
|
46
|
+
"@shapediver/viewer.shared.services": "3.19.1",
|
|
47
|
+
"@shapediver/viewer.shared.types": "3.19.1",
|
|
48
48
|
"@types/three": "0.162.0",
|
|
49
49
|
"gl-matrix": "3.4.4",
|
|
50
50
|
"three": "0.162.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "88d6d6e1265a97e69f69869979e0acad86afa2b2"
|
|
53
53
|
}
|