lib/multi-wrap-guide-view.js
// Mouse up event handler, drops guide at selected column.
Mouse up event handler, drops guide at selected column.
Mouse up event handler drops guide at selected column .
mouseUpGuide (guide, event) {
    this.dragEndGuide(guide)
    const parentClassList = guide.parentElement.classList
    const direction = parentClassList.contains('horizontal') ? 'horizontal' : 'vertical'
    const query = `div.${direction} div.multi-wrap-guide-tip`
    const positions = []
    for (const tip of this.element.querySelectorAll(query)) {
      positions.push(parseInt(tip.textContent))
    }
    if (direction === 'horizontal') {
      this.setRows(positions)
    } else {
      this.setColumns(positions)
    }
    this.didChangeGuides()
    this.redraw()
  }
mouseUpGuide ( guide , event ) { this . dragEndGuide ( guide ) const parentClassList = guide . parentElement . classList const direction = parentClassList . contains ( 'horizontal' ) ? 'horizontal' : 'vertical' const query = ` ${ direction } ` const positions = [ ] for ( const tip of this . element . querySelectorAll ( query ) ) { positions . push ( parseInt ( tip . textContent ) ) } if ( direction === 'horizontal' ) { this . setRows ( positions ) } else { this . setColumns ( positions ) } this . didChangeGuides ( ) this . redraw ( ) }
Mouse up event handler, drops guide at selected column.
Mouse up event handler drops guide at selected column .