angular-three-soba 2.0.0-beta.39 → 2.0.0-beta.40

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.
@@ -2,9 +2,19 @@ import type { Injector, Signal } from '@angular/core';
2
2
  import { type NgtLoaderResults, type NgtObjectMap } from 'angular-three';
3
3
  import { GLTFLoader, type GLTF } from 'three-stdlib';
4
4
  export type NgtsGLTF<T extends Partial<NgtObjectMap>> = GLTF & NgtObjectMap & T;
5
- export declare function injectNgtsGLTFLoader<TUrl extends string | string[] | Record<string, string>>(path: () => TUrl, { useDraco, useMeshOpt, injector, extensions, }?: {
5
+ declare function _injectNgtsGLTFLoader<TUrl extends string | string[] | Record<string, string>>(path: () => TUrl, { useDraco, useMeshOpt, injector, extensions, }?: {
6
6
  useDraco?: boolean | string;
7
7
  useMeshOpt?: boolean;
8
8
  injector?: Injector;
9
9
  extensions?: (loader: GLTFLoader) => void;
10
10
  }): Signal<NgtLoaderResults<TUrl, GLTF & NgtObjectMap> | null>;
11
+ declare namespace _injectNgtsGLTFLoader {
12
+ var preload: <TUrl extends string | Record<string, string> | string[]>(path: () => TUrl, { useDraco, useMeshOpt, extensions, }?: {
13
+ useDraco?: string | boolean | undefined;
14
+ useMeshOpt?: boolean | undefined;
15
+ extensions?: ((loader: GLTFLoader) => void) | undefined;
16
+ }) => void;
17
+ var setDecoderPath: (path: string) => void;
18
+ }
19
+ export declare const injectNgtsGLTFLoader: typeof _injectNgtsGLTFLoader;
20
+ export {};
@@ -1,7 +1,12 @@
1
1
  import { type Injector, type Signal } from '@angular/core';
2
2
  import { type NgtLoaderResults } from 'angular-three';
3
3
  import * as THREE from 'three';
4
- export declare function injectNgtsTextureLoader<TInput extends string[] | string | Record<string, string>>(input: () => TInput, { onLoad, injector, }?: {
4
+ declare function _injectNgtsTextureLoader<TInput extends string[] | string | Record<string, string>>(input: () => TInput, { onLoad, injector, }?: {
5
5
  onLoad?: (texture: THREE.Texture | THREE.Texture[]) => void;
6
6
  injector?: Injector;
7
7
  }): Signal<NgtLoaderResults<TInput, THREE.Texture> | null>;
8
+ declare namespace _injectNgtsTextureLoader {
9
+ var preload: <TInput extends string | Record<string, string> | string[]>(input: () => TInput) => void;
10
+ }
11
+ export declare const injectNgtsTextureLoader: typeof _injectNgtsTextureLoader;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three-soba",
3
- "version": "2.0.0-beta.39",
3
+ "version": "2.0.0-beta.40",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -39,18 +39,18 @@
39
39
  "esm": "./esm2022/abstractions/angular-three-soba-abstractions.mjs",
40
40
  "default": "./fesm2022/angular-three-soba-abstractions.mjs"
41
41
  },
42
- "./gizmos": {
43
- "types": "./gizmos/index.d.ts",
44
- "esm2022": "./esm2022/gizmos/angular-three-soba-gizmos.mjs",
45
- "esm": "./esm2022/gizmos/angular-three-soba-gizmos.mjs",
46
- "default": "./fesm2022/angular-three-soba-gizmos.mjs"
47
- },
48
42
  "./controls": {
49
43
  "types": "./controls/index.d.ts",
50
44
  "esm2022": "./esm2022/controls/angular-three-soba-controls.mjs",
51
45
  "esm": "./esm2022/controls/angular-three-soba-controls.mjs",
52
46
  "default": "./fesm2022/angular-three-soba-controls.mjs"
53
47
  },
48
+ "./gizmos": {
49
+ "types": "./gizmos/index.d.ts",
50
+ "esm2022": "./esm2022/gizmos/angular-three-soba-gizmos.mjs",
51
+ "esm": "./esm2022/gizmos/angular-three-soba-gizmos.mjs",
52
+ "default": "./fesm2022/angular-three-soba-gizmos.mjs"
53
+ },
54
54
  "./cameras": {
55
55
  "types": "./cameras/index.d.ts",
56
56
  "esm2022": "./esm2022/cameras/angular-three-soba-cameras.mjs",