@pilotdev/pilot-web-2d 25.4.0 → 25.6.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/index.d.ts +23 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export class Localization {
|
|
|
19
19
|
static translate<T extends (string | StringMap) = string>(stringToTrans: string): T;
|
|
20
20
|
static setLanguage(language: string): Promise<void>;
|
|
21
21
|
static extendLocalization(locales: any): boolean;
|
|
22
|
+
static numberToStr(value: number, digitsAfterPoint?: number): string;
|
|
22
23
|
}
|
|
23
24
|
export type InitializeSuccessCallback = () => void;
|
|
24
25
|
export function coreInitializer(options: InitializerOptions, callback: InitializeSuccessCallback): void;
|
|
@@ -50,11 +51,15 @@ export class Resizer {
|
|
|
50
51
|
|
|
51
52
|
constructor(resizableContainer: HTMLElement, containerToRestriction: HTMLElement, elementAnchor?: HTMLElement, windowStater?: WindowStater);
|
|
52
53
|
get windowState(): IWindowStyle | null;
|
|
54
|
+
set resizeStart(value: () => void);
|
|
55
|
+
set resizeEnd(value: () => void);
|
|
56
|
+
dispose(): void;
|
|
53
57
|
}
|
|
54
58
|
export class Dragger {
|
|
55
59
|
|
|
56
60
|
constructor(allowedDraggableElement: HTMLElement, draggableContainer: HTMLElement, containerToRestriction: HTMLElement, windowStater?: WindowStater);
|
|
57
61
|
get windowState(): IWindowStyle | null;
|
|
62
|
+
dispose(): void;
|
|
58
63
|
}
|
|
59
64
|
export namespace Viewer3DIcons {
|
|
60
65
|
const VIEWER_SETTINGS_ICON: string;
|
|
@@ -459,6 +464,8 @@ export class Dialog extends Control implements ICloseable {
|
|
|
459
464
|
destroyDialog(): void;
|
|
460
465
|
isDialogShown(): boolean;
|
|
461
466
|
subscribe(fn: (state: boolean) => void): void;
|
|
467
|
+
subscribeToResizeStart(fn: () => void): void;
|
|
468
|
+
subscribeToResizeEnd(fn: () => void): void;
|
|
462
469
|
}
|
|
463
470
|
export {};
|
|
464
471
|
export interface ISettingsStorage {
|
|
@@ -532,8 +539,23 @@ export interface IDocument {
|
|
|
532
539
|
getPageByTarget(element: HTMLElement): IDocumentPage | undefined;
|
|
533
540
|
getSourceData(): Promise<ArrayBuffer>;
|
|
534
541
|
scrollPageIntoViewAsync(pageNumber: number): Promise<void>;
|
|
542
|
+
exitFromAnnotationMode(): void;
|
|
535
543
|
dispose(): void;
|
|
536
544
|
}
|
|
545
|
+
export enum AnnotationTypes {
|
|
546
|
+
STAMP = "stamp"
|
|
547
|
+
}
|
|
548
|
+
export class AnnotationEventArgs {
|
|
549
|
+
id: string;
|
|
550
|
+
pageNumber: number;
|
|
551
|
+
positionX: number;
|
|
552
|
+
positionY: number;
|
|
553
|
+
type: string;
|
|
554
|
+
}
|
|
555
|
+
export class AnnotationPositionChangedEvent extends Event {
|
|
556
|
+
page: IDocumentPage;
|
|
557
|
+
args: AnnotationEventArgs;
|
|
558
|
+
}
|
|
537
559
|
export const ZOOM_IN_SCALE_FACTOR = 1.15;
|
|
538
560
|
export const ZOOM_OUT_SCALE_FACTOR = 0.85;
|
|
539
561
|
export const ZOOM_MAX_SCALE = 10;
|
|
@@ -543,6 +565,7 @@ export class EventTypes extends CoreEventTypes {
|
|
|
543
565
|
static DOCUMENT_ZOOM_IN: string;
|
|
544
566
|
static DOCUMENT_ZOOM_OUT: string;
|
|
545
567
|
static DOCUMENT_FIT_WIDTH: string;
|
|
568
|
+
static ANNOTATION_MOVED: string;
|
|
546
569
|
}
|
|
547
570
|
export class PageRenderedEvent extends Event {
|
|
548
571
|
page: IDocumentPage;
|