-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split API and serialization logic (#62)
BREAKING CHANGE: `addHeading`, `addList` and `addParagraph` are no longer available on `TextDocument` but are added to the `TextBody` which can be retrieved from the document (`getBody`). The code was largely restructured: The domain model classes (except for the style stuff) were moved to `/api` and the DOM generation is placed in `/xml`. The styles will get some extra love as soon as common styles will be implemented and thus are excluded for now. All tests are placed next to their corresponding classes. Except for the styles, the public API now is fluent and its documentation follows the same pattern and includes examples. Fixes: #60
- Loading branch information
Showing
71 changed files
with
3,218 additions
and
2,304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ coverage/ | |
examples/ | ||
lib/ | ||
node_modules/ | ||
test/example | ||
example.spec.ts | ||
|
||
TODO.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.