added text to infill conversion, text will be treated like an image and always engraved.
This commit is contained in:
parent
8e02a97a61
commit
6c44d8e243
2 changed files with 4 additions and 4 deletions
|
|
@ -74,9 +74,9 @@ Snap.plugin(function (Snap, Element, Paper, global) {
|
||||||
elem.type !== "line" &&
|
elem.type !== "line" &&
|
||||||
elem.type !== "polygon" &&
|
elem.type !== "polygon" &&
|
||||||
elem.type !== "polyline" &&
|
elem.type !== "polyline" &&
|
||||||
elem.type !== "path" &&
|
elem.type !== "path" //&&
|
||||||
elem.type !== "text" &&
|
// elem.type !== "text" &&
|
||||||
elem.type !== "#text"
|
// elem.type !== "#text"
|
||||||
){
|
){
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -833,7 +833,7 @@ $(function(){
|
||||||
for (var i = 0; i < fillings.length; i++) {
|
for (var i = 0; i < fillings.length; i++) {
|
||||||
var item = fillings[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
|
// remove filter effects on images for proper rendering
|
||||||
var style = item.attr('style');
|
var style = item.attr('style');
|
||||||
if (style !== null) {
|
if (style !== null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue