@cognite/reveal 4.1.0 → 4.1.1
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.
- package/README.md +4 -15
- package/dist/index.js +104 -104
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/Image360LoadingCache.d.ts +1 -0
- package/dist/packages/360-images/src/Image360VisualizationBox.d.ts +1 -0
- package/dist/packages/camera-manager/src/ComboControls.d.ts +3 -1
- package/dist/packages/camera-manager/src/StationaryCameraManager.d.ts +9 -3
- package/dist/packages/data-providers/src/image-360-data-providers/Cdf360ImageEventProvider.d.ts +1 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -52,23 +52,12 @@ start();
|
|
|
52
52
|
## Installation
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
npm install @cognite/reveal
|
|
55
|
+
npm install @cognite/reveal @cognite/sdk three@<version>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Please find the correct version of ThreeJS in the release documentation on Github. We only guarantee support for the exact ThreeJS version specified there.
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
2. Projects with [CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)
|
|
62
|
-
that forbids to fetch scripts from apps-cdn.cognitedata.com.
|
|
63
|
-
|
|
64
|
-
By default, Reveal tries to fetch its worker/wasm files from `apps-cdn.cognitedata.com`.
|
|
65
|
-
If there is no CSP in your project or `apps-cdn.cognitedata.com` is whitelisted, then it will just work without any additional steps.
|
|
66
|
-
|
|
67
|
-
In case if you see an error like that:
|
|
68
|
-
|
|
69
|
-
> Refused to load the script 'https://apps-cdn.cogniteapp.com/@cognite/reveal-parser-worker/1.1.0/reveal.parser.worker.js' because it violates the following Content Security Policy directive: "script-src 'self' https://localhost:* blob:"
|
|
70
|
-
|
|
71
|
-
See the next steps in our [documentation](https://cognitedata.github.io/reveal-docs/docs/installation#installation-for-projects-with-content-security-policy).
|
|
60
|
+
See [our documentation](https://cognitedata.github.io/reveal-docs/docs/examples/cad-basic) for usage.
|
|
72
61
|
|
|
73
62
|
## Prerequisites
|
|
74
63
|
|
|
@@ -177,7 +166,7 @@ For more information about visual tests, see [visual-tests/README.md](visual-tes
|
|
|
177
166
|
|
|
178
167
|
### Recommended package folder structure
|
|
179
168
|
├── app # Runnable app
|
|
180
|
-
|
|
169
|
+
│ └──index.ts # Entry point for runnable app
|
|
181
170
|
├── src # Source code for package
|
|
182
171
|
├── wasm # Rust/Webassembly source code for package
|
|
183
172
|
├── test # Automated tests
|