addon/utils/clock.js
Function setBounds
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setBounds(minX, minY, width, height) {
// hide box until calculations have been made
// safari fix
this.svg.__el.style.display = "none";
this.svg.snap.attr({ viewBox: `${minX} ${minY} ${width} ${height}` });
Function handleDrag
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleDrag(num, cb) {
const faceAttrs = getAttrs(this.svg.face, ['cx', 'cy']);
const angle = getSliceDegree(this.points.length, num);
const { plot, arm, text } = this.svg.at(num);
Function createMetaFor
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function createMetaFor(component, key, start, end, min, max, rounder, selectRounder) {