Florian Festi
d29c8f7138
Consistent units for standard parameters
2022-01-09 16:20:58 +01:00
Florian Festi
e28976d5e3
Add doc link for tabs param
2022-01-07 22:22:03 +01:00
Florian Festi
72a111a100
Shorten parameter descriptions to fit in one line
...
The additional information is now available via help link to the user
documentation.
2022-01-07 22:22:03 +01:00
Florian Festi
9b0c842522
Fix docstring formatting
2022-01-03 13:42:40 +01:00
Florian Festi
acf4e81159
Add links to documentation to web UI
...
for some of the parameters
2022-01-03 13:30:43 +01:00
Florian Festi
d5654137a4
RoundedBox: Allow arbirtary horizontal layers
...
by changing h param to sh.
Also surroundingWallPiece to get the dimmensions of each section in the
surrounding wall.
Resolves : #339
Thanks to Florin Furdi for the idea!
2022-01-02 13:48:32 +01:00
Florian Festi
ee2baab396
flangedWall: Allow other edge types
...
for sides without flange. Support "e" edges for sides with flanges
(along with "E" and "F")
Resolves : #347
2021-12-04 16:02:25 +01:00
Florian Festi
ad1be4c361
Fix placement of rectangularTriangle(s)
...
That was broken by fcefddca1e
. Turns out
the the handling of self.spacing (distance between parts was not handled
properly.
Resolves : #346
Thanks to Guillaume Collic for reporting!
2021-12-01 23:37:02 +01:00
Mateusz Konieczny
62b30e3d88
fix some typos with codespell
2021-11-03 15:34:38 +01:00
Florian Festi
f6fa4967ab
surroundingWall: Fix size calculation
...
Resolves : #297
2021-09-21 23:01:53 +02:00
Florian Festi
fcefddca1e
rectangularTriangle: Improve spacing
2021-09-21 22:52:10 +02:00
Florian Festi
eb84f0e0ac
rectangularTriangle: Fix placement
...
Resolves : #308
2021-09-19 16:52:29 +02:00
Florian Festi
8030faadd6
rectangularTriangle: Fix outset edges in hypothenuse
2021-09-19 16:50:39 +02:00
Florian Festi
9cb038ef0a
Quote cli in meta data to not contain line breaks
...
Resolves : #327
2021-06-25 22:13:13 +02:00
jens persson
2d262dacdd
Allow labeling of parts
...
Add a parameter label to rectangularWall(), flangedWall(),
rectangularTriangle(), trapezoidWall(), trapezoidSideWall() that is rendered
in red to identify parts, it is not ment to be cut or etched.
Added --labels flag to enable/disable rendering of labels.
Resolves : #316
2021-06-11 22:29:23 +02:00
jens persson
9a46882c8f
Add color selection to all holes
...
All methods that uses the holeCol decorator now take a parameter color.
Added semantic symbols for colors.
2021-06-03 21:40:11 +02:00
Florian Festi
e5f88eda4c
Fix typo
2020-11-09 19:15:48 +01:00
Florian Festi
adc3ec5210
Fix polygonWalls()
...
Not calling .stroke() now creates a error with the new backend.
Thanks to Michel27290 (https://hackaday.io/hacker/1123712 ) for reporting!
2020-10-16 11:38:30 +02:00
Marcin Zukowski
dfc2f075d9
Adding Grooved Edge (z, Z), example use in UnevenHeightBox
2020-09-29 20:40:18 +02:00
Guillaume Collic
eba63d9acb
Add option to do rectangular holes without centering them
2020-09-20 12:37:29 +02:00
Florian Festi
7fd4306664
Add h edge to top_edge parameter
...
Resolves : #244
2020-09-19 22:39:30 +02:00
Florian Festi
812b3ad59a
regularPolygonWall: Fix size calculation
2020-08-16 15:02:56 +02:00
Ba-So
d34d6ed987
fixed proper use of settings in paintbox.py
2020-08-15 09:47:40 +02:00
Ba-So
f6e2773810
fixed bug where the option hexpattern=True would cause an error.
2020-08-14 12:30:21 +02:00
Guillaume Collic
676772ee64
Clarify rectangularHole x,y parameters (center)
2020-08-13 00:38:54 +02:00
Florian Festi
bdc6a4c110
Add screwholes param to Boxes.NEMA()
2020-08-04 19:33:11 +02:00
Florian Festi
59564a58a7
Only add "unless outside selected" if "outside" param is present
...
Void confusing users if outside param is missing but still be mentioned in
the help text.
2020-08-04 19:33:11 +02:00
Florian Festi
e643e07b4d
Add HexHolesSettings class
...
to get rid of the settings tuple and to support changing them in the UI
Related: #33
2020-08-04 19:33:11 +02:00
Florian Festi
02a7299618
Fix text alignment attributes
...
Was broken for "left"
Resolves : #228
2020-07-04 23:56:37 +02:00
Florian Festi
07e53868f6
Remove duplicated "f" option in top_edge parameter
...
Thanks to Zhong for pointing this out!
2020-05-22 13:32:43 +02:00
Florian Festi
2fc59b48df
Remove reference to cairo
2020-05-18 22:30:28 +02:00
Florian Festi
39e2b0cfc3
Split all arcs > 100° into smaller pieces
...
This is necessary to make the approximation with Bezier curves work
2020-05-18 22:30:28 +02:00
Florian Festi
6440bcb639
Get text working for both SVG and PS
...
Move coordiate translation to to finish() method
Use Latin1 encoding for text PS in output
Add Boxes.set_font() to support basic font styles:
serif, sans-serif and monospaced
in normal, bold, italic and both bold and italic
2020-05-18 22:30:28 +02:00
Florian Festi
fddf78fcc3
Add metadata to the SVG files right away
2020-05-18 22:30:28 +02:00
Thomas Kalka
fd48e57f33
Implement new backend without cairo
...
by providing SVGSurface, PSSurface and Context classes
Disable post processing as we want to create proper files right away
2020-05-18 22:30:28 +02:00
Thomas Kalka
da0e390789
do not start holes with the corner
2020-05-18 22:30:28 +02:00
Florian Festi
6091cf955f
Comsole2: Move to Box group in the UI
2020-05-10 16:13:54 +02:00
Florian Festi
27264f8c08
New fingerHoleRectangle() function
2020-05-10 16:12:27 +02:00
Florian Festi
949c8d8324
Fix polygonWalls() for uneven number of walls and symetrical==True
...
For an uneven number of walls one needs to have two different edges
to be able to close the loop.
2020-05-02 00:43:33 +02:00
Florian Festi
966a6c77cf
Add "rotated" to possible move terms
2020-05-01 23:35:55 +02:00
Florian Festi
c4ca1b4dfa
Also translate Edge descriptions in ArgparseEdgeType
2020-04-13 18:45:17 +02:00
Florian Festi
0178a853c3
Add Inkscape style meta data to SVG output
2020-03-01 16:53:41 +01:00
Florian Festi
22450a6fe7
roundedPlate: Fix placement
2020-02-28 17:52:49 +01:00
Florian Festi
6476a51fc4
roundedPlate: Fix callback positioning
2020-02-28 17:52:49 +01:00
Florian Festi
223ac26122
roundedPlate: new extend_corners param
2020-02-28 17:52:18 +01:00
Florian Festi
26b33d62ff
roundedPlate: Properly lookup edge
2020-02-28 17:46:44 +01:00
Florian Festi
7c004e2d2c
New primitive: Boxes.step()
...
Outset a line by a given margin - negative values for insetting
2020-02-28 17:46:44 +01:00
Florian Festi
0394d418c1
dHole: Prevent division by zero
2020-02-01 15:30:18 +01:00
Florian Festi
7943fa2390
flex2D: Fix division by zero for too small patterns
2020-02-01 15:22:35 +01:00
Florian Festi
95f2fbeb82
corner(): Make more robust against division by zero
2020-02-01 15:03:49 +01:00
Florian Festi
f8401aac75
rectangularRectangle: Make angle calculation more robust
2020-02-01 14:43:45 +01:00
Florian Festi
10e2085eef
Remove Python 2 compat foo
2019-12-21 17:47:54 +01:00
Florian Festi
4d53bd17cc
partsMatrix: support width=0 for all parts in one row
2019-12-16 20:07:30 +01:00
Florian Festi
182d222f01
Prevent not having any sections at all for argparseSections
2019-11-24 19:10:35 +01:00
Florian Festi
d2d97b01c9
grip(): Prevent division by zero
2019-11-24 16:42:47 +01:00
Florian Festi
b0b35d6084
Mention BurnTest in docs and in the burn parameter description
2019-10-19 12:29:56 +02:00
Florian Festi
52484b0d55
adjustSize(): add support for edge chars
2019-09-08 23:26:23 +02:00
Marko Luther
ca1a3575d0
forward holesSettings to hexHolesRectangle from within rectangularWall
2019-07-21 01:21:55 +02:00
Florian Festi
fff74cf382
Add metadata as a xml comment
...
Resolves #66
2019-07-07 13:43:04 +02:00
Florian Festi
6c85ae7ea2
Add trapezoidSideWall() that supports radius param for additional strength
2019-06-21 23:16:59 +02:00
Florian Festi
6a809e17e7
Move trapezoidWall() from UnevenHeightBox to Boxes class
2019-06-21 21:37:57 +02:00
Florian Festi
01ca56fdce
Support all different section syntaxes (sx, sy, ...) side by side
2019-06-21 21:37:57 +02:00
Germain Lemasson
e8e248994b
Add a StorageSelf generator. This is a shelf for storing TypeTray boxes.
...
It is based on TypeTray generator. The sh parameter replace the sx parameter.
It is not a subclasse of TypeTray in order to have the top and bottom at
the right place.
2019-06-01 12:52:34 +02:00
Florian Festi
46157b2030
Add .mirrorX() and .mirrorY() wrappers
...
These are especially useful for warpping callbacks.
2019-05-11 17:17:11 +02:00
Florian Festi
f22be6f6d5
Fix polygonWalls for inner corners
2019-04-14 18:17:09 +02:00
Florian Festi
0b781ce7ef
Add turtle param to polygonWall
...
to allow using it as turtle graphic command instead of a part
2019-04-14 18:17:09 +02:00
Florian Festi
dc11929258
Fix _polygonWallExtend for corners with negative angles
2019-04-14 18:17:09 +02:00
chrysn
95dba0dee7
box: raise NotImplementedError
...
NotImplemented is a sentinel for comparisons; encountering this as an
exception would result in a meta-error.
2019-04-10 17:56:12 +02:00
Florian Festi
7aec26e893
New .polygonWall() part
...
Similar to .polyline() but with (f) edges on the outside
.polygonWalls draws the surrounding walls
2019-03-24 21:50:36 +01:00
Florian Festi
4f4d947253
.corner(): Fix tabs for small arcs
2019-03-24 21:50:11 +01:00
Florian Festi
f178215f20
.corner(): Also accept (angle, radius) tuples
2019-03-24 21:50:11 +01:00
Martin Müller
fb4791f803
Fix typo in help text for tabs
2019-02-26 00:02:30 +01:00
Florian Festi
8640514daf
Omit reference for svg_Ponoko format
2019-02-14 21:36:54 +01:00
Florian Festi
81708bbbca
.polyline: mention tabs feature in doc string
2019-02-14 17:32:59 +01:00
Florian Festi
3a0e34eed8
Fix NutHole which broke after switching over to saved_context
2019-02-14 17:31:56 +01:00
Florian Festi
679234afd3
Fix docstrings of .open() and .close() to match new use pattern
2019-02-13 09:04:57 +01:00
Florian Festi
9b1ce265bf
Make docstrings ready for autodoc
2019-02-13 09:01:20 +01:00
Florian Festi
0d07f48b7f
Remove .open() call from the .render() method
...
Having this call there was necessary in the past as the open() method would
need the canvas size as a parameter. This is now determined automatically
after rendering.
Still calling open() is deprecated but won't result in an error.
2019-02-08 17:43:15 +01:00
Florian Festi
861c8451e2
Remove call to .close() from .render() method
...
There is really no need for all the generator to care
Still calling it is deprecated but won't result in an error
2019-02-08 17:32:04 +01:00
Florian Festi
ded5addbe9
Remove no longer needed calls to ctx.stroke()
...
Boxes.move() take care of that nowadays
2019-02-07 22:43:04 +01:00
Florian Festi
80ab24dceb
Fix format of doc strings
2019-02-07 17:42:41 +01:00
Wayne Wylupski
c5d434105b
Add svg_Ponoko output format
...
This is just regular SVG with Ponoko-specific line properties
Yes, the lines are too thin to be seen in a regular web browser.
Resolves : #112
2019-02-03 16:30:28 +01:00
Wayne Wylupski
abacdd486e
Implement proper color handling
...
Avoid accessing Boxes.ctx (the cairo context) all over the code.
Have named colors
2019-02-03 16:28:02 +01:00
Wayne Wylupski
c573914bcd
Add Boxes.saved_context() context manager
...
Avoid directly accessing Boxes.ctx (the cairo context) all over the place.
Also have a more modern API for returning to a previous spot.
2019-02-03 16:25:31 +01:00
Florian Festi
2747d9719a
Add RoundedTriangleEdge to top_edges
2019-01-12 00:00:55 +01:00
Florian Festi
31fd0024ee
Add RoundedTriangleEdge t
...
Based on the Caddy generator by bobm123 in the PR #14
(https://github.com/florianfesti/boxes/pull/14 )
Edge will be added to the TypeTray generator to achieve similar results as Caddy
Co-authored-by: bobm123 <bobm123@gmail.com>
2019-01-11 23:56:28 +01:00
Florian Festi
73050d4969
Make .continueDirection() more private
2018-12-22 17:23:33 +01:00
Florian Festi
4d2592fecf
Add e edge to bottom_edge selection
2018-12-08 18:22:13 +01:00
Florian Festi
fd956d1f08
rectangularHole(): clamp corner radius to available space
2018-12-08 12:42:36 +01:00
Florian Festi
ed6855d79c
RoundedPlate: Call first callback only once
...
Remove left over call to .cc()
2018-11-09 21:01:00 +01:00
Florian Festi
a4b5af98e2
Add new "mirror" key word to the where parameter of Boxes.move()
2018-10-19 19:05:07 +02:00
Florian Festi
c45b5cd30b
Add debug rectangle for move commands
2018-10-19 18:58:29 +02:00
Florian Festi
db16b16533
.rectangularWall(): Fix placement for hex holes enabled by holesMargin param
2018-09-13 09:23:56 +02:00
Florian Festi
9ad64a1764
Boxes.buildArgParser: Update doc string
2018-09-10 10:00:02 +02:00
Florian Festi
259834a983
ArgparseEdgeType: Add doc string
2018-09-10 10:00:02 +02:00
Florian Festi
84df48ba1d
Add units (mm) to the tabs param description
2018-09-10 10:00:02 +02:00
Rotzbua
84ce484f93
[doc] add hint to disable reference
2018-09-08 15:33:09 +02:00
Florian Festi
3767598d5d
Fix placement of rectangularHole() which was off by one burn
2018-08-27 15:09:17 +02:00
Florian Festi
897fc23029
Doc string for Boxes.flex2D()
2018-08-23 23:28:24 +02:00
Florian Festi
6c43f4a382
Doc string for Boxes.TX()
2018-08-23 23:28:20 +02:00