@pilotdev/pilot-web-2d 24.13.1-alpha → 24.15.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 +6 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -62,10 +62,13 @@ export namespace Viewer3DIcons {
|
|
|
62
62
|
const VIEWER_FULL_SCREEN_ICON: string;
|
|
63
63
|
const VIEWER_COLLAPSE_ICON: string;
|
|
64
64
|
const VIEWER_ELEMENT_PROPERTIES_ICON: string;
|
|
65
|
+
const VIEWER_CLIPPING_TOOLBAR_ICON: string;
|
|
65
66
|
const VIEWER_ADD_CLIPPING_PLANE_ICON: string;
|
|
66
67
|
const VIEWER_CLIPPING_FLIP_ICON: string;
|
|
67
68
|
const VIEWER_DELETE_CLIPPING_PLANE_ICON: string;
|
|
68
69
|
const VIEWER_CLIPPING_CUBE_ICON: string;
|
|
70
|
+
const VIEWER_CLIPPING_CUBE_2_ICON: string;
|
|
71
|
+
const VIEWER_CLIPPING_CUBE_AXIS_ICON: string;
|
|
69
72
|
const VIEWER_ADD_REMARK_ICON: string;
|
|
70
73
|
const VIEWER_MEASUREMENT_EDGE_ICON: string;
|
|
71
74
|
const VIEWER_MEASUREMENT_PLANE_ICON: string;
|
|
@@ -281,7 +284,7 @@ export class ExtensionActivationController {
|
|
|
281
284
|
deactivate(): void;
|
|
282
285
|
}
|
|
283
286
|
export type ErrorCallback = (message: string) => void;
|
|
284
|
-
export type SuccessCallback = (modelId:
|
|
287
|
+
export type SuccessCallback = (modelId: string) => void;
|
|
285
288
|
export enum DocumentType {
|
|
286
289
|
UNKNOWN = 0,
|
|
287
290
|
DOCUMENT_2D = 1,
|
|
@@ -516,6 +519,7 @@ export interface IDocument {
|
|
|
516
519
|
fitWidth(): void;
|
|
517
520
|
getPageAsync(pageNumber: number): Promise<IDocumentPage>;
|
|
518
521
|
getPageByTarget(element: HTMLElement): IDocumentPage | undefined;
|
|
522
|
+
getSourceData(): Promise<ArrayBuffer>;
|
|
519
523
|
scrollPageIntoViewAsync(pageNumber: number): Promise<void>;
|
|
520
524
|
dispose(): void;
|
|
521
525
|
}
|
|
@@ -545,13 +549,12 @@ export class Viewer2D extends ViewerBase {
|
|
|
545
549
|
readonly events: Readonly<IEventsDispatcher>;
|
|
546
550
|
activatedExtension: ExtensionActivationController;
|
|
547
551
|
get document(): IDocument;
|
|
548
|
-
loadDocument(data: ArrayBuffer | string, options: DocumentLoadingOptions, onSuccessCallback
|
|
552
|
+
loadDocument(data: ArrayBuffer | string, options: DocumentLoadingOptions, onSuccessCallback?: SuccessCallback, onErrorCallback?: ErrorCallback): Promise<void>;
|
|
549
553
|
unloadDocument(): void;
|
|
550
554
|
start(): Promise<number>;
|
|
551
555
|
finish(): Promise<void>;
|
|
552
556
|
}
|
|
553
557
|
export class GuiViewer2D extends Viewer2D {
|
|
554
|
-
loadDocument(buffer: ArrayBuffer, options: object, onSuccessCallback: SuccessCallback, onErrorCallback: ErrorCallback): void;
|
|
555
558
|
getToolbar(): ViewerToolbar;
|
|
556
559
|
onPostExtensionLoad(extension: ExtensionBase): void;
|
|
557
560
|
protected getToolbarHeight(): number;
|