eligius 1.0.12 → 1.0.13

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.
@@ -3323,7 +3323,6 @@ function _setGlobals(cache, newValues) {
3323
3323
  value = _ref[1];
3324
3324
  return cache[name] = value;
3325
3325
  });
3326
- console.log('cache', cache);
3327
3326
  }
3328
3327
 
3329
3328
  var getGlobals = /*#__PURE__*/_getGlobals.bind(null, cache$1);
@@ -3543,6 +3542,10 @@ var customFunction$1 = function customFunction(operationData) {
3543
3542
  /**
3544
3543
  * This operation invokes the end() method on the specified action instance.
3545
3544
  *
3545
+ * The action operation data is first merged with the current operation data before it is
3546
+ * passed on to the action. After the action has completed the action operation data properties
3547
+ * are removed from the current operation data.
3548
+ *
3546
3549
  * @param operationData
3547
3550
  * @returns
3548
3551
  */
@@ -3885,22 +3888,10 @@ var getImport$1 = function getImport(operationData) {
3885
3888
  var getQueryParams$1 = function getQueryParams(operationData) {
3886
3889
  var searchParams = new URLSearchParams(window.location.search);
3887
3890
  var queryParams = Object.fromEntries(searchParams.entries());
3888
- var defaultValues = operationData.defaultValues;
3889
-
3890
- if (defaultValues) {
3891
- var defaultEntries = Object.entries(defaultValues).filter(function (_ref) {
3892
- var name = _ref[0];
3893
- return !(name in queryParams);
3894
- });
3895
- defaultEntries.forEach(function (_ref2) {
3896
- var name = _ref2[0],
3897
- value = _ref2[1];
3898
- return queryParams[name] = value;
3899
- });
3900
- delete operationData.defaultValues;
3901
- }
3902
-
3903
- operationData.queryParams = queryParams;
3891
+ var _operationData$defaul = operationData.defaultValues,
3892
+ defaultValues = _operationData$defaul === void 0 ? {} : _operationData$defaul;
3893
+ delete operationData.defaultValues;
3894
+ operationData.queryParams = _extends({}, defaultValues, queryParams);
3904
3895
  return operationData;
3905
3896
  };
3906
3897
 
@@ -4832,6 +4823,8 @@ var RequestAnimationFrameTimelineProvider = /*#__PURE__*/function () {
4832
4823
  this._resetToStartPosition();
4833
4824
 
4834
4825
  this.eventbus.broadcast(TimelineEventNames.RESTART);
4826
+
4827
+ this._broadCastPosition();
4835
4828
  } else {
4836
4829
  this.stop();
4837
4830
  this.eventbus.broadcast(TimelineEventNames.COMPLETE);
@@ -4839,6 +4832,10 @@ var RequestAnimationFrameTimelineProvider = /*#__PURE__*/function () {
4839
4832
  }
4840
4833
  }
4841
4834
 
4835
+ this._broadCastPosition();
4836
+ };
4837
+
4838
+ _proto._broadCastPosition = function _broadCastPosition() {
4842
4839
  this.eventbus.broadcast(TimelineEventNames.TIME, [{
4843
4840
  position: this._currentPosition
4844
4841
  }]);
@@ -4858,6 +4855,11 @@ var RequestAnimationFrameTimelineProvider = /*#__PURE__*/function () {
4858
4855
  this.playState = 'running';
4859
4856
  (_this$_abortControlle = this._abortController) == null ? void 0 : _this$_abortControlle.abort();
4860
4857
  this._abortController = new AbortController();
4858
+
4859
+ if (this._currentPosition == 0) {
4860
+ this._broadCastPosition();
4861
+ }
4862
+
4861
4863
  animationInterval(this._tickInterval, this._abortController.signal, this._updateBound);
4862
4864
  };
4863
4865