@shapediver/viewer.rendering-engine.intersection-restriction-engine 3.16.7 → 3.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/implementation/AbstractRestrictionApi.d.ts +12 -12
- package/dist/api/implementation/AbstractRestrictionApi.js +46 -46
- package/dist/api/implementation/AbstractRestrictionApi.js.map +1 -1
- package/dist/api/implementation/AbstractSnapRestrictionApi.d.ts +12 -12
- package/dist/api/implementation/AbstractSnapRestrictionApi.js +46 -46
- package/dist/api/implementation/AbstractSnapRestrictionApi.js.map +1 -1
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.d.ts +6 -6
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.js +23 -23
- package/dist/api/implementation/camera_plane/CameraPlaneRestrictionApi.js.map +1 -1
- package/dist/api/implementation/geometry/GeometryRestrictionApi.d.ts +14 -14
- package/dist/api/implementation/geometry/GeometryRestrictionApi.js +53 -53
- package/dist/api/implementation/geometry/GeometryRestrictionApi.js.map +1 -1
- package/dist/api/implementation/line/LineRestrictionApi.d.ts +10 -10
- package/dist/api/implementation/line/LineRestrictionApi.js +39 -39
- package/dist/api/implementation/line/LineRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/PlaneRestrictionApi.d.ts +19 -19
- package/dist/api/implementation/plane/PlaneRestrictionApi.js +66 -66
- package/dist/api/implementation/plane/PlaneRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.d.ts +9 -9
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.js +39 -39
- package/dist/api/implementation/plane/snap/AngularRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.d.ts +6 -6
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.js +23 -23
- package/dist/api/implementation/plane/snap/AxisRestrictionApi.js.map +1 -1
- package/dist/api/implementation/plane/snap/GridRestrictionApi.d.ts +9 -9
- package/dist/api/implementation/plane/snap/GridRestrictionApi.js +39 -39
- package/dist/api/implementation/plane/snap/GridRestrictionApi.js.map +1 -1
- package/dist/api/implementation/point/PointRestrictionApi.d.ts +9 -9
- package/dist/api/implementation/point/PointRestrictionApi.js +36 -36
- package/dist/api/implementation/point/PointRestrictionApi.js.map +1 -1
- package/dist/api/interfaces/IRestrictionApi.d.ts +10 -10
- package/dist/api/interfaces/IRestrictionApi.js +2 -2
- package/dist/api/interfaces/ISnapRestrictionApi.d.ts +12 -12
- package/dist/api/interfaces/ISnapRestrictionApi.js +2 -2
- package/dist/implementation/EventManager.d.ts +25 -25
- package/dist/implementation/EventManager.d.ts.map +1 -1
- package/dist/implementation/EventManager.js +62 -62
- package/dist/implementation/EventManager.js.map +1 -1
- package/dist/implementation/GeometryMathManager.d.ts +87 -87
- package/dist/implementation/GeometryMathManager.js +260 -260
- package/dist/implementation/GeometryMathManager.js.map +1 -1
- package/dist/implementation/RestrictionManager.d.ts +28 -28
- package/dist/implementation/RestrictionManager.js +323 -323
- package/dist/implementation/RestrictionManager.js.map +1 -1
- package/dist/implementation/restrictions/AbstractRestriction.d.ts +42 -42
- package/dist/implementation/restrictions/AbstractRestriction.js +164 -154
- package/dist/implementation/restrictions/AbstractRestriction.js.map +1 -1
- package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts +35 -35
- package/dist/implementation/restrictions/AbstractSnapRestriction.js +150 -140
- package/dist/implementation/restrictions/AbstractSnapRestriction.js.map +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts +10 -10
- package/dist/implementation/restrictions/RestrictionsHelper.d.ts.map +1 -1
- package/dist/implementation/restrictions/RestrictionsHelper.js +50 -50
- package/dist/implementation/restrictions/RestrictionsHelper.js.map +1 -1
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.d.ts +17 -17
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js +62 -62
- package/dist/implementation/restrictions/camera_plane/CameraPlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts +92 -92
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js +410 -400
- package/dist/implementation/restrictions/geometry/GeometryRestriction.js.map +1 -1
- package/dist/implementation/restrictions/line/LineRestriction.d.ts +58 -58
- package/dist/implementation/restrictions/line/LineRestriction.js +291 -281
- package/dist/implementation/restrictions/line/LineRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts +65 -65
- package/dist/implementation/restrictions/plane/PlaneRestriction.js +306 -306
- package/dist/implementation/restrictions/plane/PlaneRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts +39 -39
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js +346 -346
- package/dist/implementation/restrictions/plane/snap/AngularRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts +27 -27
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js +239 -229
- package/dist/implementation/restrictions/plane/snap/AxisRestriction.js.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts +39 -39
- package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts.map +1 -1
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js +318 -308
- package/dist/implementation/restrictions/plane/snap/GridRestriction.js.map +1 -1
- package/dist/implementation/restrictions/point/PointRestriction.d.ts +45 -45
- package/dist/implementation/restrictions/point/PointRestriction.js +166 -156
- package/dist/implementation/restrictions/point/PointRestriction.js.map +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +37 -37
- package/dist/interfaces/IDragAnchor.d.ts +8 -8
- package/dist/interfaces/IDragAnchor.js +2 -2
- package/dist/interfaces/IRestriction.d.ts +117 -117
- package/dist/interfaces/IRestriction.d.ts.map +1 -1
- package/dist/interfaces/IRestriction.js +23 -23
- package/dist/interfaces/IRestriction.js.map +1 -1
- package/dist/interfaces/IRestrictionManager.d.ts +13 -13
- package/dist/interfaces/IRestrictionManager.js +2 -2
- package/dist/interfaces/ISnapRestriction.d.ts +81 -81
- package/dist/interfaces/ISnapRestriction.d.ts.map +1 -1
- package/dist/interfaces/ISnapRestriction.js +3 -3
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRestriction.js","sourceRoot":"","sources":["../../../../../src/implementation/restrictions/plane/snap/GridRestriction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GridRestriction.js","sourceRoot":"","sources":["../../../../../src/implementation/restrictions/plane/snap/GridRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2E;AAC3E,+EAI4C;AAE5C,yCAA+B;AAC/B,6CAA+B;AAU/B,2EAAsE;AAqBtE,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,eACZ,SAAQ,iDAAuB;IAkB/B,4BAA4B;IAE5B,2BAA2B;IAE3B,YACC,QAAsB,EACtB,mBAAwC,EACxC,UAAqB,EACrB,gBAAkC,EAClC,UAAsC;;QAEtC,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QA1BjD,yBAAyB;QAEhB,iDAAuB;QACvB,uCAA4B,oCAAW,CAAC,QAAQ,EAAC;QACjD,oDAAoC;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,2CAA4B,KAAK,EAAC;QAClC,oCAAoB,CAAC,EAAC;QAerB,uBAAA,IAAI,qCAAqB,gBAAgB,MAAA,CAAC;QAE1C,uBAAA,IAAI,kCAAkB,CAAA,UA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CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAClC,uBAAA,IAAI,uCAAgB,CAAC,CAAC,CAAC;YACtB,uBAAA,IAAI,iCAAU;gBACb,IAAI,CAAC,KAAK,CAAC,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,uBAAA,IAAI,iCAAU,CAAC;gBAC9D,uBAAA,IAAI,yCAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;CAGD;AA1XD,0CA0XC;;AAED,yBAAyB"}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { ITreeNode, IViewportApi } from "@shapediver/viewer";
|
|
2
|
-
import { IRay, IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
3
|
-
import { vec3 } from "gl-matrix";
|
|
4
|
-
import { IRestriction, RestrictionMetaData, RestrictionPropertiesBase, RestrictionResult } from "../../../interfaces/IRestriction";
|
|
5
|
-
import { ISnapRestriction } from "../../../interfaces/ISnapRestriction";
|
|
6
|
-
import { GeometryMathManager } from "../../GeometryMathManager";
|
|
7
|
-
import { AbstractRestriction } from "../AbstractRestriction";
|
|
8
|
-
export interface PointRestrictionProperties extends RestrictionPropertiesBase {
|
|
9
|
-
/**
|
|
10
|
-
* The location of the restriction.
|
|
11
|
-
*/
|
|
12
|
-
point: vec3;
|
|
13
|
-
/**
|
|
14
|
-
* The radius in which the restriction is active.
|
|
15
|
-
*/
|
|
16
|
-
radius?: number;
|
|
17
|
-
/**
|
|
18
|
-
* If the restriction should be displayed as a wireframe point.
|
|
19
|
-
*/
|
|
20
|
-
wireframe?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The color of the wireframe.
|
|
23
|
-
*/
|
|
24
|
-
wireframeColor?: string;
|
|
25
|
-
/**
|
|
26
|
-
* If the wireframe should be rendered with depth test. (default: false)
|
|
27
|
-
*/
|
|
28
|
-
wireframeDepthTest?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The size of the wireframe point.
|
|
31
|
-
*/
|
|
32
|
-
wireframePointSize?: number;
|
|
33
|
-
}
|
|
34
|
-
export declare class PointRestriction extends AbstractRestriction implements IRestriction {
|
|
35
|
-
#private;
|
|
36
|
-
constructor(viewport: IViewportApi, geometryMathManager: GeometryMathManager, parentNode: ITreeNode, id: string, settings: IVisualizationSettings, properties: PointRestrictionProperties);
|
|
37
|
-
get point(): vec3;
|
|
38
|
-
get radius(): number;
|
|
39
|
-
get snapRestrictions(): {
|
|
40
|
-
[key: string]: ISnapRestriction;
|
|
41
|
-
};
|
|
42
|
-
isWithinRadius(point: vec3): boolean;
|
|
43
|
-
rayTrace(ray: IRay, metaData?: RestrictionMetaData): RestrictionResult | undefined;
|
|
44
|
-
protected visibilityChanged(): void;
|
|
45
|
-
}
|
|
1
|
+
import { ITreeNode, IViewportApi } from "@shapediver/viewer";
|
|
2
|
+
import { IRay, IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
3
|
+
import { vec3 } from "gl-matrix";
|
|
4
|
+
import { IRestriction, RestrictionMetaData, RestrictionPropertiesBase, RestrictionResult } from "../../../interfaces/IRestriction";
|
|
5
|
+
import { ISnapRestriction } from "../../../interfaces/ISnapRestriction";
|
|
6
|
+
import { GeometryMathManager } from "../../GeometryMathManager";
|
|
7
|
+
import { AbstractRestriction } from "../AbstractRestriction";
|
|
8
|
+
export interface PointRestrictionProperties extends RestrictionPropertiesBase {
|
|
9
|
+
/**
|
|
10
|
+
* The location of the restriction.
|
|
11
|
+
*/
|
|
12
|
+
point: vec3;
|
|
13
|
+
/**
|
|
14
|
+
* The radius in which the restriction is active.
|
|
15
|
+
*/
|
|
16
|
+
radius?: number;
|
|
17
|
+
/**
|
|
18
|
+
* If the restriction should be displayed as a wireframe point.
|
|
19
|
+
*/
|
|
20
|
+
wireframe?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The color of the wireframe.
|
|
23
|
+
*/
|
|
24
|
+
wireframeColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* If the wireframe should be rendered with depth test. (default: false)
|
|
27
|
+
*/
|
|
28
|
+
wireframeDepthTest?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The size of the wireframe point.
|
|
31
|
+
*/
|
|
32
|
+
wireframePointSize?: number;
|
|
33
|
+
}
|
|
34
|
+
export declare class PointRestriction extends AbstractRestriction implements IRestriction {
|
|
35
|
+
#private;
|
|
36
|
+
constructor(viewport: IViewportApi, geometryMathManager: GeometryMathManager, parentNode: ITreeNode, id: string, settings: IVisualizationSettings, properties: PointRestrictionProperties);
|
|
37
|
+
get point(): vec3;
|
|
38
|
+
get radius(): number;
|
|
39
|
+
get snapRestrictions(): {
|
|
40
|
+
[key: string]: ISnapRestriction;
|
|
41
|
+
};
|
|
42
|
+
isWithinRadius(point: vec3): boolean;
|
|
43
|
+
rayTrace(ray: IRay, metaData?: RestrictionMetaData): RestrictionResult | undefined;
|
|
44
|
+
protected visibilityChanged(): void;
|
|
45
|
+
}
|
|
46
46
|
//# sourceMappingURL=PointRestriction.d.ts.map
|
|
@@ -1,157 +1,167 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
// #
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
36
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
37
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
38
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
39
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
40
|
+
};
|
|
41
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
42
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
43
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
44
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
45
|
+
};
|
|
46
|
+
var _PointRestriction_viewport, _PointRestriction_point, _PointRestriction_radius, _PointRestriction_settings, _PointRestriction_snapRestrictions, _PointRestriction_visualizationObject, _PointRestriction_wireframe, _PointRestriction_wireframeColor, _PointRestriction_wireframeDepthTest, _PointRestriction_wireframePointSize;
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.PointRestriction = void 0;
|
|
49
|
+
const viewer_1 = require("@shapediver/viewer");
|
|
50
|
+
const gl_matrix_1 = require("gl-matrix");
|
|
51
|
+
const THREE = __importStar(require("three"));
|
|
52
|
+
const AbstractRestriction_1 = require("../AbstractRestriction");
|
|
53
|
+
let pointTexture = viewer_1.MaterialEngine.instance
|
|
54
|
+
.loadMap("https://viewer.shapediver.com/v3/graphics/point_soft.png")
|
|
55
|
+
.then((mapData) => {
|
|
56
|
+
pointTexture = new THREE.Texture(mapData.image);
|
|
57
|
+
pointTexture.needsUpdate = true;
|
|
58
|
+
return pointTexture;
|
|
59
|
+
});
|
|
60
|
+
// #endregion Type aliases (1)
|
|
61
|
+
// #region Classes (1)
|
|
62
|
+
class PointRestriction extends AbstractRestriction_1.AbstractRestriction {
|
|
63
|
+
// #endregion Properties (8)
|
|
64
|
+
// #region Constructors (1)
|
|
65
|
+
constructor(viewport, geometryMathManager, parentNode, id, settings, properties) {
|
|
66
|
+
var _a, _b, _c, _d, _e;
|
|
67
|
+
super(viewport, parentNode, id, properties);
|
|
68
|
+
// #region Properties (8)
|
|
69
|
+
_PointRestriction_viewport.set(this, void 0);
|
|
70
|
+
_PointRestriction_point.set(this, void 0);
|
|
71
|
+
_PointRestriction_radius.set(this, void 0);
|
|
72
|
+
_PointRestriction_settings.set(this, void 0);
|
|
73
|
+
_PointRestriction_snapRestrictions.set(this, {});
|
|
74
|
+
_PointRestriction_visualizationObject.set(this, new THREE.Object3D());
|
|
75
|
+
_PointRestriction_wireframe.set(this, void 0);
|
|
76
|
+
_PointRestriction_wireframeColor.set(this, void 0);
|
|
77
|
+
_PointRestriction_wireframeDepthTest.set(this, void 0);
|
|
78
|
+
_PointRestriction_wireframePointSize.set(this, 1);
|
|
79
|
+
__classPrivateFieldSet(this, _PointRestriction_viewport, viewport, "f");
|
|
80
|
+
__classPrivateFieldSet(this, _PointRestriction_point, properties.point, "f");
|
|
81
|
+
__classPrivateFieldSet(this, _PointRestriction_radius, properties.radius || 0, "f");
|
|
82
|
+
__classPrivateFieldSet(this, _PointRestriction_settings, settings, "f");
|
|
83
|
+
__classPrivateFieldSet(this, _PointRestriction_wireframe, (_b = (_a = properties.wireframe) !== null && _a !== void 0 ? _a : settings.wireframe) !== null && _b !== void 0 ? _b : true, "f");
|
|
84
|
+
__classPrivateFieldSet(this, _PointRestriction_wireframeColor, (_d = (_c = properties.wireframeColor) !== null && _c !== void 0 ? _c : settings.wireframeColor) !== null && _d !== void 0 ? _d : settings.points.color_1, "f");
|
|
85
|
+
__classPrivateFieldSet(this, _PointRestriction_wireframePointSize, properties.wireframePointSize
|
|
86
|
+
? properties.wireframePointSize * __classPrivateFieldGet(this, _PointRestriction_viewport, "f").pointSize
|
|
87
|
+
: 10 * __classPrivateFieldGet(this, _PointRestriction_viewport, "f").pointSize, "f");
|
|
88
|
+
__classPrivateFieldSet(this, _PointRestriction_wireframeDepthTest, (_e = properties.wireframeDepthTest) !== null && _e !== void 0 ? _e : false, "f");
|
|
89
|
+
if (__classPrivateFieldGet(this, _PointRestriction_wireframe, "f")) {
|
|
90
|
+
const geometry = new THREE.BufferGeometry();
|
|
91
|
+
geometry.setAttribute("position", new THREE.Float32BufferAttribute([__classPrivateFieldGet(this, _PointRestriction_point, "f")[0], __classPrivateFieldGet(this, _PointRestriction_point, "f")[1], __classPrivateFieldGet(this, _PointRestriction_point, "f")[2]], 3));
|
|
92
|
+
const height = __classPrivateFieldGet(this, _PointRestriction_viewport, "f").canvas.height;
|
|
93
|
+
const pointSize = __classPrivateFieldGet(this, _PointRestriction_wireframePointSize, "f") * (height / 1080);
|
|
94
|
+
const material = new THREE.PointsMaterial(Object.assign({ color: new THREE.Color(__classPrivateFieldGet(this, _PointRestriction_wireframeColor, "f")), size: pointSize, sizeAttenuation: false, depthTest: __classPrivateFieldGet(this, _PointRestriction_wireframeDepthTest, "f"), depthWrite: !__classPrivateFieldGet(this, _PointRestriction_wireframeDepthTest, "f"), transparent: true }, (pointTexture instanceof THREE.Texture
|
|
95
|
+
? { map: pointTexture }
|
|
96
|
+
: {})));
|
|
97
|
+
if (pointTexture instanceof Promise) {
|
|
98
|
+
pointTexture.then((texture) => {
|
|
99
|
+
material.map = texture;
|
|
100
|
+
material.needsUpdate = true;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
const points = new THREE.Points(geometry, material);
|
|
104
|
+
points.renderOrder = 100;
|
|
105
|
+
points.matrixAutoUpdate = false;
|
|
106
|
+
__classPrivateFieldGet(this, _PointRestriction_visualizationObject, "f").add(points);
|
|
107
|
+
this._object3D.add(__classPrivateFieldGet(this, _PointRestriction_visualizationObject, "f"));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// #endregion Constructors (1)
|
|
111
|
+
// #region Public Getters And Setters (4)
|
|
112
|
+
get point() {
|
|
113
|
+
return __classPrivateFieldGet(this, _PointRestriction_point, "f");
|
|
114
|
+
}
|
|
115
|
+
get radius() {
|
|
116
|
+
return __classPrivateFieldGet(this, _PointRestriction_radius, "f");
|
|
117
|
+
}
|
|
118
|
+
get snapRestrictions() {
|
|
119
|
+
return __classPrivateFieldGet(this, _PointRestriction_snapRestrictions, "f");
|
|
120
|
+
}
|
|
121
|
+
// #endregion Public Getters And Setters (4)
|
|
122
|
+
// #region Public Methods (1)
|
|
123
|
+
isWithinRadius(point) {
|
|
124
|
+
return (gl_matrix_1.vec3.squaredDistance(point, __classPrivateFieldGet(this, _PointRestriction_point, "f")) <=
|
|
125
|
+
__classPrivateFieldGet(this, _PointRestriction_radius, "f") * __classPrivateFieldGet(this, _PointRestriction_radius, "f"));
|
|
126
|
+
}
|
|
127
|
+
rayTrace(ray, metaData) {
|
|
128
|
+
const closestPointVector = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _PointRestriction_point, "f"), ray.origin);
|
|
129
|
+
const t = Math.max(0, gl_matrix_1.vec3.dot(closestPointVector, ray.direction));
|
|
130
|
+
const closestPoint = gl_matrix_1.vec3.create();
|
|
131
|
+
gl_matrix_1.vec3.scaleAndAdd(closestPoint, ray.origin, ray.direction, t);
|
|
132
|
+
const distance = gl_matrix_1.vec3.squaredDistance(closestPoint, __classPrivateFieldGet(this, _PointRestriction_point, "f"));
|
|
133
|
+
if (distance < __classPrivateFieldGet(this, _PointRestriction_radius, "f") * __classPrivateFieldGet(this, _PointRestriction_radius, "f")) {
|
|
134
|
+
// check if origin is inside the sphere
|
|
135
|
+
const distanceOrigin = gl_matrix_1.vec3.squaredDistance(ray.origin, __classPrivateFieldGet(this, _PointRestriction_point, "f"));
|
|
136
|
+
if (distanceOrigin < __classPrivateFieldGet(this, _PointRestriction_radius, "f") * __classPrivateFieldGet(this, _PointRestriction_radius, "f")) {
|
|
137
|
+
return {
|
|
138
|
+
closestIntersectionPoint: closestPoint,
|
|
139
|
+
distanceOriginToClosestIntersectionPointSquared: distanceOrigin,
|
|
140
|
+
targetPoint: __classPrivateFieldGet(this, _PointRestriction_point, "f"),
|
|
141
|
+
distanceClosestPointToTargetPointSquared: distance,
|
|
142
|
+
restriction: this,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
// now we calculate the closest point on the sphere to the ray
|
|
146
|
+
const offset = Math.sqrt(__classPrivateFieldGet(this, _PointRestriction_radius, "f") * __classPrivateFieldGet(this, _PointRestriction_radius, "f") - distance);
|
|
147
|
+
// Compute the entry distance
|
|
148
|
+
const entry = t - offset;
|
|
149
|
+
const closestIntersectionPoint = gl_matrix_1.vec3.scaleAndAdd(gl_matrix_1.vec3.create(), ray.origin, ray.direction, entry);
|
|
150
|
+
return {
|
|
151
|
+
closestIntersectionPoint: closestIntersectionPoint,
|
|
152
|
+
distanceOriginToClosestIntersectionPointSquared: entry * entry,
|
|
153
|
+
targetPoint: __classPrivateFieldGet(this, _PointRestriction_point, "f"),
|
|
154
|
+
distanceClosestPointToTargetPointSquared: distance,
|
|
155
|
+
restriction: this,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
// #endregion Public Methods (1)
|
|
161
|
+
// #region Protected Methods (1)
|
|
162
|
+
visibilityChanged() { }
|
|
163
|
+
}
|
|
164
|
+
exports.PointRestriction = PointRestriction;
|
|
165
|
+
_PointRestriction_viewport = new WeakMap(), _PointRestriction_point = new WeakMap(), _PointRestriction_radius = new WeakMap(), _PointRestriction_settings = new WeakMap(), _PointRestriction_snapRestrictions = new WeakMap(), _PointRestriction_visualizationObject = new WeakMap(), _PointRestriction_wireframe = new WeakMap(), _PointRestriction_wireframeColor = new WeakMap(), _PointRestriction_wireframeDepthTest = new WeakMap(), _PointRestriction_wireframePointSize = new WeakMap();
|
|
166
|
+
// #endregion Classes (1)
|
|
157
167
|
//# sourceMappingURL=PointRestriction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/point/PointRestriction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PointRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/point/PointRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2E;AAM3E,yCAA+B;AAC/B,6CAA+B;AAS/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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,CAAC,eAAe,CAC1C,GAAG,CAAC,MAAM,EACV,uBAAA,IAAI,+BAAO,CACX,CAAC;YACF,IAAI,cAAc,GAAG,uBAAA,IAAI,gCAAQ,GAAG,uBAAA,IAAI,gCAAQ,EAAE,CAAC;gBAClD,OAAO;oBACN,wBAAwB,EAAE,YAAY;oBACtC,+CAA+C,EAC9C,cAAc;oBACf,WAAW,EAAE,uBAAA,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,30 +1,30 @@
|
|
|
1
|
-
import { IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
2
|
-
import { CameraPlaneRestrictionApi } from "./api/implementation/camera_plane/CameraPlaneRestrictionApi";
|
|
3
|
-
import { GeometryRestrictionApi } from "./api/implementation/geometry/GeometryRestrictionApi";
|
|
4
|
-
import { LineRestrictionApi } from "./api/implementation/line/LineRestrictionApi";
|
|
5
|
-
import { PlaneRestrictionApi } from "./api/implementation/plane/PlaneRestrictionApi";
|
|
6
|
-
import { AngularRestrictionApi } from "./api/implementation/plane/snap/AngularRestrictionApi";
|
|
7
|
-
import { AxisRestrictionApi } from "./api/implementation/plane/snap/AxisRestrictionApi";
|
|
8
|
-
import { GridRestrictionApi } from "./api/implementation/plane/snap/GridRestrictionApi";
|
|
9
|
-
import { PointRestrictionApi } from "./api/implementation/point/PointRestrictionApi";
|
|
10
|
-
import { IRestrictionApi } from "./api/interfaces/IRestrictionApi";
|
|
11
|
-
import { ISnapRestrictionApi } from "./api/interfaces/ISnapRestrictionApi";
|
|
12
|
-
import { EventManager } from "./implementation/EventManager";
|
|
13
|
-
import { GeometryMathManager } from "./implementation/GeometryMathManager";
|
|
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, RestrictionMetaData, RestrictionProperties, RestrictionPropertiesBase, RESTRICTION_TYPE } from "./interfaces/IRestriction";
|
|
25
|
-
import { IRestrictionManager } from "./interfaces/IRestrictionManager";
|
|
26
|
-
import { ISnapRestriction, SnapRestrictionProperties } from "./interfaces/ISnapRestriction";
|
|
27
|
-
export { IRestrictionManager, RestrictionManager, EventManager, GeometryMathManager, IDragAnchor, IRestriction, ISnapRestriction, IVisualizationSettings, };
|
|
28
|
-
export { RESTRICTION_TYPE, RayTraceResult, RestrictionProperties, RestrictionMetaData, DrawingRestrictionMetaData, DraggingRestrictionMetaData, SnapRestrictionProperties, PlaneRestriction, PlaneRestrictionProperties, AngularRestrictionProperties, AxisRestrictionProperties, GridRestrictionProperties, GeometryRestriction, GeometryRestrictionProperties, PointRestriction, PointRestrictionProperties, LineRestriction, LineRestrictionProperties, CameraPlaneRestriction, CameraPlaneRestrictionProperties, RestrictionPropertiesBase, };
|
|
29
|
-
export { IRestrictionApi, ISnapRestrictionApi, PlaneRestrictionApi, AngularRestrictionApi, AxisRestrictionApi, GridRestrictionApi, GeometryRestrictionApi, CameraPlaneRestrictionApi, PointRestrictionApi, LineRestrictionApi, };
|
|
1
|
+
import { IVisualizationSettings } from "@shapediver/viewer.shared.types";
|
|
2
|
+
import { CameraPlaneRestrictionApi } from "./api/implementation/camera_plane/CameraPlaneRestrictionApi";
|
|
3
|
+
import { GeometryRestrictionApi } from "./api/implementation/geometry/GeometryRestrictionApi";
|
|
4
|
+
import { LineRestrictionApi } from "./api/implementation/line/LineRestrictionApi";
|
|
5
|
+
import { PlaneRestrictionApi } from "./api/implementation/plane/PlaneRestrictionApi";
|
|
6
|
+
import { AngularRestrictionApi } from "./api/implementation/plane/snap/AngularRestrictionApi";
|
|
7
|
+
import { AxisRestrictionApi } from "./api/implementation/plane/snap/AxisRestrictionApi";
|
|
8
|
+
import { GridRestrictionApi } from "./api/implementation/plane/snap/GridRestrictionApi";
|
|
9
|
+
import { PointRestrictionApi } from "./api/implementation/point/PointRestrictionApi";
|
|
10
|
+
import { IRestrictionApi } from "./api/interfaces/IRestrictionApi";
|
|
11
|
+
import { ISnapRestrictionApi } from "./api/interfaces/ISnapRestrictionApi";
|
|
12
|
+
import { EventManager } from "./implementation/EventManager";
|
|
13
|
+
import { GeometryMathManager } from "./implementation/GeometryMathManager";
|
|
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, RestrictionMetaData, RestrictionProperties, RestrictionPropertiesBase, RESTRICTION_TYPE } from "./interfaces/IRestriction";
|
|
25
|
+
import { IRestrictionManager } from "./interfaces/IRestrictionManager";
|
|
26
|
+
import { ISnapRestriction, SnapRestrictionProperties } from "./interfaces/ISnapRestriction";
|
|
27
|
+
export { IRestrictionManager, RestrictionManager, EventManager, GeometryMathManager, IDragAnchor, IRestriction, ISnapRestriction, IVisualizationSettings, };
|
|
28
|
+
export { RESTRICTION_TYPE, RayTraceResult, RestrictionProperties, RestrictionMetaData, DrawingRestrictionMetaData, DraggingRestrictionMetaData, SnapRestrictionProperties, PlaneRestriction, PlaneRestrictionProperties, AngularRestrictionProperties, AxisRestrictionProperties, GridRestrictionProperties, GeometryRestriction, GeometryRestrictionProperties, PointRestriction, PointRestrictionProperties, LineRestriction, LineRestrictionProperties, CameraPlaneRestriction, CameraPlaneRestrictionProperties, RestrictionPropertiesBase, };
|
|
29
|
+
export { IRestrictionApi, ISnapRestrictionApi, PlaneRestrictionApi, AngularRestrictionApi, AxisRestrictionApi, GridRestrictionApi, GeometryRestrictionApi, CameraPlaneRestrictionApi, PointRestrictionApi, LineRestrictionApi, };
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|