@vivliostyle/core 2.25.2 → 2.25.5
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 +0 -1
- package/lib/vivliostyle/base.d.ts +0 -2
- package/lib/vivliostyle/epub.d.ts +5 -6
- package/lib/vivliostyle/net.d.ts +4 -0
- package/lib/vivliostyle/task-util.d.ts +0 -4
- package/lib/vivliostyle.js +1 -1
- package/lib/vivliostyle.js.map +1 -1
- package/package.json +2 -2
- package/lib/vivliostyle/sha1.d.ts +0 -33
|
@@ -129,8 +129,6 @@ export declare function binarySearch(high: number, good: (p1: number) => boolean
|
|
|
129
129
|
* Function to sort numbers low to high
|
|
130
130
|
*/
|
|
131
131
|
export declare function numberCompare(a: number, b: number): number;
|
|
132
|
-
export declare const base64Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
133
|
-
export declare function appendBase64(sb: StringBuffer, data: string): void;
|
|
134
132
|
/**
|
|
135
133
|
* Index array using key function. First encountered item wins on collision.
|
|
136
134
|
* Elements with empty and null keys are dropped.
|
|
@@ -36,10 +36,9 @@ export declare class EPUBDocStore extends OPS.OPSDocStore {
|
|
|
36
36
|
loadAsPlainXML(url: string, opt_required?: boolean, opt_message?: string): Task.Result<XmlDoc.XMLDocHolder>;
|
|
37
37
|
startLoadingAsPlainXML(url: string): void;
|
|
38
38
|
loadAsJSON(url: string, opt_required?: boolean, opt_message?: string): Task.Result<Base.JSON>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
loadOPF(pubURL: string, root: string, haveZipMetadata: boolean): Task.Result<OPFDoc>;
|
|
39
|
+
loadPubDoc(url: string): Task.Result<OPFDoc>;
|
|
40
|
+
loadEPUBDoc(url: string): Task.Result<OPFDoc>;
|
|
41
|
+
loadOPF(pubURL: string, root: string): Task.Result<OPFDoc>;
|
|
43
42
|
loadWebPub(url: string): Task.Result<OPFDoc>;
|
|
44
43
|
addDocument(url: string, doc: Document): Task.Result<XmlDoc.XMLDocHolder>;
|
|
45
44
|
reportLoadError(docURL: string): void;
|
|
@@ -74,7 +73,6 @@ export declare class OPFItem {
|
|
|
74
73
|
}
|
|
75
74
|
export declare function getOPFItemId(item: OPFItem): string | null;
|
|
76
75
|
export declare function makeDeobfuscator(uid: string): (p1: Blob) => Task.Result<Blob>;
|
|
77
|
-
export declare function makeObfuscationKey(uid: string): string;
|
|
78
76
|
export interface Meta {
|
|
79
77
|
[key: string]: MetaItem[];
|
|
80
78
|
}
|
|
@@ -163,7 +161,7 @@ export declare class OPFDoc {
|
|
|
163
161
|
*/
|
|
164
162
|
getMetadata(): Meta;
|
|
165
163
|
getPathFromURL(url: string): string | null;
|
|
166
|
-
initWithXMLDoc(opfXML: XmlDoc.XMLDocHolder, encXML: XmlDoc.XMLDocHolder
|
|
164
|
+
initWithXMLDoc(opfXML: XmlDoc.XMLDocHolder, encXML: XmlDoc.XMLDocHolder): Task.Result<any>;
|
|
167
165
|
assignAutoPages(): void;
|
|
168
166
|
setEPageCountMode(epageIsRenderedPage: boolean): void;
|
|
169
167
|
countEPages(epageCountCallback: ((p1: number) => void) | null): Task.Result<boolean>;
|
|
@@ -212,6 +210,7 @@ export declare class OPFView implements Vgen.CustomRendererFactory {
|
|
|
212
210
|
clientLayout: Vgen.DefaultClientLayout;
|
|
213
211
|
counterStore: Counters.CounterStore;
|
|
214
212
|
tocAutohide: boolean;
|
|
213
|
+
tocVisible: boolean;
|
|
215
214
|
tocView?: Toc.TOCView;
|
|
216
215
|
constructor(opf: OPFDoc, viewport: Vgen.Viewport, fontMapper: Font.Mapper, pref: Exprs.Preferences, pageSheetSizeReporter: (p1: {
|
|
217
216
|
width: number;
|
package/lib/vivliostyle/net.d.ts
CHANGED
|
@@ -70,3 +70,7 @@ export declare class ResourceStore<Resource> implements Net.ResourceStore<Resour
|
|
|
70
70
|
export type JSONStore = ResourceStore<Base.JSON>;
|
|
71
71
|
export declare function parseJSONResource(response: Response, store: JSONStore): Task.Result<Base.JSON>;
|
|
72
72
|
export declare function newJSONStore(): JSONStore;
|
|
73
|
+
/**
|
|
74
|
+
* @return holding event type (load/error/abort)
|
|
75
|
+
*/
|
|
76
|
+
export declare function loadElement(elem: Element, src?: string): TaskUtil.Fetcher<string>;
|
|
@@ -31,7 +31,3 @@ export declare class Fetcher<T> {
|
|
|
31
31
|
* Wait for all Fetcher objects in the array to arrive
|
|
32
32
|
*/
|
|
33
33
|
export declare const waitForFetchers: <T>(fetchers: Fetcher<T>[]) => Task.Result<boolean>;
|
|
34
|
-
/**
|
|
35
|
-
* @return holding event type (load/error/abort)
|
|
36
|
-
*/
|
|
37
|
-
export declare function loadElement(elem: Element, src?: string): Fetcher<string>;
|