[Sie-announce] SIEコード [1574] chsetの整理

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 1月 13日 (水) 22:42:58 JST


Revision: 1574
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1574
Author:   dhrname
Date:     2010-01-13 22:42:58 +0900 (Wed, 13 Jan 2010)

Log Message:
-----------
chsetの整理

Modified Paths:
--------------
    branches/05x/058/sie.js

Modified: branches/05x/058/sie.js
===================================================================
--- branches/05x/058/sie.js	2010-01-13 13:35:56 UTC (rev 1573)
+++ branches/05x/058/sie.js	2010-01-13 13:42:58 UTC (rev 1574)
@@ -289,25 +289,29 @@
     } else {
       if (te.nodeType === 1) { //要素ならば
         var ten = te.nodeName;
-        if (_isShape[ten]) {
-          s = new (_STElement[te.getAttribute("tag")])(te, matrix, w, h);
-        } else if (_isText[ten]) {
+        if (_isText[ten]) {
           s = new STText(te, matrix, w, h);
+          this.children[this.children.length] = s;
+          var s = null; //var宣言によって、再設定
         } else if (_isGroup[ten]) {
           s = new STGroupElement(te, matrix, w, h);
-        } else if (ten === "A") {
-          s = new STAElement(te, matrix);
-          cmatrix = s.transformable;
-        } else if (ten === "image") {
-          s = new STImage(te, matrix, w, h);
-        } else if (ten === "set") {
-          s = new STSetElement(te, matrix, w, h);
-        }
-        if (s) {
           this.children[this.children.length] = s;
-          var s = null; //var宣言によって、再設定
-        }
-        if (!_isGroup[ten] && !_isText[ten]) {
+          var s = null;
+        } else {
+          if (_isShape[ten]) {
+            s = new (_STElement[te.getAttribute("tag")])(te, matrix, w, h);
+          } else if (ten === "A") {
+            s = new STAElement(te, matrix);
+            cmatrix = s.transformable;
+          } else if (ten === "image") {
+             s = new STImage(te, matrix, w, h);
+          } else if (ten === "set") {
+            s = new STSetElement(te, matrix, w, h);
+          }
+          if (s) {
+            this.children[this.children.length] = s;
+            var s = null;
+          }
           this.chset(te, cmatrix, w, h);
         }
       }




Sie-announce メーリングリストの案内
Back to archive index