Skip to main content
PCBFreeNewv1.0.0

丝印艺术字与流程图布局

5×7 点阵 ASCII 艺术字(多风格/阴影/挤出)与泳道流程图正交布局(A4 适配、SVG 预览);附嘉立创编辑器丝印/文档写入流程。

Installs: 0Rating: –Updated:
Claude CodeCursorCodexGemini CLI+1

Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.

Preview gallery

You say
Render "PSK" as shadowed ASCII art and lay out a three-swimlane build flowchart as A4 SVG.

Content matches the files inside the package; extracted by the publish pipeline.

LCEDA 文档工具包

离线可执行:ASCII 艺术字渲染 + 流程图布局/SVG。编辑器写入(丝印字符串、 图元创建)见 references/procedures.md。

运行

node scripts/demo.mjs --out-dir <dir> [--input <json>]

stdout 即 edaskills.report.v1 报告;产物 ascii-art.txt、 flowchart-layout.json、flowchart.svg。

输入

{
  "ascii": { "text": "PCB 2026", "style": "block", "effect": "shadow3d" },
  "flowchart": {
    "nodes": [{ "id": "n1", "label": "开始", "type": "terminal",
      "rank": 0, "lane": "C" }],
    "edges": [{ "from": "n1", "to": "n2", "label": "", "kind": "fwd" }]
  }
}

规则(与源扩展核对)

  • 字形 5×7,字符集 A–Z 0–9 空格 -_.:!?+=/*;大写化、截断 24、 未知字符 → ?。风格 block # / dot o / heavy @ / slash / / outline * / trace +-|。效果 shadow3d 偏移 (+2,+1) 用 .; extrude3d 深度 3。
  • 流程图:LANE_X {L:175, C:560, R:945},盒 160×64,TOP_Y 70, RANK_GAP 20,COL_GAP 26;cy = TOP_Y + rank*(64+20) + 32。 标签宽:CJK≈字号、ASCII≈0.6×字号(字号 14),超盒宽 warning。 边:同 rank 水平;跨 rank 正向走中缝 Z 形;back 边绕 x=60。 A4 1169×827、边距 40,超出整体缩放并 warning。 Y 翻转 (827−v) 只在编辑器写入时做,离线坐标保持屏幕系。
  • 错误:节点 id 重复、边引用未知节点。

导出函数

renderAscii layoutFlowchart flowchartSvg labelWidth

What you get

  • 5×7 dot-matrix ASCII art (styles, shadow, extrude, CJK width handling)
  • Swimlane flowchart orthogonal layout (A4 fit, SVG preview)
  • In-editor silkscreen/document write flow with undo notes

Good fit for

  • Board-name/version silkscreen art
  • Firmware build-flow and system block-diagram docs

Not for

  • Vector-outline silkscreen fonts (dot-matrix style only)
  • Full Mermaid syntax (structured Spec JSON subset)
Before you start

You provide

  • Text with style parameters, or a flowchart Spec JSON

Environment

  • node ≥ 20

Last tested

v1.0.0 · Claude Code, Cursor, Codex, Gemini CLI · Ran 2026/11/19

Dependencies

No dependencies
This skill works standalone.

Demo run

Passed with warnings0 errors · 1 warnings

node v24.19.0 · 2026/11/19

  • [warning] LABEL_OVERFLOW (fix): fix: label wider than box, will clip in editor

Some artifacts are listed by name only (extension not in the preview whitelist).

FAQ

Ratings & reviews

Not rated0 ratings

5 star0
4 star0
3 star0
2 star0
1 star0

Sign in to rate this skill.

Sign in

Versions

  • v1.0.0Latest280.2 KB

    首发种子版本。

    License: MITSourceSHA-256: 80affec9f74857d7…

Related skills