angular-three 1.8.0 → 1.8.1
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/lib/routed-scene.mjs +15 -4
- package/fesm2015/angular-three.mjs +12 -3
- package/fesm2015/angular-three.mjs.map +1 -1
- package/fesm2020/angular-three.mjs +12 -3
- package/fesm2020/angular-three.mjs.map +1 -1
- package/lib/routed-scene.d.ts +2 -0
- package/package.json +1 -1
- package/plugin/package.json +1 -1
|
@@ -6,7 +6,8 @@ import * as THREE from 'three';
|
|
|
6
6
|
import { DOCUMENT, NgForOf, NgIf } from '@angular/common';
|
|
7
7
|
import { RxState, selectSlice } from '@rx-angular/state';
|
|
8
8
|
import { __classPrivateFieldGet } from 'tslib';
|
|
9
|
-
import
|
|
9
|
+
import * as i1 from '@angular/router';
|
|
10
|
+
import { ActivationEnd, RouterOutlet } from '@angular/router';
|
|
10
11
|
|
|
11
12
|
const idCache = {};
|
|
12
13
|
function makeId(event) {
|
|
@@ -3019,9 +3020,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
3019
3020
|
}] } });
|
|
3020
3021
|
|
|
3021
3022
|
class NgtRoutedScene {
|
|
3023
|
+
constructor(router) {
|
|
3024
|
+
const { destroy$, cdr } = injectNgtDestroy();
|
|
3025
|
+
router.events
|
|
3026
|
+
.pipe(filter((event) => event instanceof ActivationEnd), takeUntil(destroy$))
|
|
3027
|
+
.subscribe(() => {
|
|
3028
|
+
cdr.detectChanges();
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3022
3031
|
}
|
|
3023
3032
|
NgtRoutedScene.isRoutedScene = true;
|
|
3024
|
-
NgtRoutedScene.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NgtRoutedScene, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3033
|
+
NgtRoutedScene.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NgtRoutedScene, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
3025
3034
|
NgtRoutedScene.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: NgtRoutedScene, isStandalone: true, selector: "ngt-routed-scene", ngImport: i0, template: `<router-outlet />`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
3026
3035
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NgtRoutedScene, decorators: [{
|
|
3027
3036
|
type: Component,
|
|
@@ -3031,7 +3040,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
3031
3040
|
template: `<router-outlet />`,
|
|
3032
3041
|
imports: [RouterOutlet],
|
|
3033
3042
|
}]
|
|
3034
|
-
}] });
|
|
3043
|
+
}], ctorParameters: function () { return [{ type: i1.Router }]; } });
|
|
3035
3044
|
|
|
3036
3045
|
/**
|
|
3037
3046
|
* Generated bundle index. Do not edit.
|