ReCreateJS/txtjs

View on GitHub

Showing 143 of 340 total issues

Function init has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function init() {
  const canvas = createHiDPICanvas(610, 610, 2);
  document.body.appendChild(canvas);
  const stage = new createjs.Stage(canvas);

Severity: Minor
Found in examples/CharacterText/multiline_align_smallcaps.ts - About 1 hr to fix

    Function ligatureSwap has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      protected ligatureSwap(char: Character, ligTarget: string) {
        let advanceBy = 0;
        const firstChar = ligTarget.charAt(0);
        const firstLigature = char._font.ligatures[firstChar];
        //1 char match
    Severity: Minor
    Found in src/TextContainer.ts - About 1 hr to fix

      Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export default function init() {
        const canvas = createHiDPICanvas(610, 610, 2);
        document.body.appendChild(canvas);
        const stage = new createjs.Stage(canvas);
      
      
      Severity: Minor
      Found in examples/CharacterText/multiline_line_height_smaller_breaks.ts - About 1 hr to fix

        Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export default function init() {
          const canvas = createHiDPICanvas(610, 610, 2);
          document.body.appendChild(canvas);
          const stage = new createjs.Stage(canvas);
        
        
        Severity: Minor
        Found in examples/CharacterText/wordwrap_natural_newline.ts - About 1 hr to fix

          Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export default function init() {
            const canvas = createHiDPICanvas(610, 610, 2);
            document.body.appendChild(canvas);
            const stage = new createjs.Stage(canvas);
          
          
          Severity: Minor
          Found in examples/Text/single_word_center_align_tracking.ts - About 1 hr to fix

            Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export default function init() {
              const canvas = createHiDPICanvas(610, 610, 2);
              document.body.appendChild(canvas);
              const stage = new createjs.Stage(canvas);
            
            
            Severity: Minor
            Found in examples/Text/multiline_line_height_smaller.ts - About 1 hr to fix

              Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export default function init() {
                const canvas = createHiDPICanvas(610, 610, 2);
                document.body.appendChild(canvas);
                const stage = new createjs.Stage(canvas);
              
              
              Severity: Minor
              Found in examples/CharacterText/single_word_center_align_tracking.ts - About 1 hr to fix

                Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export default function init() {
                  const canvas = createHiDPICanvas(610, 610, 2);
                  document.body.appendChild(canvas);
                  const stage = new createjs.Stage(canvas);
                
                
                Severity: Minor
                Found in examples/Text/multiline_line_height_larger.ts - About 1 hr to fix

                  Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export default function init() {
                    const canvas = createHiDPICanvas(210, 550, 2);
                    document.body.appendChild(canvas);
                    const stage = new createjs.Stage(canvas);
                    stage.scaleX = stage.scaleY = 4;
                  Severity: Minor
                  Found in examples/CharacterText/autosize_reduce_layout.ts - About 1 hr to fix

                    Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export default function init() {
                      const canvas = createHiDPICanvas(610, 610, 2);
                      document.body.appendChild(canvas);
                      const stage = new createjs.Stage(canvas);
                    
                    
                    Severity: Minor
                    Found in examples/Text/wordwrap_natural_newline.ts - About 1 hr to fix

                      Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export default function init() {
                        const canvas = createHiDPICanvas(610, 610, 2);
                        document.body.appendChild(canvas);
                        const stage = new createjs.Stage(canvas);
                      
                      
                      Severity: Minor
                      Found in examples/CharacterText/multiline_line_height_larger.ts - About 1 hr to fix

                        Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export default function init() {
                          const canvas = createHiDPICanvas(610, 610, 2);
                          document.body.appendChild(canvas);
                          const stage = new createjs.Stage(canvas);
                        
                        
                        Severity: Minor
                        Found in examples/CharacterText/multiline_line_height_smaller.ts - About 1 hr to fix

                          Function layout has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            layout() {
                              this.addAccessibility();
                              this.text = this.text.replace(/([\n][ \t]+)/g, "\n");
                              this.words = [];
                              this.lines = [];
                          Severity: Minor
                          Found in src/Text.ts - About 1 hr to fix

                            Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              static init(target, svgpath: string) {
                                const ca = parsePathData(svgpath);
                                const G = createjs.Graphics;
                            
                                for (let n = 0; n < ca.length; n++) {
                            Severity: Minor
                            Found in src/Graphics.ts - About 1 hr to fix

                              Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              export default function init() {
                                const canvas = createHiDPICanvas(610, 610, 2);
                                document.body.appendChild(canvas);
                                const stage = new createjs.Stage(canvas);
                              
                              
                              Severity: Minor
                              Found in examples/Text/multiline_line_height_smaller_breaks.ts - About 1 hr to fix

                                Function init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                export default function init() {
                                  const canvas = createHiDPICanvas(820, 900, 1);
                                  document.body.appendChild(canvas);
                                  const stage = new createjs.Stage(canvas);
                                
                                
                                Severity: Minor
                                Found in examples/CharacterText/autosize_reduce_expand.ts - About 1 hr to fix

                                  Function init has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export default function init() {
                                    const canvas = createHiDPICanvas(610, 610, 2);
                                    document.body.appendChild(canvas);
                                    const stage = new createjs.Stage(canvas);
                                  
                                  
                                  Severity: Minor
                                  Found in examples/Text/multiline_align_breaks.ts - About 1 hr to fix

                                    Function init has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export default function init() {
                                      const canvas = createHiDPICanvas(480, 480, 2);
                                      document.body.appendChild(canvas);
                                      const stage = new createjs.Stage(canvas);
                                    
                                    
                                    Severity: Minor
                                    Found in examples/CharacterText/single_word_oneline.ts - About 1 hr to fix

                                      Function init has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      export default function init() {
                                        const canvas = createHiDPICanvas(610, 610, 2);
                                        document.body.appendChild(canvas);
                                        const stage = new createjs.Stage(canvas);
                                      
                                      
                                      Severity: Minor
                                      Found in examples/CharacterText/multiline_align_breaks.ts - About 1 hr to fix

                                        Function init has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        export default function init() {
                                          const canvas = createHiDPICanvas(610, 610, 2);
                                          document.body.appendChild(canvas);
                                          const stage = new createjs.Stage(canvas);
                                        
                                        
                                        Severity: Minor
                                        Found in examples/CharacterText/multiline_align.ts - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language