angular-three-soba 4.2.0 → 4.2.2
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/fesm2022/angular-three-soba-abstractions.mjs +98 -98
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +26 -26
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +32 -32
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-gizmos.mjs +119 -119
- package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -1
- package/fesm2022/angular-three-soba-loaders.mjs +6 -6
- package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +75 -75
- package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2022/angular-three-soba-misc.mjs +85 -76
- package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2022/angular-three-soba-performances.mjs +164 -60
- package/fesm2022/angular-three-soba-performances.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +257 -257
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2022/angular-three-soba-stats.mjs +5 -5
- package/fesm2022/angular-three-soba-stats.mjs.map +1 -1
- package/package.json +141 -140
- package/performances/README.md +47 -0
- package/types/angular-three-soba-abstractions.d.ts +57 -57
- package/types/angular-three-soba-cameras.d.ts +3 -3
- package/types/angular-three-soba-controls.d.ts +4 -4
- package/types/angular-three-soba-gizmos.d.ts +4 -4
- package/types/angular-three-soba-materials.d.ts +4 -4
- package/types/angular-three-soba-misc.d.ts +16 -5
- package/types/angular-three-soba-performances.d.ts +55 -9
- package/types/angular-three-soba-staging.d.ts +13 -13
|
@@ -45,10 +45,10 @@ class NgtsGizmoHelperContent {
|
|
|
45
45
|
static ngTemplateContextGuard(_, ctx) {
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
49
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoHelperContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
49
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: NgtsGizmoHelperContent, isStandalone: true, selector: "ng-template[gizmoHelperContent]", ngImport: i0 }); }
|
|
50
50
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoHelperContent, decorators: [{
|
|
52
52
|
type: Directive,
|
|
53
53
|
args: [{ selector: 'ng-template[gizmoHelperContent]' }]
|
|
54
54
|
}] });
|
|
@@ -84,15 +84,15 @@ const defaultOptions$2 = {
|
|
|
84
84
|
*/
|
|
85
85
|
class NgtsGizmoHelperImpl {
|
|
86
86
|
constructor() {
|
|
87
|
-
this.options = input(defaultOptions$2, { ...(ngDevMode ? { debugName: "options" } : {}), transform: mergeInputs(defaultOptions$2) });
|
|
87
|
+
this.options = input(defaultOptions$2, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), transform: mergeInputs(defaultOptions$2) });
|
|
88
88
|
this.update = output();
|
|
89
89
|
this.renderPriority = pick(this.options, 'renderPriority');
|
|
90
90
|
this.margin = pick(this.options, 'margin');
|
|
91
91
|
this.alignment = pick(this.options, 'alignment');
|
|
92
92
|
this.scene = new THREE.Scene();
|
|
93
93
|
this.content = contentChild.required(NgtsGizmoHelperContent, { read: TemplateRef });
|
|
94
|
-
this.gizmoRef = viewChild('gizmo', ...(ngDevMode ? [{ debugName: "gizmoRef" }] : []));
|
|
95
|
-
this.virtualCameraRef = viewChild(NgtsOrthographicCamera, ...(ngDevMode ? [{ debugName: "virtualCameraRef" }] : []));
|
|
94
|
+
this.gizmoRef = viewChild('gizmo', ...(ngDevMode ? [{ debugName: "gizmoRef" }] : /* istanbul ignore next */ []));
|
|
95
|
+
this.virtualCameraRef = viewChild(NgtsOrthographicCamera, ...(ngDevMode ? [{ debugName: "virtualCameraRef" }] : /* istanbul ignore next */ []));
|
|
96
96
|
this.store = injectStore();
|
|
97
97
|
this.x = computed(() => {
|
|
98
98
|
const alignment = this.alignment();
|
|
@@ -100,14 +100,14 @@ class NgtsGizmoHelperImpl {
|
|
|
100
100
|
return 0;
|
|
101
101
|
const [width, [marginX]] = [this.store.size.width(), this.margin()];
|
|
102
102
|
return alignment.endsWith('-left') ? -width / 2 + marginX : width / 2 - marginX;
|
|
103
|
-
}, ...(ngDevMode ? [{ debugName: "x" }] : []));
|
|
103
|
+
}, ...(ngDevMode ? [{ debugName: "x" }] : /* istanbul ignore next */ []));
|
|
104
104
|
this.y = computed(() => {
|
|
105
105
|
const alignment = this.alignment();
|
|
106
106
|
if (alignment.startsWith('center-'))
|
|
107
107
|
return 0;
|
|
108
108
|
const [height, [marginY]] = [this.store.size.height(), this.margin()];
|
|
109
109
|
return alignment.startsWith('top-') ? height / 2 - marginY : -height / 2 + marginY;
|
|
110
|
-
}, ...(ngDevMode ? [{ debugName: "y" }] : []));
|
|
110
|
+
}, ...(ngDevMode ? [{ debugName: "y" }] : /* istanbul ignore next */ []));
|
|
111
111
|
this.animating = false;
|
|
112
112
|
this.radius = 0;
|
|
113
113
|
this.focusPoint = new THREE.Vector3(0, 0, 0);
|
|
@@ -203,8 +203,8 @@ class NgtsGizmoHelperImpl {
|
|
|
203
203
|
isCameraControls(controls) {
|
|
204
204
|
return 'getTarget' in controls;
|
|
205
205
|
}
|
|
206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
207
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.
|
|
206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoHelperImpl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
207
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.9", 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: `
|
|
208
208
|
@let _renderPriority = renderPriority();
|
|
209
209
|
|
|
210
210
|
<ngt-portal
|
|
@@ -225,7 +225,7 @@ class NgtsGizmoHelperImpl {
|
|
|
225
225
|
</ngt-portal>
|
|
226
226
|
`, 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 }); }
|
|
227
227
|
}
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoHelperImpl, decorators: [{
|
|
229
229
|
type: Component,
|
|
230
230
|
args: [{
|
|
231
231
|
selector: 'ngts-gizmo-helper',
|
|
@@ -280,9 +280,9 @@ const defaultFaceMaterialOptions = {
|
|
|
280
280
|
*/
|
|
281
281
|
class FaceMaterial {
|
|
282
282
|
constructor() {
|
|
283
|
-
this.hover = input.required(...(ngDevMode ? [{ debugName: "hover" }] : []));
|
|
284
|
-
this.index = input.required(...(ngDevMode ? [{ debugName: "index" }] : []));
|
|
285
|
-
this.options = input(defaultFaceMaterialOptions, { ...(ngDevMode ? { debugName: "options" } : {}), transform: mergeInputs(defaultFaceMaterialOptions) });
|
|
283
|
+
this.hover = input.required(...(ngDevMode ? [{ debugName: "hover" }] : /* istanbul ignore next */ []));
|
|
284
|
+
this.index = input.required(...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
285
|
+
this.options = input(defaultFaceMaterialOptions, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), transform: mergeInputs(defaultFaceMaterialOptions) });
|
|
286
286
|
this.faces = pick(this.options, 'faces');
|
|
287
287
|
this.font = pick(this.options, 'font');
|
|
288
288
|
this.color = pick(this.options, 'color');
|
|
@@ -292,7 +292,7 @@ class FaceMaterial {
|
|
|
292
292
|
this.document = inject(DOCUMENT);
|
|
293
293
|
this.store = injectStore();
|
|
294
294
|
this.opacity = pick(this.options, 'opacity');
|
|
295
|
-
this.materialColor = computed(() => (this.hover() ? this.hoverColor() : 'white'), ...(ngDevMode ? [{ debugName: "materialColor" }] : []));
|
|
295
|
+
this.materialColor = computed(() => (this.hover() ? this.hoverColor() : 'white'), ...(ngDevMode ? [{ debugName: "materialColor" }] : /* istanbul ignore next */ []));
|
|
296
296
|
this.texture = computed(() => {
|
|
297
297
|
const [index, faces, font, color, textColor, strokeColor, gl] = [
|
|
298
298
|
this.index(),
|
|
@@ -318,11 +318,11 @@ class FaceMaterial {
|
|
|
318
318
|
const texture = new THREE.CanvasTexture(canvas);
|
|
319
319
|
texture.anisotropy = gl.capabilities.getMaxAnisotropy() || 1;
|
|
320
320
|
return texture;
|
|
321
|
-
}, ...(ngDevMode ? [{ debugName: "texture" }] : []));
|
|
321
|
+
}, ...(ngDevMode ? [{ debugName: "texture" }] : /* istanbul ignore next */ []));
|
|
322
322
|
extend({ MeshBasicMaterial });
|
|
323
323
|
}
|
|
324
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
325
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
324
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FaceMaterial, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
325
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.9", 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: `
|
|
326
326
|
<ngt-mesh-basic-material
|
|
327
327
|
[attach]="['material', index()]"
|
|
328
328
|
[map]="texture()"
|
|
@@ -332,7 +332,7 @@ class FaceMaterial {
|
|
|
332
332
|
/>
|
|
333
333
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
334
334
|
}
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FaceMaterial, decorators: [{
|
|
336
336
|
type: Component,
|
|
337
337
|
args: [{
|
|
338
338
|
selector: 'viewcube-face-material',
|
|
@@ -357,11 +357,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
357
357
|
*/
|
|
358
358
|
class FaceCube {
|
|
359
359
|
constructor() {
|
|
360
|
-
this.options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
361
|
-
this.onClick = input(...(ngDevMode ? [undefined, { debugName: "onClick" }] : []));
|
|
360
|
+
this.options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
361
|
+
this.onClick = input(...(ngDevMode ? [undefined, { debugName: "onClick" }] : /* istanbul ignore next */ []));
|
|
362
362
|
this.meshRef = viewChild.required('mesh');
|
|
363
363
|
this.gizmoHelper = inject(NgtsGizmoHelperImpl);
|
|
364
|
-
this.hover = signal(-1, ...(ngDevMode ? [{ debugName: "hover" }] : []));
|
|
364
|
+
this.hover = signal(-1, ...(ngDevMode ? [{ debugName: "hover" }] : /* istanbul ignore next */ []));
|
|
365
365
|
this.count = Array.from({ length: 6 });
|
|
366
366
|
this.Math = Math;
|
|
367
367
|
extend({ Mesh, BoxGeometry });
|
|
@@ -386,8 +386,8 @@ class FaceCube {
|
|
|
386
386
|
this.gizmoHelper.tweenCamera(event.face.normal);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
390
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
389
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FaceCube, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
390
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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 } }, viewQueries: [{ propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
391
391
|
<ngt-mesh #mesh (click)="internalOnClick($any($event))">
|
|
392
392
|
<ngt-box-geometry />
|
|
393
393
|
@for (face of count; track $index) {
|
|
@@ -396,7 +396,7 @@ class FaceCube {
|
|
|
396
396
|
</ngt-mesh>
|
|
397
397
|
`, isInline: true, dependencies: [{ kind: "component", type: FaceMaterial, selector: "viewcube-face-material", inputs: ["hover", "index", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
398
398
|
}
|
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FaceCube, decorators: [{
|
|
400
400
|
type: Component,
|
|
401
401
|
args: [{
|
|
402
402
|
selector: 'viewcube-face-cube',
|
|
@@ -421,18 +421,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
421
421
|
*/
|
|
422
422
|
class EdgeCube {
|
|
423
423
|
constructor() {
|
|
424
|
-
this.dimensions = input.required(...(ngDevMode ? [{ debugName: "dimensions" }] : []));
|
|
425
|
-
this.position = input.required(...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
426
|
-
this.hoverColor = input(colors.hover, { ...(ngDevMode ? { debugName: "hoverColor" } : {}), transform: (value) => {
|
|
424
|
+
this.dimensions = input.required(...(ngDevMode ? [{ debugName: "dimensions" }] : /* istanbul ignore next */ []));
|
|
425
|
+
this.position = input.required(...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
426
|
+
this.hoverColor = input(colors.hover, { ...(ngDevMode ? { debugName: "hoverColor" } : /* istanbul ignore next */ {}), transform: (value) => {
|
|
427
427
|
if (value === undefined)
|
|
428
428
|
return colors.hover;
|
|
429
429
|
return value;
|
|
430
430
|
} });
|
|
431
|
-
this.onClick = input(...(ngDevMode ? [undefined, { debugName: "onClick" }] : []));
|
|
431
|
+
this.onClick = input(...(ngDevMode ? [undefined, { debugName: "onClick" }] : /* istanbul ignore next */ []));
|
|
432
432
|
this.meshRef = viewChild.required('mesh');
|
|
433
433
|
this.gizmoHelper = inject(NgtsGizmoHelperImpl);
|
|
434
|
-
this.hover = signal(false, ...(ngDevMode ? [{ debugName: "hover" }] : []));
|
|
435
|
-
this.color = computed(() => (this.hover() ? this.hoverColor() : 'white'), ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
434
|
+
this.hover = signal(false, ...(ngDevMode ? [{ debugName: "hover" }] : /* istanbul ignore next */ []));
|
|
435
|
+
this.color = computed(() => (this.hover() ? this.hoverColor() : 'white'), ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
436
436
|
extend({ Mesh, BoxGeometry, MeshBasicMaterial });
|
|
437
437
|
// TODO: (chau) remove this when event binding syntax no longer trigger cdr
|
|
438
438
|
objectEvents(this.meshRef, {
|
|
@@ -455,15 +455,15 @@ class EdgeCube {
|
|
|
455
455
|
this.gizmoHelper.tweenCamera(this.position());
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
459
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.
|
|
458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EdgeCube, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.9", 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 } }, viewQueries: [{ propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
460
460
|
<ngt-mesh #mesh [scale]="1.01" [position]="position()" (click)="internalOnClick($any($event))">
|
|
461
461
|
<ngt-mesh-basic-material transparent [opacity]="0.6" [color]="color()" [visible]="hover()" />
|
|
462
462
|
<ngt-box-geometry *args="dimensions()" />
|
|
463
463
|
</ngt-mesh>
|
|
464
464
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
465
465
|
}
|
|
466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EdgeCube, decorators: [{
|
|
467
467
|
type: Component,
|
|
468
468
|
args: [{
|
|
469
469
|
selector: 'viewcube-edge-cube',
|
|
@@ -496,7 +496,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
496
496
|
*/
|
|
497
497
|
class NgtsGizmoViewcube {
|
|
498
498
|
constructor() {
|
|
499
|
-
this.options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
499
|
+
this.options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
500
500
|
this.click = output();
|
|
501
501
|
this.hoverColor = pick(this.options, 'hoverColor');
|
|
502
502
|
this.corners = [
|
|
@@ -535,8 +535,8 @@ class NgtsGizmoViewcube {
|
|
|
535
535
|
makePositionVector(xyz) {
|
|
536
536
|
return new THREE.Vector3(...xyz).multiplyScalar(0.38);
|
|
537
537
|
}
|
|
538
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
539
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
538
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoViewcube, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
539
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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: `
|
|
540
540
|
<ngt-group [scale]="60">
|
|
541
541
|
<viewcube-face-cube [options]="options()" [onClick]="onClick" />
|
|
542
542
|
@for (edge of edges; track $index) {
|
|
@@ -558,7 +558,7 @@ class NgtsGizmoViewcube {
|
|
|
558
558
|
</ngt-group>
|
|
559
559
|
`, 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 }); }
|
|
560
560
|
}
|
|
561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoViewcube, decorators: [{
|
|
562
562
|
type: Component,
|
|
563
563
|
args: [{
|
|
564
564
|
selector: 'ngts-gizmo-viewcube',
|
|
@@ -597,17 +597,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
597
597
|
*/
|
|
598
598
|
class Axis {
|
|
599
599
|
constructor() {
|
|
600
|
-
this.scale = input([0.8, 0.05, 0.05], { ...(ngDevMode ? { debugName: "scale" } : {}), transform: (value) => {
|
|
600
|
+
this.scale = input([0.8, 0.05, 0.05], { ...(ngDevMode ? { debugName: "scale" } : /* istanbul ignore next */ {}), transform: (value) => {
|
|
601
601
|
if (value === undefined)
|
|
602
602
|
return [0.8, 0.05, 0.05];
|
|
603
603
|
return value;
|
|
604
604
|
} });
|
|
605
|
-
this.color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : []));
|
|
606
|
-
this.rotation = input([0, 0, 0], ...(ngDevMode ? [{ debugName: "rotation" }] : []));
|
|
605
|
+
this.color = input(...(ngDevMode ? [undefined, { debugName: "color" }] : /* istanbul ignore next */ []));
|
|
606
|
+
this.rotation = input([0, 0, 0], ...(ngDevMode ? [{ debugName: "rotation" }] : /* istanbul ignore next */ []));
|
|
607
607
|
extend({ Group, Mesh, BoxGeometry, MeshBasicMaterial });
|
|
608
608
|
}
|
|
609
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
610
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
609
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Axis, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
610
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.9", 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: `
|
|
611
611
|
<ngt-group [rotation]="rotation()">
|
|
612
612
|
<ngt-mesh [position]="[0.4, 0, 0]">
|
|
613
613
|
<ngt-box-geometry *args="scale()" />
|
|
@@ -616,7 +616,7 @@ class Axis {
|
|
|
616
616
|
</ngt-group>
|
|
617
617
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
618
618
|
}
|
|
619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Axis, decorators: [{
|
|
620
620
|
type: Component,
|
|
621
621
|
args: [{
|
|
622
622
|
selector: 'viewport-axis',
|
|
@@ -641,14 +641,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
641
641
|
*/
|
|
642
642
|
class AxisHead {
|
|
643
643
|
constructor() {
|
|
644
|
-
this.arcStyle = input.required(...(ngDevMode ? [{ debugName: "arcStyle" }] : []));
|
|
645
|
-
this.position = input.required(...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
646
|
-
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
|
|
647
|
-
this.labelColor = input('#000', ...(ngDevMode ? [{ debugName: "labelColor" }] : []));
|
|
648
|
-
this.axisHeadScale = input(1, ...(ngDevMode ? [{ debugName: "axisHeadScale" }] : []));
|
|
649
|
-
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
650
|
-
this.font = input('18px Inter var, Arial, sans-serif', ...(ngDevMode ? [{ debugName: "font" }] : []));
|
|
651
|
-
this.onClick = input(...(ngDevMode ? [undefined, { debugName: "onClick" }] : []));
|
|
644
|
+
this.arcStyle = input.required(...(ngDevMode ? [{ debugName: "arcStyle" }] : /* istanbul ignore next */ []));
|
|
645
|
+
this.position = input.required(...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
646
|
+
this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
|
|
647
|
+
this.labelColor = input('#000', ...(ngDevMode ? [{ debugName: "labelColor" }] : /* istanbul ignore next */ []));
|
|
648
|
+
this.axisHeadScale = input(1, ...(ngDevMode ? [{ debugName: "axisHeadScale" }] : /* istanbul ignore next */ []));
|
|
649
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
650
|
+
this.font = input('18px Inter var, Arial, sans-serif', ...(ngDevMode ? [{ debugName: "font" }] : /* istanbul ignore next */ []));
|
|
651
|
+
this.onClick = input(...(ngDevMode ? [undefined, { debugName: "onClick" }] : /* istanbul ignore next */ []));
|
|
652
652
|
this.spriteRef = viewChild.required('sprite');
|
|
653
653
|
this.document = inject(DOCUMENT);
|
|
654
654
|
this.gizmoHelper = inject(NgtsGizmoHelperImpl);
|
|
@@ -679,9 +679,9 @@ class AxisHead {
|
|
|
679
679
|
const texture = new THREE.CanvasTexture(canvas);
|
|
680
680
|
texture.anisotropy = gl.capabilities.getMaxAnisotropy() || 1;
|
|
681
681
|
return texture;
|
|
682
|
-
}, ...(ngDevMode ? [{ debugName: "texture" }] : []));
|
|
683
|
-
this.active = signal(false, ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
684
|
-
this.scale = computed(() => (this.label() ? 1 : 0.75) * (this.active() ? 1.2 : 1) * this.axisHeadScale(), ...(ngDevMode ? [{ debugName: "scale" }] : []));
|
|
682
|
+
}, ...(ngDevMode ? [{ debugName: "texture" }] : /* istanbul ignore next */ []));
|
|
683
|
+
this.active = signal(false, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
684
|
+
this.scale = computed(() => (this.label() ? 1 : 0.75) * (this.active() ? 1.2 : 1) * this.axisHeadScale(), ...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
|
|
685
685
|
extend({ Sprite, SpriteMaterial });
|
|
686
686
|
// TODO: (chau) remove this when event binding syntax no longer trigger cdr
|
|
687
687
|
objectEvents(this.spriteRef, {
|
|
@@ -713,8 +713,8 @@ class AxisHead {
|
|
|
713
713
|
event.stopPropagation();
|
|
714
714
|
this.gizmoHelper.tweenCamera(event.object.position);
|
|
715
715
|
}
|
|
716
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
717
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.
|
|
716
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AxisHead, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
717
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.9", 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 } }, viewQueries: [{ propertyName: "spriteRef", first: true, predicate: ["sprite"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
718
718
|
<ngt-sprite #sprite [scale]="scale()" [position]="position()">
|
|
719
719
|
<ngt-sprite-material
|
|
720
720
|
[map]="texture()"
|
|
@@ -725,7 +725,7 @@ class AxisHead {
|
|
|
725
725
|
</ngt-sprite>
|
|
726
726
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
727
727
|
}
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AxisHead, decorators: [{
|
|
729
729
|
type: Component,
|
|
730
730
|
args: [{
|
|
731
731
|
selector: 'viewport-axis-head',
|
|
@@ -772,7 +772,7 @@ const defaultOptions$1 = {
|
|
|
772
772
|
class NgtsGizmoViewport {
|
|
773
773
|
constructor() {
|
|
774
774
|
this.Math = Math;
|
|
775
|
-
this.options = input(defaultOptions$1, { ...(ngDevMode ? { debugName: "options" } : {}), transform: mergeInputs(defaultOptions$1) });
|
|
775
|
+
this.options = input(defaultOptions$1, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), transform: mergeInputs(defaultOptions$1) });
|
|
776
776
|
this.parameters = omit(this.options, [
|
|
777
777
|
'axisColors',
|
|
778
778
|
'axisScale',
|
|
@@ -801,8 +801,8 @@ class NgtsGizmoViewport {
|
|
|
801
801
|
return getEmitter(this.click);
|
|
802
802
|
return undefined;
|
|
803
803
|
}
|
|
804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
805
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
804
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoViewport, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
805
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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: `
|
|
806
806
|
@let _axisScale = axisScale();
|
|
807
807
|
@let _axisHeadScale = axisHeadScale();
|
|
808
808
|
@let _labels = labels();
|
|
@@ -875,7 +875,7 @@ class NgtsGizmoViewport {
|
|
|
875
875
|
</ngt-group>
|
|
876
876
|
`, 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 }); }
|
|
877
877
|
}
|
|
878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsGizmoViewport, decorators: [{
|
|
879
879
|
type: Component,
|
|
880
880
|
args: [{
|
|
881
881
|
selector: 'ngts-gizmo-viewport',
|
|
@@ -998,26 +998,26 @@ const offsetMatrix$1 = new THREE.Matrix4();
|
|
|
998
998
|
class NgtsAxisArrow {
|
|
999
999
|
constructor() {
|
|
1000
1000
|
this.DoubleSide = THREE.DoubleSide;
|
|
1001
|
-
this.direction = input.required(...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
1002
|
-
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : []));
|
|
1001
|
+
this.direction = input.required(...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
1002
|
+
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
|
|
1003
1003
|
this.groupRef = viewChild.required('group');
|
|
1004
1004
|
this.innerGroupRef = viewChild.required('innerGroup');
|
|
1005
|
-
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : {}), read: ElementRef });
|
|
1005
|
+
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
1006
1006
|
this.pivotControls = inject(NgtsPivotControls);
|
|
1007
1007
|
this.store = injectStore();
|
|
1008
|
-
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : []));
|
|
1008
|
+
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
|
|
1009
1009
|
this.clickInfo = null;
|
|
1010
1010
|
this.offset0 = 0;
|
|
1011
|
-
this.color = computed(() => this.hovered() ? this.pivotControls.hoveredColor() : this.pivotControls.axisColors()[this.axis()], ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
1011
|
+
this.color = computed(() => this.hovered() ? this.pivotControls.hoveredColor() : this.pivotControls.axisColors()[this.axis()], ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
1012
1012
|
this.coneWidth = computed(() => this.pivotControls.fixed()
|
|
1013
1013
|
? (this.pivotControls.lineWidth() / this.pivotControls.scale()) * 1.6
|
|
1014
|
-
: this.pivotControls.scale() / 20, ...(ngDevMode ? [{ debugName: "coneWidth" }] : []));
|
|
1015
|
-
this.coneLength = computed(() => (this.pivotControls.fixed() ? 0.2 : this.pivotControls.scale() / 5), ...(ngDevMode ? [{ debugName: "coneLength" }] : []));
|
|
1016
|
-
this.cylinderLength = computed(() => this.pivotControls.fixed() ? 1 - this.coneLength() : this.pivotControls.scale() - this.coneLength(), ...(ngDevMode ? [{ debugName: "cylinderLength" }] : []));
|
|
1014
|
+
: this.pivotControls.scale() / 20, ...(ngDevMode ? [{ debugName: "coneWidth" }] : /* istanbul ignore next */ []));
|
|
1015
|
+
this.coneLength = computed(() => (this.pivotControls.fixed() ? 0.2 : this.pivotControls.scale() / 5), ...(ngDevMode ? [{ debugName: "coneLength" }] : /* istanbul ignore next */ []));
|
|
1016
|
+
this.cylinderLength = computed(() => this.pivotControls.fixed() ? 1 - this.coneLength() : this.pivotControls.scale() - this.coneLength(), ...(ngDevMode ? [{ debugName: "cylinderLength" }] : /* istanbul ignore next */ []));
|
|
1017
1017
|
this.matrixL = computed(() => {
|
|
1018
1018
|
const quaternion = new THREE.Quaternion().setFromUnitVectors(upV$1, this.direction().clone().normalize());
|
|
1019
1019
|
return new THREE.Matrix4().makeRotationFromQuaternion(quaternion);
|
|
1020
|
-
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : []));
|
|
1020
|
+
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : /* istanbul ignore next */ []));
|
|
1021
1021
|
extend({ Group, Mesh, ConeGeometry, CylinderGeometry, MeshBasicMaterial });
|
|
1022
1022
|
// TODO: (chau) remove this when event binding syntax no longer trigger cdr
|
|
1023
1023
|
objectEvents(this.innerGroupRef, {
|
|
@@ -1100,8 +1100,8 @@ class NgtsAxisArrow {
|
|
|
1100
1100
|
event.stopPropagation();
|
|
1101
1101
|
this.hovered.set(false);
|
|
1102
1102
|
}
|
|
1103
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1104
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsAxisArrow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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: "innerGroupRef", first: true, predicate: ["innerGroup"], descendants: true, isSignal: true }, { propertyName: "annotationRef", first: true, predicate: ["annotation"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: `
|
|
1105
1105
|
<ngt-group #group>
|
|
1106
1106
|
<ngt-group #innerGroup [matrix]="matrixL()" [matrixAutoUpdate]="false">
|
|
1107
1107
|
@if (pivotControls.annotations()) {
|
|
@@ -1162,7 +1162,7 @@ class NgtsAxisArrow {
|
|
|
1162
1162
|
</ngt-group>
|
|
1163
1163
|
`, 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 }); }
|
|
1164
1164
|
}
|
|
1165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsAxisArrow, decorators: [{
|
|
1166
1166
|
type: Component,
|
|
1167
1167
|
args: [{
|
|
1168
1168
|
selector: 'ngts-axis-arrow',
|
|
@@ -1319,14 +1319,14 @@ const intersection$1 = new THREE.Vector3();
|
|
|
1319
1319
|
class NgtsAxisRotator {
|
|
1320
1320
|
constructor() {
|
|
1321
1321
|
this.DoubleSide = THREE.DoubleSide;
|
|
1322
|
-
this.dir1 = input.required(...(ngDevMode ? [{ debugName: "dir1" }] : []));
|
|
1323
|
-
this.dir2 = input.required(...(ngDevMode ? [{ debugName: "dir2" }] : []));
|
|
1324
|
-
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : []));
|
|
1322
|
+
this.dir1 = input.required(...(ngDevMode ? [{ debugName: "dir1" }] : /* istanbul ignore next */ []));
|
|
1323
|
+
this.dir2 = input.required(...(ngDevMode ? [{ debugName: "dir2" }] : /* istanbul ignore next */ []));
|
|
1324
|
+
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
|
|
1325
1325
|
this.groupRef = viewChild.required('group');
|
|
1326
|
-
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : {}), read: ElementRef });
|
|
1326
|
+
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
1327
1327
|
this.pivotControls = inject(NgtsPivotControls);
|
|
1328
1328
|
this.store = injectStore();
|
|
1329
|
-
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : []));
|
|
1329
|
+
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
|
|
1330
1330
|
this.angle = 0;
|
|
1331
1331
|
this.angle0 = 0;
|
|
1332
1332
|
this.clickInfo = null;
|
|
@@ -1334,8 +1334,8 @@ class NgtsAxisRotator {
|
|
|
1334
1334
|
const dir1N = this.dir1().clone().normalize();
|
|
1335
1335
|
const dir2N = this.dir2().clone().normalize();
|
|
1336
1336
|
return new THREE.Matrix4().makeBasis(dir1N, dir2N, dir1N.clone().cross(dir2N));
|
|
1337
|
-
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : []));
|
|
1338
|
-
this.r = computed(() => (this.pivotControls.fixed() ? 0.65 : this.pivotControls.scale() * 0.65), ...(ngDevMode ? [{ debugName: "r" }] : []));
|
|
1337
|
+
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : /* istanbul ignore next */ []));
|
|
1338
|
+
this.r = computed(() => (this.pivotControls.fixed() ? 0.65 : this.pivotControls.scale() * 0.65), ...(ngDevMode ? [{ debugName: "r" }] : /* istanbul ignore next */ []));
|
|
1339
1339
|
this.arc = computed(() => {
|
|
1340
1340
|
const segments = 32;
|
|
1341
1341
|
const points = [];
|
|
@@ -1344,7 +1344,7 @@ class NgtsAxisRotator {
|
|
|
1344
1344
|
points.push(new THREE.Vector3(Math.cos(angle) * this.r(), Math.sin(angle) * this.r(), 0));
|
|
1345
1345
|
}
|
|
1346
1346
|
return points;
|
|
1347
|
-
}, ...(ngDevMode ? [{ debugName: "arc" }] : []));
|
|
1347
|
+
}, ...(ngDevMode ? [{ debugName: "arc" }] : /* istanbul ignore next */ []));
|
|
1348
1348
|
extend({ Group });
|
|
1349
1349
|
// TODO: (chau) remove this when event binding syntax no longer trigger cdr
|
|
1350
1350
|
objectEvents(this.groupRef, {
|
|
@@ -1441,8 +1441,8 @@ class NgtsAxisRotator {
|
|
|
1441
1441
|
event.stopPropagation();
|
|
1442
1442
|
this.hovered.set(false);
|
|
1443
1443
|
}
|
|
1444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1445
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsAxisRotator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1445
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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: `
|
|
1446
1446
|
<ngt-group #group [matrix]="matrixL()" [matrixAutoUpdate]="false">
|
|
1447
1447
|
@if (pivotControls.annotations()) {
|
|
1448
1448
|
<ngts-html [options]="{ position: [r(), r(), 0] }">
|
|
@@ -1483,7 +1483,7 @@ class NgtsAxisRotator {
|
|
|
1483
1483
|
</ngt-group>
|
|
1484
1484
|
`, 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 }); }
|
|
1485
1485
|
}
|
|
1486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsAxisRotator, decorators: [{
|
|
1487
1487
|
type: Component,
|
|
1488
1488
|
args: [{
|
|
1489
1489
|
selector: 'ngts-axis-rotator',
|
|
@@ -1575,15 +1575,15 @@ const offsetMatrix = new THREE.Matrix4();
|
|
|
1575
1575
|
class NgtsPlaneSlider {
|
|
1576
1576
|
constructor() {
|
|
1577
1577
|
this.DoubleSide = THREE.DoubleSide;
|
|
1578
|
-
this.dir1 = input.required(...(ngDevMode ? [{ debugName: "dir1" }] : []));
|
|
1579
|
-
this.dir2 = input.required(...(ngDevMode ? [{ debugName: "dir2" }] : []));
|
|
1580
|
-
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : []));
|
|
1578
|
+
this.dir1 = input.required(...(ngDevMode ? [{ debugName: "dir1" }] : /* istanbul ignore next */ []));
|
|
1579
|
+
this.dir2 = input.required(...(ngDevMode ? [{ debugName: "dir2" }] : /* istanbul ignore next */ []));
|
|
1580
|
+
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
|
|
1581
1581
|
this.groupRef = viewChild.required('group');
|
|
1582
1582
|
this.meshRef = viewChild.required('mesh');
|
|
1583
|
-
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : {}), read: ElementRef });
|
|
1583
|
+
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
1584
1584
|
this.pivotControls = inject(NgtsPivotControls);
|
|
1585
1585
|
this.store = injectStore();
|
|
1586
|
-
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : []));
|
|
1586
|
+
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
|
|
1587
1587
|
this.clickInfo = null;
|
|
1588
1588
|
this.offsetX0 = 0;
|
|
1589
1589
|
this.offsetY0 = 0;
|
|
@@ -1591,10 +1591,10 @@ class NgtsPlaneSlider {
|
|
|
1591
1591
|
const dir1N = this.dir1().clone().normalize();
|
|
1592
1592
|
const dir2N = this.dir2().clone().normalize();
|
|
1593
1593
|
return new THREE.Matrix4().makeBasis(dir1N, dir2N, dir1N.clone().cross(dir2N));
|
|
1594
|
-
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : []));
|
|
1595
|
-
this.pos1 = computed(() => (this.pivotControls.fixed() ? 1 / 7 : this.pivotControls.scale() / 7), ...(ngDevMode ? [{ debugName: "pos1" }] : []));
|
|
1596
|
-
this.length = computed(() => (this.pivotControls.fixed() ? 0.225 : this.pivotControls.scale() * 0.225), ...(ngDevMode ? [{ debugName: "length" }] : []));
|
|
1597
|
-
this.color = computed(() => this.hovered() ? this.pivotControls.hoveredColor() : this.pivotControls.axisColors()[this.axis()], ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
1594
|
+
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : /* istanbul ignore next */ []));
|
|
1595
|
+
this.pos1 = computed(() => (this.pivotControls.fixed() ? 1 / 7 : this.pivotControls.scale() / 7), ...(ngDevMode ? [{ debugName: "pos1" }] : /* istanbul ignore next */ []));
|
|
1596
|
+
this.length = computed(() => (this.pivotControls.fixed() ? 0.225 : this.pivotControls.scale() * 0.225), ...(ngDevMode ? [{ debugName: "length" }] : /* istanbul ignore next */ []));
|
|
1597
|
+
this.color = computed(() => this.hovered() ? this.pivotControls.hoveredColor() : this.pivotControls.axisColors()[this.axis()], ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
1598
1598
|
this.points = computed(() => {
|
|
1599
1599
|
const length = this.length();
|
|
1600
1600
|
return [
|
|
@@ -1604,7 +1604,7 @@ class NgtsPlaneSlider {
|
|
|
1604
1604
|
new THREE.Vector3(length, 0, 0),
|
|
1605
1605
|
new THREE.Vector3(0, 0, 0),
|
|
1606
1606
|
];
|
|
1607
|
-
}, ...(ngDevMode ? [{ debugName: "points" }] : []));
|
|
1607
|
+
}, ...(ngDevMode ? [{ debugName: "points" }] : /* istanbul ignore next */ []));
|
|
1608
1608
|
extend({ Group, Mesh, PlaneGeometry, MeshBasicMaterial });
|
|
1609
1609
|
// TODO: (chau) remove this when event binding syntax no longer trigger cdr
|
|
1610
1610
|
objectEvents(this.meshRef, {
|
|
@@ -1703,8 +1703,8 @@ class NgtsPlaneSlider {
|
|
|
1703
1703
|
event.stopPropagation();
|
|
1704
1704
|
this.hovered.set(false);
|
|
1705
1705
|
}
|
|
1706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1706
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsPlaneSlider, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1707
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }, { propertyName: "annotationRef", first: true, predicate: ["annotation"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: `
|
|
1708
1708
|
<ngt-group #group [matrix]="matrixL()" [matrixAutoUpdate]="false">
|
|
1709
1709
|
@if (pivotControls.annotations()) {
|
|
1710
1710
|
<ngts-html [options]="{ position: [0, 0, 0] }">
|
|
@@ -1755,7 +1755,7 @@ class NgtsPlaneSlider {
|
|
|
1755
1755
|
</ngt-group>
|
|
1756
1756
|
`, 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 }); }
|
|
1757
1757
|
}
|
|
1758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsPlaneSlider, decorators: [{
|
|
1759
1759
|
type: Component,
|
|
1760
1760
|
args: [{
|
|
1761
1761
|
selector: 'ngts-plane-slider',
|
|
@@ -1858,27 +1858,27 @@ const scaleMatrix = new THREE.Matrix4();
|
|
|
1858
1858
|
*/
|
|
1859
1859
|
class NgtsScalingSphere {
|
|
1860
1860
|
constructor() {
|
|
1861
|
-
this.direction = input.required(...(ngDevMode ? [{ debugName: "direction" }] : []));
|
|
1862
|
-
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : []));
|
|
1861
|
+
this.direction = input.required(...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
1862
|
+
this.axis = input.required(...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
|
|
1863
1863
|
this.groupRef = viewChild.required('group');
|
|
1864
1864
|
this.innerGroupRef = viewChild.required('innerGroup');
|
|
1865
|
-
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : {}), read: ElementRef });
|
|
1865
|
+
this.annotationRef = viewChild('annotation', { ...(ngDevMode ? { debugName: "annotationRef" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
1866
1866
|
this.meshRef = viewChild.required('mesh');
|
|
1867
1867
|
this.pivotControls = inject(NgtsPivotControls);
|
|
1868
1868
|
this.store = injectStore();
|
|
1869
|
-
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : []));
|
|
1869
|
+
this.hovered = signal(false, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
|
|
1870
1870
|
this.scale0 = 1;
|
|
1871
1871
|
this.scaleCurrent = 1;
|
|
1872
1872
|
this.clickInfo = null;
|
|
1873
|
-
this.position = computed(() => (this.pivotControls.fixed() ? 1.2 : 1.2 * this.pivotControls.scale()), ...(ngDevMode ? [{ debugName: "position" }] : []));
|
|
1873
|
+
this.position = computed(() => (this.pivotControls.fixed() ? 1.2 : 1.2 * this.pivotControls.scale()), ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
1874
1874
|
this.radius = computed(() => this.pivotControls.fixed()
|
|
1875
1875
|
? (this.pivotControls.lineWidth() / this.pivotControls.scale()) * 1.8
|
|
1876
|
-
: this.pivotControls.scale() / 22.5, ...(ngDevMode ? [{ debugName: "radius" }] : []));
|
|
1876
|
+
: this.pivotControls.scale() / 22.5, ...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
1877
1877
|
this.matrixL = computed(() => {
|
|
1878
1878
|
const quaternion = new THREE.Quaternion().setFromUnitVectors(upV, this.direction().clone().normalize());
|
|
1879
1879
|
return new THREE.Matrix4().makeRotationFromQuaternion(quaternion);
|
|
1880
|
-
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : []));
|
|
1881
|
-
this.color = computed(() => this.hovered() ? this.pivotControls.hoveredColor() : this.pivotControls.axisColors()[this.axis()], ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
1880
|
+
}, ...(ngDevMode ? [{ debugName: "matrixL" }] : /* istanbul ignore next */ []));
|
|
1881
|
+
this.color = computed(() => this.hovered() ? this.pivotControls.hoveredColor() : this.pivotControls.axisColors()[this.axis()], ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
1882
1882
|
extend({ Group, Mesh, SphereGeometry, MeshBasicMaterial });
|
|
1883
1883
|
// TODO: (chau) remove this when event binding syntax no longer trigger cdr
|
|
1884
1884
|
objectEvents(this.innerGroupRef, {
|
|
@@ -1982,8 +1982,8 @@ class NgtsScalingSphere {
|
|
|
1982
1982
|
event.stopPropagation();
|
|
1983
1983
|
this.hovered.set(false);
|
|
1984
1984
|
}
|
|
1985
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1986
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1985
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsScalingSphere, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1986
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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: "innerGroupRef", first: true, predicate: ["innerGroup"], 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: `
|
|
1987
1987
|
<ngt-group #group>
|
|
1988
1988
|
<ngt-group #innerGroup [matrix]="matrixL()" [matrixAutoUpdate]="false">
|
|
1989
1989
|
@if (pivotControls.annotations()) {
|
|
@@ -2016,7 +2016,7 @@ class NgtsScalingSphere {
|
|
|
2016
2016
|
</ngt-group>
|
|
2017
2017
|
`, 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 }); }
|
|
2018
2018
|
}
|
|
2019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsScalingSphere, decorators: [{
|
|
2020
2020
|
type: Component,
|
|
2021
2021
|
args: [{
|
|
2022
2022
|
selector: 'ngts-scaling-sphere',
|
|
@@ -2133,7 +2133,7 @@ const defaultOptions = {
|
|
|
2133
2133
|
*/
|
|
2134
2134
|
class NgtsPivotControls {
|
|
2135
2135
|
constructor() {
|
|
2136
|
-
this.options = input(defaultOptions, { ...(ngDevMode ? { debugName: "options" } : {}), transform: mergeInputs(defaultOptions) });
|
|
2136
|
+
this.options = input(defaultOptions, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), transform: mergeInputs(defaultOptions) });
|
|
2137
2137
|
this.parameters = omit(this.options, [
|
|
2138
2138
|
'enabled',
|
|
2139
2139
|
'matrix',
|
|
@@ -2315,8 +2315,8 @@ class NgtsPivotControls {
|
|
|
2315
2315
|
this.dragEnded.emit();
|
|
2316
2316
|
this.store.snapshot.invalidate();
|
|
2317
2317
|
}
|
|
2318
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2319
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
2318
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsPivotControls, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2319
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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: `
|
|
2320
2320
|
<ngt-group #parent>
|
|
2321
2321
|
<ngt-group #group [matrix]="matrix()" [matrixAutoUpdate]="false" [parameters]="parameters()">
|
|
2322
2322
|
<ngt-group #gizmo [visible]="visible()" [position]="offset()" [rotation]="rotation()">
|
|
@@ -2375,7 +2375,7 @@ class NgtsPivotControls {
|
|
|
2375
2375
|
</ngt-group>
|
|
2376
2376
|
`, 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 }); }
|
|
2377
2377
|
}
|
|
2378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsPivotControls, decorators: [{
|
|
2379
2379
|
type: Component,
|
|
2380
2380
|
args: [{
|
|
2381
2381
|
selector: 'ngts-pivot-controls',
|
|
@@ -2472,8 +2472,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
2472
2472
|
*/
|
|
2473
2473
|
class NgtsTransformControls {
|
|
2474
2474
|
constructor() {
|
|
2475
|
-
this.object = input(null, ...(ngDevMode ? [{ debugName: "object" }] : []));
|
|
2476
|
-
this.options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
2475
|
+
this.object = input(null, ...(ngDevMode ? [{ debugName: "object" }] : /* istanbul ignore next */ []));
|
|
2476
|
+
this.options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
2477
2477
|
this.parameters = omit(this.options, [
|
|
2478
2478
|
'enabled',
|
|
2479
2479
|
'axis',
|
|
@@ -2522,7 +2522,7 @@ class NgtsTransformControls {
|
|
|
2522
2522
|
domElement = this.store.events().connected || this.store.gl.domElement();
|
|
2523
2523
|
}
|
|
2524
2524
|
return new TransformControls(camera, domElement);
|
|
2525
|
-
}, ...(ngDevMode ? [{ debugName: "controls" }] : []));
|
|
2525
|
+
}, ...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
|
|
2526
2526
|
extend({ Group });
|
|
2527
2527
|
effect((onCleanup) => {
|
|
2528
2528
|
const cleanup = this.updateDefaultControlsEffect();
|
|
@@ -2610,8 +2610,8 @@ class NgtsTransformControls {
|
|
|
2610
2610
|
this.store.update({ controls });
|
|
2611
2611
|
return () => this.store.update(() => ({ controls: oldControls }));
|
|
2612
2612
|
}
|
|
2613
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2614
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.
|
|
2613
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsTransformControls, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2614
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.9", 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: `
|
|
2615
2615
|
<ngt-primitive *args="[controls()]" [parameters]="controlsOptions()" />
|
|
2616
2616
|
|
|
2617
2617
|
<ngt-group #group [parameters]="parameters()">
|
|
@@ -2619,7 +2619,7 @@ class NgtsTransformControls {
|
|
|
2619
2619
|
</ngt-group>
|
|
2620
2620
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2621
2621
|
}
|
|
2622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtsTransformControls, decorators: [{
|
|
2623
2623
|
type: Component,
|
|
2624
2624
|
args: [{
|
|
2625
2625
|
selector: 'ngts-transform-controls',
|