@procore/bim-webviewer-sdk 14.0.0-less-benchmark.0 → 14.0.0-mind.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/CHANGELOG.md +19 -0
  2. package/dist/Procore.Bim.Webviewer.d.ts +10 -0
  3. package/dist/Procore.Bim.Webviewer.js +1 -1
  4. package/dist/types/src/Webviewer.d.ts +1 -0
  5. package/dist/types/src/api/analytic_events/__tests__/payloadFactories.test.d.ts +1 -0
  6. package/dist/types/src/api/analytic_events/analyticKeys.d.ts +20 -8
  7. package/dist/types/src/api/analytic_events/payloadFactories.d.ts +16 -8
  8. package/dist/types/src/api/types/FileExtraction.d.ts +8 -0
  9. package/dist/types/src/components/ShortestDistanceComponent.d.ts +27 -3
  10. package/dist/types/src/components/__tests__/ShortestDistanceComponent.test.d.ts +1 -0
  11. package/dist/types/src/controllers/Bootstrapper.d.ts +4 -4
  12. package/dist/types/src/controllers/RenderController.d.ts +16 -12
  13. package/dist/types/src/controllers/RenderControllerProxy.d.ts +4 -11
  14. package/dist/types/src/controllers/RenderControllerWorker.d.ts +3 -0
  15. package/dist/types/src/procoregl/StreamedGeometryFactory.d.ts +0 -2
  16. package/dist/types/src/pwfreader/PWF.d.ts +2 -2
  17. package/dist/types/src/pwfreader/shared/Meshnode.d.ts +17 -11
  18. package/dist/types/src/pwfreader/streaming/PartitionUrl.d.ts +1 -0
  19. package/dist/types/src/pwfreader/streaming/StreamedMeshServices.d.ts +1 -1
  20. package/dist/types/src/pwfreader/streaming/StreamedMeshnode.d.ts +2 -12
  21. package/dist/types/src/pwfreader/streaming/__tests__/PartitionUrl.test.d.ts +1 -0
  22. package/dist/types/src/utils/ApiMetaData/ApiMetaData.d.ts +2 -1
  23. package/dist/types/src/utils/ApiMetaData/__tests__/mocks.d.ts +7 -0
  24. package/dist/types/src/utils/LRUCache.d.ts +13 -0
  25. package/dist/types/src/utils/__tests__/LRUCache.test.d.ts +1 -0
  26. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,12 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Fixed
11
+
12
+ - Fixes the loading of partitioned models when on `production`.
13
+ - [Internal] Bootstrapper is now using a properly constructed URL string to perform a match on the cache.
14
+ - [Internal] Refactoring was required to avoid introducing a circular dependency on PartitionProxy.
15
+ - [Internal] Minor tweaks were also made to fix some "steps accounting" errors in Bootstrapper for partitioned models.
16
+ - Fixes the inconsistencies of the ShortestDistanceComponent when operating on partitioned models.
17
+ - [Internal] Now fetches the geometry data in main JS memory from PWFCache instead of performing a buffer read-back from the GPU.
18
+
10
19
  ### Added
11
20
 
12
21
  - Add `model.getViewpoint` and `model.setViewpoint` methods.
13
22
  - These methods interact with the viewpoints schema defined by the `bim_viewpoints` endpoint (https://developers.procore.com/reference/rest/v1/bim-viewpoints?version=1.0)
14
23
  - Calls to `camera.get/setBcfCamera`, `model.getSections/setSectionsData`, `markup.setRedlines` (or its deprecated alias `camera.setMarkup`) for the purpose of constructing viewpoints can be replaced with calls to `model.get/setViewpoint`
15
24
  - [Internal] Added `project_id` to our track event requests. Project ID and project name will now be filled in New Relic.
25
+ - [Internal] Payloads for analytic events `client_loading.initialization` and `client_loading.download_completed` will now include `file_name`, `file_type`, and `input_file_size` properties.
26
+ - [Internal] Payloads for analytic events `client_loading.initialization` will now include `step_failed`, and `error_descriptions` properties.
27
+ - public events `initializationComplete` and `initializationComplete` have their payloads updated to include `step_failed`, and `error_descriptions` properties. Should an error occur during initialization, the `step_failed` property will be set to the step failed while bootstrapping the model and the `error_descriptions` will be set to the error message.
28
+
29
+ ### Changed
30
+
31
+ - Removed some development-only checks from renderer in the production build for a minor performance improvement.
32
+ - [Internal] `Benchmark` checks are stripped from production build
33
+ - Minor reduction in build size
34
+ - [Internal] Run two passes of `TerserPlugin` by using Webpack's default rather than the `TerserPlugin`'s default.
16
35
 
17
36
  ## [14.0.0] - 2024-04-01
18
37
 
@@ -1,3 +1,11 @@
1
+ declare type Attachment = {
2
+ id: number;
3
+ content_type: string;
4
+ name: string;
5
+ size: number;
6
+ url: string;
7
+ };
8
+
1
9
  declare type AutodeskFormatClipBox = {
2
10
  Type: 'OrientedBox3D';
3
11
  Version: 1;
@@ -48,6 +56,7 @@ export declare namespace Benchmark {
48
56
  declare type BimFileUpload = {
49
57
  id: number;
50
58
  file_version: FileVersion;
59
+ attachment: Attachment;
51
60
  };
52
61
 
53
62
  declare type BoundingBox = {
@@ -460,6 +469,7 @@ export declare class Webviewer {
460
469
  setOptions: (opts: {
461
470
  selection: string;
462
471
  }) => void;
472
+ setCanvasSelectionEnabled: (enabled: boolean) => void;
463
473
  MapToModelSpace: (point: Vector2, modelA: Vector2, modelB: Vector2, planA: Vector2, planB: Vector2, imgSize: Vector2, rect: Vector2, direction: Vector2, applyOffset: boolean) => Promise<{
464
474
  x?: number;
465
475
  y?: number;