@pilotdev/pilot-web-3d 23.0.12 → 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
|
@@ -275,6 +275,7 @@ export class CoreEventTypes {
|
|
|
275
275
|
static EXTENSION_LOADED: string;
|
|
276
276
|
static EXTENSION_UNLOADING: string;
|
|
277
277
|
static EXTENSION_UNLOADED: string;
|
|
278
|
+
static ACTIVE_EXTENSION_CHANGED_EVENT: string;
|
|
278
279
|
}
|
|
279
280
|
export class ExtensionEvent extends Event {
|
|
280
281
|
extensionName: string;
|
|
@@ -292,6 +293,7 @@ export interface IControl {
|
|
|
292
293
|
setToolTip(tooltipText: string): void;
|
|
293
294
|
setText(text: string): void;
|
|
294
295
|
setState(state: ControlState.State): void;
|
|
296
|
+
getState(): ControlState.State;
|
|
295
297
|
}
|
|
296
298
|
export class Control implements IControl {
|
|
297
299
|
container: HTMLElement;
|
|
@@ -303,6 +305,7 @@ export class Control implements IControl {
|
|
|
303
305
|
setToolTip(tooltipText: string): void;
|
|
304
306
|
setText(text: string): void;
|
|
305
307
|
setState(state: ControlState.State): void;
|
|
308
|
+
getState(): ControlState.State;
|
|
306
309
|
}
|
|
307
310
|
export enum ToolbarPosition {
|
|
308
311
|
TOP_FIXED = "ascn-toolbar-position-fixed-top",
|
|
@@ -418,6 +421,11 @@ export class ViewerConfiguration {
|
|
|
418
421
|
mergeConfigurationAndSettings(configuration: ViewerSettings, settings: ISettings): void;
|
|
419
422
|
changeTheme(newTheme: string): void;
|
|
420
423
|
}
|
|
424
|
+
export class ExtensionActivationController {
|
|
425
|
+
getActive(): string;
|
|
426
|
+
activate(name: string): void;
|
|
427
|
+
deactivate(): void;
|
|
428
|
+
}
|
|
421
429
|
export type ErrorCallback = (message: string) => void;
|
|
422
430
|
export type SuccessCallback = (modelId: any) => void;
|
|
423
431
|
export enum DocumentType {
|
|
@@ -435,6 +443,7 @@ export abstract class ViewerBase {
|
|
|
435
443
|
readonly extensionsLoader: ExtensionLoader;
|
|
436
444
|
abstract settings: ISettings;
|
|
437
445
|
abstract events: IEventsDispatcher;
|
|
446
|
+
abstract activatedExtension: ExtensionActivationController;
|
|
438
447
|
get rootContainer(): HTMLElement;
|
|
439
448
|
getConfiguration(): ViewerConfiguration;
|
|
440
449
|
/**
|
|
@@ -494,8 +503,8 @@ export namespace Button {
|
|
|
494
503
|
}
|
|
495
504
|
export class SubMenu implements IMenu {
|
|
496
505
|
readonly controls: IControl[];
|
|
497
|
-
set selectedIndex(value:
|
|
498
|
-
get selectedIndex():
|
|
506
|
+
set selectedIndex(value: MDCListIndex);
|
|
507
|
+
get selectedIndex(): MDCListIndex;
|
|
499
508
|
setEnabled(index: number, value: boolean): void;
|
|
500
509
|
addControl(control: IControl, index?: number): void;
|
|
501
510
|
removeControl(index?: number): void;
|
|
@@ -3187,6 +3196,7 @@ export class Viewer3D extends ViewerBase {
|
|
|
3187
3196
|
protected _configuration: Viewer3DConfiguration;
|
|
3188
3197
|
settings: Readonly<ISettings>;
|
|
3189
3198
|
events: Readonly<IEventsDispatcher>;
|
|
3199
|
+
activatedExtension: ExtensionActivationController;
|
|
3190
3200
|
/**
|
|
3191
3201
|
* Returns general model
|
|
3192
3202
|
* @returns { Model } - general model
|