parent
c8605adc60
commit
c857def7ef
|
@ -19,17 +19,22 @@ export type NumberingPropertyJSON = {
|
|||
|
||||
export type ParagraphPropertyJSON = {
|
||||
runProperty: RunPropertyJSON;
|
||||
style: string | null;
|
||||
numberingProperty: NumberingPropertyJSON | null;
|
||||
alignment: "left" | "center" | "right" | "justified" | "both";
|
||||
indent: IndentJSON | null;
|
||||
lineSpacing: LineSpacingJSON | null;
|
||||
divId: string | null;
|
||||
keepNext: boolean;
|
||||
keepLines: boolean;
|
||||
pageBreakBefore: boolean;
|
||||
windowControl: boolean;
|
||||
outlineLvl: number | null;
|
||||
style?: string | null;
|
||||
numberingProperty?: NumberingPropertyJSON | null;
|
||||
alignment?: "left" | "center" | "right" | "justified" | "both";
|
||||
indent?: IndentJSON | null;
|
||||
lineSpacing?: LineSpacingJSON | null;
|
||||
divId?: string | null;
|
||||
keepNext?: boolean;
|
||||
keepLines?: boolean;
|
||||
pageBreakBefore?: boolean;
|
||||
windowControl?: boolean;
|
||||
outlineLvl?: number | null;
|
||||
paragraphPropertyChange?: {
|
||||
author: string;
|
||||
date: string;
|
||||
property: ParagraphPropertyJSON;
|
||||
};
|
||||
};
|
||||
|
||||
export type ParagraphJSON = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.221",
|
||||
"version": "0.0.222",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -98,6 +98,14 @@ describe("reader", () => {
|
|||
const json = w.readDocx(buffer);
|
||||
expect(json).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test("should read paragraph property change docx", () => {
|
||||
const buffer = readFileSync(
|
||||
"../fixtures/paragraph_property_change/paragraph_property_change.docx"
|
||||
);
|
||||
const json = w.readDocx(buffer);
|
||||
expect(json).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
describe("writer", () => {
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue