svnno****@sourc*****
svnno****@sourc*****
2009年 11月 26日 (木) 22:23:26 JST
Revision: 1438
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1438
Author: dhrname
Date: 2009-11-26 22:23:26 +0900 (Thu, 26 Nov 2009)
Log Message:
-----------
STSetElementの実装
Modified Paths:
--------------
branches/05x/055/sie.js
Modified: branches/05x/055/sie.js
===================================================================
--- branches/05x/055/sie.js 2009-11-26 12:58:32 UTC (rev 1437)
+++ branches/05x/055/sie.js 2009-11-26 13:23:26 UTC (rev 1438)
@@ -243,7 +243,7 @@
//chset childNodesで要素を作成していく
SVGtoVML.prototype.chset = function _s_chset( /*element*/ ele, /*Matrix*/ matrix, /*float*/w, /*float*/h){
var nods = ele.childNodes, s = null;
- var name = "group|shape|defs|STOP|fill|stroke|DIV|SPAN|A|image|rect|USE|FONTFACEURI", gname = "DIV|group"; //要素名に合致させる文字列
+ var name = "group|shape|defs|STOP|fill|stroke|DIV|SPAN|A|image|rect|USE|FONTFACEURI|set", gname = "DIV|group"; //要素名に合致させる文字列
var cmatrix = matrix; //子要素に継がせるCTM
var te = nods[0];
if (te !== void 0) {
@@ -289,6 +289,8 @@
cmatrix = s.transformable;
} else if (te.nodeName === "image") {
s = new STImage(te, matrix, w, h);
+ } else if (te.nodeName === "set") {
+ s = new STSetElement(te, matrix, w, h);
}
if (s) {
this.children[this.children.length] = s;
@@ -2370,7 +2372,8 @@
.replace(/<defs(?=\s|>)/g, "<dn:defs")
.replace(/\/defs>/g, "/dn:defs>")
.replace(/<font-face-?/g, "<fontface")
- .replace(/<\/font-face-?/g, "</fontface");
+ .replace(/<\/font-face-?/g, "</fontface")
+ .replace(/<set\s/g, "<dn:set ");
var ob = document.createElement("v:group");
var obst = ob.style;
ob.innerHTML = dc;