automation-events
Advanced tools
Comparing version 2.0.19 to 3.0.0
@@ -32,3 +32,8 @@ import { createExtendedExponentialRampToValueAutomationEvent } from '../functions/create-extended-exponential-ramp-to-value-automation-event'; | ||
if (isCancelAndHoldAutomationEvent(automationEvent) || isCancelScheduledValuesAutomationEvent(automationEvent)) { | ||
const index = this._automationEvents.findIndex((currentAutomationEvent) => getEventTime(currentAutomationEvent) >= eventTime); | ||
const index = this._automationEvents.findIndex((currentAutomationEvent) => { | ||
if (isCancelScheduledValuesAutomationEvent(automationEvent) && isSetValueCurveAutomationEvent(currentAutomationEvent)) { | ||
return currentAutomationEvent.startTime + currentAutomationEvent.duration >= eventTime; | ||
} | ||
return getEventTime(currentAutomationEvent) >= eventTime; | ||
}); | ||
const removedAutomationEvent = this._automationEvents[index]; | ||
@@ -35,0 +40,0 @@ if (index !== -1) { |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=cancel-and-hold-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=cancel-scheduled-values-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=exponential-ramp-to-value-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=extended-exponential-ramp-to-value-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=extended-linear-ramp-to-value-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=linear-ramp-to-value-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=set-target-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=set-value-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=set-value-curve-automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=automation-event.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=persistent-automation-event.js.map |
@@ -169,2 +169,6 @@ (function (global, factory) { | ||
var index = this._automationEvents.findIndex(function (currentAutomationEvent) { | ||
if (isCancelScheduledValuesAutomationEvent(automationEvent) && isSetValueCurveAutomationEvent(currentAutomationEvent)) { | ||
return currentAutomationEvent.startTime + currentAutomationEvent.duration >= eventTime; | ||
} | ||
return getEventTime(currentAutomationEvent) >= eventTime; | ||
@@ -171,0 +175,0 @@ }); |
@@ -61,4 +61,10 @@ "use strict"; | ||
if ((0, _cancelAndHoldAutomationEvent.isCancelAndHoldAutomationEvent)(automationEvent) || (0, _cancelScheduledValuesAutomationEvent.isCancelScheduledValuesAutomationEvent)(automationEvent)) { | ||
const index = this._automationEvents.findIndex(currentAutomationEvent => (0, _getEventTime.getEventTime)(currentAutomationEvent) >= eventTime); | ||
const index = this._automationEvents.findIndex(currentAutomationEvent => { | ||
if ((0, _cancelScheduledValuesAutomationEvent.isCancelScheduledValuesAutomationEvent)(automationEvent) && (0, _setValueCurveAutomationEvent.isSetValueCurveAutomationEvent)(currentAutomationEvent)) { | ||
return currentAutomationEvent.startTime + currentAutomationEvent.duration >= eventTime; | ||
} | ||
return (0, _getEventTime.getEventTime)(currentAutomationEvent) >= eventTime; | ||
}); | ||
const removedAutomationEvent = this._automationEvents[index]; | ||
@@ -65,0 +71,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); |
@@ -18,13 +18,13 @@ { | ||
"devDependencies": { | ||
"@babel/core": "^7.11.4", | ||
"@babel/core": "^7.11.6", | ||
"@babel/plugin-external-helpers": "^7.10.4", | ||
"@babel/plugin-transform-runtime": "^7.11.0", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/register": "^7.10.5", | ||
"@commitlint/cli": "^9.1.1", | ||
"@commitlint/config-angular": "^9.1.1", | ||
"@babel/plugin-transform-runtime": "^7.11.5", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/register": "^7.11.5", | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-angular": "^11.0.0", | ||
"chai": "^4.2.0", | ||
"commitizen": "^4.1.2", | ||
"cz-conventional-changelog": "^3.2.0", | ||
"eslint": "^7.7.0", | ||
"commitizen": "^4.2.1", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^7.8.1", | ||
"eslint-config-holy-grail": "^48.0.0", | ||
@@ -36,4 +36,4 @@ "grunt": "^1.3.0", | ||
"grunt-sh": "^0.2.0", | ||
"husky": "^4.2.5", | ||
"karma": "^5.1.1", | ||
"husky": "^4.3.0", | ||
"karma": "^5.2.1", | ||
"karma-chrome-launcher": "^3.1.0", | ||
@@ -46,14 +46,14 @@ "karma-firefox-launcher": "^1.3.0", | ||
"load-grunt-config": "^3.0.1", | ||
"mocha": "^8.1.1", | ||
"prettier": "^2.0.5", | ||
"pretty-quick": "^2.0.1", | ||
"rollup": "^2.26.4", | ||
"mocha": "^8.1.3", | ||
"prettier": "^2.1.1", | ||
"pretty-quick": "^3.0.0", | ||
"rollup": "^2.26.10", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"sinon": "^9.0.3", | ||
"sinon-chai": "^3.5.0", | ||
"ts-loader": "^8.0.2", | ||
"tsconfig-holy-grail": "^11.0.20", | ||
"ts-loader": "^8.0.3", | ||
"tsconfig-holy-grail": "^11.0.21", | ||
"tslint": "^6.1.3", | ||
"tslint-config-holy-grail": "^52.0.8", | ||
"typescript": "^3.9.7", | ||
"tslint-config-holy-grail": "^52.0.11", | ||
"typescript": "^4.0.2", | ||
"webpack": "^4.44.1" | ||
@@ -94,3 +94,3 @@ }, | ||
"types": "build/es2019/module.d.ts", | ||
"version": "2.0.19" | ||
"version": "3.0.0" | ||
} |
@@ -43,3 +43,9 @@ import { createExtendedExponentialRampToValueAutomationEvent } from '../functions/create-extended-exponential-ramp-to-value-automation-event'; | ||
if (isCancelAndHoldAutomationEvent(automationEvent) || isCancelScheduledValuesAutomationEvent(automationEvent)) { | ||
const index = this._automationEvents.findIndex((currentAutomationEvent) => getEventTime(currentAutomationEvent) >= eventTime); | ||
const index = this._automationEvents.findIndex((currentAutomationEvent) => { | ||
if (isCancelScheduledValuesAutomationEvent(automationEvent) && isSetValueCurveAutomationEvent(currentAutomationEvent)) { | ||
return currentAutomationEvent.startTime + currentAutomationEvent.duration >= eventTime; | ||
} | ||
return getEventTime(currentAutomationEvent) >= eventTime; | ||
}); | ||
const removedAutomationEvent = this._automationEvents[index]; | ||
@@ -46,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
161162
2044