Under some circumstances with long moves, remaining distance to travel could be end up as non-integer, producing a `7 Err:` and Unexpected response from EBB report to the user.
- Revise GUI
- Add option to set hatch spacing and inset distances with selectable units, px, mm, or inch.
- Ignore non-fillable SVG elements (except text)
- Fill only visible layers
Basic switch element support (attempt to plot contents...)
Add continue statements after container objects
Update Hershey Text menu location for Inkscape v1
Removing dead/python2 code #135
Some cleanup as well
While not very elegant, it is reasonably straightforward and ensures operation in both python 2 and 3. (This is based on the same structure in the AxiDraw code base, which is a little further along.)
by using `isdigit` as an instance method, it works no matter whether we
have a py2 "unicode" string or a regular py2/py3 string. Thus we don't
need to `encode` to ensure a py2 string, which breaks py3 code: encode
returns a bytes object there.
Traceback (most recent call last):
File "eggbot_reorder.py", line 168, in <module>
e.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
self.effect()
File "eggbot_reorder.py", line 162, in effect
"Have a nice day!".format(air_distance_default, air_distance_ordered, improvement_pct)))
ValueError: Unknown format code 'd' for object of type 'float'
Changed the format string to a float. Plus explicitly cast air_distance_ordered & air_distance_default to floats for previous versions that may have used ints.
Also saw this TODO and fixed it to start out at infinity instead of $reallybignumber.
min_distance = 100000000 # TODO put something else here better?
min_distance = float('inf') # Set the inital min distance to infinity.