angular-three-soba 1.11.0 → 1.12.0
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/esm2020/abstractions/lib/gizmo-helper/gizmo-helper.mjs +8 -3
- package/esm2020/abstractions/lib/text-3d/text-3d.mjs +1 -1
- package/esm2020/materials/lib/mesh-transmission-material/mesh-transmission-material.mjs +1 -4
- package/esm2020/misc/index.mjs +2 -1
- package/esm2020/misc/lib/animations/animations.mjs +51 -0
- package/esm2020/performance/lib/detailed/detailed.mjs +6 -3
- package/esm2020/shaders/index.mjs +2 -1
- package/esm2020/shaders/lib/soft-shadow-material/soft-shadow-material.mjs +33 -0
- package/esm2020/staging/lib/accumulative-shadows/accumulative-shadows.mjs +7 -38
- package/esm2020/staging/lib/accumulative-shadows/randomized-lights.mjs +6 -6
- package/esm2020/staging/lib/caustics/caustics.mjs +19 -20
- package/esm2020/staging/lib/center/center.mjs +6 -6
- package/fesm2015/angular-three-soba-abstractions.mjs +7 -2
- package/fesm2015/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2015/angular-three-soba-materials.mjs +0 -3
- package/fesm2015/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2015/angular-three-soba-misc.mjs +53 -4
- package/fesm2015/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2015/angular-three-soba-performance.mjs +5 -2
- package/fesm2015/angular-three-soba-performance.mjs.map +1 -1
- package/fesm2015/angular-three-soba-shaders.mjs +32 -1
- package/fesm2015/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2015/angular-three-soba-staging.mjs +34 -65
- package/fesm2015/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2020/angular-three-soba-abstractions.mjs +7 -2
- package/fesm2020/angular-three-soba-abstractions.mjs.map +1 -1
- package/fesm2020/angular-three-soba-materials.mjs +0 -3
- package/fesm2020/angular-three-soba-materials.mjs.map +1 -1
- package/fesm2020/angular-three-soba-misc.mjs +53 -4
- package/fesm2020/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2020/angular-three-soba-performance.mjs +5 -2
- package/fesm2020/angular-three-soba-performance.mjs.map +1 -1
- package/fesm2020/angular-three-soba-shaders.mjs +32 -1
- package/fesm2020/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2020/angular-three-soba-staging.mjs +34 -65
- package/fesm2020/angular-three-soba-staging.mjs.map +1 -1
- package/materials/lib/mesh-transmission-material/mesh-transmission-material.d.ts +0 -1
- package/misc/index.d.ts +1 -0
- package/misc/lib/animations/animations.d.ts +13 -0
- package/package.json +2 -3
- package/performance/lib/detailed/detailed.d.ts +2 -1
- package/plugin/package.json +1 -1
- package/shaders/index.d.ts +1 -0
- package/shaders/lib/soft-shadow-material/soft-shadow-material.d.ts +10 -0
- package/staging/lib/accumulative-shadows/accumulative-shadows.d.ts +2 -8
- package/staging/lib/accumulative-shadows/randomized-lights.d.ts +1 -1
- package/staging/lib/caustics/caustics.d.ts +0 -1
|
@@ -6,7 +6,6 @@ import { Group, CatmullRomCurve3, LineSegments, LineBasicMaterial, Vector3, Quat
|
|
|
6
6
|
import { combineLatest, map, switchMap, of } from 'rxjs';
|
|
7
7
|
import { LineMaterial, LineSegmentsGeometry, LineGeometry, LineSegments2, Line2, TextGeometry, FontLoader } from 'three-stdlib';
|
|
8
8
|
import { NgIf, NgTemplateOutlet, DOCUMENT, NgFor } from '@angular/common';
|
|
9
|
-
import { selectSlice } from '@rx-angular/state';
|
|
10
9
|
import { NgtsOrthographicCamera } from 'angular-three-soba/cameras';
|
|
11
10
|
import { RxActionFactory } from '@rx-angular/state/actions';
|
|
12
11
|
import { Text, preloadFont } from 'troika-three-text';
|
|
@@ -684,7 +683,13 @@ class NgtsGizmoHelper extends NgtRxStore {
|
|
|
684
683
|
}
|
|
685
684
|
}
|
|
686
685
|
setGizmoPosition() {
|
|
687
|
-
this.connect('gizmoPosition', combineLatest([
|
|
686
|
+
this.connect('gizmoPosition', combineLatest([
|
|
687
|
+
this.store.select('size'),
|
|
688
|
+
combineLatest({
|
|
689
|
+
alignment: this.select('alignment'),
|
|
690
|
+
margin: this.select('margin'),
|
|
691
|
+
}),
|
|
692
|
+
]).pipe(map(([size, { alignment, margin }]) => {
|
|
688
693
|
const [marginX, marginY] = margin;
|
|
689
694
|
const x = alignment.endsWith('-center')
|
|
690
695
|
? 0
|