src/modules/Rotate/Module.js
Function Rotate
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function Rotate(options, UI) {
let output;
function draw(input, callback, progressObj) {
- Create a ticketCreate a ticket
Function draw
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function draw(input, callback, progressObj) {
const defaults = require('./../../util/getDefaults.js')(require('./info.json'));
options.rotate = options.rotate || defaults.rotate;
- Create a ticketCreate a ticket
Function extraManipulation
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extraManipulation(pixels) {
const rotate_value = (options.rotate) % 360;
radians = (Math.PI) * rotate_value / 180,
width = pixels.shape[0],
height = pixels.shape[1],
- Create a ticketCreate a ticket