@tomorrowevening/hermes 0.0.47 → 0.0.49

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/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "module": "./dist/hermes.esm.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "type": "module",
10
- "version": "0.0.47",
10
+ "version": "0.0.49",
11
11
  "homepage": "https://github.com/tomorrowevening/hermes#readme",
12
12
  "bugs": {
13
13
  "url": "https://github.com/tomorrowevening/hermes/issues"
@@ -3,6 +3,7 @@ import { ApplicationMode, BroadcastCallback, BroadcastData } from './types';
3
3
  export default class Application {
4
4
  components: Map<string, any>;
5
5
  listen?: BroadcastCallback;
6
+ protected _appID: string;
6
7
  protected _debugEnabled: boolean;
7
8
  protected _broadcastChannel?: BroadcastChannel | undefined;
8
9
  protected _webSocket?: WebSocket | undefined;
@@ -16,6 +17,7 @@ export default class Application {
16
17
  private messageHandler;
17
18
  private openHandler;
18
19
  private closeHandler;
20
+ get appID(): string;
19
21
  get connected(): boolean;
20
22
  get debugEnabled(): boolean;
21
23
  get mode(): ApplicationMode;
@@ -15,4 +15,10 @@ export default class RemoteThree extends BaseRemote {
15
15
  removeCamera(camera: Camera): void;
16
16
  handleApp(app: Application, remote: BaseRemote, msg: BroadcastData): void;
17
17
  handleEditor(app: Application, remote: BaseRemote, msg: BroadcastData): void;
18
+ resize(width: number, height: number): void;
19
+ set dpr(value: number);
20
+ get dpr(): number;
21
+ get width(): number;
22
+ get height(): number;
23
+ get canvas(): HTMLCanvasElement | null;
18
24
  }
@@ -1,10 +1,8 @@
1
1
  import { Scene } from 'three';
2
2
  import RemoteThree from '@/core/remote/RemoteThree';
3
- import { MultiViewMode } from './MultiViewData';
4
3
  import './MultiView.scss';
5
4
  interface MultiViewProps {
6
5
  three: RemoteThree;
7
- mode?: MultiViewMode;
8
6
  scenes: Map<string, any>;
9
7
  onSceneSet?: (scene: Scene) => void;
10
8
  onSceneUpdate?: (scene: Scene) => void;