Skip to content

Commit

Permalink
new build (sections)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbrent committed Feb 13, 2020
1 parent c64ea93 commit 15cfc4c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 18 deletions.
4 changes: 2 additions & 2 deletions dist/pptxgen.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pptxgen.bundle.js.map

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions dist/pptxgen.cjs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PptxGenJS 3.2.0-beta @ 2020-02-12T05:12:00.799Z */
/* PptxGenJS 3.2.0-beta @ 2020-02-13T05:17:34.687Z */
'use strict';

var JSZip = require('jszip');
Expand Down Expand Up @@ -5858,7 +5858,7 @@ function createSvgPngPreview(rel) {
|*| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|*| SOFTWARE.
\*/
var VERSION = '3.2.0-beta-20200211';
var VERSION = '3.2.0-beta-20200212';
var PptxGenJS = /** @class */ (function () {
function PptxGenJS() {
var _this = this;
Expand Down Expand Up @@ -5890,10 +5890,14 @@ var PptxGenJS = /** @class */ (function () {
* @param {string} masterName - slide master name
* @return {ISlide} new Slide
*/
this.addNewSlide = function (masterName) { return _this.addSlide({ masterName: masterName }); };
// TODO: ^^^ if the current slide (latest index) has section, re-use in create above!
// TODO: Support SECTIONS when auto-paging
// console.log(target.se)
this.addNewSlide = function (masterName) {
// Continue using sections if the first slide using auto-paging has a Section
var sectAlreadyInUse = _this.sections[_this.sections.length - 1].slides.filter(function (slide) { return slide.number === _this.slides[_this.slides.length - 1].number; }).length > 0;
return _this.addSlide({
masterName: masterName,
sectionTitle: sectAlreadyInUse ? _this.sections[_this.sections.length - 1].title : null,
});
};
/**
* Provides an API for `addTableDefinition` to get slide reference by number
* @param {number} slideNum - slide number
Expand Down
16 changes: 10 additions & 6 deletions dist/pptxgen.es.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PptxGenJS 3.2.0-beta @ 2020-02-12T05:12:00.802Z */
/* PptxGenJS 3.2.0-beta @ 2020-02-13T05:17:34.692Z */
import * as JSZip from 'jszip';

/**
Expand Down Expand Up @@ -5856,7 +5856,7 @@ function createSvgPngPreview(rel) {
|*| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|*| SOFTWARE.
\*/
var VERSION = '3.2.0-beta-20200211';
var VERSION = '3.2.0-beta-20200212';
var PptxGenJS = /** @class */ (function () {
function PptxGenJS() {
var _this = this;
Expand Down Expand Up @@ -5888,10 +5888,14 @@ var PptxGenJS = /** @class */ (function () {
* @param {string} masterName - slide master name
* @return {ISlide} new Slide
*/
this.addNewSlide = function (masterName) { return _this.addSlide({ masterName: masterName }); };
// TODO: ^^^ if the current slide (latest index) has section, re-use in create above!
// TODO: Support SECTIONS when auto-paging
// console.log(target.se)
this.addNewSlide = function (masterName) {
// Continue using sections if the first slide using auto-paging has a Section
var sectAlreadyInUse = _this.sections[_this.sections.length - 1].slides.filter(function (slide) { return slide.number === _this.slides[_this.slides.length - 1].number; }).length > 0;
return _this.addSlide({
masterName: masterName,
sectionTitle: sectAlreadyInUse ? _this.sections[_this.sections.length - 1].title : null,
});
};
/**
* Provides an API for `addTableDefinition` to get slide reference by number
* @param {number} slideNum - slide number
Expand Down
4 changes: 2 additions & 2 deletions dist/pptxgen.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pptxgen.min.js.map

Large diffs are not rendered by default.

0 comments on commit 15cfc4c

Please # to comment.