Default gray125 style per pull request #3

This commit is contained in:
Pieter Sheth-Voss 2015-06-04 12:05:26 -04:00
parent ed0cd9b2c1
commit 4099a24cfa
3 changed files with 7 additions and 4 deletions

View File

@ -100,14 +100,14 @@
if (!defaultStyle.font) defaultStyle.font = {name: 'Calibri', sz: '12'};
if (!defaultStyle.font.name) defaultStyle.font.name = 'Calibri';
if (!defaultStyle.font.sz) defaultStyle.font.sz = 11;
if (!defaultStyle.fill) defaultStyle.fill = { fgColor: { patternType: "none"}};
if (!defaultStyle.fill) defaultStyle.fill = { patternType: "none", fgColor: {}};
if (!defaultStyle.border) defaultStyle.border = {};
if (!defaultStyle.numFmt) defaultStyle.numFmt = 0;
this.defaultStyle = defaultStyle;
var gray125Style = JSON.parse(JSON.stringify(defaultStyle));
gray125Style.fill = { fgColor: { patternType: "gray125"}}
gray125Style.fill = {patternType: "gray125", fgColor: { }}
this.addStyles([defaultStyle, gray125Style]);
return this;

3
example2.js Normal file
View File

@ -0,0 +1,3 @@
/**
* Created by pieter on 5/26/15.
*/

View File

@ -12106,14 +12106,14 @@ var XmlNode = (function () {
if (!defaultStyle.font) defaultStyle.font = {name: 'Calibri', sz: '12'};
if (!defaultStyle.font.name) defaultStyle.font.name = 'Calibri';
if (!defaultStyle.font.sz) defaultStyle.font.sz = 11;
if (!defaultStyle.fill) defaultStyle.fill = { fgColor: { patternType: "none"}};
if (!defaultStyle.fill) defaultStyle.fill = { patternType: "none", fgColor: {}};
if (!defaultStyle.border) defaultStyle.border = {};
if (!defaultStyle.numFmt) defaultStyle.numFmt = 0;
this.defaultStyle = defaultStyle;
var gray125Style = JSON.parse(JSON.stringify(defaultStyle));
gray125Style.fill = { fgColor: { patternType: "gray125"}}
gray125Style.fill = {patternType: "gray125", fgColor: { }}
this.addStyles([defaultStyle, gray125Style]);
return this;