@ones-editor/editor 1.1.8-beta.17 → 1.1.8-beta.19
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.
|
@@ -479,6 +479,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
479
479
|
readonly options: OnesEditorOptions;
|
|
480
480
|
readonly domEvents: OnesEditorDomEvents;
|
|
481
481
|
readonly settingsProvider: OnesEditorSettingsProvider;
|
|
482
|
+
version: string;
|
|
482
483
|
readonly: boolean;
|
|
483
484
|
addCustom: <T extends OnesEditorCustom>(name: string, creator: OnesEditorCustomCreator) => T;
|
|
484
485
|
getCustom: <T extends OnesEditorCustom>(name: string) => T;
|
|
@@ -8,7 +8,7 @@ export declare function getImageDim(obj: ImageObject, buffer: ArrayBuffer): Prom
|
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
10
10
|
buffer: ArrayBuffer;
|
|
11
|
-
}>;
|
|
11
|
+
} | undefined>;
|
|
12
12
|
export declare function reCalculateImageDims(dims: (ImageDimWithBuffer | undefined)[], maxWidth: number): {
|
|
13
13
|
width: number;
|
|
14
14
|
height: number;
|
|
@@ -64,7 +64,7 @@ export type BlockObject = {
|
|
|
64
64
|
border: boolean;
|
|
65
65
|
};
|
|
66
66
|
export type CodeObject = BlockObject[][];
|
|
67
|
-
export type ReadImageFunc = (appId: string, docId: string, image: string) => Promise<ArrayBuffer | undefined>;
|
|
67
|
+
export type ReadImageFunc = (appId: string, docId: string, image: string) => Promise<[ArrayBuffer | undefined, string]>;
|
|
68
68
|
export type GetDocByBlockFunc = (appId: string, docId: string, block: DocBlock) => Promise<DocObject | undefined>;
|
|
69
69
|
export type GetTextsByBoxFunc = (box: DocBlockTextOp) => Promise<DocBlockText | undefined>;
|
|
70
70
|
export type MD5Func = (s: string) => string;
|