@combos-fun/plugin-renderer-text

中文文档
0.1.21发布于 2026/11/09TypeScriptESM + CJS近 30 天下载 5942

Text rendering

原始使用文档
文档目录3 节
  1. Documentation
  2. Copy
  3. License

@combos-fun/plugin-renderer-text

@combos-fun/plugin-renderer-text — part of the Combos Fun engine monorepo.

Keywords: text, label, font, string, 2d.

Documentation

  • Per-package agent / developer notes: agent-skill.md
  • Machine-readable manifest: combos-plugin.json (validated against schemas/combos-plugin.schema.json in the repo root)
  • Entry skill (single source of truth for AI agents working with this monorepo): skills/combos-engine-development/SKILL.md

When consumed from npm, the manifest and agent notes are exposed as stable subpaths:

import manifest from '@combos-fun/plugin-renderer-text/plugin-manifest';
// or fetch the markdown directly:
// require.resolve('@combos-fun/plugin-renderer-text/agent-skill')

Copy

Every player-facing string is a text template: titles, buttons, HUD labels, menus, toasts. Only values that change with logic (scores, counts, timers, names) go in replacements. sourceLocale is the written language of those templates. List every template in sourceTexts, including later screens.

const textSystem = new TextSystem({
  sourceLocale: 'zh-CN',
  sourceTexts: [
    '{player} 获得了 {score} 分',
    '开始游戏',
    '下一屏文案',
  ],
});
new Text({
  text: '{player} 获得了 {score} 分',
  replacements: {
    player: 'Alice',
    score: 100,
  },
});

Missing replacements stay as the {name} placeholder. Omitting sourceLocale leaves every label in the source language.

License

Internal workspace package, part of the Combos Fun engine monorepo.

版本与发布记录

@combos-fun/plugin-renderer-text 共发布 83 个版本,首次发布于 2026/04/17;过去 12 个月发布了 83 个版本。

版本发布日期距今
0.1.21latest2026/11/091 天前
0.1.202026/11/055 天前
0.1.192026/11/037 天前
0.1.182026/11/028 天前
0.1.172026/10/2813 天前
0.1.162026/10/2714 天前

其他发布通道:beta → 0.1.14-beta.2。

关于 @combos-fun/plugin-renderer-text 的常见问题

@combos-fun/plugin-renderer-text 是什么?

Text rendering

如何安装 @combos-fun/plugin-renderer-text?

在项目目录运行 npm install @combos-fun/plugin-renderer-text,或使用 pnpm add / yarn add / bun add。

@combos-fun/plugin-renderer-text 支持 TypeScript 吗?

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

@combos-fun/plugin-renderer-text 支持 ESM 还是 CommonJS?

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

@combos-fun/plugin-renderer-text 可以商用吗?

@combos-fun/plugin-renderer-text 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@combos-fun/plugin-renderer-text 的下载量有多少?

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

@combos-fun/plugin-renderer-text 还在维护吗?

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