Releases: cognitedata/reveal
@cognite/[email protected]
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.
@cognite/[email protected]
This is a beta release of the next 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: add Cognite3DModel.getAncestorsTreeIndices and add example for highlight-on-click (#1538)
π Bug fixes and enhancements
- fix: not able to load same model twice [REV-132] (#1555)
- improvement: CTM cache will no longer trigger many requests for the same file (#1551)
- improvement: loading spinner is now combined with the Cognite logo and shows Reveal version on hover (#1553)
π Documentation
- docs: allow classes and async/await in live examples (#1543)
See installation documentation for details about installing Reveal.
@cognite/[email protected]
This is a beta release of the next 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
.
Migrating from 2.0.0-beta.0
There are some notable changes between beta.0 and this version:
- Cognite3DViewer.getIntersectionFromPixel() is now async
- Renamed a lot of classes in the styling API:
- NodeSet -> NodeCollectionBase
- ByNodePropertyNodeSet -> PropertyFilterNodeCollection
- ByAssetNodeSet -> AssetNodeCollection
- ByTreeIndexNodeSet -> TreeIndexNodeCollection
- InvertedNodeSet -> InvertedNodeCollection
- CombinedNodeSet -> replaced by UnionNodeCollection and IntersectionNodeCollection
- Renamed some functions in Cognite3DModel:
- addStyledNodeSet -> assignStyledNodeCollection
- removeStyledNodeSet -> unassignStyledNodeCollection
- removeAllStyledNodeSets -> removeAllStyledNodeCollections
- Note that assignStyledNodeCollection can be used to assign a new style, or change the styling of an existing "styled node collection"
π Features
- feat: add SinglePropertyNodeCollection for matching on many property values on a single node property (experimental) (#1516)
- feat: Implement save / restore viewer state (#1523)
- feat: ByTreeIndexNodeSet - allow empty constructor (#1524)
- feat: add NodeSet.clear() (#1519)
- feat: add Cognite3DViewer.models to access currently added models (#1506)
π Bug fixes and enhancements
- fix: Bug causing black fade for cad models when resizing screen (#1504)
- fix: remove @internal from Cognite3DViewerToolBase. This should fix an issue where HtmlOverlayTool could not be imported. (#1531)
- fix: add assert as a direct dependency to make sure it's available in client projects (#1544)
- 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: make Cognite3DViewer.getIntersectionFromPixel async [REV-176] (#1540)
- refac: rename NodeSet to NodeCollection (#1539)
- chore: update potree-core, move sdk-core to peerDeps
- chore: replace gl-matrix with ThreeJS (#1513)
- chore: remove Cognite3DModel.loadingHints (#1526)
- chore: upgrade viewer/examples to TypeScript 4.3 (#1508)
- chore: remove sdk-core from dev deps (#1502)
π Documentation
- docs: fix example in cad-styling-custom.mdx (#1536)
- doc: update migration documentation to accommodate for migration from version 1 to 2 (#1505)
See installation documentation for details about installing Reveal.
@cognite/[email protected]
This is a beta release of the next major version of Reveal. Reveal 2.0 comes with ThreeJS embedded so you do not to have this as a dependency in your project. Note that if you are using ThreeJS directly, you will need to have it as a direct dependency in your project or import it using import { THREE } from '@cognite/reveal'
. If you choose to have it as a direct dependency, it must match the version used by Reveal (0.128.0).
π Features
- Add more performant and flexible API for styling nodes (#1371)
- Add an axis view tool (#1456)
- When a geometry filter is active, cull away (most) geometry outside the filter (#1424)
π Bug fixes and enhancements
- Bump ThreeJS to r128 (#1494)
- Set ThreeJS to a static version and add as common dependency (#1472)
- Better handling of errors in web workers (#1473)
- Bug causing sectors to never load after a network failure [REV-152] (#1454)
- Replace non-standard array initialisation that fails on Safari (#1459)
- Force re-render after screenshot to avoid black screen [REV-153] (#1469)
- Certain MSAA quality settings causes black screen (#1484)
- Remove deprecated functionality [REV-165] (#1476)
See installation documentation for details about installing Reveal and migration documentation for information about migration from version 1 to 2.
@cognite/[email protected]
This version of Reveal requires ThreeJS r125.
- avoid viewer crash caused by wrong comlink dependency version
This version requires @cognite/[email protected]
as the minimum version. If you use the following line somewhere in your application
revealEnv.publichPath = 'https://apps-cdn.cognitedata.com/@cognite/[email protected]/'
just delete it completely if it exactly the same. Otherwise, consult the docs regarding upgrading the parser-worker version on your own static server.
@cognite/[email protected]
This is a technical release that fixes issues with internal dependencies (comlink library).
This version of parser-worker will be a minimum required version for all further reveal releases starting from 1.5.5
1.5.4
This version of Reveal depends on ThreeJS r125. Your application should match
the version used to ensure compatibility.
π Bug fixes and enhancements
- fix: apply update to near/far planes every frame to avoid clipping geometry when moving camera near object (#1466) β 16f299c
- chore: bump threejs to v125 (#1464) β e1c1ae1
See installation documentation for
details about installing Reveal.
1.5.3
@cognite/[email protected]
π Bug fixes and enhancements
- regression issue for loading geometry introduced in version 1.5.1