跳到正文

Axton:Excalidraw 手绘图表

根据文字资料生成流程图、关系图和思维导图,支持 Obsidian、标准 Excalidraw 与动画输出形式。

开源精选知识加工5 个文件3,649 Stars浏览次数 0axtonliu/axton-obsidian-visual-skills MIT版本 1265976
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
概念、流程与关系资料 输出形式和布局要求 阅读本节完整说明
交付内容
可编辑 Excalidraw 图表 图表结构与文件 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/excalidraw-schema.md

Color Palette

Primary Colors

Purpose Color Hex
Main Title Deep Blue #1e40af
Subtitle Medium Blue #3b82f6
Body Text Dark Gray #374151
Emphasis Orange #f59e0b
Success Green #10b981
Warning Red #ef4444

Background Colors

Purpose Color Hex
Light Blue Background #dbeafe
Light Gray Neutral #f3f4f6
Light Orange Highlight #fef3c7
Light Green Success #d1fae5
Light Purple Accent #ede9fe

Element Types

Rectangle

{
  "type": "rectangle",
  "id": "unique-id",
  "x": 100,
  "y": 100,
  "width": 200,
  "height": 80,
  "strokeColor": "#1e40af",
  "backgroundColor": "#dbeafe",
  "fillStyle": "solid",
  "strokeWidth": 2,
  "roughness": 1,
  "opacity": 100,
  "roundness": { "type": 3 }
}

Text

{
  "type": "text",
  "id": "unique-id",
  "x": 150,
  "y": 130,
  "text": "Content here",
  "fontSize": 20,
  "fontFamily": 5,
  "textAlign": "center",
  "verticalAlign": "middle",
  "strokeColor": "#1e40af",
  "backgroundColor": "transparent"
}

Arrow

{
  "type": "arrow",
  "id": "unique-id",
  "x": 300,
  "y": 140,
  "width": 100,
  "height": 0,
  "points": [[0, 0], [100, 0]],
  "strokeColor": "#374151",
  "strokeWidth": 2,
  "startArrowhead": null,
  "endArrowhead": "arrow"
}

Ellipse

{
  "type": "ellipse",
  "id": "unique-id",
  "x": 100,
  "y": 100,
  "width": 120,
  "height": 120,
  "strokeColor": "#10b981",
  "backgroundColor": "#d1fae5",
  "fillStyle": "solid"
}

Diamond

{
  "type": "diamond",
  "id": "unique-id",
  "x": 100,
  "y": 100,
  "width": 150,
  "height": 100,
  "strokeColor": "#f59e0b",
  "backgroundColor": "#fef3c7",
  "fillStyle": "solid"
}

Line

{
  "type": "line",
  "id": "unique-id",
  "x": 100,
  "y": 100,
  "points": [[0, 0], [200, 100]],
  "strokeColor": "#374151",
  "strokeWidth": 2
}

Full JSON Structure

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [
    // Array of elements
  ],
  "appState": {
    "gridSize": null,
    "viewBackgroundColor": "#ffffff"
  },
  "files": {}
}

Font Family Values

Value Font Name
1 Virgil (hand-drawn)
2 Helvetica
3 Cascadia
4 Assistant
5 Excalifont (recommended)

Fill Styles

  • solid - Solid fill
  • hachure - Hatched lines
  • cross-hatch - Cross-hatched
  • dots - Dotted pattern

Roundness Types

  • { "type": 1 } - Sharp corners
  • { "type": 2 } - Slight rounding
  • { "type": 3 } - Full rounding (recommended)

Element Binding

To connect text to a container:

{
  "type": "rectangle",
  "id": "container-id",
  "boundElements": [{ "id": "text-id", "type": "text" }]
}
{
  "type": "text",
  "id": "text-id",
  "containerId": "container-id"
}

Arrow Binding

To connect arrows to shapes:

{
  "type": "arrow",
  "startBinding": {
    "elementId": "source-shape-id",
    "focus": 0,
    "gap": 5
  },
  "endBinding": {
    "elementId": "target-shape-id",
    "focus": 0,
    "gap": 5
  }
}

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan