@d-i-t-a/reader 2.0.0-beta.21 → 2.0.0-beta.22
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/dist/esm/index.js +47 -43
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.js +34 -34
- package/dist/reader.js.map +2 -2
- package/dist/types/modules/highlight/TextHighlighter.d.ts +7 -4
- package/package.json +1 -1
|
@@ -136,6 +136,9 @@ export declare class TextHighlighter {
|
|
|
136
136
|
stopPropagation: () => void;
|
|
137
137
|
}): boolean;
|
|
138
138
|
bindEvents(el: any, _scope: any, hasEventListener: boolean): void;
|
|
139
|
+
mousedown(ev: MouseEvent): Promise<void>;
|
|
140
|
+
mouseup(ev: MouseEvent): Promise<void>;
|
|
141
|
+
mousemove(ev: MouseEvent): Promise<void>;
|
|
139
142
|
unbindEvents(el: any, _scope: any): void;
|
|
140
143
|
/**
|
|
141
144
|
* Permanently disables highlighting.
|
|
@@ -237,14 +240,14 @@ export declare class TextHighlighter {
|
|
|
237
240
|
};
|
|
238
241
|
static hexToRgbA(hex: string): string;
|
|
239
242
|
static hexToRgbAWithOpacity(hex: string, opacity: number): string;
|
|
240
|
-
resetHighlightBoundingStyle(
|
|
241
|
-
resetHighlightAreaStyle(
|
|
242
|
-
setHighlightAreaStyle(
|
|
243
|
+
resetHighlightBoundingStyle(highlightBounding: HTMLElement): void;
|
|
244
|
+
resetHighlightAreaStyle(highlightArea: HTMLElement, id_container: string): void;
|
|
245
|
+
setHighlightAreaStyle(doc: any, highlightAreas: Array<HTMLElement>, highlight: IHighlight): void;
|
|
243
246
|
setAndResetSearchHighlight(highlight: any, highlights: any): void;
|
|
244
247
|
isIOS(): boolean;
|
|
245
248
|
isAndroid(): boolean;
|
|
246
249
|
getScrollingElement: (doc: Document | undefined) => Element;
|
|
247
|
-
processMouseEvent(
|
|
250
|
+
processMouseEvent(ev: MouseEvent): Promise<void>;
|
|
248
251
|
prepareContainers(win: any): Promise<void>;
|
|
249
252
|
ensureHighlightsContainer(win: any, id: string): Promise<HTMLElement>;
|
|
250
253
|
hideAllhighlights(doc: Document): void;
|