tpcarlson
d38b3ed982
Fix fill matching in helper.py
Previously, helper.py's colour-matching regex would match greedily any
non-whitespace (\S), which caused styles written out by Inkscape to fail
to be parsed correctly.
Instead, match for whitespace with \s.
As an example, in a REPL:
import re
style = "font-variation-settings:normal;opacity:1;fill:#ff00ff;fill-opacity:1;stop-color:#000000;stop-opacity:1"
color_match = re.search(r'fill:\s*(#[0-9a-fA-F]{6})',style)
print (color_match.group(1))
(Prints #ff00ff - correct)
vs.
import re
style = "font-variation-settings:normal;opacity:1;fill:#ff00ff;fill-opacity:1;stop-color:#000000;stop-opacity:1"
color_match = re.search(r'fill:\S*(#[0-9a-fA-F]{6})',style)
print (color_match.group(1))
(Prints #000000 - incorrect)
3 years ago
Andrew Belt
4ad213b545
Fix test for mm SVG in helper.py.
3 years ago
Andrew Belt
bd9363d051
Change default manifest version in helper.py to 2.0.0.
3 years ago
Andrew Belt
3eeb7ba7c0
Allow optional sourceFilename in helper.py createmodule command.
3 years ago
Andrew Belt
ba7283fca7
helper.py: Assume unitless SVG dimensions are in px instead of mm.
3 years ago
Andrew Belt
8dc4e2310d
Make style regex match only hex colors in helper.py.
3 years ago
Andrew Belt
672dc2b42c
Add support to helper.py for Illustrator's Unique object ID mode for SVG export. Add ability to specify component class name in SVG with `name#ClassName`.
3 years ago
Andrew Belt
86aed0ce9d
Use Makefile wildcard for presets/ dir in helper.py, since the dir is optional. Fix location of Fundamental.vcvplugin in Mac bundle.
3 years ago
Andrew Belt
a3bfe67338
Use rsync for copying dist files. Add presets/ dir to generated Makefile in helper.py.
3 years ago
Andrew Belt
e9a2de5630
helper.py: scale coordinates to mm if SVG document is in px.
3 years ago
Andrew Belt
3d796032c0
Clean up helper.py SVG parser. Allow SVG ellipses to be used as circles.
3 years ago
Andrew Belt
3e8d32951a
Make helper script handle `fill` attributes for component color.
3 years ago
Andrew Belt
fdc29cf9e9
Use singular "Id" for component enums in helper script.
3 years ago
Andrew Belt
c463bbcb0e
Clean up helper.py messages.
5 years ago
Andrew Belt
f2dc472dd7
Switch back to enum suffixes (*_PARAM) from prefixes (PARAM_*).
5 years ago
Andrew Belt
f065d6224f
Fix sorting components that are not *quite* aligned in helper.py.
5 years ago
Andrew Belt
946d7b1433
Use createPanel() in helper.py.
5 years ago
Andrew Belt
687bb7f35f
Use prefixes for enum names instead of suffixes in helper script.
5 years ago
Andrew Belt
7b61f3599d
Add configInpug/Output to helper.py.
5 years ago
Andrew Belt
7a789af954
Convert special characters and spaces to underscore in helper script.
5 years ago
Andrew Belt
4b78d20201
Add changelogUrl to helper script.
5 years ago
Andrew Belt
fb140075d1
Update formatting of code generated by helper script.
5 years ago
Andrew Belt
ad2ca6cbd7
Update tag list URL.
5 years ago
Andrew Belt
24e7090eb1
Add "pragma once" to plugin.hpp generated by helper.py.
5 years ago
Andrew Belt
6dd809aaf3
Fix indentation
5 years ago
Drew Heles
f7b050c04c
Adjust helper.py to better parse illustrator-generated svg files ( #1465 )
Fixes #1464
5 years ago
Andrew Belt
66c8eda424
Fix Inkscape labels not being read from helper.py.
5 years ago
Andrew Belt
24ec42914a
Add brand to helper.py createmanifest.
6 years ago
Andrew Belt
696939069d
Use <> instead of "" for include directive.
6 years ago
Andrew Belt
a0daf4b480
Make maximum zoom level 400%. Store zoom in settings logarithmically instead of linearly.
6 years ago
Andrew Belt
0517cc20aa
Fix return values of deprecated random*() functions in rack0.hpp.
6 years ago
Andrew Belt
212404c664
Add Widget::addChildBottom(). Change ModuleWidget::setPanel behavior. Improve event docstrings. Temporarily disable glibc 2.23 header on Linux.
6 years ago
Andrew Belt
cdf7a2bbfa
Fix serialization for unbounded Params.
6 years ago
Andrew Belt
c4780b4aea
Overhaul helper.py script. Change command arguments.
6 years ago
Andrew Belt
e9ac9eb677
Add -p for creating screenshots of every module.
6 years ago
Andrew Belt
dbb4d67a60
Change helper and rack0.hpp to use new configParam method. Add dsp::Counter::getCount().
6 years ago
Andrew Belt
7e2d4a6bf9
Use larger canvas for RackScrollWidget.
6 years ago
Andrew Belt
4741892ee6
Fix helper.py syntax error
6 years ago
Andrew Belt
4a2a1e3c61
Make helper.py sort components by position. Rename Inkscape "widgets" layer to "components".
6 years ago
Andrew Belt
714917cc90
Tweak helper.py. Add "Expander" to plugin tags. Turn on all ModuleLightWidgets if module does not exist.
6 years ago
Andrew Belt
207ca888ed
Add string::trim. Add string::fuzzyScore. Add fuzzy scoring to Module Browser.
6 years ago
Andrew Belt
2bfde326b6
Add helper script for creating plugins
6 years ago