mn-reveal-release-test
WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.
Last updated 2 months ago by maksim.nesterenko .
Apache-2.0 · Repository · Original npm · Tarball · package.json
$ cnpm install mn-reveal-release-test 
SYNC missed versions from official npm registry.

Reveal viewer

Documentation for the latest version is available at https://cognitedata.github.io/reveal/docs/

We have demos here!


Code Example

import { Cognite3DViewer } from "@cognite/reveal";
import { CogniteClient } from "@cognite/sdk";

const appId = "com.cognite.reveal.example";
const client = new CogniteClient({ appId });

client.loginWithOAuth({ project: "publicdata" });

const viewer = new Cognite3DViewer({
  sdk: client,
  domElement: document.querySelector("#your-element-for-viewer")
});
viewer.addModel({ modelId: 4715379429968321, revisionId: 5688854005909501 });

Installation

npm install @cognite/reveal

There are 2 different types of projects:

  1. These where CDN is available (no restrictive Content-Security-Policy is set)
  2. Projects with CSP that forbids to fetch scripts from jsdeliver.

By default, the reveal will try to fetch its worker/wasm files from jsdeliver. If there is no CSP in your project, then it will just work without any additional steps.

In case if you see an error like that:

Refused to load the script 'https://cdn.jsdelivr.net/npm/@cognite/reveal-parser-worker@1.0.0/dist/cdn/reveal.parser.worker.js' because it violates the following Content Security Policy directive: "script-src 'self' https://localhost:* blob:"

See the next steps in our documentation.

Current Tags

  • 1.2.1-alpha.2                                ...           latest (2 months ago)

9 Versions

  • 1.2.1-alpha.2                                ...           2 months ago
  • 1.2.1-alpha.1                                ...           2 months ago
  • 1.2.0-alpha                                ...           3 months ago
  • 1.1.1                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.11                                ...           4 months ago
  • 1.0.10                                ...           4 months ago
  • 1.0.9                                ...           4 months ago
  • 1.0.6                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (13)
Dev Dependencies (42)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |