timeline-state-resolver
Version:
Have timeline, control stuff
18 lines • 663 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZoomDirectCommand = void 0;
const abstractCommand_1 = require("../abstractCommand");
class ZoomDirectCommand extends abstractCommand_1.ViscaCommand {
constructor(position) {
super();
this.position = position;
}
serialize() {
const buffer = Buffer.alloc(4);
const positionPadded = this.toIntWithZeroes(this.position);
buffer.writeUInt32BE(positionPadded);
return Buffer.from([0x81, 0x01, 0x04, 0x47, ...buffer, 0xff]);
}
}
exports.ZoomDirectCommand = ZoomDirectCommand;
//# sourceMappingURL=zoomDirectCommand.js.map