@pilotdev/pilot-web-2d 23.0.11 → 24.0.1
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 +12 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export class CoreEventTypes {
|
|
|
126
126
|
static EXTENSION_LOADED: string;
|
|
127
127
|
static EXTENSION_UNLOADING: string;
|
|
128
128
|
static EXTENSION_UNLOADED: string;
|
|
129
|
+
static ACTIVE_EXTENSION_CHANGED_EVENT: string;
|
|
129
130
|
}
|
|
130
131
|
export class ExtensionEvent extends Event {
|
|
131
132
|
extensionName: string;
|
|
@@ -143,6 +144,7 @@ export interface IControl {
|
|
|
143
144
|
setToolTip(tooltipText: string): void;
|
|
144
145
|
setText(text: string): void;
|
|
145
146
|
setState(state: ControlState.State): void;
|
|
147
|
+
getState(): ControlState.State;
|
|
146
148
|
}
|
|
147
149
|
export class Control implements IControl {
|
|
148
150
|
container: HTMLElement;
|
|
@@ -154,6 +156,7 @@ export class Control implements IControl {
|
|
|
154
156
|
setToolTip(tooltipText: string): void;
|
|
155
157
|
setText(text: string): void;
|
|
156
158
|
setState(state: ControlState.State): void;
|
|
159
|
+
getState(): ControlState.State;
|
|
157
160
|
}
|
|
158
161
|
export enum ToolbarPosition {
|
|
159
162
|
TOP_FIXED = "ascn-toolbar-position-fixed-top",
|
|
@@ -269,6 +272,11 @@ export class ViewerConfiguration {
|
|
|
269
272
|
mergeConfigurationAndSettings(configuration: ViewerSettings, settings: ISettings): void;
|
|
270
273
|
changeTheme(newTheme: string): void;
|
|
271
274
|
}
|
|
275
|
+
export class ExtensionActivationController {
|
|
276
|
+
getActive(): string;
|
|
277
|
+
activate(name: string): void;
|
|
278
|
+
deactivate(): void;
|
|
279
|
+
}
|
|
272
280
|
export type ErrorCallback = (message: string) => void;
|
|
273
281
|
export type SuccessCallback = (modelId: any) => void;
|
|
274
282
|
export enum DocumentType {
|
|
@@ -286,6 +294,7 @@ export abstract class ViewerBase {
|
|
|
286
294
|
readonly extensionsLoader: ExtensionLoader;
|
|
287
295
|
abstract settings: ISettings;
|
|
288
296
|
abstract events: IEventsDispatcher;
|
|
297
|
+
abstract activatedExtension: ExtensionActivationController;
|
|
289
298
|
get rootContainer(): HTMLElement;
|
|
290
299
|
getConfiguration(): ViewerConfiguration;
|
|
291
300
|
/**
|
|
@@ -345,8 +354,8 @@ export namespace Button {
|
|
|
345
354
|
}
|
|
346
355
|
export class SubMenu implements IMenu {
|
|
347
356
|
readonly controls: IControl[];
|
|
348
|
-
set selectedIndex(value:
|
|
349
|
-
get selectedIndex():
|
|
357
|
+
set selectedIndex(value: MDCListIndex);
|
|
358
|
+
get selectedIndex(): MDCListIndex;
|
|
350
359
|
setEnabled(index: number, value: boolean): void;
|
|
351
360
|
addControl(control: IControl, index?: number): void;
|
|
352
361
|
removeControl(index?: number): void;
|
|
@@ -525,6 +534,7 @@ export let ViewerInstance: Viewer2D;
|
|
|
525
534
|
export class Viewer2D extends ViewerBase {
|
|
526
535
|
readonly settings: Readonly<ISettings>;
|
|
527
536
|
readonly events: Readonly<IEventsDispatcher>;
|
|
537
|
+
activatedExtension: ExtensionActivationController;
|
|
528
538
|
get document(): IDocument;
|
|
529
539
|
loadDocument(data: ArrayBuffer | string, options: DocumentLoadingOptions, onSuccessCallback: SuccessCallback, onErrorCallback: ErrorCallback): void;
|
|
530
540
|
unloadDocument(): void;
|