Commit Graph

24 Commits

Author SHA1 Message Date
Florian Festi 7bd0ab9e7d Add Lid option to more Generators
* DividerTray
 * DrillBox
 * GridfinityBase
 * GridfinityTrayLayout
 * SmallPartsTray
 * SmallPartsTray2
 * TrayLayout
 * TypeTray

Related: #128
Related: #277
2023-04-07 21:32:28 +02:00
Florian Festi bdf196616d Add sample images to ConcaveKnob and LaptopStand
and replace default image for DrillBox using the old one on the settings
page.

Thanks to datazaShane <https://github.com/datazaShane> for the photos!

Related: #140
2023-04-01 13:05:44 +02:00
Rotzbua 11340448fa Add typing: magic methods 2023-01-09 07:55:59 +01:00
Florian Festi be68061b17 DrillBox: Extend finger joints on sides to whole height 2022-07-28 22:33:33 +02:00
Florian Festi 8076566616 DrillBox: Add support for top_edge parameter
with limited selection of edge types (compared to UniversalBox)

Resolves: #416
2022-07-28 22:27:48 +02:00
Florian Festi 9a98a50506 DrillBox: Move to Tray group 2021-12-15 14:18:17 +01:00
Florian Festi bfe39861fa DrillBox: Make layers adjustable
Now one can have any number of layers at any height. This may make the
generator useful for other application with custom hole patters on
different height. It also allows deleteing holes for short drills on the
lower layers.

Thanks to https://github.com/KittyDreadful for suggesting this!

Related: #339
2021-12-15 14:18:17 +01:00
Florian Festi 9b0ebad0e7 DrillBox: Make bottom edge configurable 2021-12-15 14:18:17 +01:00
Florian Festi 68e0bae6a9 DrillBox: Set finger joint details as defaults
instead of hard coding them
2021-12-15 14:18:17 +01:00
Florian Festi 4319b704dd DrillBox: Fix holes diameter
by removing radius vs diameter mixup

Resolves: #338
Thanks to https://github.com/KittyDreadful for reporting!
2021-11-08 14:06:24 +01: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
jens persson c86ae75712 Parametrizise the drillbox 2021-06-03 21:40:11 +02:00
Florian Festi d6495fc7b4 DrillBox: Fix font size
Now that the text() function has a fontsize parameter, setting the font size
on ctx before calling text() has no impact.

Resolves: #173

Thanks to Marko Luther for reporting and suggesting this fix!
2019-09-23 12:15:49 +02: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 3dfd99c68a Rename method to not collide with new description property 2017-11-30 22:46:35 +01:00
Florian Festi 5b9c8e4d71 Remove main function from generators
Generators are no longer executable on their own. Use scripts/boxes
instead.
2017-04-05 04:33:42 +02:00
Florian Festi 0cde4a71e6 Add params for edge settings to all generators 2016-11-01 23:46:25 +01:00
schinken 93af56ff9c Code Reformat #1 2016-08-17 15:07:41 +02:00
Florian Festi db38122125 Remove unnecessary moveTo() commands
.move() now leaves some space around parts
2016-08-03 22:20:13 +02:00
Florian Festi 77ba187c70 Name generator classes properly 2016-07-31 14:15:06 +02:00
Marius Bergmann 4b487014d0 Fix project for use within virtualenv
- Use /usr/bin/env to determine path to python3 instead of a hard-coded
  path, so that virtualenv stubs work properly.
- Change package name to 'boxes' ('boxes.py' did not work within
  virtualenv).
2016-07-12 13:13:03 +02:00
Florian Festi 0ba0c19af2 Detect size of drawing and set svg viewport accordingly
Remove width and height parameter from Boxes.open()
Code for detecting the size ignores text. Until this is fixed you need
to surround text by lines of some sort.
2016-06-07 20:24:46 +02:00
Florian Festi 70bb1bf5af Move box generators into boxes.generators sub module 2016-03-25 22:30:07 +01:00