angular-three 2.0.0-beta.273 → 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.
Files changed (47) hide show
  1. package/esm2022/index.mjs +5 -5
  2. package/esm2022/lib/canvas.mjs +2 -1
  3. package/esm2022/lib/dom/events.mjs +1 -1
  4. package/esm2022/lib/events.mjs +1 -1
  5. package/esm2022/lib/instance.mjs +1 -1
  6. package/esm2022/lib/loop.mjs +2 -2
  7. package/esm2022/lib/portal.mjs +1 -1
  8. package/esm2022/lib/renderer/index.mjs +1 -1
  9. package/esm2022/lib/renderer/utils.mjs +1 -1
  10. package/esm2022/lib/roots.mjs +2 -3
  11. package/esm2022/lib/store.mjs +1 -1
  12. package/esm2022/lib/three-types.mjs +1 -1
  13. package/esm2022/lib/types.mjs +1 -1
  14. package/esm2022/lib/utils/apply-props.mjs +1 -1
  15. package/esm2022/lib/utils/attach.mjs +1 -1
  16. package/esm2022/lib/utils/before-render.mjs +1 -1
  17. package/esm2022/lib/utils/is.mjs +1 -1
  18. package/esm2022/lib/utils/make.mjs +1 -1
  19. package/esm2022/lib/utils/object-events.mjs +1 -1
  20. package/esm2022/lib/utils/update.mjs +1 -1
  21. package/esm2022/testing/lib/test-bed.mjs +12 -6
  22. package/fesm2022/angular-three-testing.mjs +10 -4
  23. package/fesm2022/angular-three-testing.mjs.map +1 -1
  24. package/fesm2022/angular-three.mjs +528 -527
  25. package/fesm2022/angular-three.mjs.map +1 -1
  26. package/index.d.ts +4 -5
  27. package/lib/canvas.d.ts +199 -256
  28. package/lib/dom/events.d.ts +1 -2
  29. package/lib/events.d.ts +2 -78
  30. package/lib/html.d.ts +1 -1
  31. package/lib/instance.d.ts +1 -38
  32. package/lib/loop.d.ts +2 -2
  33. package/lib/portal.d.ts +3 -4
  34. package/lib/renderer/index.d.ts +1 -2
  35. package/lib/renderer/utils.d.ts +1 -1
  36. package/lib/roots.d.ts +1 -5
  37. package/lib/store.d.ts +2 -127
  38. package/lib/three-types.d.ts +1 -3
  39. package/lib/types.d.ts +290 -0
  40. package/lib/utils/apply-props.d.ts +1 -2
  41. package/lib/utils/attach.d.ts +1 -3
  42. package/lib/utils/before-render.d.ts +1 -1
  43. package/lib/utils/is.d.ts +1 -3
  44. package/lib/utils/make.d.ts +2 -5
  45. package/lib/utils/object-events.d.ts +1 -1
  46. package/lib/utils/update.d.ts +1 -1
  47. package/package.json +1 -1
@@ -1,6 +1,4 @@
1
- import { NgtAttachFunction } from '../instance';
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 '../store';
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 '../instance';
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;
@@ -1,12 +1,9 @@
1
1
  import { Material, Object3D, OrthographicCamera, PerspectiveCamera, WebGLRenderer } from 'three';
2
- import { NgtGLOptions } from '../canvas';
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): OrthographicCamera | PerspectiveCamera;
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 '../events';
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 }?: {
@@ -1,4 +1,4 @@
1
- import { NgtCameraManual, NgtSize } from '../store';
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three",
3
- "version": "2.0.0-beta.273",
3
+ "version": "2.0.0-beta.275",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },