@elyra/canvas

中文文档
13.52.0发布于 2026/10/31Apache-2.0TypeScriptESM + CJS构建来源已验证近 30 天下载 8221

Elyra common-canvas

原始使用文档
文档目录8 节
  1. elyra/canvas
  2. Elyra Canvas Modules
  3. Elyra Canvas Components Overview
  4. Try Elyra Canvas
  5. Create a sample Elyra Canvas application
  6. Getting started
  7. 📖 Documentation
  8. IBM Telemetry

elyra/canvas

Elyra Canvas is an open-source library, which provides React objects that enable applications to quickly create a fully functional flow editor. Users can easily create and edit the flows of linked nodes by using the flow editor.


Elyra Canvas in action in the SPSS Modeler UI, the flagship component of IBM Watsonx

Elyra Canvas Modules

The elyra-ai/canvas repo contains three main modules: Common Canvas, Common Properties and Test Harness. For more details, see this documentation.

Elyra Canvas Components Overview

The Elyra Canvas package delivers two decoupled React objects: Common Canvas and Common Properties. For more details, see this documentation.

Try Elyra Canvas

The "Tiny App" is a demonstration application that is produced with only a few lines of code. You can use it to try these features of Elyra Canvas:

  • Dragging a node
  • Editing a comment (by double clicking on it)
  • Dragging a node from the palette
  • Clicking a button on the toolbar
  • Zooming in and out using the scroll gesture
  • Create a new node by dragging one from the palette

Create a sample Elyra Canvas application

A sample Elyra Canvas app can be created using the npx command:

npx create-elyra-canvas-app

Getting started

Elyra Canvas requires react, react-dom, react-intl, and react-redux libraries to be installed. For versions requirements, see peerDependencies in package.json.

To install @elyra/canvas in your project, run the following command using npm:

npm install @elyra/canvas --save-dev

For more details about installation and getting started in Elyra Canvas, check out:

📖 Documentation

If you're looking for @elyra/canvas documentation, check out:

IBM Telemetry IBM Telemetry

This package uses IBM Telemetry to collect de-identified and anonymized metrics data. By installing this package as a dependency you are agreeing to telemetry collection. To opt out, see Opting out of IBM Telemetry data collection. For more information on the data being collected, please see the IBM Telemetry documentation.

版本与发布记录

@elyra/canvas 共发布 217 个版本,首次发布于 2020/03/04;过去 12 个月发布了 30 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
13.52.0latest2026/10/3113 天前
13.51.12026/10/1628 天前
13.51.02026/10/021 个月前
13.50.02026/09/092 个月前
13.49.02026/07/313 个月前
13.48.02026/07/114 个月前

关于 @elyra/canvas 的常见问题

@elyra/canvas 是什么?

Elyra common-canvas

如何安装 @elyra/canvas?

在项目目录运行 npm install @elyra/canvas,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0)、react-dom(^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0)、react-intl(^5.0.0 || ^6.0.0 || ^7.0.0)、@carbon/react(^1.98.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@elyra/canvas 支持 TypeScript 吗?

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

@elyra/canvas 支持 ESM 还是 CommonJS?

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

@elyra/canvas 可以商用吗?

@elyra/canvas 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@elyra/canvas 的下载量有多少?

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

@elyra/canvas 还在维护吗?

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