Skip to content

Commit 590a43c

Browse files
committed
new build
1 parent e429c14 commit 590a43c

File tree

8 files changed

+28
-20
lines changed

8 files changed

+28
-20
lines changed

demos/browser/js/pptxgen.bundle.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/browser/js/pptxgen.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pptxgen.bundle.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pptxgen.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pptxgen.cjs.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* PptxGenJS 4.0.1-beta.2 @ 2025-05-30T14:06:24.424Z */
1+
/* PptxGenJS 4.0.1-beta.2 @ 2025-06-25T22:28:07.025Z */
22
'use strict';
33

44
var JSZip = require('jszip');
@@ -1868,8 +1868,12 @@ function addChartDefinition(target, type, data, opt) {
18681868
options.dataBorder = options.dataBorder && typeof options.dataBorder === 'object' ? options.dataBorder : null;
18691869
if (options.dataBorder && (!options.dataBorder.pt || isNaN(options.dataBorder.pt)))
18701870
options.dataBorder.pt = 0.75;
1871-
if (options.dataBorder && (!options.dataBorder.color || typeof options.dataBorder.color !== 'string' || options.dataBorder.color.length !== 6)) {
1872-
options.dataBorder.color = 'F9F9F9';
1871+
if (options.dataBorder && options.dataBorder.color) {
1872+
const isHexColor = typeof options.dataBorder.color === 'string' && options.dataBorder.color.length === 6 && /^[0-9A-Fa-f]{6}$/.test(options.dataBorder.color);
1873+
const isSchemeColor = Object.values(SCHEME_COLOR_NAMES).includes(options.dataBorder.color);
1874+
if (!isHexColor && !isSchemeColor) {
1875+
options.dataBorder.color = 'F9F9F9'; // Fallback if neither hex nor scheme color
1876+
}
18731877
}
18741878
//
18751879
if (!options.dataLabelFormatCode && options._type === CHART_TYPE.SCATTER)
@@ -6785,7 +6789,7 @@ function makeXmlViewProps() {
67856789
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67866790
* SOFTWARE.
67876791
*/
6788-
const VERSION = '4.0.1-beta.2';
6792+
const VERSION = '4.0.1';
67896793
class PptxGenJS {
67906794
set layout(value) {
67916795
const newLayout = this.LAYOUTS[value];

dist/pptxgen.es.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* PptxGenJS 4.0.1-beta.2 @ 2025-05-30T14:06:24.426Z */
1+
/* PptxGenJS 4.0.1-beta.2 @ 2025-06-25T22:28:07.027Z */
22
import JSZip from 'jszip';
33

44
/******************************************************************************
@@ -1866,8 +1866,12 @@ function addChartDefinition(target, type, data, opt) {
18661866
options.dataBorder = options.dataBorder && typeof options.dataBorder === 'object' ? options.dataBorder : null;
18671867
if (options.dataBorder && (!options.dataBorder.pt || isNaN(options.dataBorder.pt)))
18681868
options.dataBorder.pt = 0.75;
1869-
if (options.dataBorder && (!options.dataBorder.color || typeof options.dataBorder.color !== 'string' || options.dataBorder.color.length !== 6)) {
1870-
options.dataBorder.color = 'F9F9F9';
1869+
if (options.dataBorder && options.dataBorder.color) {
1870+
const isHexColor = typeof options.dataBorder.color === 'string' && options.dataBorder.color.length === 6 && /^[0-9A-Fa-f]{6}$/.test(options.dataBorder.color);
1871+
const isSchemeColor = Object.values(SCHEME_COLOR_NAMES).includes(options.dataBorder.color);
1872+
if (!isHexColor && !isSchemeColor) {
1873+
options.dataBorder.color = 'F9F9F9'; // Fallback if neither hex nor scheme color
1874+
}
18711875
}
18721876
//
18731877
if (!options.dataLabelFormatCode && options._type === CHART_TYPE.SCATTER)
@@ -6783,7 +6787,7 @@ function makeXmlViewProps() {
67836787
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67846788
* SOFTWARE.
67856789
*/
6786-
const VERSION = '4.0.1-beta.2';
6790+
const VERSION = '4.0.1';
67876791
class PptxGenJS {
67886792
set layout(value) {
67896793
const newLayout = this.LAYOUTS[value];

dist/pptxgen.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pptxgen.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)