Skip to content

Commit 3587244

Browse files
committed
Update docs
Issue #95
1 parent ccdc254 commit 3587244

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

DATAFORMAT.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ attribute.
105105
```js
106106
{
107107
"type": "arc",
108+
"width": width,
109+
# SVG path of the arc given as 'd' attribute of svg spec.
110+
# If this parameter is specified everything below it is ignored.
111+
"svgpath": svgpath,
108112
"start": [x, y],
109113
"radius": radius,
110114
"startangle": angle1,
111115
"endangle": angle2,
112-
"width": width,
113116
}
114117
```
115118

@@ -118,6 +121,9 @@ attribute.
118121
```js
119122
{
120123
"type": "polygon",
124+
# SVG path of the polygon given as 'd' attribute of svg spec.
125+
# If this parameter is specified everything below it is ignored.
126+
"svgpath": svgpath,
121127
"pos": [x, y],
122128
"angle": angle,
123129
"polygons": [
@@ -136,6 +142,12 @@ attribute.
136142
{
137143
"pos": [x, y],
138144
"text": text,
145+
# SVG path of the text given as 'd' attribute of svg spec.
146+
# If this parameter is specified then height, width, angle,
147+
# text attributes and justification is ignored. Rendering engine
148+
# will not attempt to read character data from newstroke font and
149+
# will draw the path as is. "thickness" will be used as stroke width.
150+
"svgpath": svgpath,
139151
"height": height,
140152
"width": width,
141153
// -1: justify left

InteractiveHtmlBom/ecad/easyeda.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33

44
from .common import EcadParser, Component, BoundingBox
5-
from .svgpath import parse_path
65

76

87
PY3 = sys.version_info[0] == 3

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ generated bom page.
3535

3636
`units.py` is borrowed from [KiBom](https://github.com/SchrodingersGat/KiBoM)
3737
plugin (MIT license).
38+
39+
`svgpath.py` is heavily based on
40+
[svgpathtools](https://github.com/mathandy/svgpathtools) module (MIT license).

0 commit comments

Comments
 (0)