@pilotdev/pilot-web-3d 25.1.0 → 25.3.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.
Files changed (2) hide show
  1. package/index.d.ts +46 -5
  2. 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: (event: PointerEvent) => void;
539
- onOpen: () => void;
540
- onClose: () => void;
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?: any): void;
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
  }
@@ -3097,11 +3105,13 @@ export class ModelElementPropertySet {
3097
3105
  name: string;
3098
3106
  properties: ModelElementProperty[];
3099
3107
  type: IfcType;
3108
+ static isEqual(a: ModelElementPropertySet, b: ModelElementPropertySet): boolean;
3100
3109
  }
3101
3110
  export class ModelElementProperty {
3102
3111
  name: string;
3103
3112
  unit: number;
3104
3113
  value: ModelElementPropertyValue;
3114
+ static isEqual(a: ModelElementProperty, b: ModelElementProperty): boolean;
3105
3115
  }
3106
3116
  export class ModelElementPropertyValue {
3107
3117
  str_value?: string;
@@ -3114,6 +3124,17 @@ export class ModelElementPropertyValue {
3114
3124
  array_int_value: Array<number>;
3115
3125
  bool_value?: boolean;
3116
3126
  get value(): unknown;
3127
+ static isEqual(a: ModelElementPropertyValue, b: ModelElementPropertyValue): boolean;
3128
+ }
3129
+ export class ModelPartVersionsDiff {
3130
+ get addedNodes(): ModelElement[];
3131
+ get modifiedNodes(): ModelElement[];
3132
+ get attributesModifiedNodes(): ModelElement[];
3133
+ get deletedNodes(): ModelElement[];
3134
+ get unchangedNodes(): ModelElement[];
3135
+ get attributesFrom(): Map<string, ModelElementPropertySet[]>;
3136
+ get attributesTo(): Map<string, ModelElementPropertySet[]>;
3137
+ static Empty(): ModelPartVersionsDiff;
3117
3138
  }
3118
3139
 
3119
3140
  export class SettingsNames {
@@ -3139,6 +3160,9 @@ export class SettingsNames {
3139
3160
  static HOVER_EDGES: string;
3140
3161
  static SELECT_MESHES: string;
3141
3162
  static SELECT_EDGES: string;
3163
+ static SHOW_SPACE_ELEMENTS: string;
3164
+ static SHOW_VOID_ELEMENTS: string;
3165
+ static SHOW_HIDDEN_ELEMENTS: string;
3142
3166
  }
3143
3167
  export enum ValueType {
3144
3168
  STRING = 0,
@@ -3179,6 +3203,10 @@ export class DeletionManager {
3179
3203
  */
3180
3204
  export class Model {
3181
3205
  readonly eventDispatcher: IEventsDispatcher;
3206
+ /**
3207
+ * Disposes the model
3208
+ */
3209
+ dispose(): void;
3182
3210
  /**
3183
3211
  * Returns all model parts loaded in the viewer.
3184
3212
  * @returns {ModelPart[]} - An array of visible and hidden model parts
@@ -3351,6 +3379,19 @@ export class Model {
3351
3379
  * @returns list of all model versions.
3352
3380
  */
3353
3381
  getAllModelVersions(): Promise<bigint[]>;
3382
+ /**
3383
+ * Compare actual and versionToCompare versions of model part.
3384
+ * @param modelPart - id of the model part
3385
+ * @param versionToCompare - version
3386
+ * @returns {ModelPartVersionsDiff} - diff.
3387
+ */
3388
+ compareVersions(modelPart: string | ModelPart, versionToCompare: bigint): Promise<ModelPartVersionsDiff>;
3389
+ /**
3390
+ * Delete the geometry of the need to show comparison results
3391
+ * @param modelPart - id of the model part
3392
+ * @returns {ModelPartVersionsDiff} - diff.
3393
+ */
3394
+ finishComparation(modelPart: string | ModelPart): Promise<void>;
3354
3395
  }
3355
3396
  export interface INavigation {
3356
3397
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pilotdev/pilot-web-3d",
3
- "version": "25.1.0",
3
+ "version": "25.3.0",
4
4
  "description": "TypeScript definitions for ASCON PilotWeb3D component",
5
5
  "main": "",
6
6
  "types": "index.d.ts",