umd/fieldstack.js
/**
 * Generate LeafRange records for a given character list.
 */
Generate LeafRange records for a given character list.
Generate LeafRange records for a given character list .
function generateLeaves(characters, offset) {
  var leaves = [];
  var inlineStyles = characters.map(function (c) {
    return c.getStyle();
  }).toList();
  findRangesImmutable_1(inlineStyles, areEqual, returnTrue, function (start, end) {
    leaves.push(new LeafRange({
      start: start + offset,
      end: end + offset
    }));
  });
  return List$6(leaves);
}
function generateLeaves ( characters , offset ) { var leaves = [ ] ; var inlineStyles = characters . map ( function ( c ) { return c . getStyle ( ) ; } ) . toList ( ) ; findRangesImmutable_1 ( inlineStyles , areEqual , returnTrue , function ( start , end ) { leaves . push ( new LeafRange ( { start : start + offset , end : end + offset } ) ) ; } ) ; return List$6 ( leaves ) ; }
Generate LeafRange records for a given character list.
Generate LeafRange records for a given character list .