angular-three 2.0.0-beta.26 → 2.0.0-beta.28

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/index.d.ts CHANGED
@@ -16,7 +16,7 @@ export * from './lib/store';
16
16
  export * from './lib/three-types';
17
17
  export * from './lib/types';
18
18
  export * from './lib/utils/apply-props';
19
- export * from './lib/utils/assert-injection-context';
19
+ export * from './lib/utils/assert-injector';
20
20
  export { createAttachFunction } from './lib/utils/attach';
21
21
  export * from './lib/utils/create-injection-token';
22
22
  export * from './lib/utils/is';
@@ -24,3 +24,4 @@ export * from './lib/utils/make';
24
24
  export * from './lib/utils/safe-detect-changes';
25
25
  export * from './lib/utils/signal-store';
26
26
  export * from './lib/utils/update';
27
+ import './lib/three-types';
@@ -26,7 +26,7 @@ export type NgtVector4 = NgtVectorLike<THREE.Vector4>;
26
26
  export type NgtLayers = THREE.Layers | Parameters<THREE.Layers['set']>[0];
27
27
  export type NgtQuaternion = THREE.Quaternion | Parameters<THREE.Quaternion['set']>;
28
28
  export interface NgtNodeEventMap<TOriginal> {
29
- afterAttach: NgtAfterAttach<TOriginal, NgtInstanceNode>;
29
+ afterAttach: NgtAfterAttach<NgtInstanceNode, TOriginal>;
30
30
  afterUpdate: TOriginal;
31
31
  beforeRender: NgtBeforeRenderEvent<TOriginal>;
32
32
  }
@@ -0,0 +1,2 @@
1
+ import { Injector } from '@angular/core';
2
+ export declare function assertInjector(fn: Function, injector?: Injector): Injector;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three",
3
- "version": "2.0.0-beta.26",
3
+ "version": "2.0.0-beta.28",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,7 +24,7 @@
24
24
  "@angular/common": "^16.0.0",
25
25
  "@angular/core": "^16.0.0",
26
26
  "three": ">=0.148.0",
27
- "@angular/router": "16.2.2",
27
+ "@angular/router": "16.2.3",
28
28
  "rxjs": "7.8.1"
29
29
  },
30
30
  "dependencies": {
@@ -2,5 +2,5 @@
2
2
  "type": "commonjs",
3
3
  "generators": "./generators.json",
4
4
  "main": "./src/index.js",
5
- "version": "2.0.0-beta.26"
5
+ "version": "2.0.0-beta.28"
6
6
  }
@@ -1,14 +0,0 @@
1
- import { Injector, assertInInjectionContext, inject } from '@angular/core';
2
- export function assertInjectionContext(fn, injector) {
3
- try {
4
- if (!injector) {
5
- return inject(Injector);
6
- }
7
- return injector;
8
- }
9
- catch {
10
- !injector && assertInInjectionContext(fn);
11
- return null;
12
- }
13
- }
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0LWluamVjdGlvbi1jb250ZXh0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy9saWIvdXRpbHMvYXNzZXJ0LWluamVjdGlvbi1jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNFLE1BQU0sVUFBVSxzQkFBc0IsQ0FBQyxFQUFZLEVBQUUsUUFBbUI7SUFDdkUsSUFBSTtRQUNILElBQUksQ0FBQyxRQUFRLEVBQUU7WUFDZCxPQUFPLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQztTQUN4QjtRQUNELE9BQU8sUUFBUSxDQUFDO0tBQ2hCO0lBQUMsTUFBTTtRQUNQLENBQUMsUUFBUSxJQUFJLHdCQUF3QixDQUFDLEVBQUUsQ0FBQyxDQUFDO1FBQzFDLE9BQU8sSUFBSyxDQUFDO0tBQ2I7QUFDRixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0b3IsIGFzc2VydEluSW5qZWN0aW9uQ29udGV4dCwgaW5qZWN0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiBhc3NlcnRJbmplY3Rpb25Db250ZXh0KGZuOiBGdW5jdGlvbiwgaW5qZWN0b3I/OiBJbmplY3Rvcik6IEluamVjdG9yIHtcblx0dHJ5IHtcblx0XHRpZiAoIWluamVjdG9yKSB7XG5cdFx0XHRyZXR1cm4gaW5qZWN0KEluamVjdG9yKTtcblx0XHR9XG5cdFx0cmV0dXJuIGluamVjdG9yO1xuXHR9IGNhdGNoIHtcblx0XHQhaW5qZWN0b3IgJiYgYXNzZXJ0SW5JbmplY3Rpb25Db250ZXh0KGZuKTtcblx0XHRyZXR1cm4gbnVsbCE7XG5cdH1cbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- export declare function assertInjectionContext(fn: Function, injector?: Injector): Injector;