@tomorrowevening/hermes 0.1.35 → 0.1.37

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.
@@ -0,0 +1 @@
1
+ :root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}html,body{min-width:100%;min-height:100%;width:100%;height:100%}body{padding:0;margin:0;overflow:hidden}button:focus{outline:none}button:hover{cursor:pointer}.loading{position:absolute;left:50%;top:50%;transform:translate(calc(-50% - 150px),-50%)}
package/dist/index.html CHANGED
@@ -8,8 +8,8 @@
8
8
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
9
9
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
10
10
  <link rel="manifest" href="/images/site.webmanifest">
11
- <script type="module" crossorigin src="/index-CJkdxrd8.js"></script>
12
- <link rel="stylesheet" crossorigin href="/index-s97l09lN.css">
11
+ <script type="module" crossorigin src="/index-BlO94fgk.js"></script>
12
+ <link rel="stylesheet" crossorigin href="/index-C92ji5gy.css">
13
13
  </head>
14
14
  <body>
15
15
  <div id="root"></div>
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.1.35",
10
+ "version": "0.1.37",
11
11
  "homepage": "https://github.com/tomorrowevening/hermes#readme",
12
12
  "bugs": {
13
13
  "url": "https://github.com/tomorrowevening/hermes/issues"
@@ -68,7 +68,6 @@
68
68
  "glslify": "^7.1.1",
69
69
  "glslify-loader": "^2.0.0",
70
70
  "path": "^0.12.7",
71
- "postprocessing": "^6.37.6",
72
71
  "react": "^18.2.0",
73
72
  "react-dom": "^18.2.0",
74
73
  "rimraf": "^6.1.3",
@@ -8,7 +8,7 @@ export default class Application {
8
8
  model: Map<string, any>;
9
9
  video: Map<string, any>;
10
10
  };
11
- components: Map<string, any>;
11
+ components: Map<string, BaseRemote>;
12
12
  settings: AppSettings;
13
13
  onUpdateCallback?: () => void;
14
14
  protected playing: boolean;
@@ -1,14 +1,12 @@
1
1
  import type { BroadcastData } from '../types';
2
2
  export default class BaseRemote {
3
3
  name: string;
4
- protected _debug: boolean;
5
- protected _editor: boolean;
4
+ readonly debug: any;
5
+ readonly editor: any;
6
6
  protected broadcastChannel?: BroadcastChannel;
7
7
  private onMessageHandler?;
8
8
  constructor(name: string, debug?: boolean, editor?: boolean);
9
9
  dispose(): void;
10
- get debug(): boolean;
11
- get editor(): boolean;
12
10
  protected send(data: BroadcastData): void;
13
11
  protected messageHandler(evt: MessageEvent): void;
14
12
  protected handleApp(msg: BroadcastData): void;
@@ -1,14 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
- import { Scene } from 'three';
3
2
  import Application from '../core/Application';
4
3
  import RemoteThree from '../core/remote/RemoteThree';
5
4
  type HermesAppProps = {
6
5
  app: Application;
7
- scenes?: Map<string, any>;
8
- onSceneAdd?: (scene: any, app: Application, renderer: any) => void;
9
- onSceneUpdate?: (scene: any) => void;
10
- onSceneResize?: (scene: Scene, width: number, height: number) => void;
11
- renderEditor?: (app: Application, three: RemoteThree) => ReactNode;
6
+ renderEditor?: (three: RemoteThree) => ReactNode;
12
7
  onLoad?: (app: Application) => Promise<void>;
13
8
  renderLoading?: ReactNode;
14
9
  children?: (app: Application) => ReactNode;