Skip to content

Commit

Permalink
Updated for v3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbrent committed Dec 12, 2021
1 parent e802dc5 commit 47d7854
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Notes]

## [3.9.0] - 2021-12-??
## [3.9.0] - 2021-12-11

### Added

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ Visit the demos page to create a simple presentation to see how easy it is to us
Bundle: Modern Browsers and IE11

```html
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.8.0/dist/pptxgen.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.9.0/dist/pptxgen.bundle.js"></script>
```

Min files: Modern Browsers

```html
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.8.0/libs/jszip.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.8.0/dist/pptxgen.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.9.0/libs/jszip.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.9.0/dist/pptxgen.min.js"></script>
```

## Download
Expand Down
9 changes: 6 additions & 3 deletions demos/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="author" content="https://github.com/gitbrent">
<meta name="website" content="https://github.com/gitbrent/PptxGenJS/">
<meta name="version" content="3.9.0">
<meta name="updated" content="2021-09-28">
<meta name="updated" content="2021-12-12">
<link rel="icon" href="images/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="images/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="icon" href="images/favicon.png">
Expand All @@ -27,9 +27,9 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous"></script>

<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@latest/dist/pptxgen.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@latest/demos/modules/demos.mjs" type="module"></script>
<!-- RELEASE (CDN)
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@latest/dist/pptxgen.bundle.js"></script>
<script src="https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@latest/demos/common/demos.js" type="module"></script>
-->
<!--
TODO: [only used during `-beta` dev cycles; update to below on release]
Expand All @@ -39,9 +39,12 @@
<!-- LOCAL TESTING:
<script src="../../libs/jszip.min.js"></script>
<script src="../../dist/pptxgen.min.js"></script>
<script src="../modules/demos.mjs" type="module"></script>
-->
<!-- LOCAL TESTING: bundle
<script src="./js/pptxgen.bundle.js"></script>
<script src="../modules/demos.mjs" type="module"></script>
-->

<script type="module">
import { buildDataTable, doAppStart, execGenSlidesFunc, runAllDemos, table2slides1, table2slides2, table2slidesDemoForTab } from './js/browser.js';
Expand Down
4 changes: 2 additions & 2 deletions demos/browser/js/pptxgen.bundle.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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.

7 changes: 3 additions & 4 deletions dist/pptxgen.cjs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PptxGenJS 3.9.0-beta @ 2021-12-04T19:46:04.288Z */
/* PptxGenJS 3.9.0 @ 2021-12-11T18:00:42.636Z */
'use strict';

var JSZip = require('jszip');
Expand Down Expand Up @@ -6469,7 +6469,7 @@ function createSvgPngPreview(rel) {
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var VERSION = '3.9.0-beta-20211204-1340';
var VERSION = '3.9.0';
var PptxGenJS = /** @class */ (function () {
function PptxGenJS() {
var _this = this;
Expand Down Expand Up @@ -6655,8 +6655,7 @@ var PptxGenJS = /** @class */ (function () {
return Promise.all(arrChartPromises).then(function () {
if (props.outputType === 'STREAM') {
// A: stream file
//return zip.generateAsync({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE' }) // TODO: below is okay?
return zip.generateNodeStream({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE', streamFiles: true });
return zip.generateAsync({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE' });
}
else if (props.outputType) {
// B: Node [fs]: Output type user option or default
Expand Down
7 changes: 3 additions & 4 deletions dist/pptxgen.es.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PptxGenJS 3.9.0-beta @ 2021-12-04T19:46:04.303Z */
/* PptxGenJS 3.9.0 @ 2021-12-11T18:00:42.643Z */
import JSZip from 'jszip';

/*! *****************************************************************************
Expand Down Expand Up @@ -6463,7 +6463,7 @@ function createSvgPngPreview(rel) {
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var VERSION = '3.9.0-beta-20211204-1340';
var VERSION = '3.9.0';
var PptxGenJS = /** @class */ (function () {
function PptxGenJS() {
var _this = this;
Expand Down Expand Up @@ -6649,8 +6649,7 @@ var PptxGenJS = /** @class */ (function () {
return Promise.all(arrChartPromises).then(function () {
if (props.outputType === 'STREAM') {
// A: stream file
//return zip.generateAsync({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE' }) // TODO: below is okay?
return zip.generateNodeStream({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE', streamFiles: true });
return zip.generateAsync({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE' });
}
else if (props.outputType) {
// B: Node [fs]: Output type user option or default
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.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pptxgenjs",
"version": "3.9.0-beta",
"version": "3.9.0",
"author": {
"name": "Brent Ely",
"url": "https://github.com/gitbrent/"
Expand Down Expand Up @@ -59,6 +59,7 @@
"url": "git+https://github.com/gitbrent/PptxGenJS.git"
},
"keywords": [
"html-to-powerpoint",
"javascript-create-powerpoint",
"javascript-create-pptx",
"javascript-generate-pptx",
Expand Down
5 changes: 2 additions & 3 deletions src/pptxgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import * as genMedia from './gen-media'
import * as genTable from './gen-tables'
import * as genXml from './gen-xml'

const VERSION = '3.9.0-beta-20211204-1340'
const VERSION = '3.9.0'

export default class PptxGenJS implements IPresentationProps {
// Property getters/setters
Expand Down Expand Up @@ -521,8 +521,7 @@ export default class PptxGenJS implements IPresentationProps {
return Promise.all(arrChartPromises).then(() => {
if (props.outputType === 'STREAM') {
// A: stream file
//return zip.generateAsync({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE' }) // TODO: below is okay?
return zip.generateNodeStream({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE', streamFiles: true })
return zip.generateAsync({ type: 'nodebuffer', compression: props.compression ? 'DEFLATE' : 'STORE' })
} else if (props.outputType) {
// B: Node [fs]: Output type user option or default
return zip.generateAsync({ type: props.outputType })
Expand Down

0 comments on commit 47d7854

Please # to comment.