Files
2023-08-29 20:06:52 +02:00

20 lines
881 B
JavaScript

Object.defineProperty(exports, "__esModule", { value: true });
var visca_over_ip_1 = require("visca-over-ip");
var simpleCommandHandler_1 = require("../simpleCommandHandler");
module.exports = function (actionAPI) {
actionAPI.handle(function (properties, status) {
var command = visca_over_ip_1.ViscaCommand.cameraPresetReset(properties.number);
(0, simpleCommandHandler_1.simpleCommandHandle)(actionAPI, command, properties, status);
});
actionAPI.onOpenEditor(function (EditorAPI, properties) {
return (0, simpleCommandHandler_1.simpleCommandEditor)(EditorAPI, properties, [
{
id: 'number',
name: 'Preset Index',
type: 'number',
value: properties.number != undefined ? properties.number : 1
}
]);
});
};
//# sourceMappingURL=presetReset.js.map