caleb crome
c177728f0d
Moved 'drawPoints' from gears.py and pulley.py into Boxes main class
...
This move makes it easier to use Cartesian points directly.
I tested both the gearbox and rotary generators (with default settings) to ensure that they both still work.
2023-05-26 22:36:30 +02:00
Rotzbua
b9a14c1793
Fix type error: no attribute "thickness" [attr-defined]
2023-04-11 21:33:32 +02:00
Florian Festi
56900b8277
rectangularTriangle: Close path
...
for outset first edge
2023-04-09 22:24:13 +02:00
Florian Festi
4e9150f4e5
More import and type fixes
2023-04-07 19:53:20 +02:00
Florian Festi
c0ae8b00eb
Fix lids imports
...
sortof
2023-04-07 18:26:41 +02:00
Florian Festi
70162bdfb2
Move Lid details and creation into own LidSettings class
...
Add new ontop and overthetop lid styles
Replace _ChestLid mixin class. Currently supported for UBox, UniversalBox
and ABox
Resolves : #356
2023-04-06 21:36:27 +02:00
Florian Festi
72aeb95bd5
Rename LidSetting to SlideOnLidSetting
...
to free the name of the generic lids
2023-04-06 20:21:44 +02:00
Florian Festi
df4ae6da3c
polygonWall: Add correct_corner parameter
...
to allow disabling processing for fitting finger joints of the
perpendicular walls in the inner corners.
2023-04-01 19:39:26 +02:00
caleb crome
0b986eeb0c
TrayLayout: Make generation a one step operation in the web UI
...
Add Java Script for generating the layout from sx and sy
Drop special handling in boxesserver
Add .UI attribute to Boxes class to allow behaving differntly on different UIs
Traylayout is still filtered out from Inkscape INX file generation
Slightly adjust layout format of GridfinityTrayLayout
Co-authored-by: Florian Festi <florian@festi.info>
2023-03-07 20:02:27 +01:00
Florian Festi
9a5410983d
.polygonWall(s): Allow None at the end to close the polygon
...
Resolves : #456
2023-03-04 18:59:07 +01:00
Florian Festi
ea1ac786d5
Add Boxes.translations
...
to allow geenrators to translate things like labels, too.
Adds hidden language parameter to make sure the language selected gets
passed down to the generated drawing.
2023-02-25 15:55:06 +01:00
Florian Festi
090c21dc71
Add qr_code default parameter
...
that adds a QR code with the URL or CLI parameters to the drawing
2023-02-24 19:09:53 +01:00
Florian Festi
b0c529725a
Add .qrcode()
2023-02-24 19:09:53 +01:00
Florian Festi
0421aeb76a
Calculate short url and command line
...
with only the changed parameters
2023-02-24 19:09:53 +01:00
Florian Festi
08605d4598
Remove code from render() method that should no longer be there
...
as open() and close() is nowadays handled outside
2023-02-19 19:40:41 +01:00
Florian Festi
a96a78f439
cc(): Add angle parameter
...
to allow placing the callbacks truly everywhere
2023-02-15 21:47:53 +01:00
Florian Festi
3e06ef3921
polygonWall: Make sure callback indexes are int
...
Was broken by 940cec1811
Resolves HeartBox failing
Thanks to noel hanback <https://hackaday.io/hacker/1310423-noel-hanback >
for reporting.
2023-02-14 14:37:46 +01:00
Florian Festi
8b5fb877e7
polygonWalls: don't error out on empty borders list
2023-02-12 19:39:21 +01:00
Florian Festi
940cec1811
polygonWall: Fix numbers of callbacks
...
They were off by a factor of two as they should be numberd by sides
while we also counted corners
2023-02-12 13:29:58 +01:00
Florian Festi
971c20be7c
trapezoidSideWall: Fix call to move
...
resulting in an assert error as the label was used as "before" parameter
which messes up the whole magic inside .move(). As a result the .stroke() method was not called - leading to unprocesses paths - triggering the assert.
Resolves : #423
2023-01-16 12:20:26 +01:00
Rotzbua
6fac72bebd
Remove useless parentheses
2023-01-13 16:18:44 +01:00
Florian Festi
6f626d04a7
Remove debug code
2023-01-11 20:31:59 +01:00
Rotzbua
fceb5f2dfe
Add typing: variables
2023-01-09 07:55:59 +01:00
Rotzbua
11340448fa
Add typing: magic methods
2023-01-09 07:55:59 +01:00
Florian Festi
a01bc11cb7
polygonWall: Fix margin calculation
...
by tracing the outline of the edge margins.
Fixes 1875742b8d
2023-01-04 13:30:14 +01:00
Rotzbua
9cb581a6ad
Fix misspelled variables ( #484 )
...
Co-authored-by: Florian Festi <florian@festi.info>
2023-01-02 16:23:24 +01:00
Rotzbua
5fae61bd0d
Fix typos and docstrings
2023-01-02 16:15:13 +01:00
Rotzbua
9d6f535e01
Fix typing errors
2023-01-01 18:10:42 +01:00
Florian Festi
1875742b8d
polygonWall: Take all edge type into account
...
when calculating the extent of the polygon. This is a less than ideal,
worst case estimate. Should be replaced by something a bit smarter that
only looks at the current edge and the space it needs.
2023-01-01 15:26:07 +01:00
Rotzbua
ad38bb1eaf
Auto optimize imports
...
* Remove unused
* Rearrange imports (module > partial > project)
2022-12-31 20:33:49 +01:00
Rotzbua
1d6efb5371
Fix comparison with None and equality operator
2022-12-29 12:02:33 +01:00
Florian Festi
7a0dd3ebdf
flangedWall: Fix placement of finger holes
...
for walls with other width than t
2022-12-21 22:38:06 +01:00
ranthalion
fe28b7454e
Add edges to polygonWall
2022-12-06 18:12:21 +01:00
Florian Festi
a69b1da78f
Whitespace cleanup
2022-12-06 18:12:21 +01:00
suks.ae
bfaabc2619
Add HandleEdge
2022-09-24 08:36:00 +02:00
funkonaut
691f3f440e
Add aria labels to inputs
...
to make them accessible for screen reader users.
Assign ids to the tds containing the setting name and description and
then use them as the label via the aria-labeledby attribute.
2022-09-08 09:00:04 +02:00
Erik Snider
3572feab41
Update regularPolygonHole to support rounded corners
2022-08-18 00:08:20 +02:00
Florian Festi
d6faf5be3e
rectangularWall: Fix placement for ignore_widths 6
...
we need to move for the edge margin every time. Otherwise the edge will
stick out.
2022-08-08 21:50:47 +02:00
Florian Festi
05fc5aab32
New Generator: CardHolder
...
Resolves : #279
2022-07-31 00:28:13 +02:00
suks.ae
5169343be7
Add fillHoles() function
...
to fill a polygon with a hole pattern
2022-07-23 09:53:11 +02:00
suks.ae
3793a2bb09
Add regularPolygonHole()
...
to be used by fillHoles
2022-07-23 09:44:20 +02:00
Florian Festi
20ab2a1bed
flangedWall: Do inger holes for h edge
...
if there is a flange at that side
2022-07-19 09:25:17 +02:00
suks.ae
2f59c6191b
fixed debug rectangle to be painted with ANNOTATIONS color
2022-06-05 22:37:00 +02:00
suks.ae
af8a30287e
Add burn value to reference text
2022-05-27 15:16:50 +02:00
suks.ae
ec0d24efd2
Fix svg text alignment for "middle"
...
See https://stackoverflow.com/questions/19212498/firefox-support-for-alignment-baseline-property/21373135#21373135
2022-05-27 15:05:37 +02:00
Florian Festi
4a339a31db
White space in comments
2022-05-27 14:53:40 +02:00
suks.ae
20f45224fb
Add MountingEdge
...
and add it to top_edge.
2022-05-27 14:53:40 +02:00
SuksAE
363b474b46
Add parameter "hole_dD" to .buildArgParser()
2022-05-15 10:23:14 +02:00
SuksAE
1bb4b8c0c3
Added pear shaped mounting hole drawing function ( #392 )
...
and add them to BinTray and TrafficLight
Add labels to the parts of these generators
Add doc strings to all hole types
2022-05-15 07:55:53 +02:00
Florian Festi
50072a18b7
Add stackable edge with finger holes to top_edge
...
standard parameter and support it in drawLid()
2022-05-08 12:18:15 +02:00