From 4cb819fd7bc0739e5c081b98c7ea719636e3a4fa Mon Sep 17 00:00:00 2001 From: clemniem Date: Thu, 23 Jun 2016 14:43:04 +0200 Subject: [PATCH] added text to infill conversion --- .../plugins/svgtogcode/static/js/render_fills.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/octoprint/plugins/svgtogcode/static/js/render_fills.js b/src/octoprint/plugins/svgtogcode/static/js/render_fills.js index 60b55bd6..ee008cab 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/render_fills.js +++ b/src/octoprint/plugins/svgtogcode/static/js/render_fills.js @@ -66,7 +66,7 @@ Snap.plugin(function (Snap, Element, Paper, global) { Element.prototype.is_filled = function(){ var elem = this; - // TODO text support + // TODO text support --> check if working // TODO opacity support if (elem.type !== "circle" && elem.type !== "rect" && @@ -74,8 +74,10 @@ Snap.plugin(function (Snap, Element, Paper, global) { elem.type !== "line" && elem.type !== "polygon" && elem.type !== "polyline" && - elem.type !== "path" ){ - + elem.type !== "path" && + elem.type !== "text" && + elem.type !== "#text") + { return false; }