@procore/bim-webviewer-sdk 17.0.0-4d-scheduling-hackathon.1 → 17.0.0-pins-hackathon.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/dist/Procore.Bim.Webviewer.d.ts +2182 -137
- package/dist/Procore.Bim.Webviewer.js +1 -1
- package/dist/types/src/Webviewer.d.ts +4 -7
- package/dist/types/src/api/coordination_issues.d.ts +1 -0
- package/dist/types/src/components/DropdownComponent/MenuOptions/MenuOption.d.ts +2 -2
- package/dist/types/src/components/DropdownComponent/MenuOptions/MenuOptionSelect.d.ts +8 -0
- package/dist/types/src/components/DropdownComponent/MenuOptions/MenuTitle.d.ts +9 -0
- package/dist/types/src/components/DropdownComponent/PinsToolDropdown/PinsToolDropdown.d.ts +31 -0
- package/dist/types/src/components/Markup/SvgRenderer.d.ts +13 -0
- package/dist/types/src/components/RootComponent.d.ts +5 -2
- package/dist/types/src/components/Tool.d.ts +1 -0
- package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +7 -2
- package/dist/types/src/components/ToolBarTools.d.ts +1 -0
- package/dist/types/src/components/WindowPinsCreationComponent.d.ts +13 -0
- package/dist/types/src/controllers/ApiController/ApiController.d.ts +1 -0
- package/dist/types/src/controllers/PubSubController.d.ts +4 -0
- package/dist/types/src/controllers/RenderController.d.ts +0 -2
- package/dist/types/src/controllers/RenderControllerProxy.d.ts +0 -2
- package/dist/types/src/controllers/RenderControllerWorker.d.ts +0 -2
- package/dist/types/src/picking/PickingController.d.ts +0 -7
- package/dist/types/src/pins/PinsManager.d.ts +45 -0
- package/dist/types/src/procoregl/PartitionsRenderer.d.ts +0 -2
- package/dist/types/src/procoregl/PartitionsRendererImpl.d.ts +0 -2
- package/dist/types/src/procoregl/ViewerRenderer.d.ts +0 -2
- package/dist/types/src/types/Palette.d.ts +1 -1
- package/package.json +2 -2
|
@@ -12,6 +12,7 @@ import type { CssColor } from './components/Markup/SvgRenderer';
|
|
|
12
12
|
import { RenderMode } from './utils/constants';
|
|
13
13
|
import { Uom, DisplayUnit } from './unit_util';
|
|
14
14
|
import { MeasureMode } from './measuring/MeasurementManager';
|
|
15
|
+
import { PinsManager } from './pins/PinsManager';
|
|
15
16
|
export type ResourceDiscriminator = {
|
|
16
17
|
fileExtractionId: number;
|
|
17
18
|
} | {
|
|
@@ -19,6 +20,7 @@ export type ResourceDiscriminator = {
|
|
|
19
20
|
};
|
|
20
21
|
export declare class Webviewer {
|
|
21
22
|
options: Options;
|
|
23
|
+
pinsManager: PinsManager;
|
|
22
24
|
private readonly measurementRenderer;
|
|
23
25
|
private readonly measurementManager;
|
|
24
26
|
static readonly tools: {
|
|
@@ -38,6 +40,7 @@ export declare class Webviewer {
|
|
|
38
40
|
readonly LOADING: 13;
|
|
39
41
|
readonly XRAY_MODE: 14;
|
|
40
42
|
readonly SECTION_BOX: 15;
|
|
43
|
+
readonly PINS: 16;
|
|
41
44
|
};
|
|
42
45
|
static readonly toolbar_enum: {
|
|
43
46
|
readonly NONE: 0;
|
|
@@ -54,6 +57,7 @@ export declare class Webviewer {
|
|
|
54
57
|
readonly CONTEXT_MENU: 11;
|
|
55
58
|
readonly XRAY_MODE: 12;
|
|
56
59
|
readonly SECTION_BOX: 13;
|
|
60
|
+
readonly PINS: 14;
|
|
57
61
|
};
|
|
58
62
|
static readonly action: {
|
|
59
63
|
readonly NONE: -1;
|
|
@@ -227,13 +231,6 @@ export declare class Webviewer {
|
|
|
227
231
|
clearAllObjectColor: (options?: {
|
|
228
232
|
resourceId?: number;
|
|
229
233
|
}) => Promise<void> | void;
|
|
230
|
-
setPickable: (objectIds: number[], options?: {
|
|
231
|
-
pickable?: boolean;
|
|
232
|
-
resourceId?: number;
|
|
233
|
-
}) => Promise<void>;
|
|
234
|
-
clearPickable: (options?: {
|
|
235
|
-
resourceId?: number;
|
|
236
|
-
}) => Promise<void>;
|
|
237
234
|
filterObjectTree: (objectIds: number[]) => Promise<void>;
|
|
238
235
|
clearObjectTreeFilter: () => Promise<void>;
|
|
239
236
|
getViewpoint: (options?: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetCoordinationIssues: (projectId: number) => Promise<Response>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './styles.css';
|
|
2
2
|
export type OnClickCallback = (event: MouseEvent) => void;
|
|
3
3
|
export type MenuOptionProps = {
|
|
4
|
-
onClick
|
|
4
|
+
onClick?: OnClickCallback;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
7
|
export declare class MenuOption {
|
|
8
8
|
element: HTMLElement;
|
|
9
|
-
onClick
|
|
9
|
+
onClick?: OnClickCallback;
|
|
10
10
|
constructor(props: MenuOptionProps);
|
|
11
11
|
private onElementClicked;
|
|
12
12
|
setDisable: (disable: boolean) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuOption, MenuOptionProps } from './MenuOption';
|
|
2
|
+
export declare class MenuOptionSelect extends MenuOption {
|
|
3
|
+
iconElement: HTMLElement;
|
|
4
|
+
constructor(props: MenuOptionProps);
|
|
5
|
+
setSelected: (selected: boolean) => void;
|
|
6
|
+
toggle: () => boolean;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Dropdown } from '../Dropdown';
|
|
2
|
+
import { MenuOptionVisible } from '../MenuOptions/MenuOptionVisible';
|
|
3
|
+
import { MenuOptionSelect } from '../MenuOptions/MenuOptionSelect';
|
|
4
|
+
import './styles.css';
|
|
5
|
+
import type { PinsManager } from '../../../pins/PinsManager';
|
|
6
|
+
import { MenuTitle } from '../MenuOptions/MenuTitle';
|
|
7
|
+
export declare class PinsToolDropdown {
|
|
8
|
+
private pinsManager;
|
|
9
|
+
dropdown: Dropdown;
|
|
10
|
+
addPinsTitle: MenuTitle;
|
|
11
|
+
addCIs: MenuOptionSelect;
|
|
12
|
+
addObservations: MenuOptionSelect;
|
|
13
|
+
addRFI: MenuOptionSelect;
|
|
14
|
+
addScheduledItems: MenuOptionSelect;
|
|
15
|
+
displayPinsTitle: MenuTitle;
|
|
16
|
+
displayCIs: MenuOptionVisible;
|
|
17
|
+
displayObservations: MenuOptionVisible;
|
|
18
|
+
displayRFI: MenuOptionVisible;
|
|
19
|
+
displayScheduledItems: MenuOptionVisible;
|
|
20
|
+
private dropdownHeaderWidth;
|
|
21
|
+
constructor(locale: string, pinsManager: PinsManager);
|
|
22
|
+
private initializeButtons;
|
|
23
|
+
private setSubscribes;
|
|
24
|
+
private onDropdownOpen;
|
|
25
|
+
private onDropdownClose;
|
|
26
|
+
private onPinsDisplayToggled;
|
|
27
|
+
private onPinsSelectionConfigured;
|
|
28
|
+
private onPinsDisplayConfigured;
|
|
29
|
+
show(): void;
|
|
30
|
+
hide(): void;
|
|
31
|
+
}
|
|
@@ -63,12 +63,21 @@ export type Rect = {
|
|
|
63
63
|
strokeWidth?: number;
|
|
64
64
|
zIndex?: number;
|
|
65
65
|
};
|
|
66
|
+
export type CustomSvg = {
|
|
67
|
+
svgStr: string;
|
|
68
|
+
x: number;
|
|
69
|
+
y: number;
|
|
70
|
+
width: number;
|
|
71
|
+
height: number;
|
|
72
|
+
zIndex?: number;
|
|
73
|
+
};
|
|
66
74
|
export type SvgData = {
|
|
67
75
|
ellipses?: (BoxEllipse | RadiusEllipse)[];
|
|
68
76
|
lines?: Line[];
|
|
69
77
|
arrows?: Arrow[];
|
|
70
78
|
texts?: Text[];
|
|
71
79
|
rects?: Rect[];
|
|
80
|
+
custom?: CustomSvg[];
|
|
72
81
|
};
|
|
73
82
|
type AnchoredBoxEllipse = BoxEllipse & Anchorable;
|
|
74
83
|
export type AnchoredRadiusEllipse = Omit<RadiusEllipse, 'center'> & Anchorable;
|
|
@@ -76,12 +85,14 @@ export type AnchoredLine = Omit<Line, 'start' | 'end'> & AnchorableLine;
|
|
|
76
85
|
type AnchoredArrow = Omit<Arrow, 'start' | 'end'> & AnchorableLine;
|
|
77
86
|
type AnchoredText = Omit<Text, 'origin'> & Anchorable;
|
|
78
87
|
type AnchoredRect = Omit<Rect, 'x' | 'y'> & Anchorable;
|
|
88
|
+
export type AnchoredCustomSvg = CustomSvg & Anchorable;
|
|
79
89
|
export type AnchoredSvgData = {
|
|
80
90
|
ellipses?: (AnchoredBoxEllipse | AnchoredRadiusEllipse)[];
|
|
81
91
|
lines?: AnchoredLine[];
|
|
82
92
|
arrows?: AnchoredArrow[];
|
|
83
93
|
texts?: AnchoredText[];
|
|
84
94
|
rects?: AnchoredRect[];
|
|
95
|
+
custom?: AnchoredCustomSvg[];
|
|
85
96
|
};
|
|
86
97
|
export declare class SvgRenderer {
|
|
87
98
|
private svgEl;
|
|
@@ -93,6 +104,7 @@ export declare class SvgRenderer {
|
|
|
93
104
|
private _globalOffset;
|
|
94
105
|
constructor();
|
|
95
106
|
private static createSvgEl;
|
|
107
|
+
private calculateScaleFactor;
|
|
96
108
|
private onRenderReady;
|
|
97
109
|
private onResize;
|
|
98
110
|
private set globalOffset(value);
|
|
@@ -111,6 +123,7 @@ export declare class SvgRenderer {
|
|
|
111
123
|
drawArrow(arrow: Arrow): void;
|
|
112
124
|
drawText(text: Text): void;
|
|
113
125
|
drawRect(rect: Rect): void;
|
|
126
|
+
drawCustomSvg(customSvg: AnchoredCustomSvg): void;
|
|
114
127
|
private clipLine;
|
|
115
128
|
private _clear;
|
|
116
129
|
clear(): void;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
export function RootComponent(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any, viewpointManager: any, measurementManager: any): void;
|
|
1
|
+
export function RootComponent(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any, viewpointManager: any, measurementManager: any, pinsManager: any): void;
|
|
2
2
|
export class RootComponent {
|
|
3
|
-
constructor(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any, viewpointManager: any, measurementManager: any);
|
|
3
|
+
constructor(options: any, pubsub: any, renderController: any, apiController: any, settingsController: any, sectionBoxDisplayManager: any, viewpointManager: any, measurementManager: any, pinsManager: any);
|
|
4
4
|
options: any;
|
|
5
5
|
pubsub: any;
|
|
6
6
|
render: any;
|
|
7
7
|
sectionBoxDisplayManager: any;
|
|
8
8
|
viewpointManager: any;
|
|
9
9
|
measurementManager: any;
|
|
10
|
+
pinsManager: any;
|
|
10
11
|
api: any;
|
|
11
12
|
settings: any;
|
|
12
13
|
sub_components: {};
|
|
13
14
|
sectionToolDropdown: SectionToolDropdown | null;
|
|
15
|
+
pinsToolDropdown: PinsToolDropdown | null;
|
|
14
16
|
window_components: any[];
|
|
15
17
|
disabled: any[];
|
|
16
18
|
statsJS: StatsJS | undefined;
|
|
@@ -23,5 +25,6 @@ export class RootComponent {
|
|
|
23
25
|
DisableComponent(component: any): void;
|
|
24
26
|
}
|
|
25
27
|
import { SectionToolDropdown } from './DropdownComponent';
|
|
28
|
+
import { PinsToolDropdown } from './DropdownComponent/PinsToolDropdown/PinsToolDropdown';
|
|
26
29
|
import { StatsJS } from './StatsJS';
|
|
27
30
|
import { TooltipManager } from './Tooltip';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function ToolBarComponent(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any, viewpointManager: any, tooltipManager: any, measurementManager: any): void;
|
|
1
|
+
export function ToolBarComponent(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any, viewpointManager: any, tooltipManager: any, measurementManager: any, pinsManager: any): void;
|
|
2
2
|
export class ToolBarComponent {
|
|
3
|
-
constructor(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any, viewpointManager: any, tooltipManager: any, measurementManager: any);
|
|
3
|
+
constructor(options: any, pubsub: any, render: any, api: any, sectionBoxDisplayManager: any, viewpointManager: any, tooltipManager: any, measurementManager: any, pinsManager: any);
|
|
4
4
|
options: any;
|
|
5
5
|
pubsub: any;
|
|
6
6
|
render: any;
|
|
@@ -8,6 +8,7 @@ export class ToolBarComponent {
|
|
|
8
8
|
viewpointManager: any;
|
|
9
9
|
api: any;
|
|
10
10
|
measurementManager: any;
|
|
11
|
+
pinsManager: any;
|
|
11
12
|
dom: any;
|
|
12
13
|
toolbarElement: HTMLDivElement | null;
|
|
13
14
|
tooltipManager: any;
|
|
@@ -27,6 +28,7 @@ export class ToolBarComponent {
|
|
|
27
28
|
4: any;
|
|
28
29
|
12: any;
|
|
29
30
|
13: any;
|
|
31
|
+
14: any;
|
|
30
32
|
}>;
|
|
31
33
|
toolIconMap: Readonly<{
|
|
32
34
|
9: "nav-icon-views";
|
|
@@ -40,6 +42,7 @@ export class ToolBarComponent {
|
|
|
40
42
|
4: "nav-icon-cursor-orbit";
|
|
41
43
|
12: "nav-icon-xray-mode";
|
|
42
44
|
13: "nav-icon-section-box";
|
|
45
|
+
14: "nav-icon-pins";
|
|
43
46
|
}>;
|
|
44
47
|
toolEnumMap: Readonly<{
|
|
45
48
|
4: 9;
|
|
@@ -49,6 +52,7 @@ export class ToolBarComponent {
|
|
|
49
52
|
15: 13;
|
|
50
53
|
14: 12;
|
|
51
54
|
9: 8;
|
|
55
|
+
16: 14;
|
|
52
56
|
}>;
|
|
53
57
|
toolTimeout: any;
|
|
54
58
|
onModelTypeDetermined(payload: any): void;
|
|
@@ -65,6 +69,7 @@ export class ToolBarComponent {
|
|
|
65
69
|
onResize(): void;
|
|
66
70
|
createNavTools(toolbar: any): void;
|
|
67
71
|
onMeasurementToggled(data: any): void;
|
|
72
|
+
onPinsToggled(data: any): void;
|
|
68
73
|
onSectionBoxDisplayToggled(data: any): void;
|
|
69
74
|
onRenderModeChanged(data: any): void;
|
|
70
75
|
onSelectTool(data: any): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function WindowPinsCreationComponent(options: any, domController: any): void;
|
|
2
|
+
export class WindowPinsCreationComponent {
|
|
3
|
+
constructor(options: any, domController: any);
|
|
4
|
+
domController: any;
|
|
5
|
+
submitButton: HTMLButtonElement | null;
|
|
6
|
+
cancelButton: HTMLButtonElement | null;
|
|
7
|
+
imageElement: HTMLImageElement | null;
|
|
8
|
+
toolId: 16;
|
|
9
|
+
createFooterHtml(): void;
|
|
10
|
+
createHtml(): void;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
show(): Promise<any>;
|
|
13
|
+
}
|
|
@@ -20,6 +20,7 @@ export class ApiController {
|
|
|
20
20
|
}): void;
|
|
21
21
|
GetSimilarObjects(query: any): Promise<Response>;
|
|
22
22
|
trackEvent(key: any, properties?: {}): Promise<void>;
|
|
23
|
+
GetPins(): Promise<any>;
|
|
23
24
|
}
|
|
24
25
|
export const api: ApiController;
|
|
25
26
|
import * as ModelRevisions from '../../api/bim_model_revisions';
|
|
@@ -72,6 +72,10 @@ export namespace PubSubController {
|
|
|
72
72
|
objectUnhide: "objectUnhide";
|
|
73
73
|
optionsChanged: "optionsChanged";
|
|
74
74
|
allPartitionsDownloadComplete: "allPartitionsDownloadComplete";
|
|
75
|
+
pinsToggled: "pinsToggled";
|
|
76
|
+
pinsDisplayToggled: "pinsDisplayToggled";
|
|
77
|
+
pinsDisplayConfigured: "pinsDisplayConfigured";
|
|
78
|
+
pinsSelectionConfigured: "pinsSelectionConfigured";
|
|
75
79
|
projectSettingsLoaded: "projectSettingsLoaded";
|
|
76
80
|
projectSettingsUpdated: "projectSettingsUpdated";
|
|
77
81
|
propertiesReady: "propertiesReady";
|
|
@@ -389,8 +389,6 @@ export class RenderController {
|
|
|
389
389
|
getNumMeshnodes(params?: {}): number;
|
|
390
390
|
getNumNodes(params?: {}): number;
|
|
391
391
|
getMeasureObjectMeshesPartition(): Promise<import("../pwfreader/PWFTypes").MeshnodeObject[]>;
|
|
392
|
-
setPickable(nodeIds: any, options: any): Promise<void>;
|
|
393
|
-
clearPickable(options: any): Promise<void>;
|
|
394
392
|
}
|
|
395
393
|
export namespace RenderController {
|
|
396
394
|
namespace NullSelectedSubtree {
|
|
@@ -280,8 +280,6 @@ export class RenderControllerProxy {
|
|
|
280
280
|
setHotkeysEnabled(enabled: any): void;
|
|
281
281
|
isPartitionedModel(...params: any[]): boolean | Promise<any>;
|
|
282
282
|
getMeasureObjectMeshesPartition(...params: any[]): Promise<any>;
|
|
283
|
-
setPickable(...params: any[]): Promise<any>;
|
|
284
|
-
clearPickable(...params: any[]): Promise<any>;
|
|
285
283
|
}
|
|
286
284
|
export namespace RenderControllerProxy {
|
|
287
285
|
namespace NAVIGATION_MODE {
|
|
@@ -122,6 +122,4 @@ export class RenderControllerWorker {
|
|
|
122
122
|
partitionUrlsFromMeshnodeIndices(...params: any[]): Promise<any>;
|
|
123
123
|
isPartitionedModel(...params: any[]): Promise<any>;
|
|
124
124
|
getMeasureObjectMeshesPartition(...params: any[]): Promise<any>;
|
|
125
|
-
setPickable(...params: any[]): Promise<any>;
|
|
126
|
-
clearPickable(...params: any[]): Promise<any>;
|
|
127
125
|
}
|
|
@@ -8,7 +8,6 @@ export declare class PickingController {
|
|
|
8
8
|
private models;
|
|
9
9
|
private camera;
|
|
10
10
|
private sectionController;
|
|
11
|
-
private pickableMeshnodeIndices;
|
|
12
11
|
constructor(params: {
|
|
13
12
|
renderer: ViewerRenderer;
|
|
14
13
|
pickingTexture: THREE.WebGLRenderTarget;
|
|
@@ -27,10 +26,4 @@ export declare class PickingController {
|
|
|
27
26
|
mouseToThreeRay(event: MouseEvent): THREE.Raycaster;
|
|
28
27
|
extractId(event: MouseEvent): number;
|
|
29
28
|
private rayTestMesh;
|
|
30
|
-
setPickable(nodeIds: number[], options: {
|
|
31
|
-
pickable: boolean;
|
|
32
|
-
resourceId: number;
|
|
33
|
-
}): void;
|
|
34
|
-
isPickable(meshnodeIndex: number): boolean;
|
|
35
|
-
clearPickable(): void;
|
|
36
29
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { SvgRenderer } from '../components/Markup/SvgRenderer';
|
|
2
|
+
import { WindowPinsCreationComponent } from '../components/WindowPinsCreationComponent';
|
|
3
|
+
import { RenderControllerProxy } from '../controllers/RenderControllerProxy';
|
|
4
|
+
type Configuration = {
|
|
5
|
+
dropdown?: boolean;
|
|
6
|
+
selectCIs?: boolean;
|
|
7
|
+
selectObservations?: boolean;
|
|
8
|
+
selectRFIs?: boolean;
|
|
9
|
+
selectScheduledItems?: boolean;
|
|
10
|
+
hideCIs?: boolean;
|
|
11
|
+
hideObservations?: boolean;
|
|
12
|
+
hideRFIs?: boolean;
|
|
13
|
+
hideScheduledItems?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type PinsDisplayToggledPayload = {
|
|
16
|
+
value: boolean;
|
|
17
|
+
configuration: Required<Configuration>;
|
|
18
|
+
};
|
|
19
|
+
export type PinsDisplayConfiguredPayload = {
|
|
20
|
+
previous: Required<Configuration>;
|
|
21
|
+
current: Required<Configuration>;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
};
|
|
24
|
+
export declare class PinsManager {
|
|
25
|
+
private pins;
|
|
26
|
+
private svgRenderer;
|
|
27
|
+
private pinsEnabled;
|
|
28
|
+
private configuration;
|
|
29
|
+
private windowPinsCreationComponent;
|
|
30
|
+
private renderControllerProxy;
|
|
31
|
+
constructor(svgRenderer: SvgRenderer, renderControllerProxy: RenderControllerProxy, windowPinsCreationComponent: WindowPinsCreationComponent);
|
|
32
|
+
static readonly DEFAULT_CONFIG: Readonly<Required<Configuration>>;
|
|
33
|
+
init(): Promise<void>;
|
|
34
|
+
private onIntersectPointClick;
|
|
35
|
+
isEnabled(): boolean;
|
|
36
|
+
draw(): void;
|
|
37
|
+
clear(): void;
|
|
38
|
+
toggle(params: {
|
|
39
|
+
enable: boolean;
|
|
40
|
+
}): void;
|
|
41
|
+
getConfiguration(): Configuration;
|
|
42
|
+
configurePinsSelection(config?: Configuration): void;
|
|
43
|
+
configurePinsDisplay(config?: Configuration): void;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -87,8 +87,6 @@ export class PartitionsRenderer {
|
|
|
87
87
|
setClearAlpha: (args: any) => void;
|
|
88
88
|
setAnimationLoop: (callback: any) => void;
|
|
89
89
|
setRenderTarget: (renderTarget: any) => void;
|
|
90
|
-
setPickingController: (pickingController: any) => void;
|
|
91
|
-
pickingController: any;
|
|
92
90
|
readRenderTargetPixels: (renderTarget: any, x: any, y: any, width: any, height: any, buffer: any) => void;
|
|
93
91
|
allocTextureUnit: () => number;
|
|
94
92
|
renderBufferDirect: (camera: any, fog: any, geometry: any, material: any, object: any, group: any) => void;
|
|
@@ -3,7 +3,6 @@ import type { RenderMode } from '../utils/constants';
|
|
|
3
3
|
import type { Models } from './Models';
|
|
4
4
|
import { ColorServices } from './ColorServices';
|
|
5
5
|
import { GeometryFactory } from './GeometryFactory';
|
|
6
|
-
import type { PickingController } from '../picking/PickingController';
|
|
7
6
|
type PartitionedModelRendererArgs = {
|
|
8
7
|
antialias: boolean;
|
|
9
8
|
preserveDrawingBuffer: boolean;
|
|
@@ -54,6 +53,5 @@ export declare class PartitionsRendererImpl implements ViewerRenderer {
|
|
|
54
53
|
renderSection(scene: THREE.Scene, camera: THREE.Camera): void;
|
|
55
54
|
getWebGLRenderer(): THREE.WebGLRenderer;
|
|
56
55
|
setGeometryFactory(geometryFactory: GeometryFactory): void;
|
|
57
|
-
setPickingController(pickingController: PickingController): void;
|
|
58
56
|
}
|
|
59
57
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { PickingController } from '../picking/PickingController';
|
|
2
1
|
import type { RenderMode } from '../utils/constants';
|
|
3
2
|
import { ColorServices } from './ColorServices';
|
|
4
3
|
import { GeometryFactory } from './GeometryFactory';
|
|
@@ -39,5 +38,4 @@ export interface ViewerRenderer {
|
|
|
39
38
|
renderSection(scene: THREE.Scene, camera: THREE.Camera): void;
|
|
40
39
|
getWebGLRenderer(): THREE.WebGLRenderer;
|
|
41
40
|
setGeometryFactory(geometryFactory: GeometryFactory): void;
|
|
42
|
-
setPickingController(pickingController: PickingController): void;
|
|
43
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/bim-webviewer-sdk",
|
|
3
|
-
"version": "17.0.0-
|
|
3
|
+
"version": "17.0.0-pins-hackathon.0",
|
|
4
4
|
"description": "Procore BIM Webviewer SDK",
|
|
5
5
|
"main": "dist/Procore.Bim.Webviewer.js",
|
|
6
6
|
"types": "dist/Procore.Bim.Webviewer.d.ts",
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
],
|
|
13
13
|
"author": "Procore Technologies",
|
|
14
14
|
"license": "SEE LICENSE IN LICENSE"
|
|
15
|
-
}
|
|
15
|
+
}
|