@pilotdev/pilot-web-3d 25.8.4-alpha → 25.10.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 +37 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -236,6 +236,9 @@ export namespace Viewer3DIcons {
|
|
|
236
236
|
const VIEWER_MEASUREMENT_PERPENDICULAR_ICON: string;
|
|
237
237
|
const VIEWER_MEASUREMENT_POINT_COORDINATES_ICON: string;
|
|
238
238
|
const VIEWER_MEASUREMENT_DIMENSION_ICON: string;
|
|
239
|
+
const VIEWER_POSITION_MOVE_ICON: string;
|
|
240
|
+
const VIEWER_POSITION_ROTATE_ICON: string;
|
|
241
|
+
const VIEWER_POSITION_ALIGN_ICON: string;
|
|
239
242
|
const VIEWER_ZOOM_TO_FIT_ICON: string;
|
|
240
243
|
const VIEWER_RENDER_OPTIONS_ICON: string;
|
|
241
244
|
const VIEWER_CONTEXT_MENU_COPY_PROPS: string;
|
|
@@ -254,12 +257,6 @@ export namespace ViewerGeneralIcons {
|
|
|
254
257
|
const ARROW_DR: string;
|
|
255
258
|
const CHECK: string;
|
|
256
259
|
}
|
|
257
|
-
export namespace Viewer2DIcons {
|
|
258
|
-
const REMARK_CIRCLE_ICON: string;
|
|
259
|
-
const ZOOM_IN: string;
|
|
260
|
-
const ZOOM_OUT: string;
|
|
261
|
-
const FIT_WIDTH: string;
|
|
262
|
-
}
|
|
263
260
|
export interface ISettings {
|
|
264
261
|
changeSetting<T>(name: string, value: T, notify?: boolean, providedData?: any): void;
|
|
265
262
|
getSettingValue<T>(name: string): T;
|
|
@@ -316,6 +313,10 @@ export namespace ControlState {
|
|
|
316
313
|
INACTIVE = 1,
|
|
317
314
|
DISABLED = 2
|
|
318
315
|
}
|
|
316
|
+
enum StateMode {
|
|
317
|
+
AUTO = 0,
|
|
318
|
+
MANUAL = 1
|
|
319
|
+
}
|
|
319
320
|
}
|
|
320
321
|
export interface IControl {
|
|
321
322
|
container: HTMLElement;
|
|
@@ -364,17 +365,24 @@ export interface IMenu {
|
|
|
364
365
|
addControl(control: IControl, index?: number): void;
|
|
365
366
|
removeControl(index: number): void;
|
|
366
367
|
}
|
|
368
|
+
export class Separator extends Control {
|
|
369
|
+
|
|
370
|
+
constructor(id: string);
|
|
371
|
+
setVertical(value: boolean): void;
|
|
372
|
+
}
|
|
367
373
|
interface IToolbarButton {
|
|
368
374
|
button: IControl;
|
|
369
375
|
index: number;
|
|
370
376
|
}
|
|
371
377
|
export class Toolbar extends Control implements IMenu {
|
|
378
|
+
/** @deprecated */
|
|
372
379
|
readonly controls: IControl[];
|
|
373
380
|
addControl(control: IControl, index?: number | undefined): void;
|
|
374
381
|
removeControl(index: number): void;
|
|
375
382
|
getControls(): IToolbarButton[];
|
|
376
383
|
changeToolbarPosition(direction: ToolbarPosition): void;
|
|
377
384
|
changeToolbarContentAlignment(content: ToolbarContentAlignment): void;
|
|
385
|
+
clear(): void;
|
|
378
386
|
}
|
|
379
387
|
export {};
|
|
380
388
|
export class ExtensionBase {
|
|
@@ -455,10 +463,7 @@ export type ViewerSettings = Record<string, any>;
|
|
|
455
463
|
export class ViewerConfiguration {
|
|
456
464
|
settingsPrefix: string;
|
|
457
465
|
appearance: ViewerSettings;
|
|
458
|
-
extensionsOptions:
|
|
459
|
-
name: string;
|
|
460
|
-
options: ViewerSettings;
|
|
461
|
-
}>;
|
|
466
|
+
extensionsOptions: Record<string, ViewerSettings>;
|
|
462
467
|
createConfiguration(configuration: ViewerSettings, origin: ViewerSettings): void;
|
|
463
468
|
mergeConfigurationAndSettings(configuration: ViewerSettings, settings: ISettings): void;
|
|
464
469
|
changeTheme(newTheme: string): void;
|
|
@@ -501,6 +506,7 @@ export abstract class ViewerBase {
|
|
|
501
506
|
onExtensionUnloading(extension: ExtensionBase): void;
|
|
502
507
|
onPostExtensionUnload(extension: ExtensionBase): void;
|
|
503
508
|
protected loadExtensions(): void;
|
|
509
|
+
protected loadEmbeddedExtension(extensionName: string, type: typeof ExtensionBase): void;
|
|
504
510
|
protected setThemeFromSettings(): void;
|
|
505
511
|
}
|
|
506
512
|
export class EventsDispatcherCore implements IEventsDispatcher {
|
|
@@ -526,7 +532,9 @@ export class Button extends Control {
|
|
|
526
532
|
getState(): ControlState.State;
|
|
527
533
|
getIsChecked(): boolean;
|
|
528
534
|
setIcon(iconClassName: string): void;
|
|
535
|
+
getIcon(): string;
|
|
529
536
|
setFromSvgTemlate(template: string): void;
|
|
537
|
+
getSvgTemplate(): string;
|
|
530
538
|
withoutIcon(): void;
|
|
531
539
|
/**
|
|
532
540
|
* Override this method to be notified when the user clicks on the button.
|
|
@@ -577,9 +585,11 @@ export class ComboButton extends Control {
|
|
|
577
585
|
onClick(event: PointerEvent): void;
|
|
578
586
|
onOpen(): void;
|
|
579
587
|
onClose(): void;
|
|
588
|
+
setStateMode(mode: ControlState.StateMode): void;
|
|
580
589
|
setState(state: ControlState.State): boolean;
|
|
581
590
|
setText(text: string): void;
|
|
582
591
|
setFromSvgTemlate(template: string): void;
|
|
592
|
+
getSvgTemplate(): string;
|
|
583
593
|
}
|
|
584
594
|
export class Checkbox {
|
|
585
595
|
|
|
@@ -614,6 +624,19 @@ export class Select {
|
|
|
614
624
|
}): void;
|
|
615
625
|
update(array: ISelectItem[], selectedIndex?: number): void;
|
|
616
626
|
}
|
|
627
|
+
export class Input extends Control {
|
|
628
|
+
|
|
629
|
+
constructor(id: string);
|
|
630
|
+
get inputElement(): HTMLInputElement;
|
|
631
|
+
get error(): HTMLElement;
|
|
632
|
+
get valid(): boolean;
|
|
633
|
+
set valid(value: boolean);
|
|
634
|
+
setPlaceholder(placeholder: string): void;
|
|
635
|
+
setDisabled(value: boolean): void;
|
|
636
|
+
onChange(value: string): void;
|
|
637
|
+
setText(text: string): void;
|
|
638
|
+
destroy(): void;
|
|
639
|
+
}
|
|
617
640
|
export class ViewerToolbar extends Toolbar {
|
|
618
641
|
}
|
|
619
642
|
interface ElementClass {
|
|
@@ -633,9 +656,11 @@ export class Dialog extends Control implements ICloseable {
|
|
|
633
656
|
get resizable(): boolean;
|
|
634
657
|
setDialogContent(value: HTMLElement): Dialog;
|
|
635
658
|
setHeader(value: HTMLElement): Dialog;
|
|
659
|
+
setHeaderShown(value: boolean): Dialog;
|
|
636
660
|
setCaption(value: string): Dialog;
|
|
637
661
|
setSvgIcon(template: string): Dialog;
|
|
638
662
|
setFooter(value: HTMLElement): Dialog;
|
|
663
|
+
setFooterShown(value: boolean): Dialog;
|
|
639
664
|
setDialogElementClassNames(value: ElementClass): Dialog;
|
|
640
665
|
setSize(width: number, height: number): Dialog;
|
|
641
666
|
setResizable(value: boolean): Dialog;
|
|
@@ -743,6 +768,7 @@ export class RenderViewSettings {
|
|
|
743
768
|
smallObjectSize?: number;
|
|
744
769
|
frustumCulling?: boolean;
|
|
745
770
|
limitedMemory?: boolean;
|
|
771
|
+
memoryLimitValue?: number;
|
|
746
772
|
/** Desired render framerate */
|
|
747
773
|
desiredFramerate?: number;
|
|
748
774
|
/** Allocated time for rendering operations, excluding scene rendering */
|
|
@@ -3269,6 +3295,7 @@ export class SettingsNames {
|
|
|
3269
3295
|
static SMALL_ELEMENT_SIZE: string;
|
|
3270
3296
|
static FRUSTUM_CULLING: string;
|
|
3271
3297
|
static LIMITED_MEMORY: string;
|
|
3298
|
+
static MEMORY_LIMIT_VALUE: string;
|
|
3272
3299
|
static LABEL_LINE_LENGTH: string;
|
|
3273
3300
|
static HIDE_EDGES_WHEN_NAVIGATING: string;
|
|
3274
3301
|
static DISPLAY_MODE: string;
|