bg2e-js 2.2.5 → 2.2.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bg2e-js",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "a graphics engine for productivity applications",
5
5
  "main": "./dist/bg2e-js.js",
6
6
  "types": "./src/index.ts",
@@ -2,7 +2,7 @@ import Resource, { removeFileName, ResourceType } from "../tools/Resource";
2
2
  import LoaderPlugin from "./LoaderPlugin";
3
3
  import Node from "../scene/Node";
4
4
  import { deserializeComponent } from "../scene/Component";
5
- import Bg2LoaderPlugin, { MaterialImportCallback } from "./Bg2LoaderPlugin";
5
+ import Bg2LoaderPlugin, { type MaterialImportCallback } from "./Bg2LoaderPlugin";
6
6
  import Loader from "./Loader";
7
7
 
8
8
  interface NodeData {
@@ -16,9 +16,9 @@ import type SkyCube from "./SkyCube";
16
16
  import type ShadowRenderer from "./ShadowRenderer";
17
17
  import type EnvironmentRenderer from "../render/Environment";
18
18
  import type EnvironmentComponent from "../scene/EnvironmentComponent";
19
- import KeyboardEvent from "../app/KeyboardEvent"
20
- import MouseEvent from "../app/MouseEvent"
21
- import TouchEvent from "../app/TouchEvent";
19
+ import KeyboardEvent from "../app/Bg2KeyboardEvent"
20
+ import MouseEvent from "../app/Bg2MouseEvent"
21
+ import TouchEvent from "../app/Bg2TouchEvent";
22
22
 
23
23
  export class FrameVisitor extends NodeVisitor {
24
24
  _renderQueue: RenderQueue;
@@ -8,8 +8,8 @@ import ShaderFunction, {
8
8
  generateShaderLibrary,
9
9
  extractConstants,
10
10
  processConstants,
11
- ConstantDefinition,
12
- DependencyItem
11
+ type ConstantDefinition,
12
+ type DependencyItem
13
13
  } from "../ShaderFunction";
14
14
 
15
15
  let g_constants: ConstantDefinition[] | null = null;
@@ -21,12 +21,13 @@ export const getProcessTypeName = (type: ProcessType): string => {
21
21
  };
22
22
 
23
23
  export const getProcessType = (): ProcessType => {
24
- if (typeof process !== 'undefined' && process.release.name === 'node') {
25
- return ProcessType.NODE;
26
- }
27
- else {
24
+ // TODO: Node process detection disabled for now
25
+ //if (typeof process !== 'undefined' && process.release.name === 'node') {
26
+ // return ProcessType.NODE;
27
+ //}
28
+ //else {
28
29
  return ProcessType.BROWSER;
29
- }
30
+ //}
30
31
  }
31
32
 
32
33
  export const isBrowser = (): boolean => {