@cognite/reveal-components 1.0.0 → 1.0.2

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 (153) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/poi-markers/poi-create-cursor.js +4 -0
  3. package/dist/common/i18n/en/reveal-components.js +183 -178
  4. package/dist/data-providers/Fdm3dDataProvider.d.ts +3 -3
  5. package/dist/data-providers/FdmSDK.d.ts +8 -0
  6. package/dist/data-providers/FdmSDK.js +34 -21
  7. package/dist/data-providers/assets/createClassicAssetsCache.d.ts +7 -0
  8. package/dist/data-providers/assets/createClassicAssetsCache.js +18 -0
  9. package/dist/data-providers/assets/createDmsDescribableNodesCache.d.ts +23 -0
  10. package/dist/data-providers/assets/createDmsDescribableNodesCache.js +19 -0
  11. package/dist/data-providers/cache/PointCloudAnnotationCache.js +10 -10
  12. package/dist/data-providers/cache/RevisionFdmNodeCache.d.ts +3 -2
  13. package/dist/data-providers/cache/RevisionFdmNodeCache.js +65 -39
  14. package/dist/data-providers/cache/annotationModelUtils.js +8 -6
  15. package/dist/data-providers/cache/cad/CadInstanceMappingsCache.d.ts +5 -2
  16. package/dist/data-providers/cache/cad/CadInstanceMappingsCacheImpl.js +9 -6
  17. package/dist/data-providers/cache/cad/FdmCadNodeCache.d.ts +3 -1
  18. package/dist/data-providers/cache/cad/FdmCadNodeCacheImpl.d.ts +5 -0
  19. package/dist/data-providers/cache/cad/FdmCadNodeCacheImpl.js +8 -3
  20. package/dist/data-providers/core-dm-provider/CoreDm3dDataProvider.d.ts +3 -3
  21. package/dist/data-providers/core-dm-provider/CoreDm3dDataProvider.js +11 -11
  22. package/dist/data-providers/core-dm-provider/filterNodesByMappedTo3d.js +13 -13
  23. package/dist/data-providers/core-dm-provider/getCadConnectionsForInstances.js +18 -18
  24. package/dist/data-providers/core-dm-provider/getCadConnectionsForRevisions.js +11 -11
  25. package/dist/data-providers/core-dm-provider/getCadModelsForInstance.js +3 -3
  26. package/dist/data-providers/core-dm-provider/getDMSModels.js +6 -6
  27. package/dist/data-providers/core-dm-provider/getEdgeConnected3dInstances.js +8 -8
  28. package/dist/data-providers/core-dm-provider/getFdmConnectionsForNodes.d.ts +2 -3
  29. package/dist/data-providers/core-dm-provider/getFdmConnectionsForNodes.js +19 -19
  30. package/dist/data-providers/core-dm-provider/listMappedFdmNodes.js +14 -14
  31. package/dist/data-providers/index.d.ts +2 -1
  32. package/dist/data-providers/index.js +2 -0
  33. package/dist/data-providers/legacy-fdm-provider/LegacyFdm3dDataProvider.d.ts +3 -3
  34. package/dist/data-providers/legacy-fdm-provider/fdmEdgesToCadConnections.js +3 -3
  35. package/dist/data-providers/legacy-fdm-provider/getFdmConnectionsForNodeIds.d.ts +3 -3
  36. package/dist/data-providers/legacy-fdm-provider/getFdmConnectionsForNodeIds.js +1 -1
  37. package/dist/data-providers/network/cad/searchClassicAssetsForCadModels.js +5 -5
  38. package/dist/data-providers/network/cad/searchHybridDmAssetsForCadModels.js +3 -3
  39. package/dist/data-providers/network/common/getDMAssetsForAnnotationReference.js +3 -3
  40. package/dist/data-providers/utils/getDMSModelRevisionRefs.js +3 -3
  41. package/dist/domains/annotation360/image360SceneCollectionTransform.d.ts +18 -0
  42. package/dist/domains/annotation360/image360SceneCollectionTransform.js +37 -0
  43. package/dist/domains/index.d.ts +4 -2
  44. package/dist/domains/index.js +3 -1
  45. package/dist/domains/pointsOfInterest/PointsOfInterestTool.d.ts +5 -0
  46. package/dist/domains/pointsOfInterest/PointsOfInterestTool.js +36 -17
  47. package/dist/domains/reveal/RevealDomainObjectUtils.d.ts +1 -0
  48. package/dist/domains/reveal/RevealDomainObjectUtils.js +1 -1
  49. package/dist/domains/reveal/cad/CadDomainObject.d.ts +18 -1
  50. package/dist/domains/reveal/cad/CadDomainObject.js +31 -15
  51. package/dist/foundation/renderTarget/CdfCaches.d.ts +9 -1
  52. package/dist/foundation/renderTarget/CdfCaches.js +24 -14
  53. package/dist/foundation/treeNodes/cad-tree-node/cad-lazy-loader.d.ts +3 -1
  54. package/dist/foundation/treeNodes/cad-tree-node/cad-lazy-loader.js +33 -22
  55. package/dist/foundation/treeNodes/cad-tree-node/cad-node-update-styling.js +6 -6
  56. package/dist/foundation/treeNodes/cad-tree-node/cad-tree-node.d.ts +1 -0
  57. package/dist/foundation/treeNodes/cad-tree-node/cad-tree-node.js +4 -1
  58. package/dist/foundation/treeNodes/cad-tree-node/nodes-and-instance-mappings-sdk/classic-instance-mappings-sdk.js +2 -5
  59. package/dist/foundation/treeNodes/cad-tree-node/nodes-and-instance-mappings-sdk/core-dm-instance-mappings-sdk.d.ts +14 -0
  60. package/dist/foundation/treeNodes/cad-tree-node/nodes-and-instance-mappings-sdk/core-dm-instance-mappings-sdk.js +23 -0
  61. package/dist/ui/components/InstanceLabel/InstanceLabel.js +18 -30
  62. package/dist/ui/components/Reveal3DResources/Reveal3DResources.js +20 -20
  63. package/dist/ui/components/RevealCanvas/SDKProvider.js +6 -6
  64. package/dist/ui/components/RevealCanvas/UsageMetricsTrackerContext.d.ts +3 -0
  65. package/dist/ui/components/RevealCanvas/UsageMetricsTrackerContext.js +6 -0
  66. package/dist/ui/components/RevealCanvas/ViewerContext.d.ts +2 -0
  67. package/dist/ui/components/RevealCanvas/ViewerContext.js +5 -5
  68. package/dist/ui/components/RevealContext/RevealContext.js +6 -6
  69. package/dist/ui/components/RevealToolbar/AssetContextualizedButton.js +1 -1
  70. package/dist/ui/components/RuleBasedOutputs/hooks/useGetDMConnectionWithNodeFromHybridMappingsQuery.js +11 -11
  71. package/dist/ui/components/Widget/RevealWidget.context.d.ts +2 -1
  72. package/dist/ui/components/Widget/RevealWidget.context.js +1 -1
  73. package/dist/ui/components/Widget/RevealWidget.d.ts +11 -2
  74. package/dist/ui/components/Widget/RevealWidget.js +35 -20
  75. package/dist/ui/components/Widget/RevealWidgetCameraController.d.ts +3 -1
  76. package/dist/ui/components/Widget/RevealWidgetCameraController.js +12 -10
  77. package/dist/ui/components/Widget/RevealWidgetController.d.ts +3 -1
  78. package/dist/ui/components/Widget/RevealWidgetController.js +40 -33
  79. package/dist/ui/components/Widget/index.d.ts +1 -1
  80. package/dist/ui/components/Widget/styling/applyPointCloudInstanceStyling.js +5 -5
  81. package/dist/ui/components/Widget/useRevealWidgetMetricsTracking.d.ts +21 -0
  82. package/dist/ui/components/Widget/useRevealWidgetMetricsTracking.js +33 -0
  83. package/dist/ui/components/commandBased/Factories/DefaultIcons.js +31 -31
  84. package/dist/ui/components/commandBased/buttons/DropdownButton.d.ts +2 -0
  85. package/dist/ui/components/commandBased/buttons/DropdownButton.js +67 -48
  86. package/dist/ui/components/commandBased/pointsOfInterest/PoiCommentSection.js +6 -6
  87. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/CadNodeInfoDialog.context.d.ts +16 -0
  88. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/CadNodeInfoDialog.context.js +6 -0
  89. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/CadNodeInfoDialog.d.ts +15 -0
  90. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/CadNodeInfoDialog.function.d.ts +5 -0
  91. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/CadNodeInfoDialog.function.js +14 -0
  92. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/CadNodeInfoDialog.js +105 -0
  93. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/DomainObjectTreeView.function.d.ts +13 -2
  94. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/DomainObjectTreeView.function.js +17 -9
  95. package/dist/ui/components/commandBased/treeView/DomainObjectTreeView/DomainObjectTreeView.js +27 -13
  96. package/dist/ui/components/commandBased/treeView/TreeView/components/tree-view-info.js +2 -2
  97. package/dist/ui/components/commandBased/treeView/TreeView/extraComponents/CadTreeAssetMappingDropdown.js +34 -33
  98. package/dist/ui/components/commandBased/treeView/TreeView/tree-view-node.js +1 -0
  99. package/dist/ui/components/commandBased/treeView/TreeView/tree-view-props.d.ts +1 -0
  100. package/dist/ui/components/commandBased/treeView/TreeView/tree-view.js +27 -25
  101. package/dist/ui/components/i18n/I18n.js +3 -3
  102. package/dist/ui/components/index.d.ts +1 -1
  103. package/dist/ui/hooks/network/fetchLinkFromRelationshipsByTimeseries.js +4 -4
  104. package/dist/ui/hooks/network/getImage360CollectionsForDmInstance.js +7 -7
  105. package/dist/ui/hooks/network/getTimeseriesLatestDatapoints.js +3 -3
  106. package/dist/ui/hooks/pointClouds/fetchAnnotationsForModel.js +4 -4
  107. package/dist/ui/hooks/pointClouds/usePointCloudAnnotationMappingForIntersection.js +11 -11
  108. package/dist/ui/hooks/pointClouds/usePointCloudAnnotationMappingsForAssetInstances.js +4 -4
  109. package/dist/ui/hooks/scenes/use3dScenes.js +4 -4
  110. package/dist/ui/query/core-dm/usePointCloudDMVolumeMappingForIntersection.js +9 -9
  111. package/dist/ui/query/core-dm/usePointCloudDMVolumes.js +10 -10
  112. package/dist/ui/query/index.d.ts +1 -0
  113. package/dist/ui/query/index.js +17 -16
  114. package/dist/ui/query/useAll3dDirectConnectionsWithProperties.js +6 -6
  115. package/dist/ui/query/useAssetsAndTimeseriesLinkageDataQuery.js +24 -24
  116. package/dist/ui/query/useAssetsAndTimeseriesLinkages.context.d.ts +3 -2
  117. package/dist/ui/query/useAssetsAndTimeseriesLinkages.context.js +4 -4
  118. package/dist/ui/query/useAssetsAndTimeseriesLinkages.js +13 -13
  119. package/dist/ui/query/useAssetsByIdsQuery.js +10 -11
  120. package/dist/ui/query/useCadNode3DInfo.d.ts +8 -0
  121. package/dist/ui/query/useCadNode3DInfo.js +24 -0
  122. package/dist/ui/query/useFetchClassicAssetsByIds.js +5 -5
  123. package/dist/ui/query/useFilterOnClassicAssetsInScene.js +6 -6
  124. package/dist/ui/query/useHybridMappingsForAssetInstances.js +9 -9
  125. package/dist/ui/query/useInstanceNames.d.ts +11 -0
  126. package/dist/ui/query/useInstanceNames.js +17 -0
  127. package/dist/ui/query/useInstancesByIdsQuery.context.d.ts +3 -5
  128. package/dist/ui/query/useInstancesByIdsQuery.context.js +4 -8
  129. package/dist/ui/query/useInstancesByIdsQuery.d.ts +9 -6
  130. package/dist/ui/query/useInstancesByIdsQuery.js +14 -23
  131. package/dist/ui/query/useNamedDmInstancesByIds.d.ts +12 -0
  132. package/dist/utilities/cache/ReadonlyEntityCache.d.ts +4 -0
  133. package/dist/utilities/cache/ReadonlyEntityCache.js +27 -0
  134. package/dist/utilities/createMixpanelUsageMetricsTracker.d.ts +23 -0
  135. package/dist/utilities/createMixpanelUsageMetricsTracker.js +23 -0
  136. package/dist/utilities/externalIndex.d.ts +2 -0
  137. package/dist/utilities/externalIndex.js +3 -1
  138. package/dist/utilities/getInstancesFromClick.js +9 -9
  139. package/dist/utilities/index.d.ts +2 -1
  140. package/dist/utilities/index.js +12 -9
  141. package/dist/utilities/queryKeys.d.ts +2 -0
  142. package/dist/utilities/queryKeys.js +7 -0
  143. package/dist/utilities/signal/useCombinedUpdateSignal.d.ts +9 -0
  144. package/dist/utilities/signal/useCombinedUpdateSignal.js +14 -0
  145. package/dist/utilities/signal/useMemoWithUpdateSignal.d.ts +3 -0
  146. package/dist/utilities/signal/useMemoWithUpdateSignal.js +13 -0
  147. package/dist/utilities/usageMetricsTracker.d.ts +4 -0
  148. package/dist/utilities/usageMetricsTracker.js +4 -0
  149. package/package.json +7 -3
  150. package/dist/ui/hooks/network/getAssetsByIds.d.ts +0 -2
  151. package/dist/ui/hooks/network/getAssetsByIds.js +0 -4
  152. package/dist/ui/query/useDmsInstanceByIdsQuery.d.ts +0 -3
  153. package/dist/ui/query/useDmsInstanceByIdsQuery.js +0 -18
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Reveal React Components
1
+ # Reveal Components
2
2
 
3
3
  > [!WARNING]
4
4
  > This package is developed and published for Cognite's internal use. It is made publicly available on npm as a
@@ -0,0 +1,4 @@
1
+ //#region libs/shared/reveal-components/src/assets/poi-markers/poi-create-cursor.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3e%3ccircle%20cx='16'%20cy='16'%20r='7'%20fill='%2312B76A'%20stroke='%23FFFFFF'%20stroke-width='1.5'/%3e%3cpath%20d='M16%2012.8v6.4M12.8%2016h6.4'%20stroke='%23FFFFFF'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -1,5 +1,5 @@
1
1
  //#region libs/shared/reveal-components/src/common/i18n/en/reveal-components.json
2
- var ee = "Crop box. Click 3 points for base, then click to set height.", te = "Vertical slice (YZ). Click to set X-position.", e = "Vertical custom slice. Click 2 points.", t = "Vertical slice (XZ). Click to set Y-position.", n = "Horizontal slice (XY). Click to set Z-position.", ne = "All", r = "All 3D resources", i = "Area", a = "Asset", re = "Box", o = "CAD models", s = "Cancel", c = "Circle", l = "Classification", u = "Crop", d = "Show next crop box or slice clipping", f = "Show previous crop box or slice clipping", p = "Show slices and crop boxes on top", m = "Show/hide unselected slices and crop boxes", h = "Slice planes and crop boxes", g = "Use this as crop box", _ = "Write a comment", v = "Comments", y = "Loading contextualized assets", b = "Show contextualized assets", ie = "Fly", x = "Orbit", S = "Center orbit", C = "Set camera to orbit or fly mode", w = "Copy to clipboard", T = "Copy URL", E = "Create", D = "Created", O = "Crop box", k = "Crop boxes and clipping planes", A = "Cylinder", j = "Horizontal cylinder", M = "Vertical cylinder", N = "Delete", P = "Depth", F = "Description", I = "No description", L = "Diameter", R = "Distance to origin", z = "Edit", B = "Return to last 360 image", V = "Close 360 image", H = "Fit view", U = "Ghost mode", W = "Previous 360 image", G = "Next 360 image", K = "Ground plane", q = "Height", J = "Help", Y = "High fidelity", X = "Horizontal angle", Z = "Horizontal area", Q = "Horizontal length", ae = "Image transparency", oe = "360 images", se = "Details", ce = "Show 360 image historical details", le = "Station:", ue = "Intensity", de = "Back", fe = "Down", pe = "Forward", me = "Left", he = "Look down", ge = "Look left", _e = "Look right", ve = "Look up", ye = "Hold the keys to move and look around. You can also combine keys with the mouse.", be = "Move and look around", xe = "Keyboard", Se = "Right", Ce = "Up", we = "Filter 3D resource layers", Te = "Length", Ee = "Line", De = "Load more", Oe = "Loading...", ke = "Marker transparency", Ae = "360 markers", je = "Measurements", Me = "Horizontal circle. Click to set center, then click to set radius.", Ne = "Vertical cylinder. Click 2 points for the base, then click to set height.", Pe = "Horizontal cylinder. Click 2 points for the base, then click to set height.", Fe = "Vertical cylinder. Click 2 points for the base, then click to set height.", Ie = "Cylinder fit (for point clouds). Click to automatically detect diameter. Hold Shift and scroll to resize the search area.", Le = "Horizontal rectangular area. Click 3 points in a horizontal plane.", Re = "Distance between 2 points. Click start and end point.", ze = "Point coordinate. Click to create and scroll to resize.", Be = "Polygon length and area. Click at least 3 points, press Esc to finish.", Ve = "Polyline length. Click multiple points, press Esc to finish.", He = "Vertical rectangular area. Click 2 points in a vertical plane.", Ue = "Box volume. Click 3 points for the base, then click to set height.", We = "Show all measurements on top", Ge = "Distance measuring tool", Ke = "Minimum", qe = "Click+drag", Je = "Click and drag to rotate and pan the view. Left-click to select objects. \nUse the mouse wheel to zoom.", Ye = "Mouse", Xe = "Rotate", Ze = "Select objects", Qe = "Click the interactive objects", $e = "Navigate and select", et = "Zoom = scroll", $ = "Name", tt = "No models found", nt = "No results", rt = "None", it = "Pan", at = "Paraboloid", ot = "Point", st = "Point clouds", ct = "Point color", lt = "Failed to post comment", ut = "Create point of interest", dt = "Failed to create point of interest", ft = "This will permanently delete this point of interest. This action cannot be undone.", pt = "Delete this point of interest?", mt = "Delete this point of interest", ht = "Describe the point of interest", gt = "Point of interest is private", _t = "Point of interest is public", vt = "No comments yet", yt = "Points of interest", bt = "Point of interest is private and only visible to you", xt = "Point of interest is public and visible to anyone", St = "Untitled point of interest", Ct = "Failed to update point of interest", wt = "Point shape", Tt = "Point size", Et = "Point filter", Dt = "Polygon", Ot = "Polyline", kt = "Radius", At = "Redo", jt = "Rendering detail level", Mt = "High detail might overload CPU/GPU/RAM", Nt = "Reset to default view", Pt = "3D resources", Ft = "Revisions", It = "RGB", Lt = "None", Rt = "Select color overlay", zt = "Save", Bt = "Scene", Vt = "Select 3D location", Ht = "Search", Ut = "Select individual models", Wt = "Selected", Gt = "Send", Kt = "Set camera fly speed", qt = "Settings", Jt = "Share", Yt = "Show less", Xt = "Show more", Zt = "Hide or show 360 image annotations", Qt = "Show or hide axis", $t = "Tree view", en = "Skybox", tn = "Flip side", nn = "Slice", rn = "Vertical slice along Y-axis", an = "Vertical slice", on = "Vertical slice along X-axis", sn = "Horizontal slice", cn = "Square", ln = "Temporary", un = "Refreshing will clear this data", dn = "Total length", fn = "Use gestures to pan, select and zoom", pn = "Touch", mn = "Tap to select", hn = "Zoom", gn = "Try again", _n = "Undo", vn = "Units", yn = "Updated", bn = "Vertical area", xn = "Vertical length", Sn = "Visible", Cn = "Volume", wn = "Close", Tn = "Expand", En = "Minimize", Dn = "X coordinate", On = "X-ray", kn = "Y coordinate", An = "Z coordinate", jn = {
2
+ var ee = "Crop box. Click 3 points for base, then click to set height.", te = "Vertical slice (YZ). Click to set X-position.", e = "Vertical custom slice. Click 2 points.", t = "Vertical slice (XZ). Click to set Y-position.", n = "Horizontal slice (XY). Click to set Z-position.", ne = "All", r = "All 3D resources", i = "Area", a = "Asset", re = "Box", o = "CAD models", s = "Cancel", c = "CDF Metadata", l = "Circle", u = "Classification", d = "Crop", f = "Show next crop box or slice clipping", p = "Show previous crop box or slice clipping", m = "Show slices and crop boxes on top", h = "Show/hide unselected slices and crop boxes", g = "Slice planes and crop boxes", _ = "Use this as crop box", v = "Write a comment", y = "Comments", b = "Loading contextualized assets", x = "Show contextualized assets", ie = "Fly", S = "Orbit", C = "Center orbit", w = "Set camera to orbit or fly mode", T = "Copy to clipboard", E = "Copy URL", D = "Create", O = "Created", k = "Crop box", A = "Crop boxes and clipping planes", j = "Cylinder", M = "Horizontal cylinder", N = "Vertical cylinder", P = "Delete", F = "Depth", I = "Description", L = "No description", R = "Diameter", z = "Distance to origin", B = "Edit", V = "Return to last 360 image", H = "Close 360 image", U = "Fit view", W = "Ghost mode", G = "Previous 360 image", K = "Next 360 image", q = "Ground plane", J = "Height", Y = "Help", X = "High fidelity", Z = "Horizontal angle", Q = "Horizontal area", ae = "Horizontal length", oe = "Image transparency", se = "360 images", ce = "Details", le = "Show 360 image historical details", ue = "Station:", de = "Intensity", fe = "Back", pe = "Down", me = "Forward", he = "Left", ge = "Look down", _e = "Look left", ve = "Look right", ye = "Look up", be = "Hold the keys to move and look around. You can also combine keys with the mouse.", xe = "Move and look around", Se = "Keyboard", Ce = "Right", we = "Up", Te = "Filter 3D resource layers", Ee = "Length", De = "Line", Oe = "Load more", ke = "Loading...", Ae = "Marker transparency", je = "360 markers", Me = "Measurements", Ne = "Horizontal circle. Click to set center, then click to set radius.", Pe = "Vertical cylinder. Click 2 points for the base, then click to set height.", Fe = "Horizontal cylinder. Click 2 points for the base, then click to set height.", Ie = "Vertical cylinder. Click 2 points for the base, then click to set height.", Le = "Cylinder fit (for point clouds). Click to automatically detect diameter. Hold Shift and scroll to resize the search area.", Re = "Horizontal rectangular area. Click 3 points in a horizontal plane.", ze = "Distance between 2 points. Click start and end point.", Be = "Point coordinate. Click to create and scroll to resize.", Ve = "Polygon length and area. Click at least 3 points, press Esc to finish.", He = "Polyline length. Click multiple points, press Esc to finish.", Ue = "Vertical rectangular area. Click 2 points in a vertical plane.", We = "Box volume. Click 3 points for the base, then click to set height.", Ge = "Show all measurements on top", Ke = "Distance measuring tool", qe = "Minimum", Je = "Click+drag", Ye = "Click and drag to rotate and pan the view. Left-click to select objects. \nUse the mouse wheel to zoom.", Xe = "Mouse", Ze = "Rotate", Qe = "Select objects", $e = "Click the interactive objects", et = "Navigate and select", $ = "Zoom = scroll", tt = "Name", nt = "No models found", rt = "No results", it = "Node properties", at = "Failed to load node properties", ot = "None", st = "Pan", ct = "Paraboloid", lt = "Point", ut = "Point clouds", dt = "Point color", ft = "Failed to post comment", pt = "Create point of interest", mt = "Failed to create point of interest", ht = "This will permanently delete this point of interest. This action cannot be undone.", gt = "Delete this point of interest?", _t = "Delete this point of interest", vt = "Describe the point of interest", yt = "Point of interest is private", bt = "Point of interest is public", xt = "No comments yet", St = "Points of interest", Ct = "Point of interest is private and only visible to you", wt = "Point of interest is public and visible to anyone", Tt = "Untitled point of interest", Et = "Failed to update point of interest", Dt = "Point shape", Ot = "Point size", kt = "Point filter", At = "Polygon", jt = "Polyline", Mt = "Property", Nt = "Radius", Pt = "Redo", Ft = "Rendering detail level", It = "High detail might overload CPU/GPU/RAM", Lt = "Reset to default view", Rt = "3D resources", zt = "Revisions", Bt = "RGB", Vt = "None", Ht = "Select color overlay", Ut = "Save", Wt = "Scene", Gt = "Select 3D location", Kt = "Search", qt = "Select individual models", Jt = "Selected", Yt = "Send", Xt = "Set camera fly speed", Zt = "Settings", Qt = "Share", $t = "Show less", en = "Show more", tn = "Hide or show 360 image annotations", nn = "Show or hide axis", rn = "Tree view", an = "Skybox", on = "Flip side", sn = "Slice", cn = "Vertical slice along Y-axis", ln = "Vertical slice", un = "Vertical slice along X-axis", dn = "Horizontal slice", fn = "Square", pn = "Temporary", mn = "Refreshing will clear this data", hn = "Total length", gn = "Use gestures to pan, select and zoom", _n = "Touch", vn = "Tap to select", yn = "Zoom", bn = "Try again", xn = "Undo", Sn = "Units", Cn = "Updated", wn = "Value", Tn = "Vertical area", En = "Vertical length", Dn = "Visible", On = "Volume", kn = "Close", An = "Expand", jn = "Minimize", Mn = "X coordinate", Nn = "X-ray", Pn = "Y coordinate", Fn = "Z coordinate", In = {
3
3
  ADD_CROP_BOX: ee,
4
4
  ADD_SLICE_X: te,
5
5
  ADD_SLICE_XY: e,
@@ -12,186 +12,191 @@ var ee = "Crop box. Click 3 points for base, then click to set height.", te = "V
12
12
  BOX: "Box",
13
13
  CAD_MODELS: o,
14
14
  CANCEL: s,
15
- CIRCLE: c,
16
- CLASSIFICATION: l,
17
- CLIP_APPLY: u,
18
- CLIP_NEXT: d,
19
- CLIP_PREV: f,
20
- CLIP_SHOW_ON_TOP: p,
21
- CLIP_SHOW_SELECTED_ONLY: m,
22
- CLIP_TOOL: h,
23
- CLIP_USE_THIS_AS_CROP_BOX: g,
24
- COMMENT_PLACEHOLDER: _,
25
- COMMENTS: v,
26
- CONTEXTUALIZED_ASSETS_LOADING_TOOLTIP: y,
27
- CONTEXTUALIZED_ASSETS_TOOLTIP: b,
15
+ CDF_METADATA: c,
16
+ CIRCLE: l,
17
+ CLASSIFICATION: u,
18
+ CLIP_APPLY: d,
19
+ CLIP_NEXT: f,
20
+ CLIP_PREV: p,
21
+ CLIP_SHOW_ON_TOP: m,
22
+ CLIP_SHOW_SELECTED_ONLY: h,
23
+ CLIP_TOOL: g,
24
+ CLIP_USE_THIS_AS_CROP_BOX: _,
25
+ COMMENT_PLACEHOLDER: v,
26
+ COMMENTS: y,
27
+ CONTEXTUALIZED_ASSETS_LOADING_TOOLTIP: b,
28
+ CONTEXTUALIZED_ASSETS_TOOLTIP: x,
28
29
  CONTROLS_TYPE_FIRST_PERSON: "Fly",
29
- CONTROLS_TYPE_ORBIT: x,
30
- CONTROLS_TYPE_ORBIT_IN_CENTER: S,
31
- CONTROLS_TYPE_TOOLTIP: C,
32
- COPY_TO_CLIPBOARD: w,
33
- COPY_URL_TO_SHARE: T,
34
- CREATE: E,
35
- CREATED: D,
36
- CROP_BOX: O,
37
- CROP_BOXES_AND_CLIPPING_PLANES: k,
38
- CYLINDER: A,
39
- CYLINDER_HORIZONTAL: j,
40
- CYLINDER_VERTICAL: M,
41
- DELETE: N,
42
- DEPTH: P,
43
- DESCRIPTION: F,
44
- DESCRIPTION_PLACEHOLDER: I,
45
- DIAMETER: L,
46
- DISTANCE_TO_ORIGIN: R,
47
- EDIT: z,
48
- ENTER_LAST_360: B,
49
- EXIT_360: V,
50
- FIT_VIEW_TOOLTIP: H,
51
- GHOST_MODE: U,
52
- GO_BACK_360: W,
53
- GO_FORWARD_360: G,
54
- GROUND_PLANE: K,
55
- HEIGHT: q,
56
- HELP_TOOLTIP: J,
57
- HIGH_FIDELITY: Y,
58
- HORIZONTAL_ANGLE: X,
59
- HORIZONTAL_AREA: Z,
60
- HORIZONTAL_LENGTH: Q,
61
- IMAGE_TRANSPARENCY: ae,
62
- IMAGES_360: oe,
63
- IMAGES_360_DETAILS: se,
64
- IMAGES_360_DETAILS_TOOLTIP: ce,
65
- IMAGES_360_STATION: le,
66
- INTENSITY: ue,
67
- KEYBOARD_BACK: de,
68
- KEYBOARD_DOWN: fe,
69
- KEYBOARD_FORWARD: pe,
70
- KEYBOARD_LEFT: me,
71
- KEYBOARD_LOOK_DOWN: he,
72
- KEYBOARD_LOOK_LEFT: ge,
73
- KEYBOARD_LOOK_RIGHT: _e,
74
- KEYBOARD_LOOK_UP: ve,
75
- KEYBOARD_NAVIGATION_DESCRIPTION: ye,
76
- KEYBOARD_NAVIGATION_SUBTITLE: be,
77
- KEYBOARD_NAVIGATION_TITLE: xe,
78
- KEYBOARD_RIGHT: Se,
30
+ CONTROLS_TYPE_ORBIT: S,
31
+ CONTROLS_TYPE_ORBIT_IN_CENTER: C,
32
+ CONTROLS_TYPE_TOOLTIP: w,
33
+ COPY_TO_CLIPBOARD: T,
34
+ COPY_URL_TO_SHARE: E,
35
+ CREATE: D,
36
+ CREATED: O,
37
+ CROP_BOX: k,
38
+ CROP_BOXES_AND_CLIPPING_PLANES: A,
39
+ CYLINDER: j,
40
+ CYLINDER_HORIZONTAL: M,
41
+ CYLINDER_VERTICAL: N,
42
+ DELETE: P,
43
+ DEPTH: F,
44
+ DESCRIPTION: I,
45
+ DESCRIPTION_PLACEHOLDER: L,
46
+ DIAMETER: R,
47
+ DISTANCE_TO_ORIGIN: z,
48
+ EDIT: B,
49
+ ENTER_LAST_360: V,
50
+ EXIT_360: H,
51
+ FIT_VIEW_TOOLTIP: U,
52
+ GHOST_MODE: W,
53
+ GO_BACK_360: G,
54
+ GO_FORWARD_360: K,
55
+ GROUND_PLANE: q,
56
+ HEIGHT: J,
57
+ HELP_TOOLTIP: Y,
58
+ HIGH_FIDELITY: X,
59
+ HORIZONTAL_ANGLE: Z,
60
+ HORIZONTAL_AREA: Q,
61
+ HORIZONTAL_LENGTH: ae,
62
+ IMAGE_TRANSPARENCY: oe,
63
+ IMAGES_360: se,
64
+ IMAGES_360_DETAILS: ce,
65
+ IMAGES_360_DETAILS_TOOLTIP: le,
66
+ IMAGES_360_STATION: ue,
67
+ INTENSITY: de,
68
+ KEYBOARD_BACK: fe,
69
+ KEYBOARD_DOWN: pe,
70
+ KEYBOARD_FORWARD: me,
71
+ KEYBOARD_LEFT: he,
72
+ KEYBOARD_LOOK_DOWN: ge,
73
+ KEYBOARD_LOOK_LEFT: _e,
74
+ KEYBOARD_LOOK_RIGHT: ve,
75
+ KEYBOARD_LOOK_UP: ye,
76
+ KEYBOARD_NAVIGATION_DESCRIPTION: be,
77
+ KEYBOARD_NAVIGATION_SUBTITLE: xe,
78
+ KEYBOARD_NAVIGATION_TITLE: Se,
79
+ KEYBOARD_RIGHT: Ce,
79
80
  KEYBOARD_UP: "Up",
80
- LAYERS_FILTER_TOOLTIP: we,
81
- LENGTH: Te,
82
- LINE: Ee,
83
- LOAD_MORE: De,
84
- LOADING: Oe,
85
- MARKER_TRANSPARENCY: ke,
86
- MARKERS_360: Ae,
87
- MEASUREMENTS: je,
88
- MEASUREMENTS_ADD_CIRCLE: Me,
89
- MEASUREMENTS_ADD_CYLINDER: Ne,
90
- MEASUREMENTS_ADD_CYLINDER_HORIZONTAL: Pe,
91
- MEASUREMENTS_ADD_CYLINDER_VERTICAL: Fe,
92
- MEASUREMENTS_ADD_DIAMETER: Ie,
93
- MEASUREMENTS_ADD_HORIZONTAL_AREA: Le,
94
- MEASUREMENTS_ADD_LINE: Re,
95
- MEASUREMENTS_ADD_POINT: ze,
96
- MEASUREMENTS_ADD_POLYGON: Be,
97
- MEASUREMENTS_ADD_POLYLINE: Ve,
98
- MEASUREMENTS_ADD_VERTICAL_AREA: He,
99
- MEASUREMENTS_ADD_VOLUME: Ue,
100
- MEASUREMENTS_SHOW_ON_TOP: We,
101
- MEASUREMENTS_TOOLTIP: Ge,
102
- MINIMUM: Ke,
103
- MOUSE_INSTRUCTIONS: qe,
104
- MOUSE_NAVIGATION_DESCRIPTION: Je,
105
- MOUSE_NAVIGATION_TITLE: Ye,
106
- MOUSE_ROTATE: Xe,
107
- MOUSE_SELECT: Ze,
108
- MOUSE_SELECT_INSTRUCTION: Qe,
109
- MOUSE_TOUCH_NAVIGATION_SUBTITLE: $e,
110
- MOUSE_ZOOM: et,
111
- NAME: $,
112
- NO_MODELS_FOUND: tt,
113
- NO_RESULTS: nt,
114
- NONE: rt,
81
+ LAYERS_FILTER_TOOLTIP: Te,
82
+ LENGTH: Ee,
83
+ LINE: De,
84
+ LOAD_MORE: Oe,
85
+ LOADING: ke,
86
+ MARKER_TRANSPARENCY: Ae,
87
+ MARKERS_360: je,
88
+ MEASUREMENTS: Me,
89
+ MEASUREMENTS_ADD_CIRCLE: Ne,
90
+ MEASUREMENTS_ADD_CYLINDER: Pe,
91
+ MEASUREMENTS_ADD_CYLINDER_HORIZONTAL: Fe,
92
+ MEASUREMENTS_ADD_CYLINDER_VERTICAL: Ie,
93
+ MEASUREMENTS_ADD_DIAMETER: Le,
94
+ MEASUREMENTS_ADD_HORIZONTAL_AREA: Re,
95
+ MEASUREMENTS_ADD_LINE: ze,
96
+ MEASUREMENTS_ADD_POINT: Be,
97
+ MEASUREMENTS_ADD_POLYGON: Ve,
98
+ MEASUREMENTS_ADD_POLYLINE: He,
99
+ MEASUREMENTS_ADD_VERTICAL_AREA: Ue,
100
+ MEASUREMENTS_ADD_VOLUME: We,
101
+ MEASUREMENTS_SHOW_ON_TOP: Ge,
102
+ MEASUREMENTS_TOOLTIP: Ke,
103
+ MINIMUM: qe,
104
+ MOUSE_INSTRUCTIONS: Je,
105
+ MOUSE_NAVIGATION_DESCRIPTION: Ye,
106
+ MOUSE_NAVIGATION_TITLE: Xe,
107
+ MOUSE_ROTATE: Ze,
108
+ MOUSE_SELECT: Qe,
109
+ MOUSE_SELECT_INSTRUCTION: $e,
110
+ MOUSE_TOUCH_NAVIGATION_SUBTITLE: et,
111
+ MOUSE_ZOOM: $,
112
+ NAME: tt,
113
+ NO_MODELS_FOUND: nt,
114
+ NO_RESULTS: rt,
115
+ NODE_PROPERTIES: it,
116
+ NODE_PROPERTIES_LOAD_ERROR: at,
117
+ NONE: ot,
115
118
  PAN: "Pan",
116
- PARABOLOID: at,
117
- POINT: ot,
118
- POINT_CLOUDS: st,
119
- POINT_COLOR: ct,
120
- POINT_OF_INTEREST_COMMENT_POST_FAILED: lt,
121
- POINT_OF_INTEREST_CREATE: ut,
122
- POINT_OF_INTEREST_CREATE_FAILED: dt,
123
- POINT_OF_INTEREST_DELETE_CONFIRM_DESCRIPTION: ft,
124
- POINT_OF_INTEREST_DELETE_CONFIRM_TITLE: pt,
125
- POINT_OF_INTEREST_DELETE_THIS: mt,
126
- POINT_OF_INTEREST_DESCRIPTION_PLACEHOLDER: ht,
127
- POINT_OF_INTEREST_IS_PRIVATE: gt,
128
- POINT_OF_INTEREST_IS_PUBLIC: _t,
129
- POINT_OF_INTEREST_NO_COMMENTS_YET: vt,
130
- POINT_OF_INTEREST_PLURAL: yt,
131
- POINT_OF_INTEREST_PRIVATE_DESCRIPTION: bt,
132
- POINT_OF_INTEREST_PUBLIC_DESCRIPTION: xt,
133
- POINT_OF_INTEREST_UNTITLED: St,
134
- POINT_OF_INTEREST_UPDATE_FAILED: Ct,
135
- POINT_SHAPE: wt,
136
- POINT_SIZE: Tt,
137
- POINTS_FILTER: Et,
138
- POLYGON: Dt,
139
- POLYLINE: Ot,
140
- RADIUS: kt,
141
- REDO: At,
142
- RENDER_QUALITY_SLIDER_HEADER: jt,
143
- RENDER_QUALITY_SLIDER_PERFORMANCE_WARNING: Mt,
144
- RESET_CAMERA_TO_HOME: Nt,
145
- RESOURCES_3D: Pt,
146
- REVISIONS: Ft,
119
+ PARABOLOID: ct,
120
+ POINT: lt,
121
+ POINT_CLOUDS: ut,
122
+ POINT_COLOR: dt,
123
+ POINT_OF_INTEREST_COMMENT_POST_FAILED: ft,
124
+ POINT_OF_INTEREST_CREATE: pt,
125
+ POINT_OF_INTEREST_CREATE_FAILED: mt,
126
+ POINT_OF_INTEREST_DELETE_CONFIRM_DESCRIPTION: ht,
127
+ POINT_OF_INTEREST_DELETE_CONFIRM_TITLE: gt,
128
+ POINT_OF_INTEREST_DELETE_THIS: _t,
129
+ POINT_OF_INTEREST_DESCRIPTION_PLACEHOLDER: vt,
130
+ POINT_OF_INTEREST_IS_PRIVATE: yt,
131
+ POINT_OF_INTEREST_IS_PUBLIC: bt,
132
+ POINT_OF_INTEREST_NO_COMMENTS_YET: xt,
133
+ POINT_OF_INTEREST_PLURAL: St,
134
+ POINT_OF_INTEREST_PRIVATE_DESCRIPTION: Ct,
135
+ POINT_OF_INTEREST_PUBLIC_DESCRIPTION: wt,
136
+ POINT_OF_INTEREST_UNTITLED: Tt,
137
+ POINT_OF_INTEREST_UPDATE_FAILED: Et,
138
+ POINT_SHAPE: Dt,
139
+ POINT_SIZE: Ot,
140
+ POINTS_FILTER: kt,
141
+ POLYGON: At,
142
+ POLYLINE: jt,
143
+ PROPERTY: Mt,
144
+ RADIUS: Nt,
145
+ REDO: Pt,
146
+ RENDER_QUALITY_SLIDER_HEADER: Ft,
147
+ RENDER_QUALITY_SLIDER_PERFORMANCE_WARNING: It,
148
+ RESET_CAMERA_TO_HOME: Lt,
149
+ RESOURCES_3D: Rt,
150
+ REVISIONS: zt,
147
151
  RGB: "RGB",
148
- RULESET_NO_SELECTION: Lt,
149
- RULESET_SELECT_HEADER: Rt,
150
- SAVE: zt,
151
- SCENE: Bt,
152
- SCENE_SELECT_HEADER: Vt,
153
- SEARCH_PLACEHOLDER: Ht,
154
- SELECT_INDIVIDUAL_3D_MODELS: Ut,
155
- SELECTED: Wt,
156
- SEND: Gt,
157
- SET_CAMERA_FLY_SPEED: Kt,
158
- SETTINGS_TOOLTIP: qt,
159
- SHARE: Jt,
160
- SHOW_LESS: Yt,
161
- SHOW_MORE: Xt,
162
- SHOW_OR_HIDE_ANNOTATIONS_VISIBLE: Zt,
163
- SHOW_OR_HIDE_AXIS: Qt,
164
- SHOW_OR_HIDE_TREE_VIEW: $t,
165
- SKYBOX: en,
166
- SLICE_FLIP: tn,
167
- SLICE_TOOLTIP: nn,
168
- SLICE_X: rn,
169
- SLICE_XY: an,
170
- SLICE_Y: on,
171
- SLICE_Z: sn,
172
- SQUARE: cn,
173
- TEMPORARY: ln,
174
- TEMPORARY_TOOLTIP: un,
175
- TOTAL_LENGTH: dn,
176
- TOUCH_NAVIGATION_DESCRIPTION: fn,
177
- TOUCH_NAVIGATION_TITLE: pn,
178
- TOUCH_SELECT: mn,
179
- TOUCH_ZOOM: hn,
180
- TRY_AGAIN: gn,
181
- UNDO: _n,
182
- UNITS: vn,
183
- UPDATED: yn,
184
- VERTICAL_AREA: bn,
185
- VERTICAL_LENGTH: xn,
186
- VISIBLE: Sn,
187
- VOLUME: Cn,
188
- WIDGET_WINDOW_CLOSE: wn,
189
- WIDGET_WINDOW_EXPAND: Tn,
190
- WIDGET_WINDOW_MINIMIZE: En,
191
- X_COORDINATE: Dn,
192
- X_RAY: On,
193
- Y_COORDINATE: kn,
194
- Z_COORDINATE: An
152
+ RULESET_NO_SELECTION: Vt,
153
+ RULESET_SELECT_HEADER: Ht,
154
+ SAVE: Ut,
155
+ SCENE: Wt,
156
+ SCENE_SELECT_HEADER: Gt,
157
+ SEARCH_PLACEHOLDER: Kt,
158
+ SELECT_INDIVIDUAL_3D_MODELS: qt,
159
+ SELECTED: Jt,
160
+ SEND: Yt,
161
+ SET_CAMERA_FLY_SPEED: Xt,
162
+ SETTINGS_TOOLTIP: Zt,
163
+ SHARE: Qt,
164
+ SHOW_LESS: $t,
165
+ SHOW_MORE: en,
166
+ SHOW_OR_HIDE_ANNOTATIONS_VISIBLE: tn,
167
+ SHOW_OR_HIDE_AXIS: nn,
168
+ SHOW_OR_HIDE_TREE_VIEW: rn,
169
+ SKYBOX: an,
170
+ SLICE_FLIP: on,
171
+ SLICE_TOOLTIP: sn,
172
+ SLICE_X: cn,
173
+ SLICE_XY: ln,
174
+ SLICE_Y: un,
175
+ SLICE_Z: dn,
176
+ SQUARE: fn,
177
+ TEMPORARY: pn,
178
+ TEMPORARY_TOOLTIP: mn,
179
+ TOTAL_LENGTH: hn,
180
+ TOUCH_NAVIGATION_DESCRIPTION: gn,
181
+ TOUCH_NAVIGATION_TITLE: _n,
182
+ TOUCH_SELECT: vn,
183
+ TOUCH_ZOOM: yn,
184
+ TRY_AGAIN: bn,
185
+ UNDO: xn,
186
+ UNITS: Sn,
187
+ UPDATED: Cn,
188
+ VALUE: wn,
189
+ VERTICAL_AREA: Tn,
190
+ VERTICAL_LENGTH: En,
191
+ VISIBLE: Dn,
192
+ VOLUME: On,
193
+ WIDGET_WINDOW_CLOSE: kn,
194
+ WIDGET_WINDOW_EXPAND: An,
195
+ WIDGET_WINDOW_MINIMIZE: jn,
196
+ X_COORDINATE: Mn,
197
+ X_RAY: Nn,
198
+ Y_COORDINATE: Pn,
199
+ Z_COORDINATE: Fn
195
200
  };
196
201
  //#endregion
197
- export { ee as ADD_CROP_BOX, te as ADD_SLICE_X, e as ADD_SLICE_XY, t as ADD_SLICE_Y, n as ADD_SLICE_Z, ne as ALL, r as ALL_3D_RESOURCES, i as AREA, a as ASSET, re as BOX, o as CAD_MODELS, s as CANCEL, c as CIRCLE, l as CLASSIFICATION, u as CLIP_APPLY, d as CLIP_NEXT, f as CLIP_PREV, p as CLIP_SHOW_ON_TOP, m as CLIP_SHOW_SELECTED_ONLY, h as CLIP_TOOL, g as CLIP_USE_THIS_AS_CROP_BOX, v as COMMENTS, _ as COMMENT_PLACEHOLDER, y as CONTEXTUALIZED_ASSETS_LOADING_TOOLTIP, b as CONTEXTUALIZED_ASSETS_TOOLTIP, ie as CONTROLS_TYPE_FIRST_PERSON, x as CONTROLS_TYPE_ORBIT, S as CONTROLS_TYPE_ORBIT_IN_CENTER, C as CONTROLS_TYPE_TOOLTIP, w as COPY_TO_CLIPBOARD, T as COPY_URL_TO_SHARE, E as CREATE, D as CREATED, O as CROP_BOX, k as CROP_BOXES_AND_CLIPPING_PLANES, A as CYLINDER, j as CYLINDER_HORIZONTAL, M as CYLINDER_VERTICAL, N as DELETE, P as DEPTH, F as DESCRIPTION, I as DESCRIPTION_PLACEHOLDER, L as DIAMETER, R as DISTANCE_TO_ORIGIN, z as EDIT, B as ENTER_LAST_360, V as EXIT_360, H as FIT_VIEW_TOOLTIP, U as GHOST_MODE, W as GO_BACK_360, G as GO_FORWARD_360, K as GROUND_PLANE, q as HEIGHT, J as HELP_TOOLTIP, Y as HIGH_FIDELITY, X as HORIZONTAL_ANGLE, Z as HORIZONTAL_AREA, Q as HORIZONTAL_LENGTH, oe as IMAGES_360, se as IMAGES_360_DETAILS, ce as IMAGES_360_DETAILS_TOOLTIP, le as IMAGES_360_STATION, ae as IMAGE_TRANSPARENCY, ue as INTENSITY, de as KEYBOARD_BACK, fe as KEYBOARD_DOWN, pe as KEYBOARD_FORWARD, me as KEYBOARD_LEFT, he as KEYBOARD_LOOK_DOWN, ge as KEYBOARD_LOOK_LEFT, _e as KEYBOARD_LOOK_RIGHT, ve as KEYBOARD_LOOK_UP, ye as KEYBOARD_NAVIGATION_DESCRIPTION, be as KEYBOARD_NAVIGATION_SUBTITLE, xe as KEYBOARD_NAVIGATION_TITLE, Se as KEYBOARD_RIGHT, Ce as KEYBOARD_UP, we as LAYERS_FILTER_TOOLTIP, Te as LENGTH, Ee as LINE, Oe as LOADING, De as LOAD_MORE, Ae as MARKERS_360, ke as MARKER_TRANSPARENCY, je as MEASUREMENTS, Me as MEASUREMENTS_ADD_CIRCLE, Ne as MEASUREMENTS_ADD_CYLINDER, Pe as MEASUREMENTS_ADD_CYLINDER_HORIZONTAL, Fe as MEASUREMENTS_ADD_CYLINDER_VERTICAL, Ie as MEASUREMENTS_ADD_DIAMETER, Le as MEASUREMENTS_ADD_HORIZONTAL_AREA, Re as MEASUREMENTS_ADD_LINE, ze as MEASUREMENTS_ADD_POINT, Be as MEASUREMENTS_ADD_POLYGON, Ve as MEASUREMENTS_ADD_POLYLINE, He as MEASUREMENTS_ADD_VERTICAL_AREA, Ue as MEASUREMENTS_ADD_VOLUME, We as MEASUREMENTS_SHOW_ON_TOP, Ge as MEASUREMENTS_TOOLTIP, Ke as MINIMUM, qe as MOUSE_INSTRUCTIONS, Je as MOUSE_NAVIGATION_DESCRIPTION, Ye as MOUSE_NAVIGATION_TITLE, Xe as MOUSE_ROTATE, Ze as MOUSE_SELECT, Qe as MOUSE_SELECT_INSTRUCTION, $e as MOUSE_TOUCH_NAVIGATION_SUBTITLE, et as MOUSE_ZOOM, $ as NAME, rt as NONE, tt as NO_MODELS_FOUND, nt as NO_RESULTS, it as PAN, at as PARABOLOID, ot as POINT, Et as POINTS_FILTER, st as POINT_CLOUDS, ct as POINT_COLOR, lt as POINT_OF_INTEREST_COMMENT_POST_FAILED, ut as POINT_OF_INTEREST_CREATE, dt as POINT_OF_INTEREST_CREATE_FAILED, ft as POINT_OF_INTEREST_DELETE_CONFIRM_DESCRIPTION, pt as POINT_OF_INTEREST_DELETE_CONFIRM_TITLE, mt as POINT_OF_INTEREST_DELETE_THIS, ht as POINT_OF_INTEREST_DESCRIPTION_PLACEHOLDER, gt as POINT_OF_INTEREST_IS_PRIVATE, _t as POINT_OF_INTEREST_IS_PUBLIC, vt as POINT_OF_INTEREST_NO_COMMENTS_YET, yt as POINT_OF_INTEREST_PLURAL, bt as POINT_OF_INTEREST_PRIVATE_DESCRIPTION, xt as POINT_OF_INTEREST_PUBLIC_DESCRIPTION, St as POINT_OF_INTEREST_UNTITLED, Ct as POINT_OF_INTEREST_UPDATE_FAILED, wt as POINT_SHAPE, Tt as POINT_SIZE, Dt as POLYGON, Ot as POLYLINE, kt as RADIUS, At as REDO, jt as RENDER_QUALITY_SLIDER_HEADER, Mt as RENDER_QUALITY_SLIDER_PERFORMANCE_WARNING, Nt as RESET_CAMERA_TO_HOME, Pt as RESOURCES_3D, Ft as REVISIONS, It as RGB, Lt as RULESET_NO_SELECTION, Rt as RULESET_SELECT_HEADER, zt as SAVE, Bt as SCENE, Vt as SCENE_SELECT_HEADER, Ht as SEARCH_PLACEHOLDER, Wt as SELECTED, Ut as SELECT_INDIVIDUAL_3D_MODELS, Gt as SEND, qt as SETTINGS_TOOLTIP, Kt as SET_CAMERA_FLY_SPEED, Jt as SHARE, Yt as SHOW_LESS, Xt as SHOW_MORE, Zt as SHOW_OR_HIDE_ANNOTATIONS_VISIBLE, Qt as SHOW_OR_HIDE_AXIS, $t as SHOW_OR_HIDE_TREE_VIEW, en as SKYBOX, tn as SLICE_FLIP, nn as SLICE_TOOLTIP, rn as SLICE_X, an as SLICE_XY, on as SLICE_Y, sn as SLICE_Z, cn as SQUARE, ln as TEMPORARY, un as TEMPORARY_TOOLTIP, dn as TOTAL_LENGTH, fn as TOUCH_NAVIGATION_DESCRIPTION, pn as TOUCH_NAVIGATION_TITLE, mn as TOUCH_SELECT, hn as TOUCH_ZOOM, gn as TRY_AGAIN, _n as UNDO, vn as UNITS, yn as UPDATED, bn as VERTICAL_AREA, xn as VERTICAL_LENGTH, Sn as VISIBLE, Cn as VOLUME, wn as WIDGET_WINDOW_CLOSE, Tn as WIDGET_WINDOW_EXPAND, En as WIDGET_WINDOW_MINIMIZE, Dn as X_COORDINATE, On as X_RAY, kn as Y_COORDINATE, An as Z_COORDINATE, jn as default };
202
+ export { ee as ADD_CROP_BOX, te as ADD_SLICE_X, e as ADD_SLICE_XY, t as ADD_SLICE_Y, n as ADD_SLICE_Z, ne as ALL, r as ALL_3D_RESOURCES, i as AREA, a as ASSET, re as BOX, o as CAD_MODELS, s as CANCEL, c as CDF_METADATA, l as CIRCLE, u as CLASSIFICATION, d as CLIP_APPLY, f as CLIP_NEXT, p as CLIP_PREV, m as CLIP_SHOW_ON_TOP, h as CLIP_SHOW_SELECTED_ONLY, g as CLIP_TOOL, _ as CLIP_USE_THIS_AS_CROP_BOX, y as COMMENTS, v as COMMENT_PLACEHOLDER, b as CONTEXTUALIZED_ASSETS_LOADING_TOOLTIP, x as CONTEXTUALIZED_ASSETS_TOOLTIP, ie as CONTROLS_TYPE_FIRST_PERSON, S as CONTROLS_TYPE_ORBIT, C as CONTROLS_TYPE_ORBIT_IN_CENTER, w as CONTROLS_TYPE_TOOLTIP, T as COPY_TO_CLIPBOARD, E as COPY_URL_TO_SHARE, D as CREATE, O as CREATED, k as CROP_BOX, A as CROP_BOXES_AND_CLIPPING_PLANES, j as CYLINDER, M as CYLINDER_HORIZONTAL, N as CYLINDER_VERTICAL, P as DELETE, F as DEPTH, I as DESCRIPTION, L as DESCRIPTION_PLACEHOLDER, R as DIAMETER, z as DISTANCE_TO_ORIGIN, B as EDIT, V as ENTER_LAST_360, H as EXIT_360, U as FIT_VIEW_TOOLTIP, W as GHOST_MODE, G as GO_BACK_360, K as GO_FORWARD_360, q as GROUND_PLANE, J as HEIGHT, Y as HELP_TOOLTIP, X as HIGH_FIDELITY, Z as HORIZONTAL_ANGLE, Q as HORIZONTAL_AREA, ae as HORIZONTAL_LENGTH, se as IMAGES_360, ce as IMAGES_360_DETAILS, le as IMAGES_360_DETAILS_TOOLTIP, ue as IMAGES_360_STATION, oe as IMAGE_TRANSPARENCY, de as INTENSITY, fe as KEYBOARD_BACK, pe as KEYBOARD_DOWN, me as KEYBOARD_FORWARD, he as KEYBOARD_LEFT, ge as KEYBOARD_LOOK_DOWN, _e as KEYBOARD_LOOK_LEFT, ve as KEYBOARD_LOOK_RIGHT, ye as KEYBOARD_LOOK_UP, be as KEYBOARD_NAVIGATION_DESCRIPTION, xe as KEYBOARD_NAVIGATION_SUBTITLE, Se as KEYBOARD_NAVIGATION_TITLE, Ce as KEYBOARD_RIGHT, we as KEYBOARD_UP, Te as LAYERS_FILTER_TOOLTIP, Ee as LENGTH, De as LINE, ke as LOADING, Oe as LOAD_MORE, je as MARKERS_360, Ae as MARKER_TRANSPARENCY, Me as MEASUREMENTS, Ne as MEASUREMENTS_ADD_CIRCLE, Pe as MEASUREMENTS_ADD_CYLINDER, Fe as MEASUREMENTS_ADD_CYLINDER_HORIZONTAL, Ie as MEASUREMENTS_ADD_CYLINDER_VERTICAL, Le as MEASUREMENTS_ADD_DIAMETER, Re as MEASUREMENTS_ADD_HORIZONTAL_AREA, ze as MEASUREMENTS_ADD_LINE, Be as MEASUREMENTS_ADD_POINT, Ve as MEASUREMENTS_ADD_POLYGON, He as MEASUREMENTS_ADD_POLYLINE, Ue as MEASUREMENTS_ADD_VERTICAL_AREA, We as MEASUREMENTS_ADD_VOLUME, Ge as MEASUREMENTS_SHOW_ON_TOP, Ke as MEASUREMENTS_TOOLTIP, qe as MINIMUM, Je as MOUSE_INSTRUCTIONS, Ye as MOUSE_NAVIGATION_DESCRIPTION, Xe as MOUSE_NAVIGATION_TITLE, Ze as MOUSE_ROTATE, Qe as MOUSE_SELECT, $e as MOUSE_SELECT_INSTRUCTION, et as MOUSE_TOUCH_NAVIGATION_SUBTITLE, $ as MOUSE_ZOOM, tt as NAME, it as NODE_PROPERTIES, at as NODE_PROPERTIES_LOAD_ERROR, ot as NONE, nt as NO_MODELS_FOUND, rt as NO_RESULTS, st as PAN, ct as PARABOLOID, lt as POINT, kt as POINTS_FILTER, ut as POINT_CLOUDS, dt as POINT_COLOR, ft as POINT_OF_INTEREST_COMMENT_POST_FAILED, pt as POINT_OF_INTEREST_CREATE, mt as POINT_OF_INTEREST_CREATE_FAILED, ht as POINT_OF_INTEREST_DELETE_CONFIRM_DESCRIPTION, gt as POINT_OF_INTEREST_DELETE_CONFIRM_TITLE, _t as POINT_OF_INTEREST_DELETE_THIS, vt as POINT_OF_INTEREST_DESCRIPTION_PLACEHOLDER, yt as POINT_OF_INTEREST_IS_PRIVATE, bt as POINT_OF_INTEREST_IS_PUBLIC, xt as POINT_OF_INTEREST_NO_COMMENTS_YET, St as POINT_OF_INTEREST_PLURAL, Ct as POINT_OF_INTEREST_PRIVATE_DESCRIPTION, wt as POINT_OF_INTEREST_PUBLIC_DESCRIPTION, Tt as POINT_OF_INTEREST_UNTITLED, Et as POINT_OF_INTEREST_UPDATE_FAILED, Dt as POINT_SHAPE, Ot as POINT_SIZE, At as POLYGON, jt as POLYLINE, Mt as PROPERTY, Nt as RADIUS, Pt as REDO, Ft as RENDER_QUALITY_SLIDER_HEADER, It as RENDER_QUALITY_SLIDER_PERFORMANCE_WARNING, Lt as RESET_CAMERA_TO_HOME, Rt as RESOURCES_3D, zt as REVISIONS, Bt as RGB, Vt as RULESET_NO_SELECTION, Ht as RULESET_SELECT_HEADER, Ut as SAVE, Wt as SCENE, Gt as SCENE_SELECT_HEADER, Kt as SEARCH_PLACEHOLDER, Jt as SELECTED, qt as SELECT_INDIVIDUAL_3D_MODELS, Yt as SEND, Zt as SETTINGS_TOOLTIP, Xt as SET_CAMERA_FLY_SPEED, Qt as SHARE, $t as SHOW_LESS, en as SHOW_MORE, tn as SHOW_OR_HIDE_ANNOTATIONS_VISIBLE, nn as SHOW_OR_HIDE_AXIS, rn as SHOW_OR_HIDE_TREE_VIEW, an as SKYBOX, on as SLICE_FLIP, sn as SLICE_TOOLTIP, cn as SLICE_X, ln as SLICE_XY, un as SLICE_Y, dn as SLICE_Z, fn as SQUARE, pn as TEMPORARY, mn as TEMPORARY_TOOLTIP, hn as TOTAL_LENGTH, gn as TOUCH_NAVIGATION_DESCRIPTION, _n as TOUCH_NAVIGATION_TITLE, vn as TOUCH_SELECT, yn as TOUCH_ZOOM, bn as TRY_AGAIN, xn as UNDO, Sn as UNITS, Cn as UPDATED, wn as VALUE, Tn as VERTICAL_AREA, En as VERTICAL_LENGTH, Dn as VISIBLE, On as VOLUME, kn as WIDGET_WINDOW_CLOSE, An as WIDGET_WINDOW_EXPAND, jn as WIDGET_WINDOW_MINIMIZE, Mn as X_COORDINATE, Nn as X_RAY, Pn as Y_COORDINATE, Fn as Z_COORDINATE, In as default };
@@ -1,13 +1,13 @@
1
- import { ViewDefinition, Node3D } from '@cognite/sdk';
1
+ import { ViewDefinition } from '@cognite/sdk';
2
2
  import { InstancesWithView, InstancesWithViewDefinition } from '../ui/query/useSearchMappedEquipmentFDM';
3
- import { FdmCadConnection } from './cache/types';
3
+ import { CadNodeIdData, FdmCadConnection } from './cache/types';
4
4
  import { InstanceFilter, NodeItem, Source, DmsUniqueIdentifier } from './FdmSDK';
5
5
  import { Classic3DResourceIdentifier, ThreeDResourceIdentifier } from './types/resources';
6
6
  export type Fdm3dDataProvider = {
7
7
  is3dView: (view: ViewDefinition) => boolean;
8
8
  getDMSModels: (modelId: number) => Promise<DmsUniqueIdentifier[]>;
9
9
  getEdgeConnected3dInstances: (instance: DmsUniqueIdentifier) => Promise<DmsUniqueIdentifier[]>;
10
- getFdmConnectionsForNodes: (models: DmsUniqueIdentifier[], revisionId: number, nodes: Node3D[]) => Promise<FdmCadConnection[]>;
10
+ getFdmConnectionsForNodes: (models: DmsUniqueIdentifier[], revisionId: number, nodes: CadNodeIdData[]) => Promise<FdmCadConnection[]>;
11
11
  listMappedFdmNodes: (models: ThreeDResourceIdentifier[], sourcesToSearch: ViewDefinition[], instancesFilter: InstanceFilter | undefined, limit: number) => Promise<NodeItem[]>;
12
12
  listAllMappedFdmNodes: (models: ThreeDResourceIdentifier[], sourcesToSearch: Source[], instanceFilter: InstanceFilter | undefined) => Promise<NodeItem[]>;
13
13
  filterNodesByMappedTo3d: (nodes: InstancesWithViewDefinition[], models: ThreeDResourceIdentifier[], includeIndirectRelations: boolean) => Promise<InstancesWithView[]>;
@@ -170,11 +170,19 @@ export declare class FdmSDK {
170
170
  filterAllInstances<PropertiesType = Record<string, unknown>>(filter: InstanceFilter | undefined, instanceType: 'node', source: Source): Promise<{
171
171
  instances: Array<FdmNode<PropertiesType>>;
172
172
  }>;
173
+ /**
174
+ * Fetches the given instances, splitting the request into chunks that respect the
175
+ * `byids` endpoint's item limit ({@link BY_IDS_MAX_ITEMS_PER_REQUEST}) and running
176
+ * at most {@link BY_IDS_MAX_PARALLEL_REQUESTS} requests in parallel. The `typing`
177
+ * field is merged across chunks, since it only depends on the requested `sources`
178
+ * and is therefore expected to be identical for every chunk.
179
+ */
173
180
  getByExternalIds<PropertyType>(queries: Array<{
174
181
  instanceType: InstanceType;
175
182
  externalId: string;
176
183
  space: string;
177
184
  }>, sources?: Source[]): Promise<ExternalIdsResultList<PropertyType>>;
185
+ private fetchByExternalIds;
178
186
  createInstance<PropertyType>(queries: Array<CreateInstanceItem<PropertyType>>): Promise<ExternalIdsResultList<PropertyType>>;
179
187
  editInstance<PropertyType>(queries: Array<{
180
188
  instanceType: InstanceType;
@@ -1,7 +1,8 @@
1
1
  import { mergeQueryResults as e } from "./utils/mergeQueryResult.js";
2
2
  import { queryNodesAndEdges as t } from "./utils/queryNodesAndEdges.js";
3
+ import { chunk as n, merge as r } from "lodash-es";
3
4
  //#region libs/shared/reveal-components/src/data-providers/FdmSDK.ts
4
- var n = class {
5
+ var i = 1e3, a = 2, o = class {
5
6
  _sdk;
6
7
  _featureDataLoadPerformanceMetrics;
7
8
  _byIdsEndpoint;
@@ -26,33 +27,33 @@ var n = class {
26
27
  throw Error(`Failed to list views. Status: ${n.status}`);
27
28
  }
28
29
  async searchInstances(e, t, n) {
29
- let i = a(n.filter), o = {
30
+ let r = l(n.filter), i = {
30
31
  view: e,
31
32
  query: n.query ?? "",
32
33
  instanceType: t,
33
- ...n.filter === void 0 ? {} : { filter: i },
34
+ ...n.filter === void 0 ? {} : { filter: r },
34
35
  ...n.operator === void 0 ? {} : { operator: n.operator },
35
36
  limit: n.limit ?? 1e3
36
- }, s = await this._sdk.post(this._searchEndpoint, { data: o });
37
- if (s.status === 200) return r(e, s.data.items), { instances: s.data.items };
38
- throw Error(`Failed to search for instances. Status: ${s.status}`);
37
+ }, a = await this._sdk.post(this._searchEndpoint, { data: i });
38
+ if (a.status === 200) return s(e, a.data.items), { instances: a.data.items };
39
+ throw Error(`Failed to search for instances. Status: ${a.status}`);
39
40
  }
40
- async filterInstances(e, t, n, i) {
41
- let a = {
41
+ async filterInstances(e, t, n, r) {
42
+ let i = {
42
43
  filter: e,
43
44
  instanceType: t
44
45
  };
45
- n !== null && (a.sources = [{ source: n }]), i !== void 0 && (a.cursor = i);
46
- let o = await this._sdk.post(this._listEndpoint, { data: a });
47
- if (o.status !== 200) throw Error(`Failed to fetch instances. Status: ${o.status}`);
48
- let s = o.data.items;
49
- return r(n, s), {
50
- instances: o.data.items,
51
- nextCursor: o.data.nextCursor
46
+ n !== null && (i.sources = [{ source: n }]), r !== void 0 && (i.cursor = r);
47
+ let a = await this._sdk.post(this._listEndpoint, { data: i });
48
+ if (a.status !== 200) throw Error(`Failed to fetch instances. Status: ${a.status}`);
49
+ let o = a.data.items;
50
+ return s(n, o), {
51
+ instances: a.data.items,
52
+ nextCursor: a.data.nextCursor
52
53
  };
53
54
  }
54
55
  async filterAllInstances(e, t, n) {
55
- e = a(e);
56
+ e = l(e);
56
57
  let r = await this.filterInstances(e, t, n);
57
58
  for (; r.nextCursor !== void 0;) {
58
59
  let i = await this.filterInstances(e, t, n, r.nextCursor);
@@ -65,6 +66,18 @@ var n = class {
65
66
  }
66
67
  async getByExternalIds(e, t) {
67
68
  if (e.length === 0) return { items: [] };
69
+ let o = n(e, i), s = [];
70
+ for (let e of n(o, a)) {
71
+ let n = await Promise.all(e.map(async (e) => await this.fetchByExternalIds(e, t)));
72
+ s.push(...n);
73
+ }
74
+ let c = s.map((e) => e.typing).filter((e) => e !== void 0);
75
+ return {
76
+ items: s.flatMap((e) => e.items),
77
+ ...c.length > 0 ? { typing: r({}, ...c) } : {}
78
+ };
79
+ }
80
+ async fetchByExternalIds(e, t) {
68
81
  let n = {
69
82
  items: e,
70
83
  includeTyping: !0
@@ -135,7 +148,7 @@ var n = class {
135
148
  return { items: a };
136
149
  }
137
150
  async queryNodesAndEdges(e, n) {
138
- return await t(e, this._sdk, i(this._featureDataLoadPerformanceMetrics, n?.metricsFeatureName));
151
+ return await t(e, this._sdk, c(this._featureDataLoadPerformanceMetrics, n?.metricsFeatureName));
139
152
  }
140
153
  async listDataModels() {
141
154
  let e = await this._sdk.get(this._listDataModelsEndpoint, { params: {
@@ -146,7 +159,7 @@ var n = class {
146
159
  throw Error(`Failed to fetch data models. Status: ${e.status}`);
147
160
  }
148
161
  };
149
- function r(e, t) {
162
+ function s(e, t) {
150
163
  if (e === void 0) return;
151
164
  let n = `${e.externalId}/${e.version}`;
152
165
  t.forEach((t) => {
@@ -154,14 +167,14 @@ function r(e, t) {
154
167
  r !== void 0 && Object.entries(r).reduce((e, [t, n]) => (e[t] = n, e), t.properties);
155
168
  });
156
169
  }
157
- function i(e, t) {
170
+ function c(e, t) {
158
171
  if (e !== void 0 && t !== void 0) return { metrics: {
159
172
  tracker: e,
160
173
  featureName: t
161
174
  } };
162
175
  }
163
- function a(e) {
176
+ function l(e) {
164
177
  return e !== void 0 && Object.keys(e).length === 0 ? void 0 : e;
165
178
  }
166
179
  //#endregion
167
- export { n as FdmSDK, a as makeSureNonEmptyFilterForRequest };
180
+ export { o as FdmSDK, l as makeSureNonEmptyFilterForRequest };
@@ -0,0 +1,7 @@
1
+ import { PickDeep } from 'type-fest';
2
+ import { Asset, CogniteClient, IdEither } from '@cognite/sdk';
3
+ import { InstanceReferenceKey } from '../../utilities';
4
+ import { ReadonlyEntityCache, createReadonlyEntityCache } from '../../utilities/cache/ReadonlyEntityCache';
5
+ export declare function createClassicAssetsCache(sdk: PickDeep<CogniteClient, 'assets.retrieve'>, dependencies?: {
6
+ createReadonlyEntityCache: typeof createReadonlyEntityCache<IdEither, Asset, InstanceReferenceKey>;
7
+ }): ReadonlyEntityCache<IdEither, Asset, InstanceReferenceKey>;
@@ -0,0 +1,18 @@
1
+ import { createInstanceReferenceKey as e } from "../../utilities/instanceIds/toKey.js";
2
+ import "../../utilities/index.js";
3
+ import { isDefined as t } from "../../utilities/isDefined.js";
4
+ import { createReadonlyEntityCache as n } from "../../utilities/cache/ReadonlyEntityCache.js";
5
+ //#region libs/shared/reveal-components/src/data-providers/assets/createClassicAssetsCache.ts
6
+ function r(r, i = { createReadonlyEntityCache: n }) {
7
+ let a = e;
8
+ return i.createReadonlyEntityCache(async (e) => {
9
+ if (e.length === 0) return Promise.resolve(/* @__PURE__ */ new Map());
10
+ let n = await r.assets.retrieve(e, { ignoreUnknownIds: !0 }), i = new Map(n.flatMap((e) => [[a({ id: e.id }), e], ...e.externalId === void 0 ? [] : [[a({ externalId: e.externalId }), e]]])), o = e.map(a);
11
+ return new Map(o.map((e) => {
12
+ let t = i.get(e);
13
+ return t === void 0 ? void 0 : [e, t];
14
+ }).filter(t));
15
+ }, a);
16
+ }
17
+ //#endregion
18
+ export { r as createClassicAssetsCache };