angular-three-soba 4.0.0-next.8 → 4.0.0-next.81
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/abstractions/README.md +1 -1
- package/abstractions/lib/catmull-rom-line.d.ts +20 -19
- package/abstractions/lib/edges.d.ts +20 -18
- package/abstractions/lib/line.d.ts +1 -1
- package/abstractions/lib/prism-geometry.d.ts +4 -4
- package/abstractions/lib/rounded-box.d.ts +1 -1
- package/abstractions/lib/text-3d.d.ts +9 -9
- package/abstractions/lib/text.d.ts +4 -1
- package/cameras/lib/camera-content.d.ts +1 -2
- package/cameras/lib/cube-camera.d.ts +3 -3
- package/cameras/lib/orthographic-camera.d.ts +6 -5
- package/cameras/lib/perspective-camera.d.ts +2 -5
- package/controls/README.md +28 -28
- package/controls/index.d.ts +1 -0
- package/controls/lib/camera-controls.d.ts +1 -1
- package/controls/lib/orbit-controls.d.ts +11 -6
- package/controls/lib/trackball-controls.d.ts +27 -0
- package/fesm2022/angular-three-soba-abstractions.mjs +88 -52
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +49 -37
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +128 -36
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-gizmos.mjs +125 -86
- package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -1
- package/fesm2022/angular-three-soba-loaders.mjs +3 -3
- package/fesm2022/angular-three-soba-materials.mjs +82 -86
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2022/angular-three-soba-misc.mjs +55 -48
- package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2022/angular-three-soba-performances.mjs +152 -35
- package/fesm2022/angular-three-soba-performances.mjs.map +1 -1
- package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +183 -144
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2022/angular-three-soba-stats.mjs +3 -3
- package/gizmos/lib/gizmo-helper/gizmo-helper.d.ts +4 -3
- package/gizmos/lib/gizmo-helper/gizmo-viewport.d.ts +1 -1
- package/gizmos/lib/pivot-controls/pivot-controls.d.ts +1 -1
- package/gizmos/lib/transform-controls.d.ts +2 -2
- package/loaders/README.md +39 -39
- package/materials/lib/custom-shader-material.d.ts +2 -2
- package/materials/lib/mesh-portal-material.d.ts +1 -1
- package/materials/lib/mesh-refraction-material.d.ts +1 -1
- package/materials/lib/mesh-transmission-material.d.ts +5 -5
- package/misc/README.md +16 -16
- package/misc/lib/decal.d.ts +1 -1
- package/misc/lib/deprecated.d.ts +0 -6
- package/misc/lib/depth-buffer.d.ts +1 -1
- package/misc/lib/fbo.d.ts +1 -3
- package/misc/lib/html/html-content.d.ts +2 -2
- package/misc/lib/html/html.d.ts +5 -5
- package/package.json +17 -17
- package/performances/index.d.ts +1 -0
- package/performances/lib/adaptive-dpr.d.ts +1 -1
- package/performances/lib/bvh.d.ts +49 -0
- package/performances/lib/instances/instances.d.ts +1 -1
- package/performances/lib/points/points.d.ts +1 -1
- package/performances/lib/segments/segments.d.ts +23 -23
- package/shaders/lib/mesh-refraction-material.d.ts +2 -2
- package/staging/lib/caustics.d.ts +4 -4
- package/staging/lib/center.d.ts +2 -2
- package/staging/lib/contact-shadows.d.ts +1 -1
- package/staging/lib/environment/inject-environment.d.ts +1 -2
- package/staging/lib/lightformer.d.ts +1 -1
- package/staging/lib/mask.d.ts +1 -1
- package/staging/lib/render-texture.d.ts +6 -5
- package/staging/lib/sky.d.ts +1 -1
- package/staging/lib/spot-light.d.ts +2 -2
- package/staging/lib/stage.d.ts +15 -14
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Directive, input, output, contentChild, TemplateRef, viewChild, computed, effect, Component, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, inject, signal, ElementRef } from '@angular/core';
|
|
4
|
-
import
|
|
4
|
+
import * as i1 from 'angular-three';
|
|
5
|
+
import { pick, injectStore, extend, injectBeforeRender, hasListener, NgtPortalAutoRender, NgtPortal, NgtArgs, getEmitter, omit, getInstanceState, is, resolveRef } from 'angular-three';
|
|
5
6
|
import { NgtsOrthographicCamera } from 'angular-three-soba/cameras';
|
|
6
7
|
import { mergeInputs } from 'ngxtension/inject-inputs';
|
|
7
8
|
import * as THREE from 'three';
|
|
8
9
|
import { Group, MeshBasicMaterial, Mesh, BoxGeometry, Sprite, SpriteMaterial, ConeGeometry, CylinderGeometry, PlaneGeometry, SphereGeometry } from 'three';
|
|
9
|
-
import * as i1 from 'angular-three-soba/misc';
|
|
10
|
-
import {
|
|
10
|
+
import * as i1$1 from 'angular-three-soba/misc';
|
|
11
|
+
import { NgtsHTML, calculateScaleFactor } from 'angular-three-soba/misc';
|
|
11
12
|
import { NgtsLine } from 'angular-three-soba/abstractions';
|
|
12
13
|
import { TransformControls } from 'three-stdlib';
|
|
13
14
|
|
|
@@ -21,10 +22,10 @@ class NgtsGizmoHelperContent {
|
|
|
21
22
|
static ngTemplateContextGuard(_, ctx) {
|
|
22
23
|
return true;
|
|
23
24
|
}
|
|
24
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
25
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoHelperContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
26
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.6", type: NgtsGizmoHelperContent, isStandalone: true, selector: "ng-template[gizmoHelperContent]", ngImport: i0 }); }
|
|
26
27
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoHelperContent, decorators: [{
|
|
28
29
|
type: Directive,
|
|
29
30
|
args: [{ selector: 'ng-template[gizmoHelperContent]' }]
|
|
30
31
|
}] });
|
|
@@ -33,7 +34,7 @@ const defaultOptions$2 = {
|
|
|
33
34
|
margin: [80, 80],
|
|
34
35
|
renderPriority: 1,
|
|
35
36
|
};
|
|
36
|
-
class
|
|
37
|
+
class NgtsGizmoHelperImpl {
|
|
37
38
|
constructor() {
|
|
38
39
|
this.options = input(defaultOptions$2, { transform: mergeInputs(defaultOptions$2) });
|
|
39
40
|
this.update = output();
|
|
@@ -95,7 +96,11 @@ class NgtsGizmoHelper {
|
|
|
95
96
|
// animate position by doing a slerp and then scaling the position on the unit sphere
|
|
96
97
|
q1.rotateTowards(q2, step);
|
|
97
98
|
// animate orientation
|
|
98
|
-
mainCamera.position
|
|
99
|
+
mainCamera.position
|
|
100
|
+
.set(0, 0, 1)
|
|
101
|
+
.applyQuaternion(q1)
|
|
102
|
+
.multiplyScalar(this.radius)
|
|
103
|
+
.add(this.focusPoint);
|
|
99
104
|
mainCamera.up.set(0, 1, 0).applyQuaternion(q1).normalize();
|
|
100
105
|
mainCamera.quaternion.copy(q1);
|
|
101
106
|
if (this.isCameraControls(defaultControls)) {
|
|
@@ -137,6 +142,7 @@ class NgtsGizmoHelper {
|
|
|
137
142
|
updateDefaultUpEffect() {
|
|
138
143
|
const mainCamera = this.store.camera();
|
|
139
144
|
this.defaultUp.copy(mainCamera.up);
|
|
145
|
+
dummy.up.copy(mainCamera.up);
|
|
140
146
|
}
|
|
141
147
|
isOrbitControls(controls) {
|
|
142
148
|
return 'minPolarAngle' in controls;
|
|
@@ -144,8 +150,8 @@ class NgtsGizmoHelper {
|
|
|
144
150
|
isCameraControls(controls) {
|
|
145
151
|
return 'getTarget' in controls;
|
|
146
152
|
}
|
|
147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
148
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.
|
|
153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoHelperImpl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.6", type: NgtsGizmoHelperImpl, isStandalone: true, selector: "ngts-gizmo-helper", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { update: "update" }, queries: [{ propertyName: "content", first: true, predicate: NgtsGizmoHelperContent, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "gizmoRef", first: true, predicate: ["gizmo"], descendants: true, isSignal: true }, { propertyName: "virtualCameraRef", first: true, predicate: NgtsOrthographicCamera, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
149
155
|
@let _renderPriority = renderPriority();
|
|
150
156
|
|
|
151
157
|
<ngt-portal
|
|
@@ -164,9 +170,9 @@ class NgtsGizmoHelper {
|
|
|
164
170
|
</ngt-group>
|
|
165
171
|
</ng-template>
|
|
166
172
|
</ngt-portal>
|
|
167
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
173
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.NgtPortalImpl, selector: "ngt-portal", inputs: ["container", "state"] }, { kind: "directive", type: i1.NgtPortalContent, selector: "ng-template[portalContent]" }, { kind: "directive", type: NgtPortalAutoRender, selector: "ngt-portal[autoRender]", inputs: ["autoRender"] }, { kind: "component", type: NgtsOrthographicCamera, selector: "ngts-orthographic-camera", inputs: ["options"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
168
174
|
}
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoHelperImpl, decorators: [{
|
|
170
176
|
type: Component,
|
|
171
177
|
args: [{
|
|
172
178
|
selector: 'ngts-gizmo-helper',
|
|
@@ -192,9 +198,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
192
198
|
`,
|
|
193
199
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
194
200
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
195
|
-
imports: [NgtPortal, NgtPortalAutoRender,
|
|
201
|
+
imports: [NgtPortal, NgtPortalAutoRender, NgtsOrthographicCamera, NgTemplateOutlet],
|
|
196
202
|
}]
|
|
197
203
|
}], ctorParameters: () => [] });
|
|
204
|
+
const NgtsGizmoHelper = [NgtsGizmoHelperImpl, NgtsGizmoHelperContent];
|
|
198
205
|
|
|
199
206
|
const colors = { bg: '#f0f0f0', hover: '#999', text: 'black', stroke: 'black' };
|
|
200
207
|
const defaultFaces = ['Right', 'Left', 'Top', 'Bottom', 'Front', 'Back'];
|
|
@@ -250,8 +257,8 @@ class FaceMaterial {
|
|
|
250
257
|
});
|
|
251
258
|
extend({ MeshBasicMaterial });
|
|
252
259
|
}
|
|
253
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
254
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.
|
|
260
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: FaceMaterial, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
261
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.6", type: FaceMaterial, isStandalone: true, selector: "viewcube-face-material", inputs: { hover: { classPropertyName: "hover", publicName: "hover", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
255
262
|
<ngt-mesh-basic-material
|
|
256
263
|
[attach]="['material', index()]"
|
|
257
264
|
[map]="texture()"
|
|
@@ -261,7 +268,7 @@ class FaceMaterial {
|
|
|
261
268
|
/>
|
|
262
269
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
263
270
|
}
|
|
264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: FaceMaterial, decorators: [{
|
|
265
272
|
type: Component,
|
|
266
273
|
args: [{
|
|
267
274
|
selector: 'viewcube-face-material',
|
|
@@ -282,7 +289,7 @@ class FaceCube {
|
|
|
282
289
|
constructor() {
|
|
283
290
|
this.options = input({});
|
|
284
291
|
this.onClick = input();
|
|
285
|
-
this.gizmoHelper = inject(
|
|
292
|
+
this.gizmoHelper = inject(NgtsGizmoHelperImpl);
|
|
286
293
|
this.hover = signal(-1);
|
|
287
294
|
this.count = Array.from({ length: 6 });
|
|
288
295
|
this.Math = Math;
|
|
@@ -297,8 +304,8 @@ class FaceCube {
|
|
|
297
304
|
this.gizmoHelper.tweenCamera(event.face.normal);
|
|
298
305
|
}
|
|
299
306
|
}
|
|
300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
301
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
307
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: FaceCube, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
308
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: FaceCube, isStandalone: true, selector: "viewcube-face-cube", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, onClick: { classPropertyName: "onClick", publicName: "onClick", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
302
309
|
<ngt-mesh
|
|
303
310
|
(pointerout)="$any($event).stopPropagation(); hover.set(-1)"
|
|
304
311
|
(pointermove)="$any($event).stopPropagation(); hover.set(Math.floor($any($event).faceIndex / 2))"
|
|
@@ -311,7 +318,7 @@ class FaceCube {
|
|
|
311
318
|
</ngt-mesh>
|
|
312
319
|
`, isInline: true, dependencies: [{ kind: "component", type: FaceMaterial, selector: "viewcube-face-material", inputs: ["hover", "index", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
313
320
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: FaceCube, decorators: [{
|
|
315
322
|
type: Component,
|
|
316
323
|
args: [{
|
|
317
324
|
selector: 'viewcube-face-cube',
|
|
@@ -344,7 +351,7 @@ class EdgeCube {
|
|
|
344
351
|
},
|
|
345
352
|
});
|
|
346
353
|
this.onClick = input();
|
|
347
|
-
this.gizmoHelper = inject(
|
|
354
|
+
this.gizmoHelper = inject(NgtsGizmoHelperImpl);
|
|
348
355
|
this.hover = signal(false);
|
|
349
356
|
this.color = computed(() => (this.hover() ? this.hoverColor() : 'white'));
|
|
350
357
|
extend({ Mesh, BoxGeometry, MeshBasicMaterial });
|
|
@@ -358,8 +365,8 @@ class EdgeCube {
|
|
|
358
365
|
this.gizmoHelper.tweenCamera(this.position());
|
|
359
366
|
}
|
|
360
367
|
}
|
|
361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
362
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.
|
|
368
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: EdgeCube, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
369
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.6", type: EdgeCube, isStandalone: true, selector: "viewcube-edge-cube", inputs: { dimensions: { classPropertyName: "dimensions", publicName: "dimensions", isSignal: true, isRequired: true, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, hoverColor: { classPropertyName: "hoverColor", publicName: "hoverColor", isSignal: true, isRequired: false, transformFunction: null }, onClick: { classPropertyName: "onClick", publicName: "onClick", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
363
370
|
<ngt-mesh
|
|
364
371
|
[scale]="1.01"
|
|
365
372
|
[position]="position()"
|
|
@@ -367,12 +374,12 @@ class EdgeCube {
|
|
|
367
374
|
(pointerover)="$any($event).stopPropagation(); hover.set(true)"
|
|
368
375
|
(click)="internalOnClick($any($event))"
|
|
369
376
|
>
|
|
370
|
-
<ngt-mesh-basic-material
|
|
377
|
+
<ngt-mesh-basic-material transparent [opacity]="0.6" [color]="color()" [visible]="hover()" />
|
|
371
378
|
<ngt-box-geometry *args="dimensions()" />
|
|
372
379
|
</ngt-mesh>
|
|
373
380
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
374
381
|
}
|
|
375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: EdgeCube, decorators: [{
|
|
376
383
|
type: Component,
|
|
377
384
|
args: [{
|
|
378
385
|
selector: 'viewcube-edge-cube',
|
|
@@ -384,7 +391,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
384
391
|
(pointerover)="$any($event).stopPropagation(); hover.set(true)"
|
|
385
392
|
(click)="internalOnClick($any($event))"
|
|
386
393
|
>
|
|
387
|
-
<ngt-mesh-basic-material
|
|
394
|
+
<ngt-mesh-basic-material transparent [opacity]="0.6" [color]="color()" [visible]="hover()" />
|
|
388
395
|
<ngt-box-geometry *args="dimensions()" />
|
|
389
396
|
</ngt-mesh>
|
|
390
397
|
`,
|
|
@@ -434,8 +441,8 @@ class NgtsGizmoViewcube {
|
|
|
434
441
|
makePositionVector(xyz) {
|
|
435
442
|
return new THREE.Vector3(...xyz).multiplyScalar(0.38);
|
|
436
443
|
}
|
|
437
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
438
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoViewcube, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
445
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtsGizmoViewcube, isStandalone: true, selector: "ngts-gizmo-viewcube", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: `
|
|
439
446
|
<ngt-group [scale]="60">
|
|
440
447
|
<viewcube-face-cube [options]="options()" [onClick]="onClick" />
|
|
441
448
|
@for (edge of edges; track $index) {
|
|
@@ -457,7 +464,7 @@ class NgtsGizmoViewcube {
|
|
|
457
464
|
</ngt-group>
|
|
458
465
|
`, isInline: true, dependencies: [{ kind: "component", type: FaceCube, selector: "viewcube-face-cube", inputs: ["options", "onClick"] }, { kind: "component", type: EdgeCube, selector: "viewcube-edge-cube", inputs: ["dimensions", "position", "hoverColor", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
459
466
|
}
|
|
460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoViewcube, decorators: [{
|
|
461
468
|
type: Component,
|
|
462
469
|
args: [{
|
|
463
470
|
selector: 'ngts-gizmo-viewcube',
|
|
@@ -501,8 +508,8 @@ class Axis {
|
|
|
501
508
|
this.rotation = input([0, 0, 0]);
|
|
502
509
|
extend({ Group, Mesh, BoxGeometry, MeshBasicMaterial });
|
|
503
510
|
}
|
|
504
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
505
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.
|
|
511
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: Axis, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
512
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.6", type: Axis, isStandalone: true, selector: "viewport-axis", inputs: { scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, rotation: { classPropertyName: "rotation", publicName: "rotation", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
506
513
|
<ngt-group [rotation]="rotation()">
|
|
507
514
|
<ngt-mesh [position]="[0.4, 0, 0]">
|
|
508
515
|
<ngt-box-geometry *args="scale()" />
|
|
@@ -511,7 +518,7 @@ class Axis {
|
|
|
511
518
|
</ngt-group>
|
|
512
519
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
513
520
|
}
|
|
514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: Axis, decorators: [{
|
|
515
522
|
type: Component,
|
|
516
523
|
args: [{
|
|
517
524
|
selector: 'viewport-axis',
|
|
@@ -539,7 +546,7 @@ class AxisHead {
|
|
|
539
546
|
this.font = input('18px Inter var, Arial, sans-serif');
|
|
540
547
|
this.onClick = input();
|
|
541
548
|
this.document = inject(DOCUMENT);
|
|
542
|
-
this.gizmoHelper = inject(
|
|
549
|
+
this.gizmoHelper = inject(NgtsGizmoHelperImpl);
|
|
543
550
|
this.store = injectStore();
|
|
544
551
|
this.texture = computed(() => {
|
|
545
552
|
const [arcStyle, label, labelColor, font, gl] = [
|
|
@@ -595,8 +602,8 @@ class AxisHead {
|
|
|
595
602
|
event.stopPropagation();
|
|
596
603
|
this.gizmoHelper.tweenCamera(event.object.position);
|
|
597
604
|
}
|
|
598
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
599
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.
|
|
605
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: AxisHead, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
606
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.6", type: AxisHead, isStandalone: true, selector: "viewport-axis-head", inputs: { arcStyle: { classPropertyName: "arcStyle", publicName: "arcStyle", isSignal: true, isRequired: true, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelColor: { classPropertyName: "labelColor", publicName: "labelColor", isSignal: true, isRequired: false, transformFunction: null }, axisHeadScale: { classPropertyName: "axisHeadScale", publicName: "axisHeadScale", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, font: { classPropertyName: "font", publicName: "font", isSignal: true, isRequired: false, transformFunction: null }, onClick: { classPropertyName: "onClick", publicName: "onClick", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
600
607
|
<ngt-sprite
|
|
601
608
|
[scale]="scale()"
|
|
602
609
|
[position]="position()"
|
|
@@ -604,11 +611,16 @@ class AxisHead {
|
|
|
604
611
|
(pointerout)="onPointerOut($any($event))"
|
|
605
612
|
(pointerdown)="onPointerDown($any($event))"
|
|
606
613
|
>
|
|
607
|
-
<ngt-sprite-material
|
|
614
|
+
<ngt-sprite-material
|
|
615
|
+
[map]="texture()"
|
|
616
|
+
[alphaTest]="0.3"
|
|
617
|
+
[opacity]="label() ? 1 : 0.75"
|
|
618
|
+
[toneMapped]="false"
|
|
619
|
+
/>
|
|
608
620
|
</ngt-sprite>
|
|
609
621
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
610
622
|
}
|
|
611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: AxisHead, decorators: [{
|
|
612
624
|
type: Component,
|
|
613
625
|
args: [{
|
|
614
626
|
selector: 'viewport-axis-head',
|
|
@@ -620,7 +632,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
620
632
|
(pointerout)="onPointerOut($any($event))"
|
|
621
633
|
(pointerdown)="onPointerDown($any($event))"
|
|
622
634
|
>
|
|
623
|
-
<ngt-sprite-material
|
|
635
|
+
<ngt-sprite-material
|
|
636
|
+
[map]="texture()"
|
|
637
|
+
[alphaTest]="0.3"
|
|
638
|
+
[opacity]="label() ? 1 : 0.75"
|
|
639
|
+
[toneMapped]="false"
|
|
640
|
+
/>
|
|
624
641
|
</ngt-sprite>
|
|
625
642
|
`,
|
|
626
643
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
@@ -669,8 +686,8 @@ class NgtsGizmoViewport {
|
|
|
669
686
|
return getEmitter(this.click);
|
|
670
687
|
return undefined;
|
|
671
688
|
}
|
|
672
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
673
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoViewport, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
690
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtsGizmoViewport, isStandalone: true, selector: "ngts-gizmo-viewport", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: `
|
|
674
691
|
@let _axisScale = axisScale();
|
|
675
692
|
@let _axisHeadScale = axisHeadScale();
|
|
676
693
|
@let _labels = labels();
|
|
@@ -743,7 +760,7 @@ class NgtsGizmoViewport {
|
|
|
743
760
|
</ngt-group>
|
|
744
761
|
`, isInline: true, dependencies: [{ kind: "component", type: Axis, selector: "viewport-axis", inputs: ["scale", "color", "rotation"] }, { kind: "component", type: AxisHead, selector: "viewport-axis-head", inputs: ["arcStyle", "position", "label", "labelColor", "axisHeadScale", "disabled", "font", "onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
745
762
|
}
|
|
746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsGizmoViewport, decorators: [{
|
|
747
764
|
type: Component,
|
|
748
765
|
args: [{
|
|
749
766
|
selector: 'ngts-gizmo-viewport',
|
|
@@ -834,12 +851,10 @@ function calculateOffset$1(clickPoint, normal, rayStart, rayDir) {
|
|
|
834
851
|
if (e3 === 0) {
|
|
835
852
|
return -e2 / e1;
|
|
836
853
|
}
|
|
837
|
-
vec1$1
|
|
838
|
-
.copy(rayDir)
|
|
854
|
+
vec1$1.copy(rayDir)
|
|
839
855
|
.multiplyScalar(e1 / e3)
|
|
840
856
|
.sub(normal);
|
|
841
|
-
vec2$1
|
|
842
|
-
.copy(rayDir)
|
|
857
|
+
vec2$1.copy(rayDir)
|
|
843
858
|
.multiplyScalar(e2 / e3)
|
|
844
859
|
.add(rayStart)
|
|
845
860
|
.sub(clickPoint);
|
|
@@ -944,8 +959,8 @@ class NgtsAxisArrow {
|
|
|
944
959
|
event.stopPropagation();
|
|
945
960
|
this.hovered.set(false);
|
|
946
961
|
}
|
|
947
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
948
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
962
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsAxisArrow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
963
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtsAxisArrow, isStandalone: true, selector: "ngts-axis-arrow", inputs: { direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: true, transformFunction: null }, axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "annotationRef", first: true, predicate: ["annotation"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: `
|
|
949
964
|
<ngt-group #group>
|
|
950
965
|
<ngt-group
|
|
951
966
|
[matrix]="matrixL()"
|
|
@@ -993,7 +1008,11 @@ class NgtsAxisArrow {
|
|
|
993
1008
|
}"
|
|
994
1009
|
/>
|
|
995
1010
|
|
|
996
|
-
<ngt-mesh
|
|
1011
|
+
<ngt-mesh
|
|
1012
|
+
[raycast]="null"
|
|
1013
|
+
[position]="[0, cylinderLength() + coneLength() / 2.0, 0]"
|
|
1014
|
+
[renderOrder]="500"
|
|
1015
|
+
>
|
|
997
1016
|
<ngt-cone-geometry *args="[coneWidth(), coneLength(), 24, 1]" />
|
|
998
1017
|
<ngt-mesh-basic-material
|
|
999
1018
|
transparent
|
|
@@ -1007,9 +1026,9 @@ class NgtsAxisArrow {
|
|
|
1007
1026
|
</ngt-mesh>
|
|
1008
1027
|
</ngt-group>
|
|
1009
1028
|
</ngt-group>
|
|
1010
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }, { kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }, { kind: "component", type: i1.
|
|
1029
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }, { kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }, { kind: "component", type: i1$1.NgtsHTMLImpl, selector: "ngts-html", inputs: ["options"] }, { kind: "component", type: i1$1.NgtsHTMLContent, selector: "div[htmlContent]", inputs: ["htmlContent"], outputs: ["occluded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1011
1030
|
}
|
|
1012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsAxisArrow, decorators: [{
|
|
1013
1032
|
type: Component,
|
|
1014
1033
|
args: [{
|
|
1015
1034
|
selector: 'ngts-axis-arrow',
|
|
@@ -1061,7 +1080,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1061
1080
|
}"
|
|
1062
1081
|
/>
|
|
1063
1082
|
|
|
1064
|
-
<ngt-mesh
|
|
1083
|
+
<ngt-mesh
|
|
1084
|
+
[raycast]="null"
|
|
1085
|
+
[position]="[0, cylinderLength() + coneLength() / 2.0, 0]"
|
|
1086
|
+
[renderOrder]="500"
|
|
1087
|
+
>
|
|
1065
1088
|
<ngt-cone-geometry *args="[coneWidth(), coneLength(), 24, 1]" />
|
|
1066
1089
|
<ngt-mesh-basic-material
|
|
1067
1090
|
transparent
|
|
@@ -1078,7 +1101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1078
1101
|
`,
|
|
1079
1102
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1080
1103
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1081
|
-
imports: [NgtArgs, NgtsLine,
|
|
1104
|
+
imports: [NgtArgs, NgtsLine, NgtsHTML],
|
|
1082
1105
|
}]
|
|
1083
1106
|
}], ctorParameters: () => [] });
|
|
1084
1107
|
|
|
@@ -1240,8 +1263,8 @@ class NgtsAxisRotator {
|
|
|
1240
1263
|
event.stopPropagation();
|
|
1241
1264
|
this.hovered.set(false);
|
|
1242
1265
|
}
|
|
1243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1244
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
1266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsAxisRotator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1267
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtsAxisRotator, isStandalone: true, selector: "ngts-axis-rotator", inputs: { dir1: { classPropertyName: "dir1", publicName: "dir1", isSignal: true, isRequired: true, transformFunction: null }, dir2: { classPropertyName: "dir2", publicName: "dir2", isSignal: true, isRequired: true, transformFunction: null }, axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "annotationRef", first: true, predicate: ["annotation"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: `
|
|
1245
1268
|
<ngt-group
|
|
1246
1269
|
#group
|
|
1247
1270
|
[matrix]="matrixL()"
|
|
@@ -1264,7 +1287,11 @@ class NgtsAxisRotator {
|
|
|
1264
1287
|
|
|
1265
1288
|
<ngts-line
|
|
1266
1289
|
[points]="arc()"
|
|
1267
|
-
[options]="{
|
|
1290
|
+
[options]="{
|
|
1291
|
+
lineWidth: pivotControls.lineWidth() * 4,
|
|
1292
|
+
visible: false,
|
|
1293
|
+
userData: pivotControls.userData(),
|
|
1294
|
+
}"
|
|
1268
1295
|
/>
|
|
1269
1296
|
|
|
1270
1297
|
<ngts-line
|
|
@@ -1283,9 +1310,9 @@ class NgtsAxisRotator {
|
|
|
1283
1310
|
}"
|
|
1284
1311
|
/>
|
|
1285
1312
|
</ngt-group>
|
|
1286
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }, { kind: "component", type: i1.
|
|
1313
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }, { kind: "component", type: i1$1.NgtsHTMLImpl, selector: "ngts-html", inputs: ["options"] }, { kind: "component", type: i1$1.NgtsHTMLContent, selector: "div[htmlContent]", inputs: ["htmlContent"], outputs: ["occluded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1287
1314
|
}
|
|
1288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsAxisRotator, decorators: [{
|
|
1289
1316
|
type: Component,
|
|
1290
1317
|
args: [{
|
|
1291
1318
|
selector: 'ngts-axis-rotator',
|
|
@@ -1312,7 +1339,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1312
1339
|
|
|
1313
1340
|
<ngts-line
|
|
1314
1341
|
[points]="arc()"
|
|
1315
|
-
[options]="{
|
|
1342
|
+
[options]="{
|
|
1343
|
+
lineWidth: pivotControls.lineWidth() * 4,
|
|
1344
|
+
visible: false,
|
|
1345
|
+
userData: pivotControls.userData(),
|
|
1346
|
+
}"
|
|
1316
1347
|
/>
|
|
1317
1348
|
|
|
1318
1349
|
<ngts-line
|
|
@@ -1334,7 +1365,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1334
1365
|
`,
|
|
1335
1366
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1336
1367
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1337
|
-
imports: [NgtsLine,
|
|
1368
|
+
imports: [NgtsLine, NgtsHTML],
|
|
1338
1369
|
}]
|
|
1339
1370
|
}], ctorParameters: () => [] });
|
|
1340
1371
|
|
|
@@ -1482,8 +1513,8 @@ class NgtsPlaneSlider {
|
|
|
1482
1513
|
event.stopPropagation();
|
|
1483
1514
|
this.hovered.set(false);
|
|
1484
1515
|
}
|
|
1485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1486
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
1516
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsPlaneSlider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1517
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtsPlaneSlider, isStandalone: true, selector: "ngts-plane-slider", inputs: { dir1: { classPropertyName: "dir1", publicName: "dir1", isSignal: true, isRequired: true, transformFunction: null }, dir2: { classPropertyName: "dir2", publicName: "dir2", isSignal: true, isRequired: true, transformFunction: null }, axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "annotationRef", first: true, predicate: ["annotation"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: `
|
|
1487
1518
|
<ngt-group #group [matrix]="matrixL()" [matrixAutoUpdate]="false">
|
|
1488
1519
|
@if (pivotControls.annotations()) {
|
|
1489
1520
|
<ngts-html [options]="{ position: [0, 0, 0] }">
|
|
@@ -1533,9 +1564,9 @@ class NgtsPlaneSlider {
|
|
|
1533
1564
|
/>
|
|
1534
1565
|
</ngt-group>
|
|
1535
1566
|
</ngt-group>
|
|
1536
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1.
|
|
1567
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.NgtsHTMLImpl, selector: "ngts-html", inputs: ["options"] }, { kind: "component", type: i1$1.NgtsHTMLContent, selector: "div[htmlContent]", inputs: ["htmlContent"], outputs: ["occluded"] }, { kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1537
1568
|
}
|
|
1538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsPlaneSlider, decorators: [{
|
|
1539
1570
|
type: Component,
|
|
1540
1571
|
args: [{
|
|
1541
1572
|
selector: 'ngts-plane-slider',
|
|
@@ -1592,7 +1623,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1592
1623
|
`,
|
|
1593
1624
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1594
1625
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1595
|
-
imports: [
|
|
1626
|
+
imports: [NgtsHTML, NgtsLine],
|
|
1596
1627
|
}]
|
|
1597
1628
|
}], ctorParameters: () => [] });
|
|
1598
1629
|
|
|
@@ -1605,12 +1636,10 @@ function calculateOffset(clickPoint, normal, rayStart, rayDir) {
|
|
|
1605
1636
|
if (e3 === 0) {
|
|
1606
1637
|
return -e2 / e1;
|
|
1607
1638
|
}
|
|
1608
|
-
vec1
|
|
1609
|
-
.copy(rayDir)
|
|
1639
|
+
vec1.copy(rayDir)
|
|
1610
1640
|
.multiplyScalar(e1 / e3)
|
|
1611
1641
|
.sub(normal);
|
|
1612
|
-
vec2
|
|
1613
|
-
.copy(rayDir)
|
|
1642
|
+
vec2.copy(rayDir)
|
|
1614
1643
|
.multiplyScalar(e2 / e3)
|
|
1615
1644
|
.add(rayStart)
|
|
1616
1645
|
.sub(clickPoint);
|
|
@@ -1737,8 +1766,8 @@ class NgtsScalingSphere {
|
|
|
1737
1766
|
event.stopPropagation();
|
|
1738
1767
|
this.hovered.set(false);
|
|
1739
1768
|
}
|
|
1740
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1741
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
1769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsScalingSphere, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1770
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtsScalingSphere, isStandalone: true, selector: "ngts-scaling-sphere", inputs: { direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: true, transformFunction: null }, axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "annotationRef", first: true, predicate: ["annotation"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1742
1771
|
<ngt-group #group>
|
|
1743
1772
|
<ngt-group
|
|
1744
1773
|
[matrix]="matrixL()"
|
|
@@ -1758,22 +1787,27 @@ class NgtsScalingSphere {
|
|
|
1758
1787
|
></div>
|
|
1759
1788
|
</ngts-html>
|
|
1760
1789
|
}
|
|
1761
|
-
<ngt-mesh
|
|
1790
|
+
<ngt-mesh
|
|
1791
|
+
#mesh
|
|
1792
|
+
[position]="[0, position(), 0]"
|
|
1793
|
+
[renderOrder]="500"
|
|
1794
|
+
[userData]="pivotControls.userData()"
|
|
1795
|
+
>
|
|
1762
1796
|
<ngt-sphere-geometry *args="[radius(), 12, 12]" />
|
|
1763
1797
|
<ngt-mesh-basic-material
|
|
1764
|
-
|
|
1798
|
+
transparent
|
|
1765
1799
|
[depthTest]="pivotControls.depthTest()"
|
|
1766
1800
|
[color]="color()"
|
|
1767
1801
|
[opacity]="pivotControls.opacity()"
|
|
1768
|
-
|
|
1802
|
+
polygonOffset
|
|
1769
1803
|
[polygonOffsetFactor]="-10"
|
|
1770
1804
|
/>
|
|
1771
1805
|
</ngt-mesh>
|
|
1772
1806
|
</ngt-group>
|
|
1773
1807
|
</ngt-group>
|
|
1774
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1.
|
|
1808
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.NgtsHTMLImpl, selector: "ngts-html", inputs: ["options"] }, { kind: "component", type: i1$1.NgtsHTMLContent, selector: "div[htmlContent]", inputs: ["htmlContent"], outputs: ["occluded"] }, { kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1775
1809
|
}
|
|
1776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsScalingSphere, decorators: [{
|
|
1777
1811
|
type: Component,
|
|
1778
1812
|
args: [{
|
|
1779
1813
|
selector: 'ngts-scaling-sphere',
|
|
@@ -1797,14 +1831,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1797
1831
|
></div>
|
|
1798
1832
|
</ngts-html>
|
|
1799
1833
|
}
|
|
1800
|
-
<ngt-mesh
|
|
1834
|
+
<ngt-mesh
|
|
1835
|
+
#mesh
|
|
1836
|
+
[position]="[0, position(), 0]"
|
|
1837
|
+
[renderOrder]="500"
|
|
1838
|
+
[userData]="pivotControls.userData()"
|
|
1839
|
+
>
|
|
1801
1840
|
<ngt-sphere-geometry *args="[radius(), 12, 12]" />
|
|
1802
1841
|
<ngt-mesh-basic-material
|
|
1803
|
-
|
|
1842
|
+
transparent
|
|
1804
1843
|
[depthTest]="pivotControls.depthTest()"
|
|
1805
1844
|
[color]="color()"
|
|
1806
1845
|
[opacity]="pivotControls.opacity()"
|
|
1807
|
-
|
|
1846
|
+
polygonOffset
|
|
1808
1847
|
[polygonOffsetFactor]="-10"
|
|
1809
1848
|
/>
|
|
1810
1849
|
</ngt-mesh>
|
|
@@ -1813,7 +1852,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1813
1852
|
`,
|
|
1814
1853
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
1815
1854
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1816
|
-
imports: [
|
|
1855
|
+
imports: [NgtsHTML, NgtArgs],
|
|
1817
1856
|
}]
|
|
1818
1857
|
}], ctorParameters: () => [] });
|
|
1819
1858
|
|
|
@@ -2025,8 +2064,8 @@ class NgtsPivotControls {
|
|
|
2025
2064
|
this.dragEnded.emit();
|
|
2026
2065
|
this.store.snapshot.invalidate();
|
|
2027
2066
|
}
|
|
2028
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
2029
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
2067
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsPivotControls, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2068
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtsPivotControls, isStandalone: true, selector: "ngts-pivot-controls", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dragStarted: "dragStarted", dragEnded: "dragEnded", dragged: "dragged" }, viewQueries: [{ propertyName: "parentRef", first: true, predicate: ["parent"], descendants: true, isSignal: true }, { propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "gizmoRef", first: true, predicate: ["gizmo"], descendants: true, isSignal: true }, { propertyName: "childrenRef", first: true, predicate: ["children"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2030
2069
|
<ngt-group #parent>
|
|
2031
2070
|
<ngt-group #group [matrix]="matrix()" [matrixAutoUpdate]="false" [parameters]="parameters()">
|
|
2032
2071
|
<ngt-group #gizmo [visible]="visible()" [position]="offset()" [rotation]="rotation()">
|
|
@@ -2085,7 +2124,7 @@ class NgtsPivotControls {
|
|
|
2085
2124
|
</ngt-group>
|
|
2086
2125
|
`, isInline: true, dependencies: [{ kind: "component", type: NgtsAxisArrow, selector: "ngts-axis-arrow", inputs: ["direction", "axis"] }, { kind: "component", type: NgtsPlaneSlider, selector: "ngts-plane-slider", inputs: ["dir1", "dir2", "axis"] }, { kind: "component", type: NgtsAxisRotator, selector: "ngts-axis-rotator", inputs: ["dir1", "dir2", "axis"] }, { kind: "component", type: NgtsScalingSphere, selector: "ngts-scaling-sphere", inputs: ["direction", "axis"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2087
2126
|
}
|
|
2088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
2127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsPivotControls, decorators: [{
|
|
2089
2128
|
type: Component,
|
|
2090
2129
|
args: [{
|
|
2091
2130
|
selector: 'ngts-pivot-controls',
|
|
@@ -2293,8 +2332,8 @@ class NgtsTransformControls {
|
|
|
2293
2332
|
this.store.update({ controls });
|
|
2294
2333
|
return () => this.store.update(() => ({ controls: oldControls }));
|
|
2295
2334
|
}
|
|
2296
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
2297
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.
|
|
2335
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsTransformControls, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2336
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.6", type: NgtsTransformControls, isStandalone: true, selector: "ngts-transform-controls", inputs: { object: { classPropertyName: "object", publicName: "object", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { change: "change", mouseDown: "mouseDown", mouseUp: "mouseUp", objectChange: "objectChange" }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2298
2337
|
<ngt-primitive *args="[controls()]" [parameters]="controlsOptions()" />
|
|
2299
2338
|
|
|
2300
2339
|
<ngt-group #group [parameters]="parameters()">
|
|
@@ -2302,7 +2341,7 @@ class NgtsTransformControls {
|
|
|
2302
2341
|
</ngt-group>
|
|
2303
2342
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2304
2343
|
}
|
|
2305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
2344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtsTransformControls, decorators: [{
|
|
2306
2345
|
type: Component,
|
|
2307
2346
|
args: [{
|
|
2308
2347
|
selector: 'ngts-transform-controls',
|
|
@@ -2323,5 +2362,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
2323
2362
|
* Generated bundle index. Do not edit.
|
|
2324
2363
|
*/
|
|
2325
2364
|
|
|
2326
|
-
export { NgtsGizmoHelper, NgtsGizmoHelperContent, NgtsGizmoViewcube, NgtsGizmoViewport, NgtsPivotControls, NgtsTransformControls };
|
|
2365
|
+
export { NgtsGizmoHelper, NgtsGizmoHelperContent, NgtsGizmoHelperImpl, NgtsGizmoViewcube, NgtsGizmoViewport, NgtsPivotControls, NgtsTransformControls };
|
|
2327
2366
|
//# sourceMappingURL=angular-three-soba-gizmos.mjs.map
|