@vivliostyle/core 2.24.3 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/vivliostyle/adaptive-viewer.d.ts +167 -167
- package/lib/vivliostyle/asserts.d.ts +21 -21
- package/lib/vivliostyle/assets.d.ts +35 -35
- package/lib/vivliostyle/base.d.ts +189 -189
- package/lib/vivliostyle/break-position.d.ts +39 -39
- package/lib/vivliostyle/break.d.ts +112 -112
- package/lib/vivliostyle/cfi.d.ts +77 -77
- package/lib/vivliostyle/columns.d.ts +52 -52
- package/lib/vivliostyle/constants.d.ts +53 -53
- package/lib/vivliostyle/core-viewer.d.ts +240 -240
- package/lib/vivliostyle/counters.d.ts +127 -127
- package/lib/vivliostyle/css-cascade.d.ts +974 -954
- package/lib/vivliostyle/css-logical-util.d.ts +3 -3
- package/lib/vivliostyle/css-page.d.ts +451 -451
- package/lib/vivliostyle/css-parser.d.ts +320 -320
- package/lib/vivliostyle/css-prop.d.ts +74 -74
- package/lib/vivliostyle/css-styler.d.ts +210 -210
- package/lib/vivliostyle/css-tokenizer.d.ts +243 -243
- package/lib/vivliostyle/css-validator.d.ts +319 -319
- package/lib/vivliostyle/css.d.ts +205 -205
- package/lib/vivliostyle/diff.d.ts +26 -26
- package/lib/vivliostyle/display.d.ts +62 -57
- package/lib/vivliostyle/epub.d.ts +329 -329
- package/lib/vivliostyle/exprs.d.ts +395 -395
- package/lib/vivliostyle/font.d.ts +87 -87
- package/lib/vivliostyle/footnotes.d.ts +41 -41
- package/lib/vivliostyle/geometry-util.d.ts +110 -110
- package/lib/vivliostyle/layout-helper.d.ts +16 -15
- package/lib/vivliostyle/layout-processor.d.ts +73 -73
- package/lib/vivliostyle/layout-retryers.d.ts +21 -21
- package/lib/vivliostyle/layout-util.d.ts +55 -55
- package/lib/vivliostyle/layout.d.ts +456 -456
- package/lib/vivliostyle/logging.d.ts +56 -56
- package/lib/vivliostyle/matchers.d.ts +36 -36
- package/lib/vivliostyle/math-util.d.ts +22 -22
- package/lib/vivliostyle/net.d.ts +72 -72
- package/lib/vivliostyle/ops.d.ts +263 -263
- package/lib/vivliostyle/page-floats.d.ts +178 -178
- package/lib/vivliostyle/page-master.d.ts +247 -247
- package/lib/vivliostyle/plugin.d.ts +172 -172
- package/lib/vivliostyle/print.d.ts +7 -7
- package/lib/vivliostyle/profile.d.ts +59 -59
- package/lib/vivliostyle/pseudo-element.d.ts +32 -32
- package/lib/vivliostyle/repetitive-element.d.ts +162 -162
- package/lib/vivliostyle/scripts.d.ts +15 -15
- package/lib/vivliostyle/sha1.d.ts +33 -33
- package/lib/vivliostyle/shared.d.ts +24 -24
- package/lib/vivliostyle/sizing.d.ts +29 -29
- package/lib/vivliostyle/table.d.ts +263 -263
- package/lib/vivliostyle/task-util.d.ts +37 -37
- package/lib/vivliostyle/task.d.ts +357 -357
- package/lib/vivliostyle/text-polyfill.d.ts +3 -3
- package/lib/vivliostyle/toc.d.ts +64 -64
- package/lib/vivliostyle/types.d.ts +977 -977
- package/lib/vivliostyle/urls.d.ts +25 -25
- package/lib/vivliostyle/vgen.d.ts +213 -213
- package/lib/vivliostyle/viewer-app.d.ts +19 -19
- package/lib/vivliostyle/vtree.d.ts +392 -392
- package/lib/vivliostyle/xml-doc.d.ts +88 -88
- package/lib/vivliostyle.d.ts +6 -6
- package/lib/vivliostyle.js +1 -1
- package/lib/vivliostyle.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as Css from "./css";
|
|
2
|
-
export declare function preprocessForTextSpacing(element: Element): void;
|
|
3
|
-
export declare function processGeneratedContent(element: HTMLElement, textAutospace: Css.Val, textSpacingTrim: Css.Val, hangingPunctuation: Css.Val, lang: string, vertical: boolean): void;
|
|
1
|
+
import * as Css from "./css";
|
|
2
|
+
export declare function preprocessForTextSpacing(element: Element): void;
|
|
3
|
+
export declare function processGeneratedContent(element: HTMLElement, textAutospace: Css.Val, textSpacingTrim: Css.Val, hangingPunctuation: Css.Val, lang: string, vertical: boolean): void;
|
package/lib/vivliostyle/toc.d.ts
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2013 Google, Inc.
|
|
3
|
-
* Copyright 2015 Trim-marks Inc.
|
|
4
|
-
* Copyright 2019 Vivliostyle Foundation
|
|
5
|
-
*
|
|
6
|
-
* Vivliostyle.js is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU Affero General Public License as published by
|
|
8
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
-
* (at your option) any later version.
|
|
10
|
-
*
|
|
11
|
-
* Vivliostyle.js is distributed in the hope that it will be useful,
|
|
12
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
-
* GNU Affero General Public License for more details.
|
|
15
|
-
*
|
|
16
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
17
|
-
* along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
-
*
|
|
19
|
-
* @fileoverview Toc - Table of Contents view.
|
|
20
|
-
*/
|
|
21
|
-
import * as Base from "./base";
|
|
22
|
-
import * as Counters from "./counters";
|
|
23
|
-
import * as Exprs from "./exprs";
|
|
24
|
-
import * as Font from "./font";
|
|
25
|
-
import * as OPS from "./ops";
|
|
26
|
-
import * as Task from "./task";
|
|
27
|
-
import * as Vgen from "./vgen";
|
|
28
|
-
import * as Vtree from "./vtree";
|
|
29
|
-
import * as XmlDoc from "./xml-doc";
|
|
30
|
-
export declare const bulletClosed = "\u25B8";
|
|
31
|
-
export declare const bulletOpen = "\u25BE";
|
|
32
|
-
export declare const bulletEmpty = "\u25B9";
|
|
33
|
-
export type TOCItem = {
|
|
34
|
-
id: string;
|
|
35
|
-
title: string;
|
|
36
|
-
children: TOCItem[];
|
|
37
|
-
};
|
|
38
|
-
export declare class TOCView implements Vgen.CustomRendererFactory {
|
|
39
|
-
readonly store: OPS.OPSDocStore;
|
|
40
|
-
readonly url: string;
|
|
41
|
-
readonly lang: string | null;
|
|
42
|
-
readonly clientLayout: Vtree.ClientLayout;
|
|
43
|
-
readonly fontMapper: Font.Mapper;
|
|
44
|
-
readonly rendererFactory: Vgen.CustomRendererFactory;
|
|
45
|
-
readonly fallbackMap: {
|
|
46
|
-
[key: string]: string;
|
|
47
|
-
};
|
|
48
|
-
readonly documentURLTransformer: Base.DocumentURLTransformer;
|
|
49
|
-
readonly counterStore: Counters.CounterStore;
|
|
50
|
-
pref: Exprs.Preferences;
|
|
51
|
-
page: Vtree.Page;
|
|
52
|
-
instance: OPS.StyleInstance;
|
|
53
|
-
constructor(store: OPS.OPSDocStore, url: string, lang: string | null, clientLayout: Vtree.ClientLayout, fontMapper: Font.Mapper, pref: Exprs.Preferences, rendererFactory: Vgen.CustomRendererFactory, fallbackMap: {
|
|
54
|
-
[key: string]: string;
|
|
55
|
-
}, documentURLTransformer: Base.DocumentURLTransformer, counterStore: Counters.CounterStore);
|
|
56
|
-
setAutoHeight(elem: Element, depth: number): void;
|
|
57
|
-
/** @override */
|
|
58
|
-
makeCustomRenderer(xmldoc: XmlDoc.XMLDocHolder): Vgen.CustomRenderer;
|
|
59
|
-
showTOC(elem: HTMLElement, viewport: Vgen.Viewport, width: number, height: number, fontSize: number): Task.Result<Vtree.Page>;
|
|
60
|
-
hideTOC(): void;
|
|
61
|
-
isTOCVisible(): boolean;
|
|
62
|
-
getTOC(): TOCItem[];
|
|
63
|
-
}
|
|
64
|
-
export declare function toggleNodeExpansion(evt: Event): void;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2013 Google, Inc.
|
|
3
|
+
* Copyright 2015 Trim-marks Inc.
|
|
4
|
+
* Copyright 2019 Vivliostyle Foundation
|
|
5
|
+
*
|
|
6
|
+
* Vivliostyle.js is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License as published by
|
|
8
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
* (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* Vivliostyle.js is distributed in the hope that it will be useful,
|
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
* GNU Affero General Public License for more details.
|
|
15
|
+
*
|
|
16
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
17
|
+
* along with Vivliostyle.js. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
*
|
|
19
|
+
* @fileoverview Toc - Table of Contents view.
|
|
20
|
+
*/
|
|
21
|
+
import * as Base from "./base";
|
|
22
|
+
import * as Counters from "./counters";
|
|
23
|
+
import * as Exprs from "./exprs";
|
|
24
|
+
import * as Font from "./font";
|
|
25
|
+
import * as OPS from "./ops";
|
|
26
|
+
import * as Task from "./task";
|
|
27
|
+
import * as Vgen from "./vgen";
|
|
28
|
+
import * as Vtree from "./vtree";
|
|
29
|
+
import * as XmlDoc from "./xml-doc";
|
|
30
|
+
export declare const bulletClosed = "\u25B8";
|
|
31
|
+
export declare const bulletOpen = "\u25BE";
|
|
32
|
+
export declare const bulletEmpty = "\u25B9";
|
|
33
|
+
export type TOCItem = {
|
|
34
|
+
id: string;
|
|
35
|
+
title: string;
|
|
36
|
+
children: TOCItem[];
|
|
37
|
+
};
|
|
38
|
+
export declare class TOCView implements Vgen.CustomRendererFactory {
|
|
39
|
+
readonly store: OPS.OPSDocStore;
|
|
40
|
+
readonly url: string;
|
|
41
|
+
readonly lang: string | null;
|
|
42
|
+
readonly clientLayout: Vtree.ClientLayout;
|
|
43
|
+
readonly fontMapper: Font.Mapper;
|
|
44
|
+
readonly rendererFactory: Vgen.CustomRendererFactory;
|
|
45
|
+
readonly fallbackMap: {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
readonly documentURLTransformer: Base.DocumentURLTransformer;
|
|
49
|
+
readonly counterStore: Counters.CounterStore;
|
|
50
|
+
pref: Exprs.Preferences;
|
|
51
|
+
page: Vtree.Page;
|
|
52
|
+
instance: OPS.StyleInstance;
|
|
53
|
+
constructor(store: OPS.OPSDocStore, url: string, lang: string | null, clientLayout: Vtree.ClientLayout, fontMapper: Font.Mapper, pref: Exprs.Preferences, rendererFactory: Vgen.CustomRendererFactory, fallbackMap: {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
}, documentURLTransformer: Base.DocumentURLTransformer, counterStore: Counters.CounterStore);
|
|
56
|
+
setAutoHeight(elem: Element, depth: number): void;
|
|
57
|
+
/** @override */
|
|
58
|
+
makeCustomRenderer(xmldoc: XmlDoc.XMLDocHolder): Vgen.CustomRenderer;
|
|
59
|
+
showTOC(elem: HTMLElement, viewport: Vgen.Viewport, width: number, height: number, fontSize: number): Task.Result<Vtree.Page>;
|
|
60
|
+
hideTOC(): void;
|
|
61
|
+
isTOCVisible(): boolean;
|
|
62
|
+
getTOC(): TOCItem[];
|
|
63
|
+
}
|
|
64
|
+
export declare function toggleNodeExpansion(evt: Event): void;
|