# @graphysdk/theme-halloween 中文文档

规范地址：https://npmcn.com/package/%40graphysdk/theme-halloween/

版本：0\.1\.1-beta\.1794847602792
npm 元数据更新时间：2026-11-16T16:55:27.431Z
中文译文更新时间：2026-11-17T00:23:37.209Z
软件包许可：SEE LICENSE IN LICENSE\.md

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

原始 npm 页面：https://www.npmjs.com/package/%40graphysdk/theme-halloween
原文对照：https://npmcn.com/package/%40graphysdk/theme-halloween/?lang=original
项目主页：https://docs.graphy.dev/sdk-next/themes/halloween

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

- 包体积（解压后）：162 kB，33 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- 运行依赖：0 个
- peer 依赖：react ^19\.0\.0，@graphysdk/react ^1\.9\.0-beta\.1794847602792
- 首次发布：2026-10-08T09:05:34.254Z
- 最新版本发布：2026-11-16T16:55:27.165Z
- 近 30 天下载量：15877（2026-10-17 至 2026-11-15，npm 官方下载统计）
- 已发布版本数：156（近 12 个月 156 个）

## 中文简介

万圣节主题 Graphy 图中的 SDK (β)

## 安装

```sh
npm install @graphysdk/theme-halloween
```

也可以使用：`pnpm add @graphysdk/theme-halloween`、`yarn add @graphysdk/theme-halloween`、`bun add @graphysdk/theme-halloween`

## README

# @graphysdk/ 主题哈洛温

> **贝塔.** 这个主题是: `0.x` 版本行:微放可能会改变外观. 使用护目范围( E)`^0.1.0`)只取补丁.

万圣节主题 Graphy 绘图 SDK:月光之夜教堂院中的图表. 柱子是墓碑、蜡烛或栏杆柱,选自其栏杆所在房间的整幅图,每幅图都按其价值结束。 馅饼或甜甜圈是被月亮所点燃的玫瑰花窗,一行是发光的小道,有小鬼骑着它的头来走来走去,一行散开的读数是"JJ-o'-lanters",一行是一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一行一.

学习更多 [图表.dev](https://graphy.dev/)。 。 。 .

## 安装

```bash
npm install @graphysdk/theme-halloween @graphysdk/react
```

需要反应19。 它唯一的对等者是 `@graphysdk/react`。 。 。 .

## 使用量

将主题传递给 `createGraphyKit` 并导入其字体一次。 每张图都通过工具箱 `GraphProvider` 带主题; 规格按常写.

```tsx
import { createGraphyKit, GraphRenderer } from '@graphysdk/react';
import { halloween } from '@graphysdk/theme-halloween';
import '@graphysdk/theme-halloween/fonts.css';

const kit = createGraphyKit({ theme: halloween });

const spec = kit.pipe(
  kit.createSpec({ x: 'quarter', y: 'revenue', color: 'region' }),
  kit.geom.bar({ position: 'dodge' }),
  kit.scale.x(),
  kit.scale.y()
);

export function Revenue({ data }) {
  return (
    <kit.GraphProvider spec={spec} data={data}>
      <GraphRenderer />
    </kit.GraphProvider>
  );
}
```

一个Spec属于自己 `styles()`缩放和 `config()` 坐在主题之上,所以一个图表仍然可以改变任何事情。 主题绘制成一个大约600像素宽的图; `style.graph({ textScale: 1.5 })` 缩放其类型为更大的.

当一图奏出其入道时,柱起而入地,行以一鬼入地而入地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地而出地出地出地而出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地出地 绘制图 `animation={false}`,或对于一个喜欢减速运动的观众来说,被立刻划入其最终状态.

`fonts.css` 来自Google Fonts的Creepster、Cinzel和Nunito等产品。 要亲自主机字体, 请将导入并加载命名的家庭 `Creepster`, (中文(简体) ), `Cinzel` 财务报告和审定财务报表 `Nunito` 在绘制第一个图表之前.

## 文档

-   [万圣节](https://docs.graphy.dev/sdk-next/themes/halloween)

## 反馈

这个主题提前发布,以听到什么是可行的. 告诉我们 [解析器](https://discord.gg/yGmYCjkSr)。 。 。 .

## 许可证

此套件可在PolyForm非商业,小企业,或32天自由审判下提供. 自由审判(Free Trial)只是局部或内部的评价——它并不覆盖一个公开的页面. 见 [在审判中你能做的](https://docs.graphy.dev/licence/evaluation)。 。 。 .

商业许可证, [跟我们谈谈](https://graphy.dev/license)。 。 。 .

## 常见问题

### @graphysdk/theme-halloween 是什么？

万圣节主题 Graphy 图中的 SDK \(β\)

### 如何安装 @graphysdk/theme-halloween？

在项目目录运行 npm install @graphysdk/theme-halloween，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：react（^19\.0\.0）、@graphysdk/react（^1\.9\.0-beta\.1794847602792）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @graphysdk/theme-halloween 支持 TypeScript 吗？

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

### @graphysdk/theme-halloween 支持 ESM 还是 CommonJS？

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

### @graphysdk/theme-halloween 可以商用吗？

@graphysdk/theme-halloween 使用 SEE LICENSE IN LICENSE\.md 许可。许可条款写在包内的独立文件中，请阅读该文件确认可否商用。以上为概括，不构成法律意见，请以许可原文为准。

### @graphysdk/theme-halloween 的下载量有多少？

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

### @graphysdk/theme-halloween 还在维护吗？

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

