Sync with latext SVG-Edit

Subpath tool.

Also make the itex tool a little more selective
(only applies to <foreignObject>s with a <math> firstChild.
This commit is contained in:
Jacques Distler 2010-03-04 00:05:36 -06:00
parent 932c42c24a
commit e75c0cc81c
8 changed files with 187 additions and 11 deletions

View file

@ -144,7 +144,7 @@ $(function() {
}, {
type: "input",
panel: "foreignObject_panel",
title: "Change the font-size of enclosed content",
title: "Change foreignObject's font size",
id: "foreign_font_size",
label: "font-size",
size: 2,
@ -234,10 +234,10 @@ $(function() {
}
},
mouseUp: function(opts) {
var e = opts.event;
var e = opts.event;
if(svgCanvas.getMode() == "foreign" && started) {
var attrs = $(newFO).attr(["width", "height"]);
keep = (attrs.width != 0 || attrs.height != 0);
keep = (attrs.width != 0 || attrs.height != 0);
svgCanvas.addToSelection([newFO], true);
return {