@pilotdev/pilot-web-3d 24.24.0 → 25.2.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 +20 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ export namespace Viewer3DIcons {
|
|
|
231
231
|
const VIEWER_MEASUREMENT_PERPENDICULAR_ICON: string;
|
|
232
232
|
const VIEWER_MEASUREMENT_DIMENSION_ICON: string;
|
|
233
233
|
const VIEWER_ZOOM_TO_FIT_ICON: string;
|
|
234
|
+
const VIEWER_RENDER_OPTIONS_ICON: string;
|
|
234
235
|
}
|
|
235
236
|
export namespace ViewerGeneralIcons {
|
|
236
237
|
const CLOSE: string;
|
|
@@ -244,6 +245,7 @@ export namespace ViewerGeneralIcons {
|
|
|
244
245
|
const HIDE: string;
|
|
245
246
|
const TRASH: string;
|
|
246
247
|
const ARROW_DR: string;
|
|
248
|
+
const CHECK: string;
|
|
247
249
|
}
|
|
248
250
|
export namespace Viewer2DIcons {
|
|
249
251
|
const REMARK_CIRCLE_ICON: string;
|
|
@@ -310,6 +312,7 @@ export interface IControl {
|
|
|
310
312
|
getState(): ControlState.State;
|
|
311
313
|
}
|
|
312
314
|
export class Control implements IControl {
|
|
315
|
+
protected _tooltip: Tooltip;
|
|
313
316
|
container: HTMLElement;
|
|
314
317
|
|
|
315
318
|
constructor(id: string);
|
|
@@ -348,7 +351,7 @@ interface IToolbarButton {
|
|
|
348
351
|
}
|
|
349
352
|
export class Toolbar extends Control implements IMenu {
|
|
350
353
|
readonly controls: IControl[];
|
|
351
|
-
addControl(control: IControl, index?: number): void;
|
|
354
|
+
addControl(control: IControl, index?: number | undefined): void;
|
|
352
355
|
removeControl(index: number): void;
|
|
353
356
|
getControls(): IToolbarButton[];
|
|
354
357
|
changeToolbarPosition(direction: ToolbarPosition): void;
|
|
@@ -432,6 +435,10 @@ export type ViewerSettings = Record<string, any>;
|
|
|
432
435
|
export class ViewerConfiguration {
|
|
433
436
|
settingsPrefix: string;
|
|
434
437
|
appearance: ViewerSettings;
|
|
438
|
+
extensionsOptions: Array<{
|
|
439
|
+
name: string;
|
|
440
|
+
options: ViewerSettings;
|
|
441
|
+
}>;
|
|
435
442
|
createConfiguration(configuration: ViewerSettings, origin: ViewerSettings): void;
|
|
436
443
|
mergeConfigurationAndSettings(configuration: ViewerSettings, settings: ISettings): void;
|
|
437
444
|
changeTheme(newTheme: string): void;
|
|
@@ -492,6 +499,7 @@ export class Button extends Control {
|
|
|
492
499
|
setState(state: ControlState.State): boolean;
|
|
493
500
|
setText(text: string): void;
|
|
494
501
|
getState(): ControlState.State;
|
|
502
|
+
getIsChecked(): boolean;
|
|
495
503
|
setIcon(iconClassName: string): void;
|
|
496
504
|
setFromSvgTemlate(template: string): void;
|
|
497
505
|
/**
|
|
@@ -535,9 +543,9 @@ export class ComboButton extends Control {
|
|
|
535
543
|
* Override this method to be notified when the user clicks on the button.
|
|
536
544
|
* @param {MouseEvent} event
|
|
537
545
|
*/
|
|
538
|
-
onClick
|
|
539
|
-
onOpen
|
|
540
|
-
onClose
|
|
546
|
+
onClick(event: PointerEvent): void;
|
|
547
|
+
onOpen(): void;
|
|
548
|
+
onClose(): void;
|
|
541
549
|
setState(state: ControlState.State): boolean;
|
|
542
550
|
setText(text: string): void;
|
|
543
551
|
setFromSvgTemlate(template: string): void;
|
|
@@ -635,7 +643,7 @@ export class InMemorySettingsStorage implements ISettingsStorage {
|
|
|
635
643
|
export abstract class SettingsBase implements ISettings {
|
|
636
644
|
protected _eventDispatcher: IEventsDispatcher;
|
|
637
645
|
protected _storage: ISettingsStorage;
|
|
638
|
-
changeSetting<T>(name: string, value: T, notify?: boolean, providedData?:
|
|
646
|
+
changeSetting<T>(name: string, value: T, notify?: boolean, providedData?: unknown): void;
|
|
639
647
|
getSettingValue<T>(name: string): T;
|
|
640
648
|
protected abstract getKeyWithPrefix(key: string): string;
|
|
641
649
|
}
|
|
@@ -3139,6 +3147,9 @@ export class SettingsNames {
|
|
|
3139
3147
|
static HOVER_EDGES: string;
|
|
3140
3148
|
static SELECT_MESHES: string;
|
|
3141
3149
|
static SELECT_EDGES: string;
|
|
3150
|
+
static SHOW_SPACE_ELEMENTS: string;
|
|
3151
|
+
static SHOW_VOID_ELEMENTS: string;
|
|
3152
|
+
static SHOW_HIDDEN_ELEMENTS: string;
|
|
3142
3153
|
}
|
|
3143
3154
|
export enum ValueType {
|
|
3144
3155
|
STRING = 0,
|
|
@@ -3179,6 +3190,10 @@ export class DeletionManager {
|
|
|
3179
3190
|
*/
|
|
3180
3191
|
export class Model {
|
|
3181
3192
|
readonly eventDispatcher: IEventsDispatcher;
|
|
3193
|
+
/**
|
|
3194
|
+
* Disposes the model
|
|
3195
|
+
*/
|
|
3196
|
+
dispose(): void;
|
|
3182
3197
|
/**
|
|
3183
3198
|
* Returns all model parts loaded in the viewer.
|
|
3184
3199
|
* @returns {ModelPart[]} - An array of visible and hidden model parts
|