added text to infill conversion, test 2

This commit is contained in:
clemniem 2016-06-23 14:53:04 +02:00
parent 4cb819fd7b
commit 8e02a97a61

View file

@ -50,7 +50,7 @@ Snap.plugin(function (Snap, Element, Paper, global) {
}
}
} else {
if(elem.type === 'image'){
if(elem.type === 'image' || elem.type === "text" || elem.type === "#text"){
selection.push(elem);
} else {
if(fillPaths && elem.is_filled()){
@ -66,7 +66,7 @@ Snap.plugin(function (Snap, Element, Paper, global) {
Element.prototype.is_filled = function(){
var elem = this;
// TODO text support --> check if working
// TODO text support
// TODO opacity support
if (elem.type !== "circle" &&
elem.type !== "rect" &&
@ -76,8 +76,9 @@ Snap.plugin(function (Snap, Element, Paper, global) {
elem.type !== "polyline" &&
elem.type !== "path" &&
elem.type !== "text" &&
elem.type !== "#text")
{
elem.type !== "#text"
){
return false;
}