Commit f3362426 authored by amandaghassaei's avatar amandaghassaei

check for grouped elements

parent 1113d4c9
......@@ -112,7 +112,7 @@ function initGlobals(){
else $("#warningMessage").html(msg);
if (!$('#warningModal').hasClass('show')) $("#warningModal").modal("show");
}
$('#warningMessage').on('hidden.bs.modal', function () {
$('#warningModal').on('hidden.bs.modal', function () {
$("#warningMessage").html("");
});
_globals.warn = warn;
......
......@@ -352,6 +352,13 @@ function initPattern(globals){
"<br/><br/>Global styling:<br/><br/><b>" + $style.html() + "</b>");
}
//warn of groups
var $groups = _$svg.children("g");
if ($groups.length>0){
globals.warn("Grouped elements found in SVG, these are currently ignored by the app. " +
"Please ungroup all elements before importing.");
}
//format all appropriate svg elements
var $paths = _$svg.children("path");
$paths.css({fill:"none", 'stroke-dasharray':"none"});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment