ohzi-core 9.4.1 → 9.4.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,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "9.4.1",
3
+ "version": "9.4.2",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.module.js",
@@ -6,7 +6,7 @@ class ActionSequencer
6
6
  constructor(context)
7
7
  {
8
8
  this.elapsed_time = -0.00001;
9
- this.playback_speed = 1;
9
+ this.playback_speed = this.__get_playback_speed();
10
10
  this.playing = false;
11
11
 
12
12
  this.action_events = [];
@@ -242,6 +242,22 @@ class ActionSequencer
242
242
 
243
243
  return current;
244
244
  }
245
+
246
+ __get_playback_speed()
247
+ {
248
+ const url_params = new URLSearchParams(window.location.search);
249
+
250
+ const transitions_velocity = url_params.get('transitions_velocity');
251
+
252
+ if (transitions_velocity)
253
+ {
254
+ return Number(transitions_velocity);
255
+ }
256
+ else
257
+ {
258
+ return 1;
259
+ }
260
+ }
245
261
  }
246
262
 
247
263
  export { ActionSequencer };