@pilotdev/pilot-web-2d 24.0.1 → 24.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 +8 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ export class ExtensionBase {
|
|
|
206
206
|
* @returns {string} Returns the name of the extension.
|
|
207
207
|
*/
|
|
208
208
|
getName(): string;
|
|
209
|
+
isActive(): boolean;
|
|
209
210
|
addCursorPhantomFromSvg(template: string): void;
|
|
210
211
|
removeCursorPhantom(): void;
|
|
211
212
|
onMouseDown(event: MouseEvent): void;
|
|
@@ -389,13 +390,14 @@ export class Checkbox {
|
|
|
389
390
|
onChange(value: boolean): void;
|
|
390
391
|
createElement(): Element;
|
|
391
392
|
}
|
|
392
|
-
interface ISelectItem {
|
|
393
|
+
export interface ISelectItem {
|
|
393
394
|
text: string;
|
|
394
395
|
value: string;
|
|
395
396
|
}
|
|
396
397
|
export class Select {
|
|
397
398
|
|
|
398
399
|
constructor(id: string, items: ISelectItem[], placeholder: string);
|
|
400
|
+
get items(): ISelectItem[];
|
|
399
401
|
get select(): HTMLElement;
|
|
400
402
|
get disabled(): boolean;
|
|
401
403
|
set disabled(value: boolean);
|
|
@@ -403,15 +405,13 @@ export class Select {
|
|
|
403
405
|
set selectedIndex(value: number);
|
|
404
406
|
get placeholder(): string;
|
|
405
407
|
set placeholder(value: string);
|
|
406
|
-
get label():
|
|
407
|
-
get previousSelectedIndex(): number;
|
|
408
|
+
get label(): HTMLLabelElement;
|
|
408
409
|
onChange({ index, value }: {
|
|
409
410
|
index: any;
|
|
410
411
|
value: any;
|
|
411
412
|
}): void;
|
|
412
413
|
update(array: ISelectItem[], selectedIndex?: number): void;
|
|
413
414
|
}
|
|
414
|
-
export {};
|
|
415
415
|
export class ViewerToolbar extends Toolbar {
|
|
416
416
|
}
|
|
417
417
|
interface ElementClass {
|
|
@@ -473,6 +473,10 @@ export abstract class SettingsBase implements ISettings {
|
|
|
473
473
|
getSettingValue<T>(name: string): T;
|
|
474
474
|
protected abstract getKeyWithPrefix(key: string): string;
|
|
475
475
|
}
|
|
476
|
+
export function createSvgElement(svgString: string): HTMLElement;
|
|
477
|
+
export function isString(element: any): boolean;
|
|
478
|
+
export function isSvg(element: string): boolean;
|
|
479
|
+
export function isSvgString(element: any): boolean;
|
|
476
480
|
export class Viewer2DConfiguration extends ViewerConfiguration {
|
|
477
481
|
|
|
478
482
|
constructor(appearance?: ViewerSettings);
|