@quick-threejs/reactive 0.1.47 → 0.1.48

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.
@@ -38,13 +38,19 @@ export declare class RegisterPropsBlueprint {
38
38
  *
39
39
  * @default undefined
40
40
  */
41
- canvasWrapper?: HTMLElement;
41
+ canvasWrapper?: HTMLElement | "parent";
42
42
  /**
43
43
  * @description Use the window size to render the canvas in fullscreen and auto-resize it.
44
44
  *
45
45
  * @default true
46
46
  */
47
47
  fullScreen?: boolean;
48
+ /**
49
+ * Initial pixel ratio to use for the renderer.
50
+ *
51
+ * @default `Math.min(window.devicePixelRatio, 2)`
52
+ */
53
+ pixelRatio?: number;
48
54
  /**
49
55
  * @description Auto-resize the renderer when the canvas size changes.
50
56
  *
@@ -13,12 +13,6 @@ export interface AppModulePropsMessageEvent extends MessageEvent<Omit<RegisterPr
13
13
  * @default `undefined`
14
14
  */
15
15
  hasCanvasWrapper?: boolean;
16
- /**
17
- * The pixel ratio to use for the renderer.
18
- *
19
- * @default `1`
20
- */
21
- pixelRatio?: number;
22
16
  /**
23
17
  * The app is initialized.
24
18
  *
@@ -1,5 +1,6 @@
1
1
  import { DependencyContainer } from 'tsyringe';
2
2
  import { Module, OffscreenCanvasStb, RegisterPropsBlueprint, RegisterProxyEventHandlersBlueprint } from '../../common';
3
+ import { ExposedAppModule } from '../app/app.worker';
3
4
  import { RegisterService } from './register.service';
4
5
  import { RegisterController } from './register.controller';
5
6
  import { LoaderModule } from './loader/loader.module';
@@ -23,8 +24,8 @@ export declare class RegisterModule extends RegisterProxyEventHandlersBlueprint
23
24
  init(): Promise<void>;
24
25
  getCanvas(): HTMLCanvasElement | undefined;
25
26
  getOffscreenCanvas(): OffscreenCanvasStb | undefined;
26
- getWorkerThread(): any;
27
- getWorkerPool(): WorkerPool;
27
+ getWorkerThread(): import('@quick-threejs/worker').WorkerThreadResolution<ExposedAppModule> | undefined;
28
+ getWorkerPool(): import('@quick-threejs/worker').WorkerPool;
28
29
  getProps(): RegisterPropsBlueprint;
29
30
  isInitialized(): boolean;
30
31
  dispose(): Promise<void>;