@d-i-t-a/reader 1.11.0-beta.5 → 1.11.0-beta.6
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/index.d.ts
CHANGED
|
@@ -66,6 +66,10 @@ export declare function goToPosition(value: any): void;
|
|
|
66
66
|
export declare function applyAttributes(value: any): void;
|
|
67
67
|
export declare function hideAnnotationLayer(): void;
|
|
68
68
|
export declare function showAnnotationLayer(): void;
|
|
69
|
+
export declare function hideLayer(layer: any): void;
|
|
70
|
+
export declare function showLayer(layer: any): void;
|
|
71
|
+
export declare function clearDefinitions(): Promise<void>;
|
|
72
|
+
export declare function addDefinition(definition: any): Promise<void>;
|
|
69
73
|
export declare function snapToElement(value: any): void;
|
|
70
74
|
export declare function activateMarker(id: any, position: any): void;
|
|
71
75
|
export declare function deactivateMarker(): void;
|
|
@@ -18,6 +18,7 @@ export interface Definition {
|
|
|
18
18
|
export interface DefinitionsModuleProperties {
|
|
19
19
|
definitions: Definition[];
|
|
20
20
|
color?: string;
|
|
21
|
+
fullWordSearch?: boolean;
|
|
21
22
|
api?: DefinitionsModuleAPI;
|
|
22
23
|
}
|
|
23
24
|
export interface DefinitionsModuleConfig extends DefinitionsModuleProperties {
|
|
@@ -46,4 +47,6 @@ export default class DefinitionsModule implements ReaderModule {
|
|
|
46
47
|
drawDefinitions(): void;
|
|
47
48
|
handleResize(): Promise<void>;
|
|
48
49
|
createPopupHighlight(selectionInfo: ISelectionInfo, item: Definition): IHighlight;
|
|
50
|
+
addDefinition(definition: any): Promise<void>;
|
|
51
|
+
clearDefinitions(): Promise<void>;
|
|
49
52
|
}
|
|
@@ -11,4 +11,4 @@ export interface ISearchResult {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function escapeRegExp(str: string): string;
|
|
13
13
|
export declare const reset: () => void;
|
|
14
|
-
export declare function searchDocDomSeek(searchInput: string, doc: Document, href: string, title: string): Promise<ISearchResult[]>;
|
|
14
|
+
export declare function searchDocDomSeek(searchInput: string, doc: Document, href: string, title: string, fullWordSearch?: boolean): Promise<ISearchResult[]>;
|