diff --git a/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js b/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js index 95c50c6d..06b961dd 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js +++ b/src/octoprint/plugins/svgtogcode/static/js/matrix_oven.js @@ -44,7 +44,7 @@ Snap.plugin(function (Snap, Element, Paper, global) { var child = children[i]; child.bake(toCubics, dec); } - elem.attr({transform: ''}); + if(child.type !== "#text") elem.attr({transform: ''}); return; } if (elem.type !== "circle" && diff --git a/src/octoprint/plugins/svgtogcode/static/js/working_area.js b/src/octoprint/plugins/svgtogcode/static/js/working_area.js index 3af0b1e4..5775633a 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/working_area.js +++ b/src/octoprint/plugins/svgtogcode/static/js/working_area.js @@ -274,10 +274,10 @@ $(function(){ newSvgAttrs['transform'] = scaleMatrixStr; var newSvg = snap.group(f.selectAll("svg>*")); - var hasText = newSvg.selectAll('text,tspan'); - if(hasText !== null && hasText.length > 0){ - self.svg_contains_text_warning(newSvg); - } + // var hasText = newSvg.selectAll('text,tspan'); + // if(hasText !== null && hasText.length > 0){ + // self.svg_contains_text_warning(newSvg); + // } newSvg.bake(); // remove transforms newSvg.selectAll('path').attr({strokeWidth: '0.5'}); @@ -397,15 +397,15 @@ $(function(){ }; self.svg_contains_text_warning = function(svg){ - var error = "

" + gettext("The svg file contains text elements.
Please convert them to paths.
Otherwise they will be ignored.") + "

"; - //error += pnotifyAdditionalInfo("
" + data.jqXHR.responseText + "
"); - new PNotify({ - title: "Text elements found", - text: error, - type: "warn", - hide: false - }); - svg.selectAll('text,tspan').remove(); + // var error = "

" + gettext("The svg file contains text elements.
Please convert them to paths.
Otherwise they will be ignored.") + "

"; + // //error += pnotifyAdditionalInfo("
" + data.jqXHR.responseText + "
"); + // new PNotify({ + // title: "Text elements found", + // text: error, + // type: "warn", + // hide: false + // }); + // svg.selectAll('text,tspan').remove(); }; self.svg_misfitting_warning = function(svg, misfitting){ diff --git a/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 b/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 index 0eba6848..78d0636e 100644 --- a/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 +++ b/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 @@ -18,7 +18,7 @@
- Sets the intensity of the laser. The more intensity the deeper the effect on the material. + Sets the intensity of the laser. The more intensity the deeper the effect on the material. Cutting needs higher intensities than engraving. The effect in general is dependent from the material and its color and surface.
@@ -33,14 +33,16 @@
- Sets the velocity of the laser head. The slower the movement the deeper the effect on the material. - Cutting needs slower movement than engraving. + Sets the velocity of the laser head. The slower the movement the deeper the effect on the material. + Cutting needs slower movement than engraving. The effect in general is dependent from the material and its color and surface.
@@ -56,11 +58,11 @@
Some (especially bright) materials require the laser to dwell a little until the surface has absorbed enough energy to be affected. - This parameter sets the amount of time in milliseconds the movement is paused after the laser is switched on. + This parameter sets the amount of time in milliseconds the movement is paused after the laser is switched on. If the result shows gaps in lines for example increase this value carefully. The higher the value the higher the risk of material ignition.
- +

{{ _('Image engraving parameters:') }}

@@ -103,10 +105,10 @@
Pixel / raster engravings are done line by line. This sets the distance between the single lines. - Smaller values allow finer engravings but require a more precise focus and are slower. + Smaller values allow finer engravings but require a more precise focus and are slower.
- +

{{ _('Image Preprocessing') }}

before
@@ -114,22 +116,22 @@
- +
- +
-
+
- Increases the image contrast before converting to gcode. + Increases the image contrast before converting to gcode.
- +
@@ -137,10 +139,10 @@
- Sharpens the image before converting to gcode. + Sharpens the image before converting to gcode.
- +
- Converts the image to solely black and white pixels. - Use this if the laser effect on your material is not able to transfer grayscales. + Converts the image to solely black and white pixels. + Use this if the laser effect on your material is not able to transfer grayscales.
@@ -185,4 +187,4 @@ {{ _('Convert') }}
- \ No newline at end of file +