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.
- package/dist/eligius.cjs.development.js +19 -17
- package/dist/eligius.cjs.development.js.map +1 -1
- package/dist/eligius.cjs.production.min.js +1 -1
- package/dist/eligius.cjs.production.min.js.map +1 -1
- package/dist/eligius.esm.js +19 -17
- package/dist/eligius.esm.js.map +1 -1
- package/dist/operation/end-action.d.ts +4 -0
- package/dist/timelineproviders/request-animation-frame-timeline-provider.d.ts +1 -0
- package/package.json +5 -5
|
@@ -3335,7 +3335,6 @@ function _setGlobals(cache, newValues) {
|
|
|
3335
3335
|
value = _ref[1];
|
|
3336
3336
|
return cache[name] = value;
|
|
3337
3337
|
});
|
|
3338
|
-
console.log('cache', cache);
|
|
3339
3338
|
}
|
|
3340
3339
|
|
|
3341
3340
|
var getGlobals = /*#__PURE__*/_getGlobals.bind(null, cache$1);
|
|
@@ -3555,6 +3554,10 @@ var customFunction$1 = function customFunction(operationData) {
|
|
|
3555
3554
|
/**
|
|
3556
3555
|
* This operation invokes the end() method on the specified action instance.
|
|
3557
3556
|
*
|
|
3557
|
+
* The action operation data is first merged with the current operation data before it is
|
|
3558
|
+
* passed on to the action. After the action has completed the action operation data properties
|
|
3559
|
+
* are removed from the current operation data.
|
|
3560
|
+
*
|
|
3558
3561
|
* @param operationData
|
|
3559
3562
|
* @returns
|
|
3560
3563
|
*/
|
|
@@ -3897,22 +3900,10 @@ var getImport$1 = function getImport(operationData) {
|
|
|
3897
3900
|
var getQueryParams$1 = function getQueryParams(operationData) {
|
|
3898
3901
|
var searchParams = new URLSearchParams(window.location.search);
|
|
3899
3902
|
var queryParams = Object.fromEntries(searchParams.entries());
|
|
3900
|
-
var
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
var name = _ref[0];
|
|
3905
|
-
return !(name in queryParams);
|
|
3906
|
-
});
|
|
3907
|
-
defaultEntries.forEach(function (_ref2) {
|
|
3908
|
-
var name = _ref2[0],
|
|
3909
|
-
value = _ref2[1];
|
|
3910
|
-
return queryParams[name] = value;
|
|
3911
|
-
});
|
|
3912
|
-
delete operationData.defaultValues;
|
|
3913
|
-
}
|
|
3914
|
-
|
|
3915
|
-
operationData.queryParams = queryParams;
|
|
3903
|
+
var _operationData$defaul = operationData.defaultValues,
|
|
3904
|
+
defaultValues = _operationData$defaul === void 0 ? {} : _operationData$defaul;
|
|
3905
|
+
delete operationData.defaultValues;
|
|
3906
|
+
operationData.queryParams = _extends({}, defaultValues, queryParams);
|
|
3916
3907
|
return operationData;
|
|
3917
3908
|
};
|
|
3918
3909
|
|
|
@@ -4844,6 +4835,8 @@ var RequestAnimationFrameTimelineProvider = /*#__PURE__*/function () {
|
|
|
4844
4835
|
this._resetToStartPosition();
|
|
4845
4836
|
|
|
4846
4837
|
this.eventbus.broadcast(TimelineEventNames.RESTART);
|
|
4838
|
+
|
|
4839
|
+
this._broadCastPosition();
|
|
4847
4840
|
} else {
|
|
4848
4841
|
this.stop();
|
|
4849
4842
|
this.eventbus.broadcast(TimelineEventNames.COMPLETE);
|
|
@@ -4851,6 +4844,10 @@ var RequestAnimationFrameTimelineProvider = /*#__PURE__*/function () {
|
|
|
4851
4844
|
}
|
|
4852
4845
|
}
|
|
4853
4846
|
|
|
4847
|
+
this._broadCastPosition();
|
|
4848
|
+
};
|
|
4849
|
+
|
|
4850
|
+
_proto._broadCastPosition = function _broadCastPosition() {
|
|
4854
4851
|
this.eventbus.broadcast(TimelineEventNames.TIME, [{
|
|
4855
4852
|
position: this._currentPosition
|
|
4856
4853
|
}]);
|
|
@@ -4870,6 +4867,11 @@ var RequestAnimationFrameTimelineProvider = /*#__PURE__*/function () {
|
|
|
4870
4867
|
this.playState = 'running';
|
|
4871
4868
|
(_this$_abortControlle = this._abortController) == null ? void 0 : _this$_abortControlle.abort();
|
|
4872
4869
|
this._abortController = new AbortController();
|
|
4870
|
+
|
|
4871
|
+
if (this._currentPosition == 0) {
|
|
4872
|
+
this._broadCastPosition();
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4873
4875
|
animationInterval(this._tickInterval, this._abortController.signal, this._updateBound);
|
|
4874
4876
|
};
|
|
4875
4877
|
|