src/module.js
/**
     * makeStraightPaths makes top and bottom paths from the verical edges of the region bounds
     */
makeStraightPaths makes top and bottom paths from the verical edges of the region bounds
makeStraightPaths makes top and bottom paths from the verical edges of the region bounds
function makeStraightPaths() {
      let toparc = createSVGElement('path');
      let bottomarc = createSVGElement('path');
      toparc.setAttribute('d', 'M' + (region.bounds.x) + ',' + (region.bounds.y) + ' L' + (region.bounds.x + region.bounds.width) + ',' + (region.bounds.y));
      bottomarc.setAttribute('d', 'M' + (region.bounds.x) + ',' + (region.bounds.y + region.bounds.height) + ' L' + (region.bounds.x + region.bounds.width) + ',' + (region.bounds.y + region.bounds.height));
      region.topPath = toparc;
      region.bottomPath = bottomarc;
    }
function makeStraightPaths ( ) { let toparc = createSVGElement ( 'path' ) ; let bottomarc = createSVGElement ( 'path' ) ; toparc . setAttribute ( 'd' , 'M' + ( region . bounds . x ) + ',' + ( region . bounds . y ) + ' L' + ( region . bounds . x + region . bounds . width ) + ',' + ( region . bounds . y ) ) ; bottomarc . setAttribute ( 'd' , 'M' + ( region . bounds . x ) + ',' + ( region . bounds . y + region . bounds . height ) + ' L' + ( region . bounds . x + region . bounds . width ) + ',' + ( region . bounds . y + region . bounds . height ) ) ; region . topPath = toparc ; region . bottomPath = bottomarc ; }
makeStraightPaths makes top and bottom paths from the verical edges of the region bounds
makeStraightPaths makes top and bottom paths from the verical edges of the region bounds