forked from VolodymyrBaydalka/docxjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started separation rendering from parsing, implemented columns
- Loading branch information
1 parent
ae65184
commit f160bf1
Showing
9 changed files
with
277 additions
and
76 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export const namespaces = { | ||
wordml: "http://schemas.openxmlformats.org/wordprocessingml/2006/main" | ||
} | ||
|
||
export interface Length { | ||
value: number; | ||
type: "px" | "pt" | "%" | ||
} | ||
|
||
export interface Font { | ||
name: string; | ||
family: string; | ||
} | ||
|
||
export interface Column { | ||
space: Length; | ||
width: Length; | ||
} | ||
|
||
export interface Columns { | ||
space: Length; | ||
numberOfColumns: number; | ||
separator: boolean; | ||
equalWidth: boolean; | ||
columns: Column[]; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Length, Columns } from "./common"; | ||
import { OpenXmlElement } from "./dom"; | ||
|
||
export interface PageSize { | ||
width: Length, | ||
height: Length, | ||
orientation: "landscape" | string | ||
} | ||
|
||
export interface PageMargins { | ||
top: Length; | ||
right: Length; | ||
bottom: Length; | ||
left: Length; | ||
header: Length; | ||
footer: Length; | ||
gutter: Length; | ||
} | ||
|
||
export interface SectionProperties { | ||
pageSize: PageSize, | ||
pageMargins: PageMargins, | ||
columns: Columns; | ||
} | ||
|
||
export interface WordDocument extends OpenXmlElement { | ||
section: SectionProperties; | ||
} |
Oops, something went wrong.