fixing path selection bug
parent
fcebc57a2d
commit
a6d5319dc8
|
@ -97,7 +97,6 @@ MD.Panel = function(){
|
||||||
|
|
||||||
$.fn.dragInput.updateCursor($('#stroke_width')[0])
|
$.fn.dragInput.updateCursor($('#stroke_width')[0])
|
||||||
$.fn.dragInput.updateCursor($('#blur')[0])
|
$.fn.dragInput.updateCursor($('#blur')[0])
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateContextPanel(elems) {
|
function updateContextPanel(elems) {
|
||||||
|
@ -162,7 +161,7 @@ MD.Panel = function(){
|
||||||
$('#tool_angle_indicator').css("transform", "rotate("+angle+"deg)");
|
$('#tool_angle_indicator').css("transform", "rotate("+angle+"deg)");
|
||||||
var blurval = svgCanvas.getBlur(elem);
|
var blurval = svgCanvas.getBlur(elem);
|
||||||
$('#blur').val(blurval);
|
$('#blur').val(blurval);
|
||||||
if(!isNode && currentMode != 'pathedit') {
|
if(!isNode && currentMode !== 'pathedit') {
|
||||||
$('#selected_panel').show();
|
$('#selected_panel').show();
|
||||||
$('.action_selected').removeClass('disabled');
|
$('.action_selected').removeClass('disabled');
|
||||||
// Elements in this array already have coord fields
|
// Elements in this array already have coord fields
|
||||||
|
|
|
@ -205,7 +205,6 @@ MD.Shapelib = function(){
|
||||||
"style": "pointer-events:none"
|
"style": "pointer-events:none"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(current_d)
|
|
||||||
cur_shape.setAttribute("d", current_d);
|
cur_shape.setAttribute("d", current_d);
|
||||||
// Make sure shape uses absolute values
|
// Make sure shape uses absolute values
|
||||||
if(/[a-z]/.test(current_d)) {
|
if(/[a-z]/.test(current_d)) {
|
||||||
|
|
|
@ -4624,7 +4624,7 @@ var pathActions = canvas.pathActions = function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getNodePoint: function() {
|
getNodePoint: function() {
|
||||||
if (!svgedit.path.path) return;
|
if (!svgedit.path.path || current_mode !== "pathedit") return;
|
||||||
var sel_pt = svgedit.path.path.selected_pts.length ? svgedit.path.path.selected_pts[0] : 1;
|
var sel_pt = svgedit.path.path.selected_pts.length ? svgedit.path.path.selected_pts[0] : 1;
|
||||||
var seg = svgedit.path.path.segs[sel_pt];
|
var seg = svgedit.path.path.segs[sel_pt];
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -610,6 +610,7 @@ if (svgedit.browser.supportsSelectors()) {
|
||||||
svgedit.utilities.assignAttributes = function(node, attrs, suspendLength, unitCheck) {
|
svgedit.utilities.assignAttributes = function(node, attrs, suspendLength, unitCheck) {
|
||||||
|
|
||||||
for (var i in attrs) {
|
for (var i in attrs) {
|
||||||
|
if (attrs[i] === NaN || attrs[i] === null) continue;
|
||||||
var ns = (i.substr(0,4) === "xml:" ? XMLNS :
|
var ns = (i.substr(0,4) === "xml:" ? XMLNS :
|
||||||
i.substr(0,6) === "xlink:" ? XLINKNS : null);
|
i.substr(0,6) === "xlink:" ? XLINKNS : null);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue