Skip to content

Instantly share code, notes, and snippets.

@dongsik-yoo
Created February 13, 2019 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dongsik-yoo/0899e6eac31f2545b7c65eb0df697f92 to your computer and use it in GitHub Desktop.
Save dongsik-yoo/0899e6eac31f2545b7c65eb0df697f92 to your computer and use it in GitHub Desktop.
/**
* Layout a page and return next page number
* @param {number} pageNumber - page number
* @returns {Promise} promise
*/
_layoutPage(pageNumber = 1) {
....
let allExceedParagraphs, nextPageBodyElement;
if (exceedParagraph) {
this._splitParagraph(exceedParagraph, pageBodyBottom);
allExceedParagraphs = this._getExceedAllParagraphs(pageBodyElement, pageBodyBottom);
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment