Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@equinor/echo-3d-viewer
Advanced tools
Echo 3D Web Viewer is a package that can be used to set up the 3d web viewer to stream echo models from any javascript application.
The Viewer is a bare-bones module for the Echo 3D Web solution. Its purpose is to make the Echo 3D models available "as-a-service".
Echo 3D as a service is an internal offering from the Echo team, where we provide this module for integration in other Equinor Web-applications.
The Echo 3D Team supplies 3D models of assets, and builds simple integrations on top of that.
Contents:
If you do not have an agreement with the Echo team we will not be able to support your integration with Echo 3D. We use the agreement term here, as we need to know who our users are and notify of breaking changes and required change periods.
Echo 3D as a service is a very early product, and we have not yet stabilized any part of the application.
Please contact any echo team member to learn more about Echo as a Service.
And example of usage can be found here
Lets try to fix it together. Echo 3D Viewer is internally open so everyone can contribute to this viewer.
Please start out by creating an issue, or asking any Echo team member if this is something to figure out.
If this is something we would like fixed, we might ask you to submit a PR. If you need help do not hesitate to ask us, we might be able to both help and pair program a solution with you! :)
Below are some tips for dev-setup and a guide to the most common commands.
Please also check the root readme in the folder above here. ../README.md
In the project directory, you can run:
npm test
Launches the test runner in the interactive watch mode.
npm test:coverage
Runs all tests and produces a test coverage report for the project
npm run build
Builds the viewer for publishing the package into the dist
folder, with typings.
npm run lint
Checks your app for any issues you'll have to fix before merging. These checks are run on the build server, and we do not tolerate warnings! See the points below here on how to handle issues :D
npm lint:prettier
Prettier can check if anything is out of order with code style. We recommend applying prettier on save in your tool of choice.
In VSCode search for the "prettier" plugin, and install it. Now press "Cmd-Shift-P" -> Format Document -> Pick Prettier as default formatter (if it was not from before). We also recommend that you enable "Format on Save" to avoid annoying build errors in the CI.
You can run npm fix:prettier
to resolve any issues.
npm lint:eslint
Eslint is a strict code style utility. It might feel very limiting, but it helps us keep up guarantees about our code. We recommend applying eslint on save in your tool of choice.
In VSCode search for the "eslint" plugin, and install it. This should give you information about stuff etc directly into your editor!
If you disable lints, please apply a comment describing WHY.
// Add -- before writing your reason for disabling.
// Example:
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- useEffects cannot be async, need to ignore.
somethingAsync();
npm run update-api-client
We use NSwag to generate API clients based on their Swagger/OpenAPI schema. This allows us to easily sync changes, data-models and similar from the API to the Client.
Generating new api clients is a manual task for now. The generated code should be committed, but not manually changed.
The OpenApi file for Echo Model Distribution is public, and can thereby be run at any time.
The OpenApi file for Echo Hierarchy Service is not available online (for now). Generating this code requires that you run the Api service locally and use its local Swagger definition.
You might have to change the url in the package.json file to your local url: The default is http://localhost:5000/swagger/v2/swagger.json
npm run publish-viewer
Script for publishing viewer package see runbook for detailed description.
FAQs
The Echo 3D Viewer component for internal use in Equinor
We found that @equinor/echo-3d-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.