Skip to content
Compare
Choose a tag to compare
@larsmoa larsmoa released this 22 Sep 21:20
· 3062 commits to master since this release

This is a new major version of Reveal. Reveal 2.0 comes with ThreeJS embedded so you do not have this as a dependency in your project. If you still want to have it as a direct dependency, it must match the version used by Reveal (r128). You can also use three.js version exported by Reveal as import { THREE } from '@cognite/reveal.

🚀 Features

  • feat: save / restore viewer state (#1523)
  • feat: add Cognite3DModel.getAncestorsByTreeIndices and add example for highlight-on-click (#1538)
  • feat: repurpose Spinner to be Spinner+CogniteLogo which is always visible (#1553)
  • feat: add Cognite3DViewer.models to access currently added models (#1506)
  • feat: add more performant and flexible API for styling nodes (#1371)

🐞 Bug fixes and enhancements

  • fix: not able to load same model twice [REV-132] (#1555)
  • fix: bug causing Cognite3DModel.getModelBoundingBox() to throw for models with only two sectors (#1565)
  • fix: issue causing HtmlOverlayTool to misplace elements when 3D viewer was scaled on large screens (#1596)
  • fix: geometry filters will now only affect the model they are associated with (#1562)
  • fix: issue causing assertion error when removing CAD model while sectors are being loaded (#1561)
  • fix: add assert as a direct dependency to make sure it's available in client projects (#1544)
  • fix: remove @internal from Cognite3DViewerToolBase (#1531)
  • fix: bug causing black fade for cad models when resizing screen (#1504)
  • fix: issue with MSAA quality setting causing black screen (#1484)
  • improvement: introduce LOD rendering of torus geometries to improve quality of certain primitives (#1576)
  • improvement: upgrade @cognite/sdk to 5.x (#1568)
  • improvement: CTM cache will no longer trigger many requests for the same file (#1551)
  • improvement: replace pink and purple outline colors with green and red [REV-171] (#1541)
  • improvement: Cognite3DModel.getSubtreeIndices() now returns a range (#1525)
  • improvement: improve performance of applying styles by avoiding allocations of arrays (#1527)
  • refac: rename Cognite3DViewer.forceRerender() to requestRedraw() (#1594) (#1597)
  • refac: remove redundant call to clone() (#1546)
  • refac: make Cognite3DViewer.getIntersectionFromPixel async [REV-176] (#1540)
  • refac: remove Cognite3DModel.loadingHints (#1526)
  • refac: replace gl-matrix with ThreeJS (#1513)
  • refac: migrate @cognite/three-combo-controls source code to this code base (#1493)
  • chore: remove sdk-core from dev deps (#1502)

📖 Documentation

  • doc: separate 1.x and 2.x section (#1552)
  • doc: improve getting started README.md (#1569)
  • doc: fix many uses of async/await that failed. Minor doc improvements (#1560)
  • doc: minor release procedure doc improvement (#1548)
  • doc: update to latest typedoc and Typescript 4.2 (#1507)

See installation documentation for details about installing Reveal.