@pilotdev/pilot-web-2d 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 +13 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -75,6 +75,7 @@ export namespace Viewer3DIcons {
75
75
  const VIEWER_MEASUREMENT_PERPENDICULAR_ICON: string;
76
76
  const VIEWER_MEASUREMENT_DIMENSION_ICON: string;
77
77
  const VIEWER_ZOOM_TO_FIT_ICON: string;
78
+ const VIEWER_RENDER_OPTIONS_ICON: string;
78
79
  }
79
80
  export namespace ViewerGeneralIcons {
80
81
  const CLOSE: string;
@@ -88,6 +89,7 @@ export namespace ViewerGeneralIcons {
88
89
  const HIDE: string;
89
90
  const TRASH: string;
90
91
  const ARROW_DR: string;
92
+ const CHECK: string;
91
93
  }
92
94
  export namespace Viewer2DIcons {
93
95
  const REMARK_CIRCLE_ICON: string;
@@ -154,6 +156,7 @@ export interface IControl {
154
156
  getState(): ControlState.State;
155
157
  }
156
158
  export class Control implements IControl {
159
+ protected _tooltip: Tooltip;
157
160
  container: HTMLElement;
158
161
 
159
162
  constructor(id: string);
@@ -192,7 +195,7 @@ interface IToolbarButton {
192
195
  }
193
196
  export class Toolbar extends Control implements IMenu {
194
197
  readonly controls: IControl[];
195
- addControl(control: IControl, index?: number): void;
198
+ addControl(control: IControl, index?: number | undefined): void;
196
199
  removeControl(index: number): void;
197
200
  getControls(): IToolbarButton[];
198
201
  changeToolbarPosition(direction: ToolbarPosition): void;
@@ -276,6 +279,10 @@ export type ViewerSettings = Record<string, any>;
276
279
  export class ViewerConfiguration {
277
280
  settingsPrefix: string;
278
281
  appearance: ViewerSettings;
282
+ extensionsOptions: Array<{
283
+ name: string;
284
+ options: ViewerSettings;
285
+ }>;
279
286
  createConfiguration(configuration: ViewerSettings, origin: ViewerSettings): void;
280
287
  mergeConfigurationAndSettings(configuration: ViewerSettings, settings: ISettings): void;
281
288
  changeTheme(newTheme: string): void;
@@ -336,6 +343,7 @@ export class Button extends Control {
336
343
  setState(state: ControlState.State): boolean;
337
344
  setText(text: string): void;
338
345
  getState(): ControlState.State;
346
+ getIsChecked(): boolean;
339
347
  setIcon(iconClassName: string): void;
340
348
  setFromSvgTemlate(template: string): void;
341
349
  /**
@@ -379,9 +387,9 @@ export class ComboButton extends Control {
379
387
  * Override this method to be notified when the user clicks on the button.
380
388
  * @param {MouseEvent} event
381
389
  */
382
- onClick: (event: PointerEvent) => void;
383
- onOpen: () => void;
384
- onClose: () => void;
390
+ onClick(event: PointerEvent): void;
391
+ onOpen(): void;
392
+ onClose(): void;
385
393
  setState(state: ControlState.State): boolean;
386
394
  setText(text: string): void;
387
395
  setFromSvgTemlate(template: string): void;
@@ -479,7 +487,7 @@ export class InMemorySettingsStorage implements ISettingsStorage {
479
487
  export abstract class SettingsBase implements ISettings {
480
488
  protected _eventDispatcher: IEventsDispatcher;
481
489
  protected _storage: ISettingsStorage;
482
- changeSetting<T>(name: string, value: T, notify?: boolean, providedData?: any): void;
490
+ changeSetting<T>(name: string, value: T, notify?: boolean, providedData?: unknown): void;
483
491
  getSettingValue<T>(name: string): T;
484
492
  protected abstract getKeyWithPrefix(key: string): string;
485
493
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pilotdev/pilot-web-2d",
3
- "version": "25.1.0",
3
+ "version": "25.3.0",
4
4
  "description": "TypeScript definitions for ASCON PilotWeb2D component",
5
5
  "main": "",
6
6
  "types": "index.d.ts",