ohzi-core 11.1.0 → 11.1.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
3
  "sideEffects": false,
4
- "version": "11.1.0",
4
+ "version": "11.1.2",
5
5
  "description": "OHZI Core Library",
6
6
  "source": "src/index.js",
7
7
  "module": "build/index.module.js",
@@ -34,7 +34,7 @@
34
34
  "ohzi",
35
35
  "core"
36
36
  ],
37
- "author": "OHZI Interactive",
37
+ "author": "OHZI Interactive Studio",
38
38
  "license": "MIT",
39
39
  "bugs": {
40
40
  "url": "https://github.com/ohzinteractive/core/issues"
@@ -57,6 +57,5 @@
57
57
  "rollup-plugin-glslify": "^1.3.1",
58
58
  "standardx": "^7.0.0",
59
59
  "typescript": "4.4.4"
60
- },
61
- "packageManager": "yarn@4.0.2"
60
+ }
62
61
  }
package/src/Time.js CHANGED
@@ -1,5 +1,4 @@
1
- import { Vector2 } from 'three';
2
- import { Clock } from 'three';
1
+ import { Clock, Vector2 } from 'three';
3
2
 
4
3
  class Time
5
4
  {
@@ -61,6 +60,19 @@ class Time
61
60
  return this.smooth_delta_time;
62
61
  }
63
62
 
63
+ to_json()
64
+ {
65
+ const data = {
66
+
67
+ elapsed_time: this.elapsed_time,
68
+ delta_time: this.delta_time,
69
+ smooth_delta_time: this.smooth_delta_time
70
+
71
+ };
72
+
73
+ return data;
74
+ }
75
+
64
76
  __set_frame_interpolation(value)
65
77
  {
66
78
  this.__frame_interpolation_t = value;
package/src/index.js CHANGED
@@ -40,6 +40,7 @@ import { TransitionManager } from './view_components/TransitionManager';
40
40
  import { VCManager } from './view_components/VCManager';
41
41
  import { ViewComponent } from './view_components/ViewComponent';
42
42
  import { ViewComponentController } from './view_components/ViewComponentController';
43
+ import { ViewComponentControllerManager } from './view_components/ViewComponentControllerManager';
43
44
  import { ViewComponentManager } from './view_components/ViewComponentManager';
44
45
  import { ViewManager } from './view_components/ViewManager';
45
46
 
@@ -123,6 +124,5 @@ export {
123
124
  ImageUtilities, Initializer, JSONLoader, KeyboardInput, Line, MedianFilter, MeshBatcher, MeshSampler,
124
125
  ModelUtilities, NormalAORender, NormalRender, NumberInterpolator, ObjectUtilities, OBJLoader, OMath, OrthographicCamera, OrthographicFrustumPointFitter, OS, OScreen, ParticleAttribute,
125
126
  ParticlePositionAttribute, PerspectiveCamera, PerspectiveFrustumPointFitter, PointArrayLoader, RenderLoop, ResourceBatch,
126
- ResourceContainer, RGBETextureLoader, SceneManager, SDFTextBatch, SimpleTextDrawer, Sphere, StringUtilities, Text2D, TextLoader, TextureLoader, Time, TimeUtilities, TransitionManager, TransitionTable, UI, UIElement, UnrealBloomComposeMaterial, UnrealBloomRender, UpdatableMaterialMesh, Validation, VCManager, VectorInterpolator, VerticalPlane, VideoLoader, ViewComponent, ViewComponentController,
127
- ViewComponentManager, ViewManager, VRRender, WorkerToMain, WorldImage
127
+ ResourceContainer, RGBETextureLoader, SceneManager, SDFTextBatch, SimpleTextDrawer, Sphere, StringUtilities, Text2D, TextLoader, TextureLoader, Time, TimeUtilities, TransitionManager, TransitionTable, UI, UIElement, UnrealBloomComposeMaterial, UnrealBloomRender, UpdatableMaterialMesh, Validation, VCManager, VectorInterpolator, VerticalPlane, VideoLoader, ViewComponent, ViewComponentController, ViewComponentControllerManager, ViewComponentManager, ViewManager, VRRender, WorkerToMain, WorldImage
128
128
  };
@@ -19,7 +19,7 @@ class ViewManager
19
19
  this.__change_browser_title(v.url);
20
20
  }
21
21
 
22
- this.main_to_worker.post('go_to_view_controller', { view_controller_name: view_name, skip });
22
+ this.main_to_worker.push('go_to_view_controller', [view_name, skip]);
23
23
  }
24
24
 
25
25
  go_to_scene(scene_name, change_url = false, skip = false)
package/types/Time.d.ts CHANGED
@@ -18,6 +18,11 @@ declare class Time {
18
18
  get fdt(): number;
19
19
  get dt(): any;
20
20
  get sdt(): any;
21
+ to_json(): {
22
+ elapsed_time: any;
23
+ delta_time: any;
24
+ smooth_delta_time: any;
25
+ };
21
26
  __set_frame_interpolation(value: any): void;
22
27
  __update(): void;
23
28
  __calculate_smooth_delta_time(): void;
package/types/index.d.ts CHANGED
@@ -97,9 +97,10 @@ import { VerticalPlane } from "./primitives/VerticalPlane";
97
97
  import { VideoLoader } from "./resource_loader/VideoLoader";
98
98
  import { ViewComponent } from "./view_components/ViewComponent";
99
99
  import { ViewComponentController } from "./view_components/ViewComponentController";
100
+ import { ViewComponentControllerManager } from "./view_components/ViewComponentControllerManager";
100
101
  import { ViewComponentManager } from "./view_components/ViewComponentManager";
101
102
  import { ViewManager } from "./view_components/ViewManager";
102
103
  import { VRRender } from "./render_mode/VRRender";
103
104
  import { WorkerToMain } from "./view_components/WorkerToMain";
104
105
  import { WorldImage } from "./components/WorldImage";
105
- export { AbstractLoader, ActionEvent, ActionInterpolator, ActionSequencer, ActionSequencerBuilder, AddMaterial, ApplicationView, ApplicationViewController, ArrayUtilities, Arrow, AsyncTextureLoader, AudioLoader, BaseApplication, BaseRender, BaseShaderMaterial, BasisLoader, BlitMaterial, Blurrer, Browser, BufferGeometryUtils, CameraManager, CameraUtilities, CanvasDrawer, Capabilities, CSSAnimator, Cube, CubemapLoader, DAELoader, Debug, DebugNormalsRender, DrawIOAnimationSheet, DualFilteringBlurMaterial, DualFilteringBlurrer, EasingFunctions, EventManager, FileLoader, FontLoader, FrustumPointFitter, GaussianBlurrer, GeometryUtilities, GLTFDRACOLoader, GLTFLoader, GPUParticleSystem, Graphics, Grid, HDRCubeTextureLoader, HorizontalPlane, HTMLUtilities, ImageUtilities, Initializer, JSONLoader, KeyboardInput, Line, MedianFilter, MeshBatcher, MeshSampler, ModelUtilities, NormalAORender, NormalRender, NumberInterpolator, ObjectUtilities, OBJLoader, OMath, OrthographicCamera, OrthographicFrustumPointFitter, OS, OScreen, ParticleAttribute, ParticlePositionAttribute, PerspectiveCamera, PerspectiveFrustumPointFitter, PointArrayLoader, RenderLoop, ResourceBatch, ResourceContainer, RGBETextureLoader, SceneManager, SDFTextBatch, SimpleTextDrawer, Sphere, StringUtilities, Text2D, TextLoader, TextureLoader, Time, TimeUtilities, TransitionManager, TransitionTable, UI, UIElement, UnrealBloomComposeMaterial, UnrealBloomRender, UpdatableMaterialMesh, Validation, VCManager, VectorInterpolator, VerticalPlane, VideoLoader, ViewComponent, ViewComponentController, ViewComponentManager, ViewManager, VRRender, WorkerToMain, WorldImage };
106
+ export { AbstractLoader, ActionEvent, ActionInterpolator, ActionSequencer, ActionSequencerBuilder, AddMaterial, ApplicationView, ApplicationViewController, ArrayUtilities, Arrow, AsyncTextureLoader, AudioLoader, BaseApplication, BaseRender, BaseShaderMaterial, BasisLoader, BlitMaterial, Blurrer, Browser, BufferGeometryUtils, CameraManager, CameraUtilities, CanvasDrawer, Capabilities, CSSAnimator, Cube, CubemapLoader, DAELoader, Debug, DebugNormalsRender, DrawIOAnimationSheet, DualFilteringBlurMaterial, DualFilteringBlurrer, EasingFunctions, EventManager, FileLoader, FontLoader, FrustumPointFitter, GaussianBlurrer, GeometryUtilities, GLTFDRACOLoader, GLTFLoader, GPUParticleSystem, Graphics, Grid, HDRCubeTextureLoader, HorizontalPlane, HTMLUtilities, ImageUtilities, Initializer, JSONLoader, KeyboardInput, Line, MedianFilter, MeshBatcher, MeshSampler, ModelUtilities, NormalAORender, NormalRender, NumberInterpolator, ObjectUtilities, OBJLoader, OMath, OrthographicCamera, OrthographicFrustumPointFitter, OS, OScreen, ParticleAttribute, ParticlePositionAttribute, PerspectiveCamera, PerspectiveFrustumPointFitter, PointArrayLoader, RenderLoop, ResourceBatch, ResourceContainer, RGBETextureLoader, SceneManager, SDFTextBatch, SimpleTextDrawer, Sphere, StringUtilities, Text2D, TextLoader, TextureLoader, Time, TimeUtilities, TransitionManager, TransitionTable, UI, UIElement, UnrealBloomComposeMaterial, UnrealBloomRender, UpdatableMaterialMesh, Validation, VCManager, VectorInterpolator, VerticalPlane, VideoLoader, ViewComponent, ViewComponentController, ViewComponentControllerManager, ViewComponentManager, ViewManager, VRRender, WorkerToMain, WorldImage };