@pilotdev/pilot-web-2d 24.0.1 → 24.4.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 +11 -6
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -69,6 +69,7 @@ export namespace Viewer3DIcons {
69
69
  const VIEWER_ADD_REMARK_ICON: string;
70
70
  const VIEWER_MEASUREMENT_EDGE_ICON: string;
71
71
  const VIEWER_MEASUREMENT_PLANE_ICON: string;
72
+ const VIEWER_MEASUREMENT_PERPENDICULAR_ICON: string;
72
73
  const VIEWER_MEASUREMENT_DIMENSION_ICON: string;
73
74
  }
74
75
  export namespace ViewerGeneralIcons {
@@ -206,6 +207,7 @@ export class ExtensionBase {
206
207
  * @returns {string} Returns the name of the extension.
207
208
  */
208
209
  getName(): string;
210
+ isActive(): boolean;
209
211
  addCursorPhantomFromSvg(template: string): void;
210
212
  removeCursorPhantom(): void;
211
213
  onMouseDown(event: MouseEvent): void;
@@ -305,7 +307,7 @@ export abstract class ViewerBase {
305
307
  /**
306
308
  *
307
309
  */
308
- finish(): void;
310
+ finish(): Promise<void>;
309
311
  onPostExtensionLoad(extension: ExtensionBase): void;
310
312
  onExtensionUnloading(extension: ExtensionBase): void;
311
313
  onPostExtensionUnload(extension: ExtensionBase): void;
@@ -389,13 +391,14 @@ export class Checkbox {
389
391
  onChange(value: boolean): void;
390
392
  createElement(): Element;
391
393
  }
392
- interface ISelectItem {
394
+ export interface ISelectItem {
393
395
  text: string;
394
396
  value: string;
395
397
  }
396
398
  export class Select {
397
399
 
398
400
  constructor(id: string, items: ISelectItem[], placeholder: string);
401
+ get items(): ISelectItem[];
399
402
  get select(): HTMLElement;
400
403
  get disabled(): boolean;
401
404
  set disabled(value: boolean);
@@ -403,15 +406,13 @@ export class Select {
403
406
  set selectedIndex(value: number);
404
407
  get placeholder(): string;
405
408
  set placeholder(value: string);
406
- get label(): HTMLElement;
407
- get previousSelectedIndex(): number;
409
+ get label(): HTMLLabelElement;
408
410
  onChange({ index, value }: {
409
411
  index: any;
410
412
  value: any;
411
413
  }): void;
412
414
  update(array: ISelectItem[], selectedIndex?: number): void;
413
415
  }
414
- export {};
415
416
  export class ViewerToolbar extends Toolbar {
416
417
  }
417
418
  interface ElementClass {
@@ -473,6 +474,10 @@ export abstract class SettingsBase implements ISettings {
473
474
  getSettingValue<T>(name: string): T;
474
475
  protected abstract getKeyWithPrefix(key: string): string;
475
476
  }
477
+ export function createSvgElement(svgString: string): HTMLElement;
478
+ export function isString(element: any): boolean;
479
+ export function isSvg(element: string): boolean;
480
+ export function isSvgString(element: any): boolean;
476
481
  export class Viewer2DConfiguration extends ViewerConfiguration {
477
482
 
478
483
  constructor(appearance?: ViewerSettings);
@@ -539,7 +544,7 @@ export class Viewer2D extends ViewerBase {
539
544
  loadDocument(data: ArrayBuffer | string, options: DocumentLoadingOptions, onSuccessCallback: SuccessCallback, onErrorCallback: ErrorCallback): void;
540
545
  unloadDocument(): void;
541
546
  start(): Promise<number>;
542
- finish(): void;
547
+ finish(): Promise<void>;
543
548
  }
544
549
  export class GuiViewer2D extends Viewer2D {
545
550
  loadDocument(buffer: ArrayBuffer, options: object, onSuccessCallback: SuccessCallback, onErrorCallback: ErrorCallback): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pilotdev/pilot-web-2d",
3
- "version": "24.0.1",
3
+ "version": "24.4.0",
4
4
  "description": "TypeScript definitions for ASCON PilotWeb2D component",
5
5
  "main": "",
6
6
  "types": "index.d.ts",