automation-events
Advanced tools
Comparing version 7.0.7 to 7.0.8
@@ -69,9 +69,9 @@ (function (global, factory) { | ||
var getValueOfAutomationEventAtIndexAtTime = function getValueOfAutomationEventAtIndexAtTime(automationEvents, index, time, defaultValue) { | ||
var _getValueOfAutomationEventAtIndexAtTime = function getValueOfAutomationEventAtIndexAtTime(automationEvents, index, time, defaultValue) { | ||
var automationEvent = automationEvents[index]; | ||
return automationEvent === undefined ? defaultValue : isAnyRampToValueAutomationEvent(automationEvent) || isSetValueAutomationEvent(automationEvent) ? automationEvent.value : isSetValueCurveAutomationEvent(automationEvent) ? automationEvent.values[automationEvent.values.length - 1] : getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, automationEvent.startTime, defaultValue), automationEvent); | ||
return automationEvent === undefined ? defaultValue : isAnyRampToValueAutomationEvent(automationEvent) || isSetValueAutomationEvent(automationEvent) ? automationEvent.value : isSetValueCurveAutomationEvent(automationEvent) ? automationEvent.values[automationEvent.values.length - 1] : getTargetValueAtTime(time, _getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, automationEvent.startTime, defaultValue), automationEvent); | ||
}; | ||
var getEndTimeAndValueOfPreviousAutomationEvent = function getEndTimeAndValueOfPreviousAutomationEvent(automationEvents, index, currentAutomationEvent, nextAutomationEvent, defaultValue) { | ||
return currentAutomationEvent === undefined ? [nextAutomationEvent.insertTime, defaultValue] : isAnyRampToValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.endTime, currentAutomationEvent.value] : isSetValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime, currentAutomationEvent.value] : isSetValueCurveAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime + currentAutomationEvent.duration, currentAutomationEvent.values[currentAutomationEvent.values.length - 1]] : [currentAutomationEvent.startTime, getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, currentAutomationEvent.startTime, defaultValue)]; | ||
return currentAutomationEvent === undefined ? [nextAutomationEvent.insertTime, defaultValue] : isAnyRampToValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.endTime, currentAutomationEvent.value] : isSetValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime, currentAutomationEvent.value] : isSetValueCurveAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime + currentAutomationEvent.duration, currentAutomationEvent.values[currentAutomationEvent.values.length - 1]] : [currentAutomationEvent.startTime, _getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, currentAutomationEvent.startTime, defaultValue)]; | ||
}; | ||
@@ -223,3 +223,3 @@ | ||
if (isSetTargetAutomationEvent(firstRemainingAutomationEvent)) { | ||
remainingAutomationEvents.unshift(createSetValueAutomationEvent(getValueOfAutomationEventAtIndexAtTime(this._automationEvents, index - 2, firstRemainingAutomationEvent.startTime, this._defaultValue), firstRemainingAutomationEvent.startTime)); | ||
remainingAutomationEvents.unshift(createSetValueAutomationEvent(_getValueOfAutomationEventAtIndexAtTime(this._automationEvents, index - 2, firstRemainingAutomationEvent.startTime, this._defaultValue), firstRemainingAutomationEvent.startTime)); | ||
} | ||
@@ -242,3 +242,3 @@ this._automationEvents = remainingAutomationEvents; | ||
if (currentAutomationEvent !== undefined && isSetTargetAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === undefined || !isAnyRampToValueAutomationEvent(nextAutomationEvent) || nextAutomationEvent.insertTime > time)) { | ||
return getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime(this._automationEvents, indexOfCurrentEvent - 1, currentAutomationEvent.startTime, this._defaultValue), currentAutomationEvent); | ||
return getTargetValueAtTime(time, _getValueOfAutomationEventAtIndexAtTime(this._automationEvents, indexOfCurrentEvent - 1, currentAutomationEvent.startTime, this._defaultValue), currentAutomationEvent); | ||
} | ||
@@ -245,0 +245,0 @@ if (currentAutomationEvent !== undefined && isSetValueAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === undefined || !isAnyRampToValueAutomationEvent(nextAutomationEvent))) { |
@@ -13,3 +13,3 @@ { | ||
"dependencies": { | ||
"@babel/runtime": "^7.24.8", | ||
"@babel/runtime": "^7.25.0", | ||
"tslib": "^2.6.3" | ||
@@ -20,8 +20,8 @@ }, | ||
"@babel/cli": "^7.24.8", | ||
"@babel/core": "^7.24.8", | ||
"@babel/core": "^7.25.2", | ||
"@babel/plugin-external-helpers": "^7.24.7", | ||
"@babel/plugin-transform-runtime": "^7.24.7", | ||
"@babel/preset-env": "^7.24.8", | ||
"@babel/preset-env": "^7.25.3", | ||
"@babel/register": "^7.24.6", | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/cli": "^19.4.0", | ||
"@commitlint/config-angular": "^19.3.0", | ||
@@ -33,8 +33,8 @@ "@rollup/plugin-babel": "^6.0.4", | ||
"eslint": "^8.57.0", | ||
"eslint-config-holy-grail": "^59.0.14", | ||
"eslint-config-holy-grail": "^59.0.15", | ||
"grunt": "^1.6.1", | ||
"grunt-cli": "^1.4.3", | ||
"grunt-cli": "^1.5.0", | ||
"grunt-sh": "^0.2.1", | ||
"husky": "^8.0.3", | ||
"karma": "^6.4.3", | ||
"karma": "^6.4.4", | ||
"karma-chrome-launcher": "^3.2.0", | ||
@@ -47,8 +47,8 @@ "karma-firefox-launcher": "^2.1.3", | ||
"karma-webpack": "^5.0.1", | ||
"lint-staged": "^15.2.7", | ||
"lint-staged": "^15.2.8", | ||
"load-grunt-config": "^4.0.1", | ||
"mocha": "^10.6.0", | ||
"prettier": "^3.3.2", | ||
"mocha": "^10.7.3", | ||
"prettier": "^3.3.3", | ||
"rimraf": "^5.0.8", | ||
"rollup": "^4.18.1", | ||
"rollup": "^4.20.0", | ||
"sinon": "^17.0.2", | ||
@@ -60,3 +60,3 @@ "sinon-chai": "^3.7.0", | ||
"tslint-config-holy-grail": "^56.0.2", | ||
"typescript": "^5.5.3", | ||
"typescript": "^5.5.4", | ||
"webpack": "^5.93.0" | ||
@@ -97,3 +97,3 @@ }, | ||
"types": "build/es2019/module.d.ts", | ||
"version": "7.0.7" | ||
"version": "7.0.8" | ||
} |
166499
Updated@babel/runtime@^7.25.0