@procore/bim-webviewer-sdk 17.0.0-ai-hackthon.0 → 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.
Files changed (26) hide show
  1. package/dist/Procore.Bim.Webviewer.d.ts +2181 -133
  2. package/dist/Procore.Bim.Webviewer.js +1 -1
  3. package/dist/Procore.Bim.Webviewer.js.LICENSE.txt +0 -318
  4. package/dist/types/src/Webviewer.d.ts +4 -2
  5. package/dist/types/src/api/HttpClient.d.ts +0 -2
  6. package/dist/types/src/api/coordination_issues.d.ts +1 -0
  7. package/dist/types/src/components/ContextMenuComponent/ContextMenuComponent.d.ts +0 -1
  8. package/dist/types/src/components/DropdownComponent/MenuOptions/MenuOption.d.ts +2 -2
  9. package/dist/types/src/components/DropdownComponent/MenuOptions/MenuOptionSelect.d.ts +8 -0
  10. package/dist/types/src/components/DropdownComponent/MenuOptions/MenuTitle.d.ts +9 -0
  11. package/dist/types/src/components/DropdownComponent/PinsToolDropdown/PinsToolDropdown.d.ts +31 -0
  12. package/dist/types/src/components/Markup/SvgRenderer.d.ts +13 -0
  13. package/dist/types/src/components/RootComponent.d.ts +5 -2
  14. package/dist/types/src/components/Tool.d.ts +1 -1
  15. package/dist/types/src/components/ToolBarComponent/ToolBarComponent.d.ts +6 -4
  16. package/dist/types/src/components/ToolBarTools.d.ts +1 -1
  17. package/dist/types/src/components/WindowPinsCreationComponent.d.ts +13 -0
  18. package/dist/types/src/controllers/ApiController/ApiController.d.ts +1 -1
  19. package/dist/types/src/controllers/PubSubController.d.ts +4 -0
  20. package/dist/types/src/pins/PinsManager.d.ts +45 -0
  21. package/package.json +1 -1
  22. package/dist/types/src/api/bim_databrick_query.d.ts +0 -1
  23. package/dist/types/src/components/AIChatComponent/AIChatComponent.d.ts +0 -11
  24. package/dist/types/src/components/AIChatComponent/AIChatWindowComponent.d.ts +0 -9
  25. package/dist/types/src/components/AIChatComponent/TrainingDataSet.d.ts +0 -4
  26. package/dist/types/src/components/AIChatComponent/index.d.ts +0 -1
@@ -1,323 +1,5 @@
1
1
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2
2
 
3
- /**
4
- * @license
5
- * Copyright 2021 Google LLC. All Rights Reserved.
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- * =============================================================================
18
- */
19
-
20
- /**
21
- * @license
22
- * Copyright 2017 Google LLC. All Rights Reserved.
23
- * Licensed under the Apache License, Version 2.0 (the "License");
24
- * you may not use this file except in compliance with the License.
25
- * You may obtain a copy of the License at
26
- *
27
- * http://www.apache.org/licenses/LICENSE-2.0
28
- *
29
- * Unless required by applicable law or agreed to in writing, software
30
- * distributed under the License is distributed on an "AS IS" BASIS,
31
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
- * See the License for the specific language governing permissions and
33
- * limitations under the License.
34
- * =============================================================================
35
- */
36
-
37
- /**
38
- * @license
39
- * Copyright 2018 Google LLC
40
- *
41
- * Use of this source code is governed by an MIT-style
42
- * license that can be found in the LICENSE file or at
43
- * https://opensource.org/licenses/MIT.
44
- * =============================================================================
45
- */
46
-
47
- /**
48
- * @license
49
- * Copyright 2018 Google LLC. All Rights Reserved.
50
- * Licensed under the Apache License, Version 2.0 (the "License");
51
- * you may not use this file except in compliance with the License.
52
- * You may obtain a copy of the License at
53
- *
54
- * http://www.apache.org/licenses/LICENSE-2.0
55
- *
56
- * Unless required by applicable law or agreed to in writing, software
57
- * distributed under the License is distributed on an "AS IS" BASIS,
58
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59
- * See the License for the specific language governing permissions and
60
- * limitations under the License.
61
- *
62
- * =============================================================================
63
- */
64
-
65
- /**
66
- * @license
67
- * Copyright 2018 Google LLC. All Rights Reserved.
68
- * Licensed under the Apache License, Version 2.0 (the "License");
69
- * you may not use this file except in compliance with the License.
70
- * You may obtain a copy of the License at
71
- *
72
- * http://www.apache.org/licenses/LICENSE-2.0
73
- *
74
- * Unless required by applicable law or agreed to in writing, software
75
- * distributed under the License is distributed on an "AS IS" BASIS,
76
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
77
- * See the License for the specific language governing permissions and
78
- * limitations under the License.
79
- * =============================================================================
80
- */
81
-
82
- /**
83
- * @license
84
- * Copyright 2019 Google LLC
85
- *
86
- * Use of this source code is governed by an MIT-style
87
- * license that can be found in the LICENSE file or at
88
- * https://opensource.org/licenses/MIT.
89
- * =============================================================================
90
- */
91
-
92
- /**
93
- * @license
94
- * Copyright 2019 Google LLC. All Rights Reserved.
95
- * Licensed under the Apache License, Version 2.0 (the "License");
96
- * you may not use this file except in compliance with the License.
97
- * You may obtain a copy of the License at
98
- *
99
- * http://www.apache.org/licenses/LICENSE-2.0
100
- *
101
- * Unless required by applicable law or agreed to in writing, software
102
- * distributed under the License is distributed on an "AS IS" BASIS,
103
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
- * See the License for the specific language governing permissions and
105
- * limitations under the License.
106
- * =============================================================================
107
- */
108
-
109
- /**
110
- * @license
111
- * Copyright 2020 Google Inc. All Rights Reserved.
112
- * Licensed under the Apache License, Version 2.0 (the "License");
113
- * you may not use this file except in compliance with the License.
114
- * You may obtain a copy of the License at
115
- *
116
- * http://www.apache.org/licenses/LICENSE-2.0
117
- *
118
- * Unless required by applicable law or agreed to in writing, software
119
- * distributed under the License is distributed on an "AS IS" BASIS,
120
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121
- * See the License for the specific language governing permissions and
122
- * limitations under the License.
123
- * =============================================================================
124
- */
125
-
126
- /**
127
- * @license
128
- * Copyright 2020 Google LLC
129
- *
130
- * Use of this source code is governed by an MIT-style
131
- * license that can be found in the LICENSE file or at
132
- * https://opensource.org/licenses/MIT.
133
- * =============================================================================
134
- */
135
-
136
- /**
137
- * @license
138
- * Copyright 2020 Google LLC. All Rights Reserved.
139
- * Licensed under the Apache License, Version 2.0 (the "License");
140
- * you may not use this file except in compliance with the License.
141
- * You may obtain a copy of the License at
142
- *
143
- * http://www.apache.org/licenses/LICENSE-2.0
144
- *
145
- * Unless required by applicable law or agreed to in writing, software
146
- * distributed under the License is distributed on an "AS IS" BASIS,
147
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
148
- * See the License for the specific language governing permissions and
149
- * limitations under the License.
150
- * =============================================================================
151
- */
152
-
153
- /**
154
- * @license
155
- * Copyright 2020 Google LLC. All Rights Reserved.
156
- * Licensed under the Apache License, Version 2.0 (the License);
157
- * you may not use this file except in compliance with the License.
158
- * You may obtain a copy of the License at
159
- *
160
- * http://www.apache.org/licenses/LICENSE-2.0
161
- *
162
- * Unless required by applicable law or agreed to in writing, software
163
- * distributed under the License is distributed on an AS IS BASIS,
164
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
165
- * See the License for the specific language governing permissions and
166
- * limitations under the License.
167
- * =============================================================================
168
- */
169
-
170
- /**
171
- * @license
172
- * Copyright 2021 Google LLC. All Rights Reserved.
173
- * Licensed under the Apache License, Version 2.0 (the "License");
174
- * you may not use this file except in compliance with the License.
175
- * You may obtain a copy of the License at
176
- *
177
- * http://www.apache.org/licenses/LICENSE-2.0
178
- *
179
- * Unless required by applicable law or agreed to in writing, software
180
- * distributed under the License is distributed on an "AS IS" BASIS,
181
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
182
- * See the License for the specific language governing permissions and
183
- * limitations under the License.
184
- * =============================================================================
185
- */
186
-
187
- /**
188
- * @license
189
- * Copyright 2021 Google LLC. All Rights Reserved.
190
- * Licensed under the Apache License, Version 2.0 (the "License");
191
- * you may not use this file except in compliance with the License.
192
- * You may obtain a copy of the License at
193
- *
194
- * https://www.apache.org/licenses/LICENSE-2.0
195
- *
196
- * Unless required by applicable law or agreed to in writing, software
197
- * distributed under the License is distributed on an "AS IS" BASIS,
198
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
- * See the License for the specific language governing permissions and
200
- * limitations under the License.
201
- * =============================================================================
202
- */
203
-
204
- /**
205
- * @license
206
- * Copyright 2022 CodeSmith LLC
207
- *
208
- * Use of this source code is governed by an MIT-style
209
- * license that can be found in the LICENSE file or at
210
- * https://opensource.org/licenses/MIT.
211
- * =============================================================================
212
- */
213
-
214
- /**
215
- * @license
216
- * Copyright 2022 Google Inc. All Rights Reserved.
217
- * Licensed under the Apache License, Version 2.0 (the "License");
218
- * you may not use this file except in compliance with the License.
219
- * You may obtain a copy of the License at
220
- *
221
- * http://www.apache.org/licenses/LICENSE-2.0
222
- *
223
- * Unless required by applicable law or agreed to in writing, software
224
- * distributed under the License is distributed on an "AS IS" BASIS,
225
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
226
- * See the License for the specific language governing permissions and
227
- * limitations under the License.
228
- * =============================================================================
229
- */
230
-
231
- /**
232
- * @license
233
- * Copyright 2022 Google LLC
234
- *
235
- * Use of this source code is governed by an MIT-style
236
- * license that can be found in the LICENSE file or at
237
- * https://opensource.org/licenses/MIT.
238
- * =============================================================================
239
- */
240
-
241
- /**
242
- * @license
243
- * Copyright 2022 Google LLC.
244
- * Licensed under the Apache License, Version 2.0 (the "License");
245
- * you may not use this file except in compliance with the License.
246
- * You may obtain a copy of the License at
247
- *
248
- * http://www.apache.org/licenses/LICENSE-2.0
249
- *
250
- * Unless required by applicable law or agreed to in writing, software
251
- * distributed under the License is distributed on an "AS IS" BASIS,
252
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
253
- * See the License for the specific language governing permissions and
254
- * limitations under the License.
255
- * =============================================================================
256
- */
257
-
258
- /**
259
- * @license
260
- * Copyright 2022 Google LLC. All Rights Reserved.
261
- * Licensed under the Apache License, Version 2.0 (the "License");
262
- * you may not use this file except in compliance with the License.
263
- * You may obtain a copy of the License at
264
- *
265
- * http://www.apache.org/licenses/LICENSE-2.0
266
- *
267
- * Unless required by applicable law or agreed to in writing, software
268
- * distributed under the License is distributed on an "AS IS" BASIS,
269
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
270
- * See the License for the specific language governing permissions and
271
- * limitations under the License.
272
- * =============================================================================
273
- */
274
-
275
- /**
276
- * @license
277
- * Copyright 2022 Google LLC. All Rights Reserved.
278
- * Licensed under the Apache License, Version 2.0 (the 'License');
279
- * you may not use this file except in compliance with the License.
280
- * You may obtain a copy of the License at
281
- *
282
- * http://www.apache.org/licenses/LICENSE-2.0
283
- *
284
- * Unless required by applicable law or agreed to in writing, software
285
- * distributed under the License is distributed on an 'AS IS' BASIS,
286
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
287
- * See the License for the specific language governing permissions and
288
- * limitations under the License.
289
- * =============================================================================
290
- */
291
-
292
- /**
293
- * @license
294
- * Copyright 2023 CodeSmith LLC
295
- *
296
- * Use of this source code is governed by an MIT-style
297
- * license that can be found in the LICENSE file or at
298
- * https://opensource.org/licenses/MIT.
299
- * =============================================================================
300
- */
301
-
302
- /**
303
- * @license
304
- * Copyright 2023 Google LLC.
305
- * Licensed under the Apache License, Version 2.0 (the "License");
306
- * you may not use this file except in compliance with the License.
307
- * You may obtain a copy of the License at
308
- *
309
- * http://www.apache.org/licenses/LICENSE-2.0
310
- *
311
- * Unless required by applicable law or agreed to in writing, software
312
- * distributed under the License is distributed on an "AS IS" BASIS,
313
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
314
- * See the License for the specific language governing permissions and
315
- * limitations under the License.
316
- * =============================================================================
317
- */
318
-
319
- /** @license See the LICENSE file. */
320
-
321
3
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
322
4
 
323
5
  //!\ DECLARE ALIAS AFTER assign prototype !
@@ -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,7 +40,7 @@ export declare class Webviewer {
38
40
  readonly LOADING: 13;
39
41
  readonly XRAY_MODE: 14;
40
42
  readonly SECTION_BOX: 15;
41
- readonly AIChat: 16;
43
+ readonly PINS: 16;
42
44
  };
43
45
  static readonly toolbar_enum: {
44
46
  readonly NONE: 0;
@@ -55,7 +57,7 @@ export declare class Webviewer {
55
57
  readonly CONTEXT_MENU: 11;
56
58
  readonly XRAY_MODE: 12;
57
59
  readonly SECTION_BOX: 13;
58
- readonly AIChat: 14;
60
+ readonly PINS: 14;
59
61
  };
60
62
  static readonly action: {
61
63
  readonly NONE: -1;
@@ -9,6 +9,4 @@ export declare function getHeaders(): Record<string, string>;
9
9
  export declare let client: HttpClient;
10
10
  export declare let cachedClient: HttpClient;
11
11
  export declare function initHttpClient(options: Options): void;
12
- export declare let databrickClient: HttpClient;
13
- export declare function initDatabrickHttpClient(): void;
14
12
  export declare function disposeHttpClient(): void;
@@ -0,0 +1 @@
1
+ export declare const GetCoordinationIssues: (projectId: number) => Promise<Response>;
@@ -30,7 +30,6 @@ export class ContextMenuComponent {
30
30
  OnHideObject(): void;
31
31
  OnHideSimilar(): Promise<void>;
32
32
  OnSelectSimilar(): Promise<void>;
33
- onSelectSimilarMasterFormat(): Promise<void>;
34
33
  OnIsolate(): Promise<void>;
35
34
  OnViewProperties(): void;
36
35
  ClearContextMenu(): void;
@@ -1,12 +1,12 @@
1
1
  import './styles.css';
2
2
  export type OnClickCallback = (event: MouseEvent) => void;
3
3
  export type MenuOptionProps = {
4
- onClick: OnClickCallback;
4
+ onClick?: OnClickCallback;
5
5
  label: string;
6
6
  };
7
7
  export declare class MenuOption {
8
8
  element: HTMLElement;
9
- onClick: OnClickCallback;
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,9 @@
1
+ import './styles.css';
2
+ import { MenuOption } from './MenuOption';
3
+ export type MenuTitleProps = {
4
+ label: string;
5
+ };
6
+ export declare class MenuTitle extends MenuOption {
7
+ element: HTMLElement;
8
+ constructor(props: MenuTitleProps);
9
+ }
@@ -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';
@@ -15,6 +15,6 @@ export declare const TOOL: {
15
15
  readonly LOADING: 13;
16
16
  readonly XRAY_MODE: 14;
17
17
  readonly SECTION_BOX: 15;
18
- readonly AIChat: 16;
18
+ readonly PINS: 16;
19
19
  };
20
20
  export type Tool = (typeof TOOL)[keyof typeof TOOL];
@@ -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,7 +28,7 @@ export class ToolBarComponent {
27
28
  4: any;
28
29
  12: any;
29
30
  13: any;
30
- 14: "AI Chat";
31
+ 14: any;
31
32
  }>;
32
33
  toolIconMap: Readonly<{
33
34
  9: "nav-icon-views";
@@ -41,7 +42,7 @@ export class ToolBarComponent {
41
42
  4: "nav-icon-cursor-orbit";
42
43
  12: "nav-icon-xray-mode";
43
44
  13: "nav-icon-section-box";
44
- 14: "nav-icon-aichat";
45
+ 14: "nav-icon-pins";
45
46
  }>;
46
47
  toolEnumMap: Readonly<{
47
48
  4: 9;
@@ -68,6 +69,7 @@ export class ToolBarComponent {
68
69
  onResize(): void;
69
70
  createNavTools(toolbar: any): void;
70
71
  onMeasurementToggled(data: any): void;
72
+ onPinsToggled(data: any): void;
71
73
  onSectionBoxDisplayToggled(data: any): void;
72
74
  onRenderModeChanged(data: any): void;
73
75
  onSelectTool(data: any): void;
@@ -13,6 +13,6 @@ export declare const TOOL_BAR_TOOLS: {
13
13
  readonly CONTEXT_MENU: 11;
14
14
  readonly XRAY_MODE: 12;
15
15
  readonly SECTION_BOX: 13;
16
- readonly AIChat: 14;
16
+ readonly PINS: 14;
17
17
  };
18
18
  export type ToolBarTools = (typeof TOOL_BAR_TOOLS)[keyof typeof TOOL_BAR_TOOLS];
@@ -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
+ }
@@ -10,7 +10,6 @@ export class ApiController {
10
10
  modelRevisions: typeof ModelRevisions;
11
11
  fileExtractions: typeof FileExtractions;
12
12
  CheckBimPropertyService(): void;
13
- GetMasterFormat(id: any): Promise<any>;
14
13
  GetBimObjectsFor(ids: any): Promise<any>;
15
14
  GetBimModelRevisionViewpoints(): void;
16
15
  GetBimFileViewFolders(bimfileId: any): void;
@@ -21,6 +20,7 @@ export class ApiController {
21
20
  }): void;
22
21
  GetSimilarObjects(query: any): Promise<Response>;
23
22
  trackEvent(key: any, properties?: {}): Promise<void>;
23
+ GetPins(): Promise<any>;
24
24
  }
25
25
  export const api: ApiController;
26
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";
@@ -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 {};