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 connection = actionAPI.getConnection('viscaOverIpCamera', properties.connectionID);
        if (connection) {
            if (connection.instance != undefined) {
                var speed = connection.instance.internal != undefined && connection.instance.internal.pantiltSpeed != undefined
                    ? connection.instance.internal.pantiltSpeed
                    : 10;
                var command = visca_over_ip_1.ViscaCommand.cameraPanTilt(1 * speed, 0);
                (0, simpleCommandHandler_1.simpleCommandHandle)(actionAPI, command, properties, status);
            }
        }
    });
    actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
};
//# sourceMappingURL=panRight.js.map