fastdraw 0.2.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/agents/AGENTS-snippet.md +1 -0
- package/dist/cli.js +1259 -680
- package/dist-embed/embed/draw-BienvSdl.js +42 -0
- package/dist-embed/embed.js +946 -2
- package/dist-embed/fonts/LibreCaslonDisplay-Regular.ttf +0 -0
- package/fonts/LibreCaslonDisplay-Regular.ttf +0 -0
- package/fonts/OFL-LibreCaslonDisplay.txt +93 -0
- package/guide/guide.md +20 -5
- package/guide/look.md +104 -12
- package/package.json +5 -2
- package/plugins/fastdraw/.claude-plugin/plugin.json +1 -1
- package/plugins/fastdraw/skills/fastdraw/SKILL.md +3 -2
- package/dist-embed/embed/draw-CFzc4XD7.js +0 -1070
package/README.md
CHANGED
|
@@ -126,6 +126,12 @@ Written by agents from the guides alone and drawn in the built-in look; sources
|
|
|
126
126
|
|
|
127
127
|
FastDraw is at version 0.x, and details of the language may still change.
|
|
128
128
|
|
|
129
|
+
## Rust
|
|
130
|
+
|
|
131
|
+
[`fastdraw-render`](crates/fastdraw-render) is the renderer as a Rust crate, for applications that draw
|
|
132
|
+
diagrams without Node. It draws the same SVG as the npm package of the same version, character for character;
|
|
133
|
+
CI checks that on Linux and Windows. See its [README](crates/fastdraw-render/README.md).
|
|
134
|
+
|
|
129
135
|
## Contributing
|
|
130
136
|
|
|
131
137
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for building from source, running the tests and the
|
package/agents/AGENTS-snippet.md
CHANGED
|
@@ -12,5 +12,6 @@ Diagrams in this repo are FastDraw files (`.fdraw`), drawn with the look in `.lo
|
|
|
12
12
|
- `fastdraw check <folder>` and `fastdraw render <folder>` work on every `.fdraw` file under a folder. `fastdraw render <file> --dark` also writes `<file>-dark.png` with the look's dark version, for sites with a dark theme; `--look <name|file.look>` draws with another look without changing the file.
|
|
13
13
|
- When the diagram is done, always ask the person what to do next: open it in fastdraw.dev (run `fastdraw open <file>` in the background, then give them the link it prints in case no browser window appeared; edits save back to the file), preview the PNG (open it in their image viewer), or nothing. Do not open anything before they choose.
|
|
14
14
|
- On a docs site (a web page, not a GitHub README), show a diagram with `<fastdraw-diagram src="....fdraw">` from https://fastdraw.dev/embed.js and keep the rendered PNG inside it as the fallback image; see "Embedding a diagram" in FastDraw's README.
|
|
15
|
+
- When a diagram needs vendor icons (Azure, AWS, Google Cloud, Kubernetes, product logos) or a font that does not ship with FastDraw, add them to the look by their https:// address from the recommended sources in `fastdraw guide look`, with a fixed version in the address, rather than downloading files into the repo.
|
|
15
16
|
- When changing an existing diagram, leave the position, size and styling of existing elements alone unless asked.
|
|
16
17
|
- If `fastdraw` is not on the PATH, run it as `npx fastdraw`.
|