# @d3plus/math 中文文档

规范地址：https://npmcn.com/package/%40d3plus/math/

版本：4\.11\.0
npm 元数据更新时间：2026-11-09T16:48:43.495Z
中文译文更新时间：2026-11-11T08:15:30.164Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40d3plus/math
原文对照：https://npmcn.com/package/%40d3plus/math/?lang=original
项目主页：https://d3plus.org/
源码仓库：https://github.com/d3plus/d3plus

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：353 kB，63 个文件
- 模块格式：ES Module
- TypeScript 类型：包内自带
- 运行依赖：2 个
- 首次发布：2025-03-13T20:02:56.051Z
- 最新版本发布：2026-11-09T16:48:43.111Z
- 近 30 天下载量：3303（2026-10-11 至 2026-11-09，npm 官方下载统计）
- 已发布版本数：41（近 12 个月 23 个）

## 中文简介

数学功能可以帮助计算可视化.

## 安装

```sh
npm install @d3plus/math
```

也可以使用：`pnpm add @d3plus/math`、`yarn add @d3plus/math`、`bun add @d3plus/math`

## README

# @d3plus/ math (英语)

[![NPM version](https://img.shields.io/npm/v/@d3plus/math.svg)](https://www.npmjs.com/package/@d3plus/math) [![codecov](https://codecov.io/gh/d3plus/d3plus/graph/badge.svg?flag=math)](https://codecov.io/gh/d3plus/d3plus/flags)

数学功能可以帮助计算可视化.

## 安装

如果使用 npm,则, `npm install @d3plus/math`。否则可以下载 [gitHub 最新发布](https://github.com/d3plus/d3plus/releases/latest) 或从 a 装入 [光盘N](https://cdn.jsdelivr.net/npm/@d3plus/math)。 。 。 .

```js
import {*} from "@d3plus/math";
```

在香草环境中,a `d3plus` global 从预捆绑的版本导出 :

```html
<script src="https://cdn.jsdelivr.net/npm/@d3plus/math"></script>
<script>
  console.log(d3plus);
</script>
```

## 实例

现场实例可见于 [d3plus.org (韩语)](https://d3plus.org/),包括使用 [@d3plus/反应](https://github.com/d3plus/d3plus/tree/main/packages/react)。 。 。 .

## API 参考

API 的全部参考文献在 [API.md (英语)](https://github.com/d3plus/d3plus/blob/main/packages/math/API.md)。 。 。 .

## 常见问题

### @d3plus/math 是什么？

数学功能可以帮助计算可视化\.

### 如何安装 @d3plus/math？

在项目目录运行 npm install @d3plus/math，或使用 pnpm add / yarn add / bun add。

### @d3plus/math 支持 TypeScript 吗？

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

### @d3plus/math 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @d3plus/math 可以商用吗？

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

### @d3plus/math 的下载量有多少？

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

### @d3plus/math 还在维护吗？

最新版本 4\.11\.0 发布于 2026/11/10（1 天前）；至今共发布 41 个版本，其中过去 12 个月发布了 23 个；首次发布于 2025/03/14。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

