From 236d2cd7fc89ea5082086e4c2884f632cd0acf3f Mon Sep 17 00:00:00 2001 From: Teja Date: Sun, 16 Aug 2015 13:58:10 +0200 Subject: [PATCH] explanations for the conversion popup. --- .../svgtogcode/static/css/svgtogcode.css | 12 ++++ .../plugins/svgtogcode/static/js/convert.js | 1 + .../svgtogcode/templates/svgtogcode.jinja2 | 59 ++++++++++++++++++- 3 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/octoprint/plugins/svgtogcode/static/css/svgtogcode.css b/src/octoprint/plugins/svgtogcode/static/css/svgtogcode.css index 78b21236..471faf5a 100644 --- a/src/octoprint/plugins/svgtogcode/static/css/svgtogcode.css +++ b/src/octoprint/plugins/svgtogcode/static/css/svgtogcode.css @@ -73,3 +73,15 @@ svg text { color: #999; font-size: smaller; } + +#dialog_vector_graphics_conversion .hint { + font-style: italic; + font-size: smaller; + margin-top: 4px; + background-color: #fafafa; +} + +#dialog_vector_graphics_conversion .hint .icon { + font-size: large; + padding-right: .5em; +} diff --git a/src/octoprint/plugins/svgtogcode/static/js/convert.js b/src/octoprint/plugins/svgtogcode/static/js/convert.js index b7dee3b7..bb51e71f 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/convert.js +++ b/src/octoprint/plugins/svgtogcode/static/js/convert.js @@ -24,6 +24,7 @@ $(function(){ self.defaultProfile = undefined; // expert settings + self.showHints = ko.observable(false); self.showExpertSettings = ko.observable(false); self.gcodeFilename = ko.observable(); self.pierceTime = ko.observable(0); diff --git a/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 b/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 index 8ed36bce..12e17e7b 100644 --- a/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 +++ b/src/octoprint/plugins/svgtogcode/templates/svgtogcode.jinja2 @@ -16,6 +16,12 @@ +
+ + 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. +
@@ -25,7 +31,14 @@
+
+ + Sets the velocity of the laserhead. 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. +
+
@@ -33,6 +46,12 @@
+
+ + 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. + If the result shows gaps in lines for example increase this value carefully. The higher the value the higher the risk of material ignition. +
@@ -47,6 +66,11 @@ +
+ + The intensity range used for engraving pixel graphics. Bright/white pixels use the left (lower) value, dark/black pixels the right (higher) value. + Equal values do not vary the laser intensity related to the pixel brightness. +
@@ -56,14 +80,26 @@
+
+ + The movement velocity range used for engraving pixel graphics. Bright/white pixels use the left (higher) value, dark/black pixels the right (lower) value. + Equal values do not vary the laser velocity related to the pixel brightness. +
+
- mm + mm
+
+ + 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. +
+

{{ _('Image Preprocessing') }}

@@ -83,12 +119,20 @@
- +
+ + Increases the image contrast before converting to gcode. +
+
+
+ + Sharpens the image before converting to gcode. +
@@ -97,6 +141,12 @@ {{ _('Dithering') }} +
+ + Converts the image to solely black and white pixels. + Use this if the laser effect on your material is not able to transfer grayscales. +
+ @@ -117,10 +167,13 @@