From 029db0588f75e7b31697e48034f097320ea1ebcf Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Thu, 14 Oct 2021 21:19:40 +0200 Subject: [PATCH] more meta data --- .../buxtronix_living_hinges/meta.json | 20 +++++ .../fablabchemnitz/can_generator/meta.json | 20 +++++ .../card_layout_guides/meta.json | 20 +++++ .../fablabchemnitz/chain_paths/meta.json | 20 +++++ .../fablabchemnitz/checkerboard/meta.json | 20 +++++ .../fablabchemnitz/chip_scratches/meta.json | 20 +++++ .../fablabchemnitz/circle_tangents/meta.json | 20 +++++ .../fablabchemnitz/cleanup_styles/meta.json | 20 +++++ extensions/fablabchemnitz/clip_out/meta.json | 19 +++++ .../clones_in_perspective/meta.json | 20 +++++ .../fablabchemnitz/close_paths/meta.json | 20 +++++ extensions/fablabchemnitz/collar/meta.json | 20 +++++ .../fablabchemnitz/color_harmony/meta.json | 20 +++++ .../fablabchemnitz/join_paths/meta.json | 20 +++++ .../fablabchemnitz/jpeg_export/meta.json | 20 +++++ .../fablabchemnitz/knob_scale/knob_scale.inx | 1 + .../fablabchemnitz/knob_scale/knob_scale.py | 73 +++++++++++++------ .../fablabchemnitz/knob_scale/meta.json | 20 +++++ .../label_feature_with_fill_color/meta.json | 20 +++++ .../fablabchemnitz/label_guides/meta.json | 21 ++++++ 20 files changed, 412 insertions(+), 22 deletions(-) create mode 100644 extensions/fablabchemnitz/buxtronix_living_hinges/meta.json create mode 100644 extensions/fablabchemnitz/can_generator/meta.json create mode 100644 extensions/fablabchemnitz/card_layout_guides/meta.json create mode 100644 extensions/fablabchemnitz/chain_paths/meta.json create mode 100644 extensions/fablabchemnitz/checkerboard/meta.json create mode 100644 extensions/fablabchemnitz/chip_scratches/meta.json create mode 100644 extensions/fablabchemnitz/circle_tangents/meta.json create mode 100644 extensions/fablabchemnitz/cleanup_styles/meta.json create mode 100644 extensions/fablabchemnitz/clip_out/meta.json create mode 100644 extensions/fablabchemnitz/clones_in_perspective/meta.json create mode 100644 extensions/fablabchemnitz/close_paths/meta.json create mode 100644 extensions/fablabchemnitz/collar/meta.json create mode 100644 extensions/fablabchemnitz/color_harmony/meta.json create mode 100644 extensions/fablabchemnitz/join_paths/meta.json create mode 100644 extensions/fablabchemnitz/jpeg_export/meta.json create mode 100644 extensions/fablabchemnitz/knob_scale/meta.json create mode 100644 extensions/fablabchemnitz/label_feature_with_fill_color/meta.json create mode 100644 extensions/fablabchemnitz/label_guides/meta.json diff --git a/extensions/fablabchemnitz/buxtronix_living_hinges/meta.json b/extensions/fablabchemnitz/buxtronix_living_hinges/meta.json new file mode 100644 index 00000000..d4eaf54d --- /dev/null +++ b/extensions/fablabchemnitz/buxtronix_living_hinges/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Buxtronix Living Hinges", + "id": "fablabchemnitz.de.buxtronix_living_hinges", + "path": "buxtronix_living_hinges", + "original_name": "Living Hinges", + "original_id": "net.buxtronix.living_hinge", + "license": "GNU GPL v3", + "license_url": "https://github.com/buxtronix/living-hinge/blob/master/LICENSE", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/buxtronix_living_hinges", + "fork_url": "https://github.com/buxtronix/living-hinge", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Buxtronix+Living+Hinges", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/buxtronix", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/can_generator/meta.json b/extensions/fablabchemnitz/can_generator/meta.json new file mode 100644 index 00000000..9ac3504a --- /dev/null +++ b/extensions/fablabchemnitz/can_generator/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Can Generator", + "id": "fablabchemnitz.de.can_generator", + "path": "can_generator", + "original_name": "Dosengenerator", + "original_id": "githubacct.uniqueid.Dosengenerator", + "license": "GNU GPL v3", + "license_url": "https://github.com/minirevollo/Inkscape-Dosen-Generator/blob/master/LICENSE", + "comment": "ported to Inkscape v1 by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/can_generator", + "fork_url": "https://github.com/minirevollo/Inkscape-Dosen-Generator", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Can+Generator", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/minirevollo", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/card_layout_guides/meta.json b/extensions/fablabchemnitz/card_layout_guides/meta.json new file mode 100644 index 00000000..aeaa0c95 --- /dev/null +++ b/extensions/fablabchemnitz/card_layout_guides/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Card Layout Guides", + "id": "fablabchemnitz.de.card_layout_guides", + "path": "card_layout_guides", + "original_name": "Cards", + "original_id": "phillips.effect.cardlayoutguides", + "license": "GNU GPL v2", + "license_url": "https://sourceforge.net/p/razorfoss/svn/HEAD/tree/trunk/Inkscape/LayoutGuides/CardLayoutGuides.py", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/card_layout_guides", + "fork_url": "https://sourceforge.net/p/razorfoss/svn/HEAD/tree/trunk/Inkscape/LayoutGuides/", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Card+Layout+Guides", + "inkscape_gallery_url": null, + "main_authors": [ + "lukerazor@hotmail.com", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/chain_paths/meta.json b/extensions/fablabchemnitz/chain_paths/meta.json new file mode 100644 index 00000000..4151f20b --- /dev/null +++ b/extensions/fablabchemnitz/chain_paths/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Chain Paths", + "id": "fablabchemnitz.de.chain_paths", + "path": "chain_paths", + "original_name": "Chain Paths", + "original_id": "com.github.fablabnbg.inskscape-chain-paths", + "license": "GNU GPL v2", + "license_url": "https://github.com/fablabnbg/inkscape-chain-paths/blob/master/LICENSE", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/chain_paths", + "fork_url": "https://github.com/fablabnbg/inkscape-chain-paths", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Chain+Paths", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/fablabnbg", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/checkerboard/meta.json b/extensions/fablabchemnitz/checkerboard/meta.json new file mode 100644 index 00000000..3a42179c --- /dev/null +++ b/extensions/fablabchemnitz/checkerboard/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Checkerboard", + "id": "fablabchemnitz.de.checkerboard", + "path": "checkerboard", + "original_name": "Checkerboard", + "original_id": "org.jeffkayser.checkerboard", + "license": "GNU GPL v2", + "license_url": "https://github.com/jeffkayser/inkscape-checkerboard/blob/master/LICENSE", + "comment": "ported to Inkscape v1 by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/checkerboard", + "fork_url": "https://github.com/jeffkayser/inkscape-checkerboard", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Checkerboard", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/jeffkayser", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/chip_scratches/meta.json b/extensions/fablabchemnitz/chip_scratches/meta.json new file mode 100644 index 00000000..7448ef6c --- /dev/null +++ b/extensions/fablabchemnitz/chip_scratches/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Chip Scratches", + "id": "fablabchemnitz.de.chip_scratches", + "path": "chip_scratches", + "original_name": "ChipScratches", + "original_id": "ca.sfu.AT.kurn.ChipScratches", + "license": "GNU GPL v2", + "license_url": "https://inkscape.org/~kurn/%E2%98%85chipscratches", + "comment": "ported to Inkscape v1 by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/chip_scratches", + "fork_url": "https://inkscape.org/~kurn/%E2%98%85chipscratches", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Chip+Scratches", + "inkscape_gallery_url": null, + "main_authors": [ + "inkscape.org/kurn", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/circle_tangents/meta.json b/extensions/fablabchemnitz/circle_tangents/meta.json new file mode 100644 index 00000000..7287e1e9 --- /dev/null +++ b/extensions/fablabchemnitz/circle_tangents/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Circle Tangents", + "id": "fablabchemnitz.de.circle_tangents", + "path": "circle_tangents", + "original_name": "Tangent", + "original_id": "org.inkscape.tangent", + "license": "GNU GPL v3", + "license_url": "https://github.com/Rhysun/inkTan/blob/master/tangent.py", + "comment": "ported to Inkscape v1 manually by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/circle_tangents", + "fork_url": "https://github.com/Rhysun/inkTan", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Circle+Tangents", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/Rhysun", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/cleanup_styles/meta.json b/extensions/fablabchemnitz/cleanup_styles/meta.json new file mode 100644 index 00000000..410936eb --- /dev/null +++ b/extensions/fablabchemnitz/cleanup_styles/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Cleanup Styles", + "id": "fablabchemnitz.de.cleanup_styles", + "path": "cleanup_styles", + "original_name": "Cleanup", + "original_id": "com.attoparsec.filter.cleanup", + "license": "GNU GPL v2", + "license_url": "https://github.com/attoparsec/inkscape-extensions/blob/master/cleanup.py", + "comment": "ported to Inkscape v1 by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/cleanup_styles", + "fork_url": "https://github.com/attoparsec/inkscape-extensions", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Cleanup+Styles", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/attoparsec", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/clip_out/meta.json b/extensions/fablabchemnitz/clip_out/meta.json new file mode 100644 index 00000000..9b917e8b --- /dev/null +++ b/extensions/fablabchemnitz/clip_out/meta.json @@ -0,0 +1,19 @@ +[ + { + "name": "Clip Out", + "id": "fablabchemnitz.de.clip_out", + "path": "clip_out", + "original_name": "Clip Out", + "original_id": "org.inkscape.inklinea.clip_out", + "license": "GNU GPL v3", + "license_url": "https://gitlab.com/inklinea/clip-out/-/blob/main/LICENSE", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/clip_out", + "fork_url": "https://gitlab.com/inklinea/clip-out", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Clip+Out", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/clones_in_perspective/meta.json b/extensions/fablabchemnitz/clones_in_perspective/meta.json new file mode 100644 index 00000000..44550cff --- /dev/null +++ b/extensions/fablabchemnitz/clones_in_perspective/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Clones In Perspective", + "id": "fablabchemnitz.de.clones_in_perspective", + "path": "clones_in_perspective", + "original_name": "Clones in Perspective", + "original_id": "org.ekips.filter.clonesPerspective", + "license": "GNU GPL v2", + "license_url": "https://inkscape.org/de/~kurn/%E2%98%85clonesp", + "comment": "ported to Inkscape v1 manually by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/clones_in_perspective", + "fork_url": "https://inkscape.org/de/~kurn/%E2%98%85clonesp", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Clones+In+Perspective", + "inkscape_gallery_url": null, + "main_authors": [ + "inkscape.org/kurn", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/close_paths/meta.json b/extensions/fablabchemnitz/close_paths/meta.json new file mode 100644 index 00000000..e180f67d --- /dev/null +++ b/extensions/fablabchemnitz/close_paths/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Close Paths", + "id": "fablabchemnitz.de.close_paths", + "path": "close_paths", + "original_name": "Close curves", + "original_id": "ru.cnc-club.filter.close_curves", + "license": "GNU GPL v2", + "license_url": "https://www.cnc-club.ru/forum/download/file.php?id=94&sid=63473c1c91035bea64a8986cd1ab292c", + "comment": "ported to Inkscape v1 by Mario Voigt; See https://www.cnc-club.ru/forum/viewtopic.php?f=15&t=37&p=92", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/close_paths", + "fork_url": "https://www.cnc-club.ru/forum/download/file.php?id=94&sid=63473c1c91035bea64a8986cd1ab292c", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Close+Paths", + "inkscape_gallery_url": null, + "main_authors": [ + "Nick Drobchenko:nick@cnc-club.ru", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/collar/meta.json b/extensions/fablabchemnitz/collar/meta.json new file mode 100644 index 00000000..dc0bb9c6 --- /dev/null +++ b/extensions/fablabchemnitz/collar/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Collar", + "id": "fablabchemnitz.de.collar", + "path": "collar", + "original_name": "Collar", + "original_id": "org.inkscape.collarz", + "license": "GNU GPL v3", + "license_url": "https://github.com/obzerving/Collarz/blob/main/LICENSE", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/collar", + "fork_url": "https://github.com/obzerving/Collarz", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Collar", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/obzerving", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/color_harmony/meta.json b/extensions/fablabchemnitz/color_harmony/meta.json new file mode 100644 index 00000000..79b9ab10 --- /dev/null +++ b/extensions/fablabchemnitz/color_harmony/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Color Harmony", + "id": "fablabchemnitz.de.color_harmony", + "path": "color_harmony", + "original_name": "Color harmony", + "original_id": "de.vektorrascheln.color_harmony", + "license": "GNU GPL v2", + "license_url": "https://gitlab.com/moini_ink/color-harmony/-/blob/master/LICENSE", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/color_harmony", + "fork_url": "https://gitlab.com/moini_ink/color-harmony", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Color+Harmony", + "inkscape_gallery_url": null, + "main_authors": [ + "gitlab.com/moini_ink", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/join_paths/meta.json b/extensions/fablabchemnitz/join_paths/meta.json new file mode 100644 index 00000000..dba24646 --- /dev/null +++ b/extensions/fablabchemnitz/join_paths/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Join Paths", + "id": "fablabchemnitz.de.join_paths", + "path": "join_paths", + "original_name": "Join Paths Optimized", + "original_id": "khema.optim.join.paths", + "license": "GNU GPL v2", + "license_url": "https://github.com/Shriinivas/inkscapejoinpaths/blob/master/LICENSE", + "comment": "ported to Inkscape v1 by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/join_paths", + "fork_url": "https://github.com/Shriinivas/inkscapejoinpaths", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Join+Paths+Optimized", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/Shriinivas", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/jpeg_export/meta.json b/extensions/fablabchemnitz/jpeg_export/meta.json new file mode 100644 index 00000000..741bafad --- /dev/null +++ b/extensions/fablabchemnitz/jpeg_export/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "JPEG Export", + "id": "fablabchemnitz.de.jpeg_export", + "path": "jpeg_export", + "original_name": "JPEG Export", + "original_id": "id.giac.export.jpg", + "license": "GNU GPL v3", + "license_url": "https://github.com/giacmir/Inkscape-JPEG-export-extension/blob/master/jpegexport.py", + "comment": "ported to Inkscape v1 by Mario Voigt", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/jpeg_export", + "fork_url": "https://github.com/giacmir/Inkscape-JPEG-export-extension", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/JPEG+Export", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/giacmir", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/knob_scale/knob_scale.inx b/extensions/fablabchemnitz/knob_scale/knob_scale.inx index 77df3052..17bd9859 100644 --- a/extensions/fablabchemnitz/knob_scale/knob_scale.inx +++ b/extensions/fablabchemnitz/knob_scale/knob_scale.inx @@ -11,6 +11,7 @@ 1 true false + false diff --git a/extensions/fablabchemnitz/knob_scale/knob_scale.py b/extensions/fablabchemnitz/knob_scale/knob_scale.py index 475ce416..11b1b4e2 100644 --- a/extensions/fablabchemnitz/knob_scale/knob_scale.py +++ b/extensions/fablabchemnitz/knob_scale/knob_scale.py @@ -34,7 +34,9 @@ class KnobScale(inkex.EffectExtension): pars.add_argument("--angle", type=float, default=260.0, help="Angle of the knob scale in degrees") pars.add_argument("--draw_arc", type=inkex.Boolean, default='True') pars.add_argument("--draw_centering_circle", type=inkex.Boolean, default='False') + pars.add_argument("--logarithmic_scale", type=inkex.Boolean, default='False', help="") pars.add_argument("-u", "--units", default="px", help="units to measure size of knob") + # Tick settings pars.add_argument("--n_ticks", type=int, default=5) pars.add_argument("--ticksize", type=float, default=10) @@ -189,32 +191,59 @@ class KnobScale(inkex.EffectExtension): if self.options.draw_centering_circle: self.draw_centering_circle(arc_radius + tick_length + text_size + text_spacing, parent) - ticks_delta = angle / (n_ticks - 1) - start_ticks_angle = 1.5*pi - 0.5*angle - for tick in range(n_ticks): - self.draw_tick(radius, start_ticks_angle + ticks_delta*tick, - tick_length, parent) + if self.options.logarithmic_scale: + start_ticks_angle = 1.5*pi - 0.5*angle + for tick in range(n_ticks): + self.draw_tick(radius, start_ticks_angle + angle*log(tick+1)/log(n_ticks), + tick_length, parent) - if self.options.labels_enabled: - if self.options.rounding_level > 0: - tick_text = str(round(start_num + - float(tick) * (end_num - start_num) / (n_ticks - 1), - self.options.rounding_level)) - else: - tick_text = str(int(start_num + float(tick) * (end_num - start_num) / (n_ticks - 1))) + if self.options.labels_enabled: + if self.options.rounding_level > 0: + tick_text = str(round(start_num + + float(tick) * (end_num - start_num) / (n_ticks - 1), + self.options.rounding_level)) + else: + tick_text = str(int(start_num + float(tick) * (end_num - start_num) / (n_ticks - 1))) - self.draw_text(tick_text, radius + tick_length + text_spacing, - start_ticks_angle + ticks_delta*tick, - text_size, - parent) + self.draw_text(tick_text, radius + tick_length + text_spacing, + start_ticks_angle + angle*log(tick+1)/log(n_ticks), + text_size, + parent) - if tick == (n_ticks - 1): - break + if tick == (n_ticks - 1): + break + + for subtick in range(n_subticks): + self.draw_tick(subtick_radius, start_ticks_angle + angle*log(tick+1+(subtick+1)/(n_subticks+1))/log(n_ticks), + subtick_length, parent) + else: + ticks_delta = angle / (n_ticks - 1) + start_ticks_angle = 1.5*pi - 0.5*angle - subticks_delta = ticks_delta / (n_subticks + 1) - subtick_start_angle = start_ticks_angle + ticks_delta*tick + subticks_delta - for subtick in range(n_subticks): - self.draw_tick(subtick_radius, subtick_start_angle + subticks_delta*subtick, + for tick in range(n_ticks): + self.draw_tick(radius, start_ticks_angle + ticks_delta*tick, + tick_length, parent) + + if self.options.labels_enabled: + if self.options.rounding_level > 0: + tick_text = str(round(start_num + + float(tick) * (end_num - start_num) / (n_ticks - 1), + self.options.rounding_level)) + else: + tick_text = str(int(start_num + float(tick) * (end_num - start_num) / (n_ticks - 1))) + + self.draw_text(tick_text, radius + tick_length + text_spacing, + start_ticks_angle + ticks_delta*tick, + text_size, + parent) + + if tick == (n_ticks - 1): + break + + subticks_delta = ticks_delta / (n_subticks + 1) + subtick_start_angle = start_ticks_angle + ticks_delta*tick + subticks_delta + for subtick in range(n_subticks): + self.draw_tick(subtick_radius, subtick_start_angle + subticks_delta*subtick, subtick_length, parent) if __name__ == '__main__': diff --git a/extensions/fablabchemnitz/knob_scale/meta.json b/extensions/fablabchemnitz/knob_scale/meta.json new file mode 100644 index 00000000..503e91f9 --- /dev/null +++ b/extensions/fablabchemnitz/knob_scale/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Knob Scale", + "id": "fablabchemnitz.de.knob_scale", + "path": "knob_scale", + "original_name": "Knob Scale", + "original_id": "com.knob_scale", + "license": "GNU GPL v3", + "license_url": "https://github.com/leechwort/knob-scale-generator/blob/master/LICENSE", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/knob_scale", + "fork_url": "https://github.com/leechwort/knob-scale-generator", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Knob+Scale", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/leechwort", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/label_feature_with_fill_color/meta.json b/extensions/fablabchemnitz/label_feature_with_fill_color/meta.json new file mode 100644 index 00000000..63196e35 --- /dev/null +++ b/extensions/fablabchemnitz/label_feature_with_fill_color/meta.json @@ -0,0 +1,20 @@ +[ + { + "name": "Label Feature With Fill Color", + "id": "fablabchemnitz.de.label_feature_with_fill_color", + "path": "label_feature_with_fill_color", + "original_name": "Label feature with fill color", + "original_id": "org.inkscape.labelColour", + "license": "GNU GPL v3", + "license_url": "https://gitlab.com/christoph.fink/inkscape-extension-colour-label/-/blob/master/LICENSE", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/label_feature_with_fill_color", + "fork_url": "https://gitlab.com/christoph.fink/inkscape-extension-colour-label", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Label+Feature+With+Fill+Color", + "inkscape_gallery_url": null, + "main_authors": [ + "gitlab.com/christoph.fink", + "github.com/vmario89" + ] + } +] \ No newline at end of file diff --git a/extensions/fablabchemnitz/label_guides/meta.json b/extensions/fablabchemnitz/label_guides/meta.json new file mode 100644 index 00000000..cbd2aa7d --- /dev/null +++ b/extensions/fablabchemnitz/label_guides/meta.json @@ -0,0 +1,21 @@ +[ + { + "name": "Label Guides", + "id": "fablabchemnitz.de.label_guides", + "path": "label_guides", + "original_name": "Label Guides", + "original_id": "org.inkscape.effect.labelguides", + "license": "GNU GPL v2", + "license_url": "https://github.com/johnbeard/inkscape-label-guides/blob/master/COPYING", + "comment": "", + "source_url": "https://gitea.fablabchemnitz.de/FabLab_Chemnitz/mightyscape-1.X/src/branch/master/extensions/fablabchemnitz/label_guides", + "fork_url": "https://github.com/johnbeard/inkscape-label-guides", + "documentation_url": "https://stadtfabrikanten.org/display/IFM/Label+Guides", + "inkscape_gallery_url": null, + "main_authors": [ + "github.com/johnbeard", + "github.com/PaulSchulz", + "github.com/vmario89" + ] + } +] \ No newline at end of file