angular-three 2.0.0-beta.274 → 2.0.0-beta.275
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/esm2022/index.mjs +5 -5
- package/esm2022/lib/canvas.mjs +2 -1
- package/esm2022/lib/dom/events.mjs +1 -1
- package/esm2022/lib/events.mjs +1 -1
- package/esm2022/lib/instance.mjs +1 -1
- package/esm2022/lib/loop.mjs +2 -2
- package/esm2022/lib/portal.mjs +1 -1
- package/esm2022/lib/renderer/index.mjs +1 -1
- package/esm2022/lib/renderer/utils.mjs +1 -1
- package/esm2022/lib/roots.mjs +2 -3
- package/esm2022/lib/store.mjs +1 -1
- package/esm2022/lib/three-types.mjs +1 -1
- package/esm2022/lib/types.mjs +1 -1
- package/esm2022/lib/utils/apply-props.mjs +1 -1
- package/esm2022/lib/utils/attach.mjs +1 -1
- package/esm2022/lib/utils/before-render.mjs +1 -1
- package/esm2022/lib/utils/is.mjs +1 -1
- package/esm2022/lib/utils/make.mjs +1 -1
- package/esm2022/lib/utils/object-events.mjs +1 -1
- package/esm2022/lib/utils/update.mjs +1 -1
- package/esm2022/testing/lib/test-bed.mjs +4 -4
- package/fesm2022/angular-three-testing.mjs +2 -2
- package/fesm2022/angular-three-testing.mjs.map +1 -1
- package/fesm2022/angular-three.mjs +528 -527
- package/fesm2022/angular-three.mjs.map +1 -1
- package/index.d.ts +4 -5
- package/lib/canvas.d.ts +199 -256
- package/lib/dom/events.d.ts +1 -2
- package/lib/events.d.ts +2 -78
- package/lib/html.d.ts +1 -1
- package/lib/instance.d.ts +1 -38
- package/lib/loop.d.ts +2 -2
- package/lib/portal.d.ts +3 -4
- package/lib/renderer/index.d.ts +1 -2
- package/lib/renderer/utils.d.ts +1 -1
- package/lib/roots.d.ts +1 -5
- package/lib/store.d.ts +2 -127
- package/lib/three-types.d.ts +1 -3
- package/lib/types.d.ts +290 -0
- package/lib/utils/apply-props.d.ts +1 -2
- package/lib/utils/attach.d.ts +1 -3
- package/lib/utils/before-render.d.ts +1 -1
- package/lib/utils/is.d.ts +1 -3
- package/lib/utils/make.d.ts +2 -5
- package/lib/utils/object-events.d.ts +1 -1
- package/lib/utils/update.d.ts +1 -1
- package/package.json +1 -1
package/lib/utils/attach.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { NgtAttachFunction } from '../
|
|
2
|
-
import { NgtState } from '../store';
|
|
3
|
-
import { NgtAnyRecord } from '../types';
|
|
1
|
+
import { NgtAnyRecord, NgtAttachFunction, NgtState } from '../types';
|
|
4
2
|
import { NgtSignalStore } from './signal-store';
|
|
5
3
|
export declare function attach(object: NgtAnyRecord, value: unknown, paths?: string[], useApplyProps?: boolean): void;
|
|
6
4
|
export declare function detach(parent: NgtAnyRecord, child: NgtAnyRecord, attachProp: string[] | NgtAttachFunction, useApplyProps?: boolean): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { NgtBeforeRenderRecord } from '../
|
|
2
|
+
import { NgtBeforeRenderRecord } from '../types';
|
|
3
3
|
export declare function injectBeforeRender(cb: NgtBeforeRenderRecord['callback'], { priority, injector }?: {
|
|
4
4
|
priority?: number;
|
|
5
5
|
injector?: Injector;
|
package/lib/utils/is.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { BufferGeometry, Camera, Material, Object3D, OrthographicCamera, PerspectiveCamera, Scene, Texture } from 'three';
|
|
3
|
-
import { NgtInstanceNode } from '../
|
|
4
|
-
import { NgtRendererLike } from '../store';
|
|
5
|
-
import { NgtEquConfig } from '../types';
|
|
3
|
+
import { NgtEquConfig, NgtInstanceNode, NgtRendererLike } from '../types';
|
|
6
4
|
export declare const is: {
|
|
7
5
|
obj: (a: unknown) => a is object;
|
|
8
6
|
material: (a: unknown) => a is Material;
|
package/lib/utils/make.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Material, Object3D, OrthographicCamera, PerspectiveCamera, WebGLRenderer } from 'three';
|
|
2
|
-
import { NgtGLOptions } from '../
|
|
3
|
-
import { NgtIntersection } from '../events';
|
|
4
|
-
import { NgtCanvasElement } from '../roots';
|
|
5
|
-
import { NgtDpr, NgtSize } from '../store';
|
|
2
|
+
import { NgtCanvasElement, NgtDpr, NgtGLOptions, NgtIntersection, NgtSize } from '../types';
|
|
6
3
|
export declare function makeId(event?: NgtIntersection): string;
|
|
7
4
|
export declare function makeDpr(dpr: NgtDpr, window?: Window): number;
|
|
8
5
|
export declare function makeRendererInstance<TCanvas extends NgtCanvasElement>(glOptions: NgtGLOptions, canvas: TCanvas): WebGLRenderer;
|
|
9
|
-
export declare function makeCameraInstance(isOrthographic: boolean, size: NgtSize):
|
|
6
|
+
export declare function makeCameraInstance(isOrthographic: boolean, size: NgtSize): PerspectiveCamera | OrthographicCamera;
|
|
10
7
|
export type NgtObjectMap = {
|
|
11
8
|
nodes: Record<string, Object3D<any>>;
|
|
12
9
|
materials: Record<string, Material>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef, Injector } from '@angular/core';
|
|
2
2
|
import { Object3D } from 'three';
|
|
3
3
|
import { supportedEvents } from '../dom/events';
|
|
4
|
-
import { NgtDomEvent, NgtThreeEvent } from '../
|
|
4
|
+
import { NgtDomEvent, NgtThreeEvent } from '../types';
|
|
5
5
|
export declare function injectObjectEvents(target: () => ElementRef<Object3D> | Object3D | null | undefined, events: {
|
|
6
6
|
[K in (typeof supportedEvents)[number]]?: (event: NgtThreeEvent<NgtDomEvent>) => void;
|
|
7
7
|
}, { injector }?: {
|
package/lib/utils/update.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NgtCameraManual, NgtSize } from '../
|
|
1
|
+
import { NgtCameraManual, NgtSize } from '../types';
|
|
2
2
|
export declare function checkNeedsUpdate(value: unknown): void;
|
|
3
3
|
export declare function checkUpdate(value: unknown): void;
|
|
4
4
|
export declare function updateCamera(camera: NgtCameraManual, size: NgtSize): void;
|