svg2gcode 3.2.6__tar.gz → 3.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/PKG-INFO +1 -1
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/__init__.py +1 -1
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/compiler/_compiler.py +3 -3
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/LICENSE +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/README.md +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/pyproject.toml +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/__main__.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/LICENSE +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/__init__.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/compiler/__init__.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/compiler/interfaces/__init__.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/compiler/interfaces/_abstract_interface.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/compiler/interfaces/_fan_controlled_gcode.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/compiler/interfaces/_gcode.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/css_color.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/formulas.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/__init__.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_abstract_chain.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_abstract_curve.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_circular_arc.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_cubic_bazier.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_elliptical_arc.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_line.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_line_segment_chain.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_matrix.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_quadratic_bazier.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_raster_image.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_smooth_arc_chain.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/geometry/_vector.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/svg_parser/__init__.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/svg_parser/_parser_methods.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/svg_parser/_path.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/svg_parser/_transformation.py +0 -0
- {svg2gcode-3.2.6 → svg2gcode-3.2.8}/svg2gcode/svg_to_gcode/svg_parser/debug_methods.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: svg2gcode
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.8
|
|
4
4
|
Summary: svg2gcode: convert an SVG (Scalable Vector Graphic) image to gcode.
|
|
5
5
|
Keywords: scalable vector graphics,svg,image,laser cutter,laser engraving
|
|
6
6
|
Author-email: Johannes Noordanus <mailjohannes.mailnoordanus@gmail.com>
|
|
@@ -362,7 +362,7 @@ class Compiler:
|
|
|
362
362
|
arguments["showoverscan"] = img_attrib['gcode_showoverscan'] if 'gcode_showoverscan' in img_attrib else self.settings["image_showoverscan"]
|
|
363
363
|
arguments["offset"] = (float(img_attrib['x']), float(img_attrib['y']))
|
|
364
364
|
arguments["name"] = img_attrib['id']
|
|
365
|
-
arguments["
|
|
365
|
+
arguments["invert"] = img_attrib['invert'] if 'invert' in img_attrib else False
|
|
366
366
|
|
|
367
367
|
# get image parameters
|
|
368
368
|
params = ''
|
|
@@ -591,7 +591,7 @@ class Compiler:
|
|
|
591
591
|
if style['fill'] is not None:
|
|
592
592
|
# Invert b&w value and apply alpha channel - when available - to the inverted b&w value
|
|
593
593
|
# (library function image2gcode - as it is now - cannot invert a color value and then apply
|
|
594
|
-
# the alpha channel) Note that step 6 sets option '
|
|
594
|
+
# the alpha channel) Note that step 6 sets option 'invert' to false to be able to use the value below directly.
|
|
595
595
|
fill_color = Image2gcode.linear_power(css_color.parse_css_color2bw8(style['fill']), self.settings["maximum_image_laser_power"])
|
|
596
596
|
if style['fill-rule'] is not None:
|
|
597
597
|
fill_rule = style['fill-rule']
|
|
@@ -910,7 +910,7 @@ class Compiler:
|
|
|
910
910
|
#img_attrib['gcode_speedmoves'] = 0.1
|
|
911
911
|
img_attrib['x'] = -dXY[0]
|
|
912
912
|
img_attrib['y'] = -dXY[1]
|
|
913
|
-
img_attrib['
|
|
913
|
+
img_attrib['invert'] = False
|
|
914
914
|
|
|
915
915
|
## direct gcode: ignore this step
|
|
916
916
|
# start gcode fill
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|