added text to infill conversion
This commit is contained in:
parent
3ffdceb5af
commit
4cb819fd7b
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue