Slightly nice placeholder content for foreignObject.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1417 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
6f568b05b9
commit
7c55db60c0
|
@ -209,17 +209,24 @@ $(function() {
|
||||||
"y": opts.start_y,
|
"y": opts.start_y,
|
||||||
"id": S.getNextId(),
|
"id": S.getNextId(),
|
||||||
"font-size": 16, //cur_text.font_size,
|
"font-size": 16, //cur_text.font_size,
|
||||||
"width": "24",
|
"width": "48",
|
||||||
"height": "24",
|
"height": "20",
|
||||||
"style": "pointer-events:inherit"
|
"style": "pointer-events:inherit"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var m = svgdoc.createElementNS(mathns, 'math');
|
var m = svgdoc.createElementNS(mathns, 'math');
|
||||||
m.setAttributeNS(xmlnsns, 'xmlns', mathns);
|
m.setAttributeNS(xmlnsns, 'xmlns', mathns);
|
||||||
m.setAttribute('display', 'inline');
|
m.setAttribute('display', 'inline');
|
||||||
var mi = svgdoc.createElementNS(mathns, 'mo');
|
var mi = svgdoc.createElementNS(mathns, 'mi');
|
||||||
|
mi.setAttribute('mathvariant', 'normal');
|
||||||
mi.textContent = "\u03A6";
|
mi.textContent = "\u03A6";
|
||||||
|
var mo = svgdoc.createElementNS(mathns, 'mo');
|
||||||
|
mo.textContent = "\u222A";
|
||||||
|
var mi2 = svgdoc.createElementNS(mathns, 'mi');
|
||||||
|
mi2.textContent = "\u2133";
|
||||||
m.appendChild(mi);
|
m.appendChild(mi);
|
||||||
|
m.appendChild(mo);
|
||||||
|
m.appendChild(mi2);
|
||||||
newFO.appendChild(m);
|
newFO.appendChild(m);
|
||||||
return {
|
return {
|
||||||
started: true
|
started: true
|
||||||
|
|
Loading…
Reference in New Issue