Skip to content

Commit eb4f2bb

Browse files
committed
0.3.0 - Re-organized project into sub-folders. Minor tweaks to TypeScript types, variable names, and documentation.
1 parent da98cef commit eb4f2bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+453
-455
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
44

55

66
--------
7-
### [0.2.1](N/A) - 2017-06-29
7+
### [0.3.0](N/A) - 2017-10-26
8+
#### Changed
9+
* Re-organized the project into sub-folders: `drawings`, `export`, `util`, `workbook`, `worksheet`, and `xml`
10+
* Tweaked some variable names and comments/documentation
11+
* Improved some TypeScript types
12+
* Updated README with note about eventual desire to merge/deprecate project in favor of xlsx-spec-models and xlsx-spec-utils libraries
13+
* Upgraded to TypeScript 2.4
14+
15+
16+
--------
17+
### [0.2.1](https://github.com/TeamworkGuy2/excel-builder-ts/commit/da98cefcb04335ecd7387510aceae8b397bb9082) - 2017-06-29
818
#### Changed
919
* Fixed some StyleSheet type issues
1020

ExcelBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
/// <reference path="../definitions/jszip/jszip.d.ts" />
3-
var Workbook = require("./Workbook");
3+
var Workbook = require("./workbook/Workbook");
44
/**
55
* @name Excel
66
* @public

ExcelBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference path="../definitions/jszip/jszip.d.ts" />
22

3-
import Workbook = require("./Workbook");
3+
import Workbook = require("./workbook/Workbook");
44

55
/**
66
* @name Excel

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ TypeScript Excel-Builder
22
==============
33

44
TypeScript port of the [excel-builder.js](https://github.com/stephenliberty/excel-builder.js) Library - 'A way to build excel files with javascript'.
5+
6+
The project has been re-organized into sub-folders since it was ported. Some documentation and minor field and variable tweaks have been made to work better with TypeScript.
7+
8+
The eventual goal is for [xlsx-spec-models](https://github.com/TeamworkGuy2/xlsx-spec-models) and [xlsx-spec-utils](https://github.com/TeamworkGuy2/xlsx-spec-utils) to replace this project.

Util.js

Lines changed: 0 additions & 130 deletions
This file was deleted.

drawings/AbsoluteAnchor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
var Util = require("../Util");
2+
var Util = require("../util/Util");
33
var AbsoluteAnchor = (function () {
44
/**
55
* @param config

drawings/AbsoluteAnchor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Util = require("../Util");
2-
import XmlDom = require("../XmlDom");
1+
import Util = require("../util/Util");
2+
import XmlDom = require("../xml/XmlDom");
33

44
class AbsoluteAnchor {
55
x: number;

drawings/Drawing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
var Util = require("../Util");
2+
var Util = require("../util/Util");
33
var AbsoluteAnchor = require("./AbsoluteAnchor");
44
var OneCellAnchor = require("./OneCellAnchor");
55
var TwoCellAnchor = require("./TwoCellAnchor");

drawings/Drawing.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Util = require("../Util");
2-
import XmlDom = require("../XmlDom");
3-
import Drawings = require("../Drawings");
1+
import Util = require("../util/Util");
2+
import XmlDom = require("../xml/XmlDom");
3+
import Drawings = require("./Drawings");
44
import AbsoluteAnchor = require("./AbsoluteAnchor");
55
import OneCellAnchor = require("./OneCellAnchor");
66
import TwoCellAnchor = require("./TwoCellAnchor");
@@ -49,9 +49,9 @@ abstract class Drawing implements Drawings.Drawing {
4949

5050
public abstract toXML(xmlDoc: XmlDom): XmlDom.NodeBase;
5151

52-
public abstract getMediaData(): { id: string; schema?: string; };
52+
public abstract getMediaData(): { id: string; schema?: Util.SchemaName; };
5353

54-
public abstract getMediaType(): string;
54+
public abstract getMediaType(): Util.SchemaName;
5555

5656
}
5757

Drawings.js renamed to drawings/Drawings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
2-
var Util = require("./Util");
3-
var RelationshipManager = require("./RelationshipManager");
2+
var Util = require("../util/Util");
3+
var RelationshipManager = require("../worksheet/RelationshipManager");
44
/**
55
* @module Excel/Drawings
66
*/

0 commit comments

Comments
 (0)