added text to infill conversion, text will be treated like an image and always engraved.

This commit is contained in:
clemniem 2016-06-23 16:51:50 +02:00
parent 8e02a97a61
commit 6c44d8e243
2 changed files with 4 additions and 4 deletions

View file

@ -74,9 +74,9 @@ Snap.plugin(function (Snap, Element, Paper, global) {
elem.type !== "line" &&
elem.type !== "polygon" &&
elem.type !== "polyline" &&
elem.type !== "path" &&
elem.type !== "text" &&
elem.type !== "#text"
elem.type !== "path" //&&
// elem.type !== "text" &&
// elem.type !== "#text"
){
return false;

View file

@ -833,7 +833,7 @@ $(function(){
for (var i = 0; i < fillings.length; i++) {
var item = fillings[i];
if (item.type === 'image') {
if (item.type === 'image' || item.type === "text" || item.type === "#text") {
// remove filter effects on images for proper rendering
var style = item.attr('style');
if (style !== null) {