@pilotdev/pilot-web-3d 25.5.0 → 25.8.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 +209 -93
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -172,9 +172,10 @@ export type StringMap = {
|
|
|
172
172
|
};
|
|
173
173
|
export class Localization {
|
|
174
174
|
static initialize(options: any): Promise<void>;
|
|
175
|
-
static translate<T extends (string | StringMap) = string>(stringToTrans: string): T;
|
|
175
|
+
static translate<T extends (string | StringMap) = string>(stringToTrans: string, options?: {}): 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;
|
|
@@ -233,6 +238,7 @@ export namespace Viewer3DIcons {
|
|
|
233
238
|
const VIEWER_MEASUREMENT_DIMENSION_ICON: string;
|
|
234
239
|
const VIEWER_ZOOM_TO_FIT_ICON: string;
|
|
235
240
|
const VIEWER_RENDER_OPTIONS_ICON: string;
|
|
241
|
+
const VIEWER_CONTEXT_MENU_COPY_PROPS: string;
|
|
236
242
|
}
|
|
237
243
|
export namespace ViewerGeneralIcons {
|
|
238
244
|
const CLOSE: string;
|
|
@@ -271,6 +277,7 @@ export class SettingChangedEvent extends Event {
|
|
|
271
277
|
providedData: any;
|
|
272
278
|
}
|
|
273
279
|
export class LoadingSpinner {
|
|
280
|
+
protected readonly _progress: ProgressBar;
|
|
274
281
|
set loadingTextKey(value: string);
|
|
275
282
|
get loadingTextKey(): string;
|
|
276
283
|
addToDOM(container: HTMLElement): void;
|
|
@@ -381,6 +388,7 @@ export class ExtensionBase {
|
|
|
381
388
|
onMouseUp(event: MouseEvent): void;
|
|
382
389
|
onMouseLongTouch(event: MouseEvent): void;
|
|
383
390
|
onToolbarCreated(toolbar: Toolbar): void;
|
|
391
|
+
onContextMenu(menu: IMenu): void;
|
|
384
392
|
onTouchStart(event: TouchEvent): void;
|
|
385
393
|
onTouchEnd(event: TouchEvent): void;
|
|
386
394
|
}
|
|
@@ -493,6 +501,11 @@ export class EventsDispatcherCore implements IEventsDispatcher {
|
|
|
493
501
|
removeEvent(type: string): void;
|
|
494
502
|
clearListeners(): void;
|
|
495
503
|
}
|
|
504
|
+
export interface IMenuBuilder {
|
|
505
|
+
build(): IControl[];
|
|
506
|
+
removeAllButtons(): IMenuBuilder;
|
|
507
|
+
withButton(controlId: string, icon: string, translationKey: string, command: () => void): IMenuBuilder;
|
|
508
|
+
}
|
|
496
509
|
export class Button extends Control {
|
|
497
510
|
|
|
498
511
|
constructor(id: string);
|
|
@@ -503,6 +516,7 @@ export class Button extends Control {
|
|
|
503
516
|
getIsChecked(): boolean;
|
|
504
517
|
setIcon(iconClassName: string): void;
|
|
505
518
|
setFromSvgTemlate(template: string): void;
|
|
519
|
+
withoutIcon(): void;
|
|
506
520
|
/**
|
|
507
521
|
* Override this method to be notified when the user clicks on the button.
|
|
508
522
|
* @param {MouseEvent} event
|
|
@@ -525,10 +539,15 @@ export namespace Button {
|
|
|
525
539
|
CLICK = "click"
|
|
526
540
|
}
|
|
527
541
|
}
|
|
528
|
-
export class
|
|
542
|
+
export class ContextMenu implements IMenu {
|
|
529
543
|
readonly controls: IControl[];
|
|
530
544
|
set selectedIndex(value: number | number[]);
|
|
531
545
|
get selectedIndex(): number | number[];
|
|
546
|
+
set opened(value: boolean);
|
|
547
|
+
get opened(): boolean;
|
|
548
|
+
set textStubKey(value: string);
|
|
549
|
+
get textStubKey(): string;
|
|
550
|
+
get menuWrapper(): HTMLElement;
|
|
532
551
|
setEnabled(index: number, value: boolean): void;
|
|
533
552
|
addControl(control: IControl, index?: number): void;
|
|
534
553
|
removeControl(index?: number): void;
|
|
@@ -539,7 +558,7 @@ export class SubMenu implements IMenu {
|
|
|
539
558
|
export class ComboButton extends Control {
|
|
540
559
|
|
|
541
560
|
constructor(id: string, selectedIndex?: number);
|
|
542
|
-
get subMenu():
|
|
561
|
+
get subMenu(): ContextMenu;
|
|
543
562
|
/**
|
|
544
563
|
* Override this method to be notified when the user clicks on the button.
|
|
545
564
|
* @param {MouseEvent} event
|
|
@@ -607,6 +626,7 @@ export class Dialog extends Control implements ICloseable {
|
|
|
607
626
|
setSvgIcon(template: string): Dialog;
|
|
608
627
|
setFooter(value: HTMLElement): Dialog;
|
|
609
628
|
setDialogElementClassNames(value: ElementClass): Dialog;
|
|
629
|
+
setSize(width: number, height: number): Dialog;
|
|
610
630
|
setResizable(value: boolean): Dialog;
|
|
611
631
|
setWindowOptions(value: IWindowStateOptions): Dialog;
|
|
612
632
|
setDraggable(value: boolean): Dialog;
|
|
@@ -615,6 +635,8 @@ export class Dialog extends Control implements ICloseable {
|
|
|
615
635
|
destroyDialog(): void;
|
|
616
636
|
isDialogShown(): boolean;
|
|
617
637
|
subscribe(fn: (state: boolean) => void): void;
|
|
638
|
+
subscribeToResizeStart(fn: () => void): void;
|
|
639
|
+
subscribeToResizeEnd(fn: () => void): void;
|
|
618
640
|
}
|
|
619
641
|
export {};
|
|
620
642
|
export interface ISettingsStorage {
|
|
@@ -652,6 +674,9 @@ export function createSvgElement(svgString: string): HTMLElement;
|
|
|
652
674
|
export function isString(element: any): boolean;
|
|
653
675
|
export function isSvg(element: string): boolean;
|
|
654
676
|
export function isSvgString(element: any): boolean;
|
|
677
|
+
export class GlobalEvents {
|
|
678
|
+
static events: EventsDispatcherCore;
|
|
679
|
+
}
|
|
655
680
|
export const MouseButtons: {
|
|
656
681
|
Left: number;
|
|
657
682
|
Middle: number;
|
|
@@ -664,6 +689,17 @@ export class RenderEventTypes {
|
|
|
664
689
|
static RENDER_HOVER_EVENT: string;
|
|
665
690
|
static RENDER_DOUBLE_CLICK_EVENT: string;
|
|
666
691
|
static RENDER_SELECTION_RESET_EVENT: string;
|
|
692
|
+
static RENDER_RIGHT_CLICK_WITHOUT_MOVEMENT: string;
|
|
693
|
+
static RENDER_UPDATE_CANVAS: string;
|
|
694
|
+
}
|
|
695
|
+
export class RightClickEvent extends Event {
|
|
696
|
+
modelId: string;
|
|
697
|
+
modelElementId: string;
|
|
698
|
+
ctrlKey: boolean;
|
|
699
|
+
intersection?: THREE.Intersection;
|
|
700
|
+
offsetX: number;
|
|
701
|
+
offsetY: number;
|
|
702
|
+
customTarget: HTMLElement;
|
|
667
703
|
}
|
|
668
704
|
export class SelectionChangedEvent extends Event {
|
|
669
705
|
selectedIds: ModelElementIds[];
|
|
@@ -685,9 +721,6 @@ export class HoverEvent extends Event {
|
|
|
685
721
|
|
|
686
722
|
constructor(type: string, modelId: string, modelElementId: string, intersection?: THREE.Intersection);
|
|
687
723
|
}
|
|
688
|
-
export class GlobalEvents {
|
|
689
|
-
static events: EventsDispatcherCore;
|
|
690
|
-
}
|
|
691
724
|
export class RenderViewSettings {
|
|
692
725
|
telemetry?: boolean;
|
|
693
726
|
hideEdgesWhenNavigation?: boolean;
|
|
@@ -698,6 +731,7 @@ export class RenderViewSettings {
|
|
|
698
731
|
hideSmallElements?: boolean;
|
|
699
732
|
smallObjectSize?: number;
|
|
700
733
|
frustumCulling?: boolean;
|
|
734
|
+
limitedMemory?: boolean;
|
|
701
735
|
/** Desired render framerate */
|
|
702
736
|
desiredFramerate?: number;
|
|
703
737
|
/** Allocated time for rendering operations, excluding scene rendering */
|
|
@@ -866,6 +900,8 @@ export class EventTypes extends CoreEventTypes {
|
|
|
866
900
|
static RENDER_CLICK_EVENT: string;
|
|
867
901
|
static RENDER_HOVER_EVENT: string;
|
|
868
902
|
static RENDER_DOUBLE_CLICK_EVENT: string;
|
|
903
|
+
static RENDER_RIGHT_CLICK_WITHOUT_MOVEMENT: string;
|
|
904
|
+
static RENDER_UPDATE_CANVAS: string;
|
|
869
905
|
}
|
|
870
906
|
export class ModelPartEvent extends Event {
|
|
871
907
|
modelPartId: string;
|
|
@@ -888,20 +924,80 @@ export class VirtualOriginEvent extends Event {
|
|
|
888
924
|
export class VisibilityChangedEvent extends Event {
|
|
889
925
|
elementIds: ModelElementIds[];
|
|
890
926
|
isVisible: boolean;
|
|
927
|
+
isRecursive: boolean;
|
|
891
928
|
}
|
|
892
929
|
export class DeleteEvent extends Event {
|
|
893
930
|
deletedIds: ModelElementIds[];
|
|
894
931
|
}
|
|
932
|
+
export class UpdateCanvasEvent extends Event {
|
|
933
|
+
}
|
|
895
934
|
|
|
896
935
|
export enum SelectionMode {
|
|
897
936
|
Append = 0,
|
|
898
937
|
Replace = 1
|
|
899
938
|
}
|
|
939
|
+
export class ElementNode {
|
|
940
|
+
Guid: string;
|
|
941
|
+
ObjectState: IfcNodeState;
|
|
942
|
+
Revision: bigint;
|
|
943
|
+
ParentGuid: string;
|
|
944
|
+
Name: string;
|
|
945
|
+
Type: string;
|
|
946
|
+
RepresentationType: string;
|
|
947
|
+
RepresentationTypeEnum: IfcType[];
|
|
948
|
+
RepresentationStatus: string;
|
|
949
|
+
RepresentationStatusFlag: IfcRepresentationStatus;
|
|
950
|
+
GridObject: GridObject;
|
|
951
|
+
MeshesProperties: Map<string, MeshProperty[]>;
|
|
952
|
+
}
|
|
953
|
+
export enum IfcNodeState {
|
|
954
|
+
Undefined = 0,
|
|
955
|
+
Added = 1,
|
|
956
|
+
Removed = 2,
|
|
957
|
+
AttributesModified = 3,
|
|
958
|
+
AttributesQuantitiesModified = 4,
|
|
959
|
+
PlacementModified = 8,
|
|
960
|
+
PlacementAndAttributesModified = 11,
|
|
961
|
+
PlacementAndAttributesQuantitiesModified = 12
|
|
962
|
+
}
|
|
963
|
+
export enum IfcRepresentationStatus {
|
|
964
|
+
SUCCESS = 0,
|
|
965
|
+
NO_REPRESENTATION = 1,
|
|
966
|
+
IGNORED_IFC_TYPE = 2,
|
|
967
|
+
IFC_PARSING_ERROR = 4,
|
|
968
|
+
SOLID_CREATION_ERROR = 8,
|
|
969
|
+
TESSELATING_ERROR = 16,
|
|
970
|
+
C3D_EXEPTION = 32,
|
|
971
|
+
UNCLOSED_SOLID = 64
|
|
972
|
+
}
|
|
973
|
+
export class MeshProperty {
|
|
974
|
+
meshColor: number;
|
|
975
|
+
meshPlacement: Float64Array;
|
|
976
|
+
}
|
|
977
|
+
export class GridObject {
|
|
978
|
+
gridPlacement: Float64Array;
|
|
979
|
+
gridAxes: GridAxis[];
|
|
980
|
+
}
|
|
981
|
+
export class GridAxis {
|
|
982
|
+
id: number;
|
|
983
|
+
type: AxisType;
|
|
984
|
+
label: string;
|
|
985
|
+
data: Float32Array;
|
|
986
|
+
}
|
|
987
|
+
export enum AxisType {
|
|
988
|
+
LINE = 0,
|
|
989
|
+
CIRCLE = 1,
|
|
990
|
+
ARC = 2
|
|
991
|
+
}
|
|
900
992
|
export interface ModelElement {
|
|
901
993
|
get id(): string;
|
|
902
994
|
get modelPartId(): string;
|
|
903
995
|
get parent(): ModelElement | undefined;
|
|
904
996
|
get type(): string;
|
|
997
|
+
get representationType(): string | undefined;
|
|
998
|
+
get representationTypeEnum(): IfcType[] | undefined;
|
|
999
|
+
get representationStatus(): string | undefined;
|
|
1000
|
+
get representationStatusFlag(): IfcRepresentationStatus | undefined;
|
|
905
1001
|
get name(): string;
|
|
906
1002
|
get children(): ModelElement[];
|
|
907
1003
|
get hasGeometry(): boolean;
|
|
@@ -928,7 +1024,7 @@ export interface ModelElementTree {
|
|
|
928
1024
|
/**
|
|
929
1025
|
* Gets model element by id
|
|
930
1026
|
* @param { string } id - model element id
|
|
931
|
-
* @returns model element
|
|
1027
|
+
* @returns model element
|
|
932
1028
|
*/
|
|
933
1029
|
getElement(id: string): ModelElement | undefined;
|
|
934
1030
|
/**
|
|
@@ -937,6 +1033,11 @@ export interface ModelElementTree {
|
|
|
937
1033
|
* @returns {boolean}
|
|
938
1034
|
*/
|
|
939
1035
|
isViewableElement(element: string | ModelElement): boolean;
|
|
1036
|
+
/**
|
|
1037
|
+
* Gets detached elements of the model part
|
|
1038
|
+
* @returns array of the detached elements
|
|
1039
|
+
*/
|
|
1040
|
+
getDetachedElements(): ModelElement[];
|
|
940
1041
|
/**
|
|
941
1042
|
* Checks given element is detached from the root element
|
|
942
1043
|
* @param {string|ModelElement} element - element id or element instance
|
|
@@ -1220,6 +1321,89 @@ export type MemoryInfo = {
|
|
|
1220
1321
|
bBoxes: number;
|
|
1221
1322
|
memory: number;
|
|
1222
1323
|
};
|
|
1324
|
+
export interface MeshPointMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1325
|
+
sizeAttenuation?: boolean | undefined;
|
|
1326
|
+
discreteClipping?: boolean | undefined;
|
|
1327
|
+
}
|
|
1328
|
+
export class MeshPointMaterial extends CustomMaterial {
|
|
1329
|
+
|
|
1330
|
+
constructor(parameters?: MeshPointMaterialParameters);
|
|
1331
|
+
/**
|
|
1332
|
+
* @default true
|
|
1333
|
+
*/
|
|
1334
|
+
get discreteClipping(): boolean;
|
|
1335
|
+
set discreteClipping(value: boolean);
|
|
1336
|
+
get resolution(): THREE.Vector2;
|
|
1337
|
+
/**
|
|
1338
|
+
* @default true
|
|
1339
|
+
*/
|
|
1340
|
+
sizeAttenuation: boolean;
|
|
1341
|
+
copy(source: MeshPointMaterial): this;
|
|
1342
|
+
protected refreshUniforms(uniforms: {
|
|
1343
|
+
[uniform: string]: THREE.IUniform;
|
|
1344
|
+
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1345
|
+
}
|
|
1346
|
+
export interface MeshPointParamter {
|
|
1347
|
+
point?: THREE.Vector3;
|
|
1348
|
+
color?: Color;
|
|
1349
|
+
size?: number;
|
|
1350
|
+
}
|
|
1351
|
+
export class MeshPoints extends THREE.Mesh<THREE.InstancedBufferGeometry, MeshPointMaterial, ViewObjectEventMap> {
|
|
1352
|
+
geometry: THREE.InstancedBufferGeometry;
|
|
1353
|
+
material: MeshPointMaterial;
|
|
1354
|
+
|
|
1355
|
+
constructor();
|
|
1356
|
+
/**
|
|
1357
|
+
* @default new Color( 1,1,1,1 )
|
|
1358
|
+
*/
|
|
1359
|
+
color: Color;
|
|
1360
|
+
/**
|
|
1361
|
+
* @default 1
|
|
1362
|
+
*/
|
|
1363
|
+
pointSize: number;
|
|
1364
|
+
/**
|
|
1365
|
+
* @default new THREE.Vector3(0, 0, 0)
|
|
1366
|
+
*/
|
|
1367
|
+
point: THREE.Vector3;
|
|
1368
|
+
addPoint(pointParameter?: MeshPointParamter): number;
|
|
1369
|
+
updatePoint(index: number, pointParameter: MeshPointParamter): void;
|
|
1370
|
+
removePoint(index: number): this;
|
|
1371
|
+
updateAttributes(): void;
|
|
1372
|
+
dispose(): void;
|
|
1373
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1374
|
+
}
|
|
1375
|
+
export class MeshLineGeometry extends THREE.InstancedBufferGeometry {
|
|
1376
|
+
type: string;
|
|
1377
|
+
instanceStart: THREE.BufferAttribute;
|
|
1378
|
+
instanceEnd: THREE.BufferAttribute;
|
|
1379
|
+
instanceColorStart: THREE.BufferAttribute;
|
|
1380
|
+
instanceColorEnd: THREE.BufferAttribute;
|
|
1381
|
+
|
|
1382
|
+
constructor();
|
|
1383
|
+
applyMatrix4(matrix: THREE.Matrix4): this;
|
|
1384
|
+
updatePoint(index: number, point: THREE.Vector3): void;
|
|
1385
|
+
updateColor(index: number, color: Color): void;
|
|
1386
|
+
setPoints(points: THREE.Vector3[]): this;
|
|
1387
|
+
setPositions(array: ArrayLike<number>): this;
|
|
1388
|
+
setColors(array: ArrayLike<number>): this;
|
|
1389
|
+
computeLineDistances(): this;
|
|
1390
|
+
toBufferGeometry(): THREE.BufferGeometry;
|
|
1391
|
+
toWireframeGeometry(): THREE.WireframeGeometry;
|
|
1392
|
+
fromWireframeGeometry(geometry: THREE.WireframeGeometry): this;
|
|
1393
|
+
fromEdgesGeometry(geometry: THREE.EdgesGeometry): this;
|
|
1394
|
+
fromMesh(mesh: THREE.Mesh): this;
|
|
1395
|
+
fromLineSegments(lineSegments: THREE.LineSegments): this;
|
|
1396
|
+
computeBoundingBox(): void;
|
|
1397
|
+
computeBoundingSphere(): void;
|
|
1398
|
+
}
|
|
1399
|
+
export class MeshLine extends THREE.Mesh<MeshLineGeometry, MeshLineMaterial, ViewObjectEventMap> {
|
|
1400
|
+
type: string;
|
|
1401
|
+
material: MeshLineMaterial;
|
|
1402
|
+
geometry: MeshLineGeometry;
|
|
1403
|
+
|
|
1404
|
+
constructor(geometry?: MeshLineGeometry, material?: MeshLineMaterial);
|
|
1405
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1406
|
+
}
|
|
1223
1407
|
export interface SceneCheckOptions {
|
|
1224
1408
|
/** specify whether intersections should be filtered by clippings */
|
|
1225
1409
|
filterByClipping?: boolean;
|
|
@@ -1732,38 +1916,6 @@ export class CustomSpriteMaterial extends CustomMaterial {
|
|
|
1732
1916
|
[uniform: string]: THREE.IUniform;
|
|
1733
1917
|
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1734
1918
|
}
|
|
1735
|
-
export class MeshLineGeometry extends THREE.InstancedBufferGeometry {
|
|
1736
|
-
type: string;
|
|
1737
|
-
instanceStart: THREE.BufferAttribute;
|
|
1738
|
-
instanceEnd: THREE.BufferAttribute;
|
|
1739
|
-
instanceColorStart: THREE.BufferAttribute;
|
|
1740
|
-
instanceColorEnd: THREE.BufferAttribute;
|
|
1741
|
-
|
|
1742
|
-
constructor();
|
|
1743
|
-
applyMatrix4(matrix: THREE.Matrix4): this;
|
|
1744
|
-
updatePoint(index: number, point: THREE.Vector3): void;
|
|
1745
|
-
updateColor(index: number, color: Color): void;
|
|
1746
|
-
setPoints(points: THREE.Vector3[]): this;
|
|
1747
|
-
setPositions(array: ArrayLike<number>): this;
|
|
1748
|
-
setColors(array: ArrayLike<number>): this;
|
|
1749
|
-
computeLineDistances(): this;
|
|
1750
|
-
toBufferGeometry(): THREE.BufferGeometry;
|
|
1751
|
-
toWireframeGeometry(): THREE.WireframeGeometry;
|
|
1752
|
-
fromWireframeGeometry(geometry: THREE.WireframeGeometry): this;
|
|
1753
|
-
fromEdgesGeometry(geometry: THREE.EdgesGeometry): this;
|
|
1754
|
-
fromMesh(mesh: THREE.Mesh): this;
|
|
1755
|
-
fromLineSegments(lineSegments: THREE.LineSegments): this;
|
|
1756
|
-
computeBoundingBox(): void;
|
|
1757
|
-
computeBoundingSphere(): void;
|
|
1758
|
-
}
|
|
1759
|
-
export class MeshLine extends THREE.Mesh<MeshLineGeometry, MeshLineMaterial, ViewObjectEventMap> {
|
|
1760
|
-
type: string;
|
|
1761
|
-
material: MeshLineMaterial;
|
|
1762
|
-
geometry: MeshLineGeometry;
|
|
1763
|
-
|
|
1764
|
-
constructor(geometry?: MeshLineGeometry, material?: MeshLineMaterial);
|
|
1765
|
-
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1766
|
-
}
|
|
1767
1919
|
export class CustomSprite extends THREE.Sprite {
|
|
1768
1920
|
material: CustomSpriteMaterial;
|
|
1769
1921
|
|
|
@@ -1835,58 +1987,9 @@ export class LabelSprite extends CustomSprite {
|
|
|
1835
1987
|
*/
|
|
1836
1988
|
get textPadding(): THREE.Vector4Tuple;
|
|
1837
1989
|
set textPadding(value: THREE.Vector4Tuple);
|
|
1990
|
+
get textureSize(): THREE.Vector2;
|
|
1838
1991
|
dispose(): void;
|
|
1839
|
-
|
|
1840
|
-
export interface MeshPointMaterialParameters extends THREE.ShaderMaterialParameters {
|
|
1841
|
-
sizeAttenuation?: boolean | undefined;
|
|
1842
|
-
discreteClipping?: boolean | undefined;
|
|
1843
|
-
}
|
|
1844
|
-
export class MeshPointMaterial extends CustomMaterial {
|
|
1845
|
-
|
|
1846
|
-
constructor(parameters?: MeshPointMaterialParameters);
|
|
1847
|
-
/**
|
|
1848
|
-
* @default true
|
|
1849
|
-
*/
|
|
1850
|
-
get discreteClipping(): boolean;
|
|
1851
|
-
set discreteClipping(value: boolean);
|
|
1852
|
-
get resolution(): THREE.Vector2;
|
|
1853
|
-
/**
|
|
1854
|
-
* @default true
|
|
1855
|
-
*/
|
|
1856
|
-
sizeAttenuation: boolean;
|
|
1857
|
-
copy(source: MeshPointMaterial): this;
|
|
1858
|
-
protected refreshUniforms(uniforms: {
|
|
1859
|
-
[uniform: string]: THREE.IUniform;
|
|
1860
|
-
}, material: CustomMaterial, renderer: THREE.WebGLRenderer): void;
|
|
1861
|
-
}
|
|
1862
|
-
export interface MeshPointParamter {
|
|
1863
|
-
point?: THREE.Vector3;
|
|
1864
|
-
color?: Color;
|
|
1865
|
-
size?: number;
|
|
1866
|
-
}
|
|
1867
|
-
export class MeshPoints extends THREE.Mesh<THREE.InstancedBufferGeometry, MeshPointMaterial, ViewObjectEventMap> {
|
|
1868
|
-
geometry: THREE.InstancedBufferGeometry;
|
|
1869
|
-
material: MeshPointMaterial;
|
|
1870
|
-
|
|
1871
|
-
constructor();
|
|
1872
|
-
/**
|
|
1873
|
-
* @default new Color( 1,1,1,1 )
|
|
1874
|
-
*/
|
|
1875
|
-
color: Color;
|
|
1876
|
-
/**
|
|
1877
|
-
* @default 1
|
|
1878
|
-
*/
|
|
1879
|
-
pointSize: number;
|
|
1880
|
-
/**
|
|
1881
|
-
* @default new THREE.Vector3(0, 0, 0)
|
|
1882
|
-
*/
|
|
1883
|
-
point: THREE.Vector3;
|
|
1884
|
-
addPoint(pointParameter?: MeshPointParamter): number;
|
|
1885
|
-
updatePoint(index: number, pointParameter: MeshPointParamter): void;
|
|
1886
|
-
removePoint(index: number): this;
|
|
1887
|
-
updateAttributes(): void;
|
|
1888
|
-
dispose(): void;
|
|
1889
|
-
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1992
|
+
rebuildSpriteMaterial(): void;
|
|
1890
1993
|
}
|
|
1891
1994
|
export interface ModelPart {
|
|
1892
1995
|
get id(): string;
|
|
@@ -3154,6 +3257,7 @@ export class SettingsNames {
|
|
|
3154
3257
|
static HIDE_SMALL_ELEMENTS: string;
|
|
3155
3258
|
static SMALL_ELEMENT_SIZE: string;
|
|
3156
3259
|
static FRUSTUM_CULLING: string;
|
|
3260
|
+
static LIMITED_MEMORY: string;
|
|
3157
3261
|
static LABEL_LINE_LENGTH: string;
|
|
3158
3262
|
static HIDE_EDGES_WHEN_NAVIGATING: string;
|
|
3159
3263
|
static DISPLAY_MODE: string;
|
|
@@ -3182,6 +3286,16 @@ export class Viewer3DConfiguration extends ViewerConfiguration {
|
|
|
3182
3286
|
constructor(appearance?: ViewerSettings, render?: ViewerSettings);
|
|
3183
3287
|
}
|
|
3184
3288
|
export const defaultViewer3DSettings: ViewerSettings;
|
|
3289
|
+
export class BimProxyTypes {
|
|
3290
|
+
static BIM_OTHERS_NODE: string;
|
|
3291
|
+
static BIM_OTHER_3D_MODEL_TYPE: string;
|
|
3292
|
+
static BIM_IFC_COLLISION: string;
|
|
3293
|
+
static BIM_POINT_CLOUD: string;
|
|
3294
|
+
}
|
|
3295
|
+
export class BimOther3DModelNames {
|
|
3296
|
+
static getNameByExtension(extension: string): string | undefined;
|
|
3297
|
+
static typeNameExists(typeName: string): boolean;
|
|
3298
|
+
}
|
|
3185
3299
|
export class ModelLoadingOptions {
|
|
3186
3300
|
guid: string;
|
|
3187
3301
|
isConsolidatedModel?: boolean;
|
|
@@ -3402,10 +3516,11 @@ export class Model {
|
|
|
3402
3516
|
/**
|
|
3403
3517
|
* Compare actual and versionToCompare versions of model part.
|
|
3404
3518
|
* @param modelPart - id of the model part
|
|
3405
|
-
* @param
|
|
3519
|
+
* @param versionFrom - version that will be set as current
|
|
3520
|
+
* @param versionToCompare - version to compare
|
|
3406
3521
|
* @returns {ModelPartVersionsDiff} - diff.
|
|
3407
3522
|
*/
|
|
3408
|
-
compareVersions(modelPart: string | ModelPart, versionToCompare: bigint): Promise<ModelPartVersionsDiff>;
|
|
3523
|
+
compareVersions(modelPart: string | ModelPart, versionFrom: bigint, versionToCompare: bigint): Promise<ModelPartVersionsDiff>;
|
|
3409
3524
|
/**
|
|
3410
3525
|
* Delete the geometry of the need to show comparison results
|
|
3411
3526
|
* @param modelPart - id of the model part
|
|
@@ -3540,11 +3655,12 @@ export class Viewer3D extends ViewerBase {
|
|
|
3540
3655
|
*/
|
|
3541
3656
|
makeScreenshot(mimeType?: string, quality?: number): Promise<Blob>;
|
|
3542
3657
|
setThemeFromSettings(): void;
|
|
3658
|
+
protected createUI(): void;
|
|
3543
3659
|
}
|
|
3544
3660
|
export class GuiViewer3D extends Viewer3D {
|
|
3545
|
-
loadModelPart(buffer: ArrayBuffer | string | Blob, options: ModelLoadingOptions, onSuccessCallback?: SuccessCallback, onErrorCallback?: ErrorCallback): Promise<void>;
|
|
3546
3661
|
getToolbar(): ViewerToolbar;
|
|
3547
3662
|
onPostExtensionLoad(extension: ExtensionBase): void;
|
|
3663
|
+
protected createUI(): void;
|
|
3548
3664
|
protected getToolbarHeight(): number;
|
|
3549
3665
|
}
|
|
3550
3666
|
export function CreateViewer(container: HTMLElement, configuration?: Viewer3DConfiguration): GuiViewer3D;
|