added text to infill conversion, test 2
This commit is contained in:
parent
4cb819fd7b
commit
8e02a97a61
1 changed files with 19 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue