@trebco/treb 29.5.1 → 29.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -296,7 +296,7 @@ export class Exporter {
|
|
|
296
296
|
if (edge.rgba) {
|
|
297
297
|
return { rgb: edge.rgba };
|
|
298
298
|
}
|
|
299
|
-
if (edge.theme) {
|
|
299
|
+
if (typeof edge.theme !== 'undefined') {
|
|
300
300
|
return {
|
|
301
301
|
theme: edge.theme,
|
|
302
302
|
tint: edge.tint,
|
|
@@ -393,6 +393,8 @@ export class Exporter {
|
|
|
393
393
|
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
+
// console.info({style_cache});
|
|
397
|
+
|
|
396
398
|
const fonts: DOMContent[] = style_cache.fonts.map(font => {
|
|
397
399
|
|
|
398
400
|
return {
|
|
@@ -413,7 +415,7 @@ export class Exporter {
|
|
|
413
415
|
|
|
414
416
|
color: font.color_argb ? {
|
|
415
417
|
a$: { rgb: font.color_argb },
|
|
416
|
-
} : font.color_theme ? {
|
|
418
|
+
} : (typeof font.color_theme !== 'undefined') ? {
|
|
417
419
|
a$: {
|
|
418
420
|
theme: font.color_theme,
|
|
419
421
|
tint: font.color_tint,
|
|
@@ -501,6 +503,8 @@ export class Exporter {
|
|
|
501
503
|
};
|
|
502
504
|
|
|
503
505
|
const xml = XMLDeclaration + this.xmlbuilder1.build(dom);
|
|
506
|
+
// console.info(xml);
|
|
507
|
+
|
|
504
508
|
this.zip?.Set('xl/styles.xml', xml);
|
|
505
509
|
|
|
506
510
|
}
|
|
@@ -274,6 +274,10 @@ export class StyleCache {
|
|
|
274
274
|
symbolic_name: composite.number_format, // for reference later
|
|
275
275
|
};
|
|
276
276
|
|
|
277
|
+
if (/Scientific/i.test(composite.number_format)) {
|
|
278
|
+
options.number_format.format = '0.00E+00'
|
|
279
|
+
}
|
|
280
|
+
|
|
277
281
|
}
|
|
278
282
|
|
|
279
283
|
|
|
@@ -305,6 +309,7 @@ export class StyleCache {
|
|
|
305
309
|
//}
|
|
306
310
|
|
|
307
311
|
if (composite.text) {
|
|
312
|
+
|
|
308
313
|
if (IsHTMLColor(composite.text)) {
|
|
309
314
|
font.color_argb = composite.text.text;
|
|
310
315
|
}
|