ohzi-core 11.1.2 → 11.2.0

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,8 +1,8 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
3
  "sideEffects": false,
4
- "version": "11.1.2",
5
- "description": "OHZI Core Library",
4
+ "version": "11.2.0",
5
+ "description": "OHZI Interactive Core Library",
6
6
  "source": "src/index.js",
7
7
  "module": "build/index.module.js",
8
8
  "types": "types/index.d.ts",
@@ -1,7 +1,6 @@
1
1
  import { CameraManager } from './CameraManager';
2
2
  import { Capabilities } from './Capabilities';
3
3
  import { Debug } from './Debug';
4
- import { EventManager } from './EventManager';
5
4
  import { Graphics } from './Graphics';
6
5
  import { OS } from './OS';
7
6
  import { OScreen } from './OScreen';
@@ -24,7 +23,6 @@ class Initializer
24
23
  CameraManager.init();
25
24
  CameraUtilities.init(input);
26
25
  Capabilities.init();
27
- EventManager.init();
28
26
  GeometryBatcher.init();
29
27
 
30
28
  OS.init();
@@ -1,4 +1,3 @@
1
- import { EventManager } from './EventManager';
2
1
 
3
2
  class ResourceContainer
4
3
  {
@@ -21,8 +20,6 @@ class ResourceContainer
21
20
  this.resources[name] = resource;
22
21
  this.resources_by_url[url] = resource;
23
22
  }
24
-
25
- EventManager.fire_resource_loaded({ name: name, value: resource });
26
23
  }
27
24
 
28
25
  get_resource(name)
@@ -1,9 +1,6 @@
1
1
  import { ManipulatorHandle } from '../editor/ManipulatorHandle';
2
- import { EventManager } from '../EventManager';
3
2
 
4
- import { Object3D } from 'three';
5
- import { Vector2 } from 'three';
6
- import { Vector3 } from 'three';
3
+ import { Object3D, Vector2, Vector3 } from 'three';
7
4
 
8
5
  class ObjectManipulator extends Object3D
9
6
  {
@@ -59,11 +56,6 @@ class ObjectManipulator extends Object3D
59
56
  this.tmp_local_pos.copy(this.position);
60
57
  this.target_obj.parent.worldToLocal(this.tmp_local_pos);
61
58
  this.target_obj.position.copy(this.tmp_local_pos);
62
- const scope = this;
63
- EventManager.fire_unit_position_updated({
64
- unit_id: scope.target_obj.name,
65
- position: scope.target_obj.position
66
- });
67
59
  }
68
60
  }
69
61
 
package/src/index.js CHANGED
@@ -16,7 +16,6 @@ import { CanvasDrawer } from './canvas_drawer/CanvasDrawer';
16
16
  import { SimpleTextDrawer } from './canvas_drawer/SimpleTextDrawer';
17
17
  import { Capabilities } from './Capabilities';
18
18
  import { Debug } from './Debug';
19
- import { EventManager } from './EventManager';
20
19
  import { Graphics } from './Graphics';
21
20
  import { CSSAnimator } from './html_utilities/CSSAnimator';
22
21
  import { Initializer } from './Initializer';
@@ -119,7 +118,7 @@ import { ResourceContainer } from './ResourceContainer';
119
118
 
120
119
  export {
121
120
  AbstractLoader, ActionEvent, ActionInterpolator, ActionSequencer, ActionSequencerBuilder, AddMaterial, ApplicationView, ApplicationViewController, ArrayUtilities, Arrow, AsyncTextureLoader, AudioLoader, BaseApplication, BaseRender, BaseShaderMaterial, BasisLoader, BlitMaterial, Blurrer, Browser, BufferGeometryUtils, CameraManager, CameraUtilities, CanvasDrawer, Capabilities,
122
- CSSAnimator, Cube, CubemapLoader, DAELoader, Debug, DebugNormalsRender, DrawIOAnimationSheet, DualFilteringBlurMaterial, DualFilteringBlurrer, EasingFunctions, EventManager, FileLoader,
121
+ CSSAnimator, Cube, CubemapLoader, DAELoader, Debug, DebugNormalsRender, DrawIOAnimationSheet, DualFilteringBlurMaterial, DualFilteringBlurrer, EasingFunctions, FileLoader,
123
122
  FontLoader, FrustumPointFitter, GaussianBlurrer, GeometryUtilities, GLTFDRACOLoader, GLTFLoader, GPUParticleSystem, Graphics, Grid, HDRCubeTextureLoader, HorizontalPlane, HTMLUtilities,
124
123
  ImageUtilities, Initializer, JSONLoader, KeyboardInput, Line, MedianFilter, MeshBatcher, MeshSampler,
125
124
  ModelUtilities, NormalAORender, NormalRender, NumberInterpolator, ObjectUtilities, OBJLoader, OMath, OrthographicCamera, OrthographicFrustumPointFitter, OS, OScreen, ParticleAttribute,
package/types/index.d.ts CHANGED
@@ -1,106 +1,106 @@
1
- import { AbstractLoader } from "./resource_loader/AbstractLoader";
1
+ import { BaseApplication } from "./BaseApplication";
2
+ import { Browser } from "./Browser";
3
+ import { CameraManager } from "./CameraManager";
4
+ import { Capabilities } from "./Capabilities";
5
+ import { Debug } from "./Debug";
6
+ import { Graphics } from "./Graphics";
7
+ import { Initializer } from "./Initializer";
8
+ import { KeyboardInput } from "./KeyboardInput";
9
+ import { OS } from "./OS";
10
+ import { OScreen } from "./OScreen";
11
+ import { OrthographicCamera } from "./OrthographicCamera";
12
+ import { PerspectiveCamera } from "./PerspectiveCamera";
13
+ import { RenderLoop } from "./RenderLoop";
14
+ import { ResourceContainer } from "./ResourceContainer";
15
+ import { SceneManager } from "./SceneManager";
16
+ import { Time } from "./Time";
17
+ import { UI } from "./UI";
2
18
  import { ActionEvent } from "./action_sequencer/ActionEvent";
3
19
  import { ActionInterpolator } from "./action_sequencer/ActionInterpolator";
4
20
  import { ActionSequencer } from "./action_sequencer/ActionSequencer";
5
- import { ActionSequencerBuilder } from "./view_components/transition/ActionSequencerBuilder";
21
+ import { NumberInterpolator } from "./action_sequencer/NumberInterpolator";
22
+ import { VectorInterpolator } from "./action_sequencer/VectorInterpolator";
23
+ import { CanvasDrawer } from "./canvas_drawer/CanvasDrawer";
24
+ import { SimpleTextDrawer } from "./canvas_drawer/SimpleTextDrawer";
25
+ import { Grid } from "./components/Grid";
26
+ import { Line } from "./components/Line";
27
+ import { Text2D } from "./components/Text2D";
28
+ import { UIElement } from "./components/UIElement";
29
+ import { UpdatableMaterialMesh } from "./components/UpdatableMaterialMesh";
30
+ import { WorldImage } from "./components/WorldImage";
31
+ import { SDFTextBatch } from "./components/sdf_text/SDFTextBatch";
32
+ import { GPUParticleSystem } from "./gpu_particles/GPUParticleSystem";
33
+ import { ParticleAttribute } from "./gpu_particles/ParticleAttribute";
34
+ import { ParticlePositionAttribute } from "./gpu_particles/ParticlePositionAttribute";
35
+ import { CSSAnimator } from "./html_utilities/CSSAnimator";
6
36
  import { AddMaterial } from "./materials/AddMaterial";
7
- import { ApplicationView } from "./view_components/ApplicationView";
8
- import { ApplicationViewController } from "./view_components/ApplicationViewController";
9
- import { ArrayUtilities } from "./utilities/ArrayUtilities";
37
+ import { BaseShaderMaterial } from "./materials/BaseShaderMaterial";
38
+ import { BlitMaterial } from "./materials/BlitMaterial";
39
+ import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
40
+ import { UnrealBloomComposeMaterial } from "./materials/UnrealBloomComposeMaterial";
10
41
  import { Arrow } from "./primitives/Arrow";
42
+ import { Cube } from "./primitives/Cube";
43
+ import { HorizontalPlane } from "./primitives/HorizontalPlane";
44
+ import { Sphere } from "./primitives/Sphere";
45
+ import { VerticalPlane } from "./primitives/VerticalPlane";
46
+ import { BaseRender } from "./render_mode/BaseRender";
47
+ import { DebugNormalsRender } from "./render_mode/DebugNormalsRender";
48
+ import { NormalAORender } from "./render_mode/NormalAORender";
49
+ import { NormalRender } from "./render_mode/NormalRender";
50
+ import { UnrealBloomRender } from "./render_mode/UnrealBloomRender";
51
+ import { VRRender } from "./render_mode/VRRender";
52
+ import { Blurrer } from "./render_utilities/Blurrer";
53
+ import { DualFilteringBlurrer } from "./render_utilities/DualFilteringBlurrer";
54
+ import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
55
+ import { MedianFilter } from "./render_utilities/MedianFilter";
56
+ import { AbstractLoader } from "./resource_loader/AbstractLoader";
11
57
  import { AsyncTextureLoader } from "./resource_loader/AsyncTextureLoader";
12
58
  import { AudioLoader } from "./resource_loader/AudioLoader";
13
- import { BaseApplication } from "./BaseApplication";
14
- import { BaseRender } from "./render_mode/BaseRender";
15
- import { BaseShaderMaterial } from "./materials/BaseShaderMaterial";
16
59
  import { BasisLoader } from "./resource_loader/BasisLoader";
17
- import { BlitMaterial } from "./materials/BlitMaterial";
18
- import { Blurrer } from "./render_utilities/Blurrer";
19
- import { Browser } from "./Browser";
20
- import { CameraManager } from "./CameraManager";
21
- import { CameraUtilities } from "./utilities/CameraUtilities";
22
- import { CanvasDrawer } from "./canvas_drawer/CanvasDrawer";
23
- import { Capabilities } from "./Capabilities";
24
- import { CSSAnimator } from "./html_utilities/CSSAnimator";
25
- import { Cube } from "./primitives/Cube";
26
60
  import { CubemapLoader } from "./resource_loader/CubemapLoader";
27
61
  import { DAELoader } from "./resource_loader/DAELoader";
28
- import { Debug } from "./Debug";
29
- import { DebugNormalsRender } from "./render_mode/DebugNormalsRender";
30
- import { DrawIOAnimationSheet } from "./view_components/transition/DrawIOAnimationSheet";
31
- import { DualFilteringBlurMaterial } from "./materials/DualFilteringBlurMaterial";
32
- import { DualFilteringBlurrer } from "./render_utilities/DualFilteringBlurrer";
33
- import { EasingFunctions } from "./utilities/EasingFunctions";
34
- import { EventManager } from "./EventManager";
35
62
  import { FileLoader } from "./resource_loader/FileLoader";
36
63
  import { FontLoader } from "./resource_loader/FontLoader";
37
- import { FrustumPointFitter } from "./utilities/FrustumPointFitter";
38
- import { GaussianBlurrer } from "./render_utilities/GaussianBlurrer";
39
- import { GeometryUtilities } from "./utilities/GeometryUtilities";
40
64
  import { GLTFDRACOLoader } from "./resource_loader/GLTFDRACOLoader";
41
65
  import { GLTFLoader } from "./resource_loader/GLTFLoader";
42
- import { GPUParticleSystem } from "./gpu_particles/GPUParticleSystem";
43
- import { Graphics } from "./Graphics";
44
- import { Grid } from "./components/Grid";
45
66
  import { HDRCubeTextureLoader } from "./resource_loader/HDRCubeTextureLoader";
46
- import { HorizontalPlane } from "./primitives/HorizontalPlane";
47
- import { HTMLUtilities } from "./utilities/HTMLUtilities";
48
- import { ImageUtilities } from "./utilities/ImageUtilities";
49
- import { Initializer } from "./Initializer";
50
67
  import { JSONLoader } from "./resource_loader/JSONLoader";
51
- import { KeyboardInput } from "./KeyboardInput";
52
- import { Line } from "./components/Line";
53
- import { MedianFilter } from "./render_utilities/MedianFilter";
68
+ import { OBJLoader } from "./resource_loader/OBJLoader";
69
+ import { PointArrayLoader } from "./resource_loader/PointArrayLoader";
70
+ import { RGBETextureLoader } from "./resource_loader/RGBETextureLoader";
71
+ import { ResourceBatch } from "./resource_loader/ResourceBatch";
72
+ import { TextLoader } from "./resource_loader/TextLoader";
73
+ import { TextureLoader } from "./resource_loader/TextureLoader";
74
+ import { VideoLoader } from "./resource_loader/VideoLoader";
54
75
  import { MeshBatcher } from "./static_batcher/MeshBatcher";
76
+ import { ArrayUtilities } from "./utilities/ArrayUtilities";
77
+ import { CameraUtilities } from "./utilities/CameraUtilities";
78
+ import { EasingFunctions } from "./utilities/EasingFunctions";
79
+ import { FrustumPointFitter } from "./utilities/FrustumPointFitter";
80
+ import { GeometryUtilities } from "./utilities/GeometryUtilities";
81
+ import { HTMLUtilities } from "./utilities/HTMLUtilities";
82
+ import { ImageUtilities } from "./utilities/ImageUtilities";
55
83
  import { MeshSampler } from "./utilities/MeshSampler";
56
84
  import { ModelUtilities } from "./utilities/ModelUtilities";
57
- import { NormalAORender } from "./render_mode/NormalAORender";
58
- import { NormalRender } from "./render_mode/NormalRender";
59
- import { NumberInterpolator } from "./action_sequencer/NumberInterpolator";
60
- import { ObjectUtilities } from "./utilities/ObjectUtilities";
61
- import { OBJLoader } from "./resource_loader/OBJLoader";
62
85
  import { OMath } from "./utilities/OMath";
63
- import { OrthographicCamera } from "./OrthographicCamera";
86
+ import { ObjectUtilities } from "./utilities/ObjectUtilities";
64
87
  import { OrthographicFrustumPointFitter } from "./utilities/OrthographicFrustumPointFitter";
65
- import { OS } from "./OS";
66
- import { OScreen } from "./OScreen";
67
- import { ParticleAttribute } from "./gpu_particles/ParticleAttribute";
68
- import { ParticlePositionAttribute } from "./gpu_particles/ParticlePositionAttribute";
69
- import { PerspectiveCamera } from "./PerspectiveCamera";
70
88
  import { PerspectiveFrustumPointFitter } from "./utilities/PerspectiveFrustumPointFitter";
71
- import { PointArrayLoader } from "./resource_loader/PointArrayLoader";
72
- import { RenderLoop } from "./RenderLoop";
73
- import { ResourceBatch } from "./resource_loader/ResourceBatch";
74
- import { ResourceContainer } from "./ResourceContainer";
75
- import { RGBETextureLoader } from "./resource_loader/RGBETextureLoader";
76
- import { SceneManager } from "./SceneManager";
77
- import { SDFTextBatch } from "./components/sdf_text/SDFTextBatch";
78
- import { SimpleTextDrawer } from "./canvas_drawer/SimpleTextDrawer";
79
- import { Sphere } from "./primitives/Sphere";
80
89
  import { StringUtilities } from "./utilities/StringUtilities";
81
- import { Text2D } from "./components/Text2D";
82
- import { TextLoader } from "./resource_loader/TextLoader";
83
- import { TextureLoader } from "./resource_loader/TextureLoader";
84
- import { Time } from "./Time";
85
90
  import { TimeUtilities } from "./utilities/TimeUtilities";
86
- import { TransitionManager } from "./view_components/TransitionManager";
87
- import { TransitionTable } from "./view_components/transition/TransitionTable";
88
- import { UI } from "./UI";
89
- import { UIElement } from "./components/UIElement";
90
- import { UnrealBloomComposeMaterial } from "./materials/UnrealBloomComposeMaterial";
91
- import { UnrealBloomRender } from "./render_mode/UnrealBloomRender";
92
- import { UpdatableMaterialMesh } from "./components/UpdatableMaterialMesh";
93
91
  import { Validation } from "./utilities/Validation";
92
+ import { ApplicationView } from "./view_components/ApplicationView";
93
+ import { ApplicationViewController } from "./view_components/ApplicationViewController";
94
+ import { TransitionManager } from "./view_components/TransitionManager";
94
95
  import { VCManager } from "./view_components/VCManager";
95
- import { VectorInterpolator } from "./action_sequencer/VectorInterpolator";
96
- import { VerticalPlane } from "./primitives/VerticalPlane";
97
- import { VideoLoader } from "./resource_loader/VideoLoader";
98
96
  import { ViewComponent } from "./view_components/ViewComponent";
99
97
  import { ViewComponentController } from "./view_components/ViewComponentController";
100
98
  import { ViewComponentControllerManager } from "./view_components/ViewComponentControllerManager";
101
99
  import { ViewComponentManager } from "./view_components/ViewComponentManager";
102
100
  import { ViewManager } from "./view_components/ViewManager";
103
- import { VRRender } from "./render_mode/VRRender";
104
101
  import { WorkerToMain } from "./view_components/WorkerToMain";
105
- import { WorldImage } from "./components/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 };
102
+ import { ActionSequencerBuilder } from "./view_components/transition/ActionSequencerBuilder";
103
+ import { DrawIOAnimationSheet } from "./view_components/transition/DrawIOAnimationSheet";
104
+ import { TransitionTable } from "./view_components/transition/TransitionTable";
105
+ export { AbstractLoader, ActionEvent, ActionInterpolator, ActionSequencer, ActionSequencerBuilder, AddMaterial, ApplicationView, ApplicationViewController, ArrayUtilities, Arrow, AsyncTextureLoader, AudioLoader, BaseApplication, BaseRender, BaseShaderMaterial, BasisLoader, BlitMaterial, Blurrer, Browser, BufferGeometryUtils, CSSAnimator, CameraManager, CameraUtilities, CanvasDrawer, Capabilities, Cube, CubemapLoader, DAELoader, Debug, DebugNormalsRender, DrawIOAnimationSheet, DualFilteringBlurMaterial, DualFilteringBlurrer, EasingFunctions, FileLoader, FontLoader, FrustumPointFitter, GLTFDRACOLoader, GLTFLoader, GPUParticleSystem, GaussianBlurrer, GeometryUtilities, Graphics, Grid, HDRCubeTextureLoader, HTMLUtilities, HorizontalPlane, ImageUtilities, Initializer, JSONLoader, KeyboardInput, Line, MedianFilter, MeshBatcher, MeshSampler, ModelUtilities, NormalAORender, NormalRender, NumberInterpolator, OBJLoader, OMath, OS, OScreen, ObjectUtilities, OrthographicCamera, OrthographicFrustumPointFitter, ParticleAttribute, ParticlePositionAttribute, PerspectiveCamera, PerspectiveFrustumPointFitter, PointArrayLoader, RGBETextureLoader, RenderLoop, ResourceBatch, ResourceContainer, SDFTextBatch, SceneManager, SimpleTextDrawer, Sphere, StringUtilities, Text2D, TextLoader, TextureLoader, Time, TimeUtilities, TransitionManager, TransitionTable, UI, UIElement, UnrealBloomComposeMaterial, UnrealBloomRender, UpdatableMaterialMesh, VCManager, VRRender, Validation, VectorInterpolator, VerticalPlane, VideoLoader, ViewComponent, ViewComponentController, ViewComponentControllerManager, ViewComponentManager, ViewManager, WorkerToMain, WorldImage };
106
+
@@ -1,151 +0,0 @@
1
- class EventManager
2
- {
3
- init()
4
- {
5
- this.queue = {};
6
-
7
- this.zoom_changed_evt = 'zoom_changed';
8
- this.store_clickd_evt = 'store_clicked';
9
- this.point_selected_evt = 'point_selected';
10
- this.config_changed = 'config_changed';
11
-
12
- this.path_substep_completed = 'path_substep_completed';
13
- this.path_completed = 'path_completed';
14
- this.go_to_store_requested_evt = 'go_to_store_requested';
15
-
16
- this.resource_loaded_evt = 'resource_loaded';
17
- this.service_clicked_evt = 'service_clicked';
18
- this.unit_pos_updated_evt = 'unit_position_updated';
19
-
20
- this.floor_changed_evt = 'floor_changed';
21
-
22
- this.on_enter_floor_navigation = 'on_enter_floor_navigation';
23
- this.on_exit_floor_navigation = 'on_exit_floor_navigation';
24
-
25
- this.on_enter_floor_selection = 'on_enter_floor_selection';
26
- this.on_exit_floor_selection = 'on_exit_floor_selection';
27
-
28
- this.on_enter_outside_navigation = 'on_enter_outside_navigation';
29
- this.on_exit_outside_navigation = 'on_exit_outside_navigation';
30
-
31
- this.step_selected_evt = 'step_selected';
32
- }
33
-
34
- fire(event, payload)
35
- {
36
- const queue = this.queue[event];
37
-
38
- if (queue === undefined)
39
- {
40
- return;
41
- }
42
- let i = queue.length;
43
- while (i--)
44
- {
45
- queue[i](payload);
46
- }
47
- }
48
-
49
- on(event, callback)
50
- {
51
- if (typeof this.queue[event] === 'undefined')
52
- {
53
- this.queue[event] = [];
54
- }
55
-
56
- this.queue[event].push(callback);
57
- }
58
-
59
- fire_zoom_changed(zoom)
60
- {
61
- this.fire(this.zoom_changed_evt, zoom);
62
- }
63
-
64
- fire_store_selected(store_id)
65
- {
66
- this.fire(this.store_clickd_evt, store_id);
67
- }
68
-
69
- fire_point_selected(hit_data)
70
- {
71
- this.fire(this.point_selected_evt, hit_data);
72
- }
73
-
74
- fire_config_changed()
75
- {
76
- this.fire(this.config_changed);
77
- }
78
-
79
- fire_path_substep_completed(step_number)
80
- {
81
- this.fire(this.path_substep_completed, step_number);
82
- }
83
-
84
- fire_path_completed()
85
- {
86
- this.fire(this.path_completed);
87
- }
88
-
89
- fire_step_selected(step_index)
90
- {
91
- this.fire(this.step_selected_evt, step_index);
92
- }
93
-
94
- fire_go_to_store_requested(store_id)
95
- {
96
- this.fire(this.go_to_store_requested_evt, store_id);
97
- }
98
-
99
- fire_resource_loaded(resource)
100
- {
101
- this.fire(this.resource_loaded_evt, resource);
102
- }
103
-
104
- fire_service_clicked(service)
105
- {
106
- this.fire(this.service_clicked_evt, service);
107
- }
108
-
109
- fire_unit_position_updated(unit_data)
110
- {
111
- this.fire(this.unit_pos_updated_evt, unit_data);
112
- }
113
-
114
- fire_floor_switched(floor_id)
115
- {
116
- this.fire(this.floor_changed_evt, floor_id);
117
- }
118
-
119
- fire_on_enter_floor_navigation(state)
120
- {
121
- this.fire(this.on_enter_floor_navigation, state);
122
- }
123
-
124
- fire_on_exit_floor_navigation(state)
125
- {
126
- this.fire(this.on_exit_floor_navigation, state);
127
- }
128
-
129
- fire_on_enter_floor_selection(state)
130
- {
131
- this.fire(this.on_enter_floor_selection, state);
132
- }
133
-
134
- fire_on_exit_floor_selection(state)
135
- {
136
- this.fire(this.on_exit_floor_selection, state);
137
- }
138
-
139
- fire_on_enter_outside_navigation(state)
140
- {
141
- this.fire(this.on_enter_outside_navigation, state);
142
- }
143
-
144
- fire_on_exit_outside_navigation(state)
145
- {
146
- this.fire(this.on_exit_outside_navigation, state);
147
- }
148
- }
149
-
150
- const event_manager = new EventManager();
151
- export { event_manager as EventManager };
@@ -1,44 +0,0 @@
1
- export { event_manager as EventManager };
2
- declare const event_manager: EventManager;
3
- declare class EventManager {
4
- init(): void;
5
- queue: {};
6
- zoom_changed_evt: string;
7
- store_clickd_evt: string;
8
- point_selected_evt: string;
9
- config_changed: string;
10
- path_substep_completed: string;
11
- path_completed: string;
12
- go_to_store_requested_evt: string;
13
- resource_loaded_evt: string;
14
- service_clicked_evt: string;
15
- unit_pos_updated_evt: string;
16
- floor_changed_evt: string;
17
- on_enter_floor_navigation: string;
18
- on_exit_floor_navigation: string;
19
- on_enter_floor_selection: string;
20
- on_exit_floor_selection: string;
21
- on_enter_outside_navigation: string;
22
- on_exit_outside_navigation: string;
23
- step_selected_evt: string;
24
- fire(event: any, payload: any): void;
25
- on(event: any, callback: any): void;
26
- fire_zoom_changed(zoom: any): void;
27
- fire_store_selected(store_id: any): void;
28
- fire_point_selected(hit_data: any): void;
29
- fire_config_changed(): void;
30
- fire_path_substep_completed(step_number: any): void;
31
- fire_path_completed(): void;
32
- fire_step_selected(step_index: any): void;
33
- fire_go_to_store_requested(store_id: any): void;
34
- fire_resource_loaded(resource: any): void;
35
- fire_service_clicked(service: any): void;
36
- fire_unit_position_updated(unit_data: any): void;
37
- fire_floor_switched(floor_id: any): void;
38
- fire_on_enter_floor_navigation(state: any): void;
39
- fire_on_exit_floor_navigation(state: any): void;
40
- fire_on_enter_floor_selection(state: any): void;
41
- fire_on_exit_floor_selection(state: any): void;
42
- fire_on_enter_outside_navigation(state: any): void;
43
- fire_on_exit_outside_navigation(state: any): void;
44
- }