@pilotdev/pilot-web-3d 25.5.0 → 25.6.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 +13 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -175,6 +175,7 @@ export class Localization {
|
|
|
175
175
|
static translate<T extends (string | StringMap) = string>(stringToTrans: string): T;
|
|
176
176
|
static setLanguage(language: string): Promise<void>;
|
|
177
177
|
static extendLocalization(locales: any): boolean;
|
|
178
|
+
static numberToStr(value: number, digitsAfterPoint?: number): string;
|
|
178
179
|
}
|
|
179
180
|
export type InitializeSuccessCallback = () => void;
|
|
180
181
|
export function coreInitializer(options: InitializerOptions, callback: InitializeSuccessCallback): void;
|
|
@@ -206,11 +207,15 @@ export class Resizer {
|
|
|
206
207
|
|
|
207
208
|
constructor(resizableContainer: HTMLElement, containerToRestriction: HTMLElement, elementAnchor?: HTMLElement, windowStater?: WindowStater);
|
|
208
209
|
get windowState(): IWindowStyle | null;
|
|
210
|
+
set resizeStart(value: () => void);
|
|
211
|
+
set resizeEnd(value: () => void);
|
|
212
|
+
dispose(): void;
|
|
209
213
|
}
|
|
210
214
|
export class Dragger {
|
|
211
215
|
|
|
212
216
|
constructor(allowedDraggableElement: HTMLElement, draggableContainer: HTMLElement, containerToRestriction: HTMLElement, windowStater?: WindowStater);
|
|
213
217
|
get windowState(): IWindowStyle | null;
|
|
218
|
+
dispose(): void;
|
|
214
219
|
}
|
|
215
220
|
export namespace Viewer3DIcons {
|
|
216
221
|
const VIEWER_SETTINGS_ICON: string;
|
|
@@ -615,6 +620,8 @@ export class Dialog extends Control implements ICloseable {
|
|
|
615
620
|
destroyDialog(): void;
|
|
616
621
|
isDialogShown(): boolean;
|
|
617
622
|
subscribe(fn: (state: boolean) => void): void;
|
|
623
|
+
subscribeToResizeStart(fn: () => void): void;
|
|
624
|
+
subscribeToResizeEnd(fn: () => void): void;
|
|
618
625
|
}
|
|
619
626
|
export {};
|
|
620
627
|
export interface ISettingsStorage {
|
|
@@ -888,6 +895,7 @@ export class VirtualOriginEvent extends Event {
|
|
|
888
895
|
export class VisibilityChangedEvent extends Event {
|
|
889
896
|
elementIds: ModelElementIds[];
|
|
890
897
|
isVisible: boolean;
|
|
898
|
+
isRecursive: boolean;
|
|
891
899
|
}
|
|
892
900
|
export class DeleteEvent extends Event {
|
|
893
901
|
deletedIds: ModelElementIds[];
|
|
@@ -1835,7 +1843,9 @@ export class LabelSprite extends CustomSprite {
|
|
|
1835
1843
|
*/
|
|
1836
1844
|
get textPadding(): THREE.Vector4Tuple;
|
|
1837
1845
|
set textPadding(value: THREE.Vector4Tuple);
|
|
1846
|
+
get textureSize(): THREE.Vector2;
|
|
1838
1847
|
dispose(): void;
|
|
1848
|
+
rebuildSpriteMaterial(): void;
|
|
1839
1849
|
}
|
|
1840
1850
|
export interface MeshPointMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1841
1851
|
sizeAttenuation?: boolean | undefined;
|
|
@@ -3402,10 +3412,11 @@ export class Model {
|
|
|
3402
3412
|
/**
|
|
3403
3413
|
* Compare actual and versionToCompare versions of model part.
|
|
3404
3414
|
* @param modelPart - id of the model part
|
|
3405
|
-
* @param
|
|
3415
|
+
* @param versionFrom - version that will be set as current
|
|
3416
|
+
* @param versionToCompare - version to compare
|
|
3406
3417
|
* @returns {ModelPartVersionsDiff} - diff.
|
|
3407
3418
|
*/
|
|
3408
|
-
compareVersions(modelPart: string | ModelPart, versionToCompare: bigint): Promise<ModelPartVersionsDiff>;
|
|
3419
|
+
compareVersions(modelPart: string | ModelPart, versionFrom: bigint, versionToCompare: bigint): Promise<ModelPartVersionsDiff>;
|
|
3409
3420
|
/**
|
|
3410
3421
|
* Delete the geometry of the need to show comparison results
|
|
3411
3422
|
* @param modelPart - id of the model part
|