@equinor/esv-intersection

中文文档
5.0.9发布于 2026/10/26MITTypeScriptESM + CJS构建来源已验证近 30 天下载 3934

Intersection component package with testing and automatic documentation.

原始使用文档
文档目录9 节
  1. Getting started
  2. Technical choices
  3. Development
  4. Support
  5. Help needed
  6. Bug reports
  7. Feature requests
  8. Contribution
  9. License

npm version SCM Compliance

ESV Intersection component

A reusable component to create intersection visualizations for wells

Part of the Equinor Subsurface Visualization project

Getting started

Installation

Using npm:

npm install --save @equinor/esv-intersection

Using yarn:

yarn add @equinor/esv-intersection

To run application in your machine :

$ git clone [email protected]:equinor/esv-intersection
$ git submodule update --init --recursive
$ npm run storybook

Usage

import { Controller, GridLayer } from '@equinor/esv-intersection';

const container = document.createElement('div');
const controller = new Controller({ container: container });

// the controller initially has zero height
controller.adjustToSize(400, 400);

controller.addLayer(new GridLayer('grid'));

For more examples, check out our stories in our online storybook.

Technical choices

  • Compiler: Typescript
  • Module bundler: Vite
  • Testing: Vitest
  • Documentation: TypeDoc
  • Miscellaneous:
    • Architecture: A container component that holds several layers, specialized for the type of data and visualization they address (analogous to the VidEx-map component https://github.com/equinor/videx-map)
    • Browser support: Target Edge, Chrome, Firefox, Safari
    • Linting and unit tests run automatically on Github Actions

Development

Support

If you are an Equinor employee, the easiest way to get in touch with the maintainers is through the #esv-intersection channel on Slack.

Otherwise, Github issues are the main communication channel with the maintainers. If you have a bug report, a feature request, or need some help using the component, simply create an issue in the repository and one of the maintainers will pick it up. Before creating an issue, please have a look at the following guidelines. Also keep in mind that creating Pull Requests is the preferred way to contribute to the project.

Help needed

Describe your use case in details, make sure to include the version of the component you are using, and relevant software that are part of your pipeline (eg, Chrome/Firefox/Safari, Node, npm, …), including their version as well

Bug reports

Follow the instructions from the Help needed section above, but also include precise instructions about how to reproduce the bug. If any data is required for reproducing the bug, it would be beneficial to have access to it as well.

Feature requests

Give a precise description of your use case. It would be best if you could formulate your request as a user story, using the format As a <subject> I would like to <the feature you need> so that <the task you want to accomplish>

Contribution

See the contribution page

License

The large majority of the files in this repository are released under the MIT license. There are 2 exceptions:

  • the CONTRIBUTION.md file, which uses BSD 2-Clause "Simplified" License, as described at the end of the file itself
  • the content of the esv-intersection-data submodule uses the same license as Equinor's Volve dataset, which is also available in the submodule

Equinor Logo

版本与发布记录

@equinor/esv-intersection 共发布 96 个版本,首次发布于 2020/02/24;过去 12 个月发布了 25 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.0.9latest2026/10/2618 天前
5.0.82026/10/2421 天前
5.0.72026/10/1628 天前
5.0.62026/10/131 个月前
5.0.52026/10/021 个月前
5.0.42026/09/151 个月前

其他发布通道:beta → 3.0.0-beta.6。

关于 @equinor/esv-intersection 的常见问题

@equinor/esv-intersection 是什么?

Intersection component package with testing and automatic documentation.

如何安装 @equinor/esv-intersection?

在项目目录运行 npm install @equinor/esv-intersection,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:pixi.js(^8.16.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@equinor/esv-intersection 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@equinor/esv-intersection 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@equinor/esv-intersection 可以商用吗?

@equinor/esv-intersection 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@equinor/esv-intersection 的下载量有多少?

根据 npm 官方下载统计,@equinor/esv-intersection 在 2026/10/14 – 2026/11/12 这 30 天内被下载 3,934 次,日均约 131 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@equinor/esv-intersection 还在维护吗?

最新版本 5.0.9 发布于 2026/10/26(18 天前);至今共发布 96 个版本,其中过去 12 个月发布了 25 个;首次发布于 2020/02/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。