@pilotdev/pilot-web-2d 23.0.10 → 23.0.11

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.
Files changed (2) hide show
  1. package/index.d.ts +14 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -123,6 +123,12 @@ export class CoreEventTypes {
123
123
  static SETTING_RESET_EVENT: string;
124
124
  static SETTING_LANGUAGE_CHANGED_EVENT: string;
125
125
  static SETTING_THEME_CHANGED_EVENT: string;
126
+ static EXTENSION_LOADED: string;
127
+ static EXTENSION_UNLOADING: string;
128
+ static EXTENSION_UNLOADED: string;
129
+ }
130
+ export class ExtensionEvent extends Event {
131
+ extensionName: string;
126
132
  }
127
133
  export namespace ControlState {
128
134
  enum State {
@@ -292,6 +298,8 @@ export abstract class ViewerBase {
292
298
  */
293
299
  finish(): void;
294
300
  onPostExtensionLoad(extension: ExtensionBase): void;
301
+ onExtensionUnloading(extension: ExtensionBase): void;
302
+ onPostExtensionUnload(extension: ExtensionBase): void;
295
303
  protected loadExtensions(): void;
296
304
  protected setThemeFromSettings(): void;
297
305
  }
@@ -508,12 +516,17 @@ export class PageRenderedEvent extends Event {
508
516
 
509
517
  constructor(type: string, page: IDocumentPage, eventInitDict?: EventInit);
510
518
  }
519
+ export class DocumentLoadingOptions {
520
+ documentId?: string;
521
+
522
+ constructor(documentId?: string);
523
+ }
511
524
  export let ViewerInstance: Viewer2D;
512
525
  export class Viewer2D extends ViewerBase {
513
526
  readonly settings: Readonly<ISettings>;
514
527
  readonly events: Readonly<IEventsDispatcher>;
515
528
  get document(): IDocument;
516
- loadDocument(data: ArrayBuffer | string, options: object, onSuccessCallback: SuccessCallback, onErrorCallback: ErrorCallback): void;
529
+ loadDocument(data: ArrayBuffer | string, options: DocumentLoadingOptions, onSuccessCallback: SuccessCallback, onErrorCallback: ErrorCallback): void;
517
530
  unloadDocument(): void;
518
531
  start(): Promise<number>;
519
532
  finish(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pilotdev/pilot-web-2d",
3
- "version": "23.0.10",
3
+ "version": "23.0.11",
4
4
  "description": "TypeScript definitions for ASCON PilotWeb2D component",
5
5
  "main": "",
6
6
  "types": "index.d.ts",