breadkit-render 0.1.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.
data/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "breadkit-render-site",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "scripts": {
6
+ "build": "mkdir -p _site && cp -R site/. _site/ && tailwindcss -i site/styles.css -o _site/assets/site.css --minify"
7
+ },
8
+ "devDependencies": {
9
+ "@tailwindcss/cli": "4.3.3",
10
+ "tailwindcss": "4.3.3"
11
+ }
12
+ }
@@ -0,0 +1,38 @@
1
+ module Breadkit
2
+ module Render
3
+ VERSION: String
4
+
5
+ class Error < StandardError
6
+ end
7
+
8
+ class SvgRenderer
9
+ def render: (
10
+ Breadkit::Circuit circuit,
11
+ ?crop: String,
12
+ ?theme: String,
13
+ ?orientation: String,
14
+ ?show_nets: bool,
15
+ ?legend: bool,
16
+ ?color_by: String,
17
+ ?annotations: Array[Hash[String, untyped]],
18
+ ?rail_pattern: String?,
19
+ ?interactive_layers: bool
20
+ ) -> String
21
+ end
22
+
23
+ class Rasterizer
24
+ def rasterize: (
25
+ String svg,
26
+ format: String,
27
+ ?scale: Float,
28
+ ?background: String,
29
+ ?quality: Integer,
30
+ ?backend: String
31
+ ) -> String
32
+ end
33
+
34
+ class CLI
35
+ def run: (Array[String] argv) -> Integer
36
+ end
37
+ end
38
+ end
data/site/favicon.svg ADDED
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
2
+ <rect width="48" height="48" rx="12" fill="#1b2423" />
3
+ <path d="M10 15h28M10 33h28M15 10v28M33 10v28" fill="none" stroke="#3d4b47" stroke-width="2" />
4
+ <path d="M15 15h18v18H15z" fill="none" stroke="#d99755" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" />
5
+ <circle cx="15" cy="15" r="2.5" fill="#e8eeeb" />
6
+ <circle cx="33" cy="33" r="2.5" fill="#e8eeeb" />
7
+ </svg>
Binary file