angular-three-soba 4.0.0-next.9 → 4.0.0-next.91
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 +16 -15
- package/abstractions/lib/edges.d.ts +17 -15
- package/abstractions/lib/text-3d.d.ts +1 -1
- package/abstractions/lib/text.d.ts +5 -1
- package/cameras/lib/camera-content.d.ts +1 -2
- package/cameras/lib/cube-camera.d.ts +2 -2
- 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 +87 -47
- package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2022/angular-three-soba-cameras.mjs +61 -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 +124 -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/loaders/README.md +39 -39
- package/materials/lib/mesh-transmission-material.d.ts +4 -4
- package/misc/README.md +16 -16
- 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 +4 -4
- package/package.json +6 -6
- 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/shaders/lib/mesh-refraction-material.d.ts +2 -2
- package/staging/lib/caustics.d.ts +3 -3
- package/staging/lib/environment/inject-environment.d.ts +1 -2
- package/staging/lib/render-texture.d.ts +5 -4
- package/staging/lib/stage.d.ts +12 -11
|
@@ -50,8 +50,8 @@ class NgtsBillboard {
|
|
|
50
50
|
inner.rotation.z = prevRotation.z;
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
54
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsBillboard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsBillboard, isStandalone: true, selector: "ngts-billboard", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "innerRef", first: true, predicate: ["inner"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
55
55
|
<ngt-group #group [parameters]="parameters()">
|
|
56
56
|
<ngt-group #inner>
|
|
57
57
|
<ng-content />
|
|
@@ -59,7 +59,7 @@ class NgtsBillboard {
|
|
|
59
59
|
</ngt-group>
|
|
60
60
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
61
61
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsBillboard, decorators: [{
|
|
63
63
|
type: Component,
|
|
64
64
|
args: [{
|
|
65
65
|
selector: 'ngts-billboard',
|
|
@@ -88,7 +88,14 @@ class NgtsLine {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
this.points = input.required();
|
|
90
90
|
this.options = input(defaultOptions$a, { transform: mergeInputs(defaultOptions$a) });
|
|
91
|
-
this.parameters = omit(this.options, [
|
|
91
|
+
this.parameters = omit(this.options, [
|
|
92
|
+
'color',
|
|
93
|
+
'vertexColors',
|
|
94
|
+
'lineWidth',
|
|
95
|
+
'segments',
|
|
96
|
+
'linewidth',
|
|
97
|
+
'dashed',
|
|
98
|
+
]);
|
|
92
99
|
this.lineRef = viewChild('line');
|
|
93
100
|
this.store = injectStore();
|
|
94
101
|
this.segments = pick(this.options, 'segments');
|
|
@@ -148,8 +155,8 @@ class NgtsLine {
|
|
|
148
155
|
});
|
|
149
156
|
});
|
|
150
157
|
}
|
|
151
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
152
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsLine, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsLine, isStandalone: true, selector: "ngts-line", inputs: { points: { classPropertyName: "points", publicName: "points", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "lineRef", first: true, predicate: ["line"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
153
160
|
<ngt-primitive *args="[line2()]" #line [parameters]="parameters()">
|
|
154
161
|
<ngt-primitive *args="[lineGeometry()]" attach="geometry" (attached)="onGeometryAttached($any($event))" />
|
|
155
162
|
<ngt-primitive
|
|
@@ -167,7 +174,7 @@ class NgtsLine {
|
|
|
167
174
|
</ngt-primitive>
|
|
168
175
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
169
176
|
}
|
|
170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsLine, decorators: [{
|
|
171
178
|
type: Component,
|
|
172
179
|
args: [{
|
|
173
180
|
selector: 'ngts-line',
|
|
@@ -242,14 +249,14 @@ class NgtsCatmullRomLine {
|
|
|
242
249
|
});
|
|
243
250
|
this.lineOptions = computed(() => ({ ...this.parameters(), vertexColors: this.interpolatedVertexColors() }));
|
|
244
251
|
}
|
|
245
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
246
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsCatmullRomLine, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
253
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsCatmullRomLine, isStandalone: true, selector: "ngts-catmull-rom-line", inputs: { points: { classPropertyName: "points", publicName: "points", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "line", first: true, predicate: NgtsLine, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
247
254
|
<ngts-line [points]="segmentedPoints()" [options]="lineOptions()">
|
|
248
255
|
<ng-content />
|
|
249
256
|
</ngts-line>
|
|
250
257
|
`, isInline: true, dependencies: [{ kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
251
258
|
}
|
|
252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsCatmullRomLine, decorators: [{
|
|
253
260
|
type: Component,
|
|
254
261
|
args: [{
|
|
255
262
|
selector: 'ngts-catmull-rom-line',
|
|
@@ -278,7 +285,13 @@ class NgtsCubicBezierLine {
|
|
|
278
285
|
this.line = viewChild.required(NgtsLine);
|
|
279
286
|
this.segments = pick(this.options, 'segments');
|
|
280
287
|
this.points = computed(() => {
|
|
281
|
-
const [start, end, midA, midB, segments] = [
|
|
288
|
+
const [start, end, midA, midB, segments] = [
|
|
289
|
+
this.start(),
|
|
290
|
+
this.end(),
|
|
291
|
+
this.midA(),
|
|
292
|
+
this.midB(),
|
|
293
|
+
this.segments(),
|
|
294
|
+
];
|
|
282
295
|
const startV = is.three(start, 'isVector3') ? start : new THREE.Vector3(...start);
|
|
283
296
|
const endV = is.three(end, 'isVector3') ? end : new THREE.Vector3(...end);
|
|
284
297
|
const midAV = is.three(midA, 'isVector3') ? midA : new THREE.Vector3(...midA);
|
|
@@ -286,14 +299,14 @@ class NgtsCubicBezierLine {
|
|
|
286
299
|
return new THREE.CubicBezierCurve3(startV, midAV, midBV, endV).getPoints(segments);
|
|
287
300
|
});
|
|
288
301
|
}
|
|
289
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
290
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
302
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsCubicBezierLine, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
303
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsCubicBezierLine, isStandalone: true, selector: "ngts-cubic-bezier-line", inputs: { start: { classPropertyName: "start", publicName: "start", isSignal: true, isRequired: true, transformFunction: null }, end: { classPropertyName: "end", publicName: "end", isSignal: true, isRequired: true, transformFunction: null }, midA: { classPropertyName: "midA", publicName: "midA", isSignal: true, isRequired: true, transformFunction: null }, midB: { classPropertyName: "midB", publicName: "midB", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "line", first: true, predicate: NgtsLine, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
291
304
|
<ngts-line [points]="points()" [options]="parameters()">
|
|
292
305
|
<ng-content />
|
|
293
306
|
</ngts-line>
|
|
294
307
|
`, isInline: true, dependencies: [{ kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
295
308
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsCubicBezierLine, decorators: [{
|
|
297
310
|
type: Component,
|
|
298
311
|
args: [{
|
|
299
312
|
selector: 'ngts-cubic-bezier-line',
|
|
@@ -315,7 +328,7 @@ class NgtsEdges {
|
|
|
315
328
|
constructor() {
|
|
316
329
|
this.options = input(defaultOptions$7, { transform: mergeInputs(defaultOptions$7) });
|
|
317
330
|
this.parameters = omit(this.options, ['threshold', 'geometry']);
|
|
318
|
-
this.lineOptions = computed(() => ({ ...this.parameters(), raycast: () => null }));
|
|
331
|
+
this.lineOptions = computed(() => ({ ...this.parameters(), segments: true, raycast: () => null }));
|
|
319
332
|
this.tmpPoints = [0, 0, 0, 1, 0, 0];
|
|
320
333
|
this.line = viewChild.required(NgtsLine);
|
|
321
334
|
effect(() => {
|
|
@@ -337,22 +350,21 @@ class NgtsEdges {
|
|
|
337
350
|
return;
|
|
338
351
|
this.memoizedGeometry = geometry;
|
|
339
352
|
this.memoizedThreshold = threshold;
|
|
340
|
-
const points = new THREE.EdgesGeometry(geometry, threshold).attributes['position']
|
|
341
|
-
.array;
|
|
353
|
+
const points = new THREE.EdgesGeometry(geometry, threshold).attributes['position'].array;
|
|
342
354
|
line.geometry.setPositions(points);
|
|
343
355
|
checkNeedsUpdate(line.geometry.attributes['instanceStart']);
|
|
344
356
|
checkNeedsUpdate(line.geometry.attributes['instanceEnd']);
|
|
345
357
|
line.computeLineDistances();
|
|
346
358
|
});
|
|
347
359
|
}
|
|
348
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
349
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsEdges, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
361
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsEdges, isStandalone: true, selector: "ngts-edges", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "line", first: true, predicate: NgtsLine, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
350
362
|
<ngts-line [points]="tmpPoints" [options]="lineOptions()">
|
|
351
363
|
<ng-content />
|
|
352
364
|
</ngts-line>
|
|
353
365
|
`, isInline: true, dependencies: [{ kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
354
366
|
}
|
|
355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsEdges, decorators: [{
|
|
356
368
|
type: Component,
|
|
357
369
|
args: [{
|
|
358
370
|
selector: 'ngts-edges',
|
|
@@ -418,8 +430,8 @@ class NgtsGradientTexture {
|
|
|
418
430
|
});
|
|
419
431
|
extend({ CanvasTexture });
|
|
420
432
|
}
|
|
421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
422
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1
|
|
433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsGradientTexture, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
434
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.1", type: NgtsGradientTexture, isStandalone: true, selector: "ngts-gradient-texture", inputs: { attach: { classPropertyName: "attach", publicName: "attach", isSignal: true, isRequired: false, transformFunction: null }, stops: { classPropertyName: "stops", publicName: "stops", isSignal: true, isRequired: true, transformFunction: null }, colors: { classPropertyName: "colors", publicName: "colors", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
423
435
|
<ngt-canvas-texture
|
|
424
436
|
*args="[canvas()]"
|
|
425
437
|
[attach]="attach()"
|
|
@@ -430,7 +442,7 @@ class NgtsGradientTexture {
|
|
|
430
442
|
</ngt-canvas-texture>
|
|
431
443
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
432
444
|
}
|
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsGradientTexture, decorators: [{
|
|
434
446
|
type: Component,
|
|
435
447
|
args: [{
|
|
436
448
|
selector: 'ngts-gradient-texture',
|
|
@@ -539,25 +551,25 @@ class NgtsGrid {
|
|
|
539
551
|
worldPlanePosition.value.set(0, 0, 0).applyMatrix4(mesh.matrixWorld);
|
|
540
552
|
});
|
|
541
553
|
}
|
|
542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
543
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
554
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsGrid, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
555
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsGrid, isStandalone: true, selector: "ngts-grid", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
544
556
|
<ngt-mesh #mesh [frustumCulled]="false" [parameters]="parameters()">
|
|
545
557
|
<ngt-plane-geometry *args="planeArgs()" />
|
|
546
|
-
<ngt-grid-material
|
|
558
|
+
<ngt-grid-material transparent [side]="side()" [parameters]="uniforms()">
|
|
547
559
|
<ngt-value attach="extensions.derivatives" [rawValue]="true" />
|
|
548
560
|
</ngt-grid-material>
|
|
549
561
|
<ng-content />
|
|
550
562
|
</ngt-mesh>
|
|
551
563
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
552
564
|
}
|
|
553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsGrid, decorators: [{
|
|
554
566
|
type: Component,
|
|
555
567
|
args: [{
|
|
556
568
|
selector: 'ngts-grid',
|
|
557
569
|
template: `
|
|
558
570
|
<ngt-mesh #mesh [frustumCulled]="false" [parameters]="parameters()">
|
|
559
571
|
<ngt-plane-geometry *args="planeArgs()" />
|
|
560
|
-
<ngt-grid-material
|
|
572
|
+
<ngt-grid-material transparent [side]="side()" [parameters]="uniforms()">
|
|
561
573
|
<ngt-value attach="extensions.derivatives" [rawValue]="true" />
|
|
562
574
|
</ngt-grid-material>
|
|
563
575
|
<ng-content />
|
|
@@ -619,12 +631,12 @@ class NgtsHelper {
|
|
|
619
631
|
this.helper = injectHelper(this.parent, this.type, { args: this.options });
|
|
620
632
|
extend({ Object3D });
|
|
621
633
|
}
|
|
622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
623
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsHelper, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
635
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsHelper, isStandalone: true, selector: "ngts-helper", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "helperRef", first: true, predicate: ["helper"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
624
636
|
<ngt-object3D #helper />
|
|
625
637
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
626
638
|
}
|
|
627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsHelper, decorators: [{
|
|
628
640
|
type: Component,
|
|
629
641
|
args: [{
|
|
630
642
|
selector: 'ngts-helper',
|
|
@@ -654,14 +666,14 @@ class NgtsPrismGeometry {
|
|
|
654
666
|
this.geometryRef = viewChild('geometry');
|
|
655
667
|
extend({ ExtrudeGeometry });
|
|
656
668
|
}
|
|
657
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
658
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
669
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsPrismGeometry, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
670
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsPrismGeometry, isStandalone: true, selector: "ngts-prism-geometry", inputs: { attach: { classPropertyName: "attach", publicName: "attach", isSignal: true, isRequired: false, transformFunction: null }, vertices: { classPropertyName: "vertices", publicName: "vertices", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "geometryRef", first: true, predicate: ["geometry"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
659
671
|
<ngt-extrude-geometry #geometry *args="[shape(), parameters()]" [attach]="attach()">
|
|
660
672
|
<ng-content />
|
|
661
673
|
</ngt-extrude-geometry>
|
|
662
674
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
663
675
|
}
|
|
664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsPrismGeometry, decorators: [{
|
|
665
677
|
type: Component,
|
|
666
678
|
args: [{
|
|
667
679
|
selector: 'ngts-prism-geometry',
|
|
@@ -721,14 +733,14 @@ class NgtsQuadraticBezierLine {
|
|
|
721
733
|
}
|
|
722
734
|
return this.curve.getPoints(segments);
|
|
723
735
|
}
|
|
724
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
725
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
736
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsQuadraticBezierLine, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
737
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsQuadraticBezierLine, isStandalone: true, selector: "ngts-quadratic-bezier-line", inputs: { start: { classPropertyName: "start", publicName: "start", isSignal: true, isRequired: false, transformFunction: null }, end: { classPropertyName: "end", publicName: "end", isSignal: true, isRequired: false, transformFunction: null }, mid: { classPropertyName: "mid", publicName: "mid", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "line", first: true, predicate: NgtsLine, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
726
738
|
<ngts-line [points]="points()" [options]="parameters()">
|
|
727
739
|
<ng-content />
|
|
728
740
|
</ngts-line>
|
|
729
741
|
`, isInline: true, dependencies: [{ kind: "component", type: NgtsLine, selector: "ngts-line", inputs: ["points", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
730
742
|
}
|
|
731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsQuadraticBezierLine, decorators: [{
|
|
732
744
|
type: Component,
|
|
733
745
|
args: [{
|
|
734
746
|
selector: 'ngts-quadratic-bezier-line',
|
|
@@ -818,15 +830,15 @@ class NgtsRoundedBox {
|
|
|
818
830
|
toCreasedNormals(geometry, untracked(this.creaseAngle));
|
|
819
831
|
});
|
|
820
832
|
}
|
|
821
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
822
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
833
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsRoundedBox, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
834
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsRoundedBox, isStandalone: true, selector: "ngts-rounded-box", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }, { propertyName: "geometryRef", first: true, predicate: ["geometry"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.NgtObjectEvents, outputs: ["click", "click", "dblclick", "dblclick", "contextmenu", "contextmenu", "pointerup", "pointerup", "pointerdown", "pointerdown", "pointerover", "pointerover", "pointerout", "pointerout", "pointerenter", "pointerenter", "pointerleave", "pointerleave", "pointermove", "pointermove", "pointermissed", "pointermissed", "pointercancel", "pointercancel", "wheel", "wheel"] }], ngImport: i0, template: `
|
|
823
835
|
<ngt-mesh #mesh [parameters]="parameters()">
|
|
824
836
|
<ngt-extrude-geometry #geometry *args="[shape(), geometryParameters()]" />
|
|
825
837
|
<ng-content />
|
|
826
838
|
</ngt-mesh>
|
|
827
839
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
828
840
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsRoundedBox, decorators: [{
|
|
830
842
|
type: Component,
|
|
831
843
|
args: [{
|
|
832
844
|
selector: 'ngts-rounded-box',
|
|
@@ -874,6 +886,7 @@ class NgtsText {
|
|
|
874
886
|
this.options = input(defaultOptions$1, { transform: mergeInputs(defaultOptions$1) });
|
|
875
887
|
this.parameters = omit(this.options, ['font', 'fontSize', 'sdfGlyphSize', 'anchorX', 'anchorY', 'characters']);
|
|
876
888
|
this.synced = output();
|
|
889
|
+
this.objectEvents = inject(NgtObjectEvents, { host: true });
|
|
877
890
|
this.store = injectStore();
|
|
878
891
|
this.characters = pick(this.options, 'characters');
|
|
879
892
|
this.font = pick(this.options, 'font');
|
|
@@ -882,6 +895,11 @@ class NgtsText {
|
|
|
882
895
|
this.sdfGlyphSize = pick(this.options, 'sdfGlyphSize');
|
|
883
896
|
this.fontSize = pick(this.options, 'fontSize');
|
|
884
897
|
this.troikaMesh = new Text();
|
|
898
|
+
// TODO: (chau) we currently need to use this with NgtObjectEvents
|
|
899
|
+
// to make sure `ngt-primitive` is instantitated before `injectObjectEvents`
|
|
900
|
+
this.textPrimitiveRef = viewChild('textPrimitive');
|
|
901
|
+
this.textPrimitive = computed(() => this.textPrimitiveRef()?.nativeElement);
|
|
902
|
+
this.objectEvents.ngtObjectEvents.set(this.textPrimitive);
|
|
885
903
|
inject(DestroyRef).onDestroy(() => {
|
|
886
904
|
this.troikaMesh.dispose();
|
|
887
905
|
});
|
|
@@ -899,9 +917,10 @@ class NgtsText {
|
|
|
899
917
|
});
|
|
900
918
|
});
|
|
901
919
|
}
|
|
902
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
903
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
920
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsText, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
921
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsText, isStandalone: true, selector: "ngts-text", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { synced: "synced" }, viewQueries: [{ propertyName: "textPrimitiveRef", first: true, predicate: ["textPrimitive"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.NgtObjectEvents, outputs: ["click", "click", "dblclick", "dblclick", "contextmenu", "contextmenu", "pointerup", "pointerup", "pointerdown", "pointerdown", "pointerover", "pointerover", "pointerout", "pointerout", "pointerenter", "pointerenter", "pointerleave", "pointerleave", "pointermove", "pointermove", "pointermissed", "pointermissed", "pointercancel", "pointercancel", "wheel", "wheel"] }], ngImport: i0, template: `
|
|
904
922
|
<ngt-primitive
|
|
923
|
+
#textPrimitive
|
|
905
924
|
*args="[troikaMesh]"
|
|
906
925
|
[text]="text()"
|
|
907
926
|
[font]="font()"
|
|
@@ -915,12 +934,13 @@ class NgtsText {
|
|
|
915
934
|
</ngt-primitive>
|
|
916
935
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
917
936
|
}
|
|
918
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsText, decorators: [{
|
|
919
938
|
type: Component,
|
|
920
939
|
args: [{
|
|
921
940
|
selector: 'ngts-text',
|
|
922
941
|
template: `
|
|
923
942
|
<ngt-primitive
|
|
943
|
+
#textPrimitive
|
|
924
944
|
*args="[troikaMesh]"
|
|
925
945
|
[text]="text()"
|
|
926
946
|
[font]="font()"
|
|
@@ -936,6 +956,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
936
956
|
imports: [NgtArgs],
|
|
937
957
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
938
958
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
959
|
+
hostDirectives: [
|
|
960
|
+
{
|
|
961
|
+
directive: NgtObjectEvents,
|
|
962
|
+
outputs: [
|
|
963
|
+
'click',
|
|
964
|
+
'dblclick',
|
|
965
|
+
'contextmenu',
|
|
966
|
+
'pointerup',
|
|
967
|
+
'pointerdown',
|
|
968
|
+
'pointerover',
|
|
969
|
+
'pointerout',
|
|
970
|
+
'pointerenter',
|
|
971
|
+
'pointerleave',
|
|
972
|
+
'pointermove',
|
|
973
|
+
'pointermissed',
|
|
974
|
+
'pointercancel',
|
|
975
|
+
'wheel',
|
|
976
|
+
],
|
|
977
|
+
},
|
|
978
|
+
],
|
|
939
979
|
}]
|
|
940
980
|
}], ctorParameters: () => [] });
|
|
941
981
|
|
|
@@ -1008,18 +1048,18 @@ class NgtsText3D {
|
|
|
1008
1048
|
}
|
|
1009
1049
|
});
|
|
1010
1050
|
}
|
|
1011
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1
|
|
1012
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1
|
|
1051
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsText3D, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1052
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsText3D, isStandalone: true, selector: "ngts-text-3d, ngts-text-3D", inputs: { font: { classPropertyName: "font", publicName: "font", isSignal: true, isRequired: true, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }, { propertyName: "textGeometryRef", first: true, predicate: ["textGeometry"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1013
1053
|
<ngt-mesh #mesh [parameters]="parameters()">
|
|
1014
1054
|
<ngt-text-geometry #textGeometry *args="textArgs()" />
|
|
1015
1055
|
<ng-content />
|
|
1016
1056
|
</ngt-mesh>
|
|
1017
1057
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1018
1058
|
}
|
|
1019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1
|
|
1059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsText3D, decorators: [{
|
|
1020
1060
|
type: Component,
|
|
1021
1061
|
args: [{
|
|
1022
|
-
selector: 'ngts-text-3d',
|
|
1062
|
+
selector: 'ngts-text-3d, ngts-text-3D',
|
|
1023
1063
|
template: `
|
|
1024
1064
|
<ngt-mesh #mesh [parameters]="parameters()">
|
|
1025
1065
|
<ngt-text-geometry #textGeometry *args="textArgs()" />
|