[Sie-announce] SIEコード [1983] 1,NAIBU. setPaint処理を修正

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2010年 9月 4日 (土) 23:00:32 JST


Revision: 1983
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1983
Author:   dhrname
Date:     2010-09-04 23:00:32 +0900 (Sat, 04 Sep 2010)

Log Message:
-----------
1,NAIBU.setPaint処理を修正
2,set要素の実装を開始

Modified Paths:
--------------
    branches/06x/061/org/w3c/dom/svg.js

Modified: branches/06x/061/org/w3c/dom/svg.js
===================================================================
--- branches/06x/061/org/w3c/dom/svg.js	2010-08-25 14:35:47 UTC (rev 1982)
+++ branches/06x/061/org/w3c/dom/svg.js	2010-09-04 14:00:32 UTC (rev 1983)
@@ -2089,7 +2089,7 @@
         strokeOpacity *= swx; //太さが1px未満なら色を薄くする
       }
       if (strokeOpacity < 1) {
-        strokeElement.setAttribute("opacity", strokeOpacity);
+        strokeElement.setAttribute("opacity", strokeOpacity+"");
       }
       fc = num = strokeOpacity = null;
     }
@@ -4235,6 +4235,10 @@
               nci._end = null;
             }
           }
+          if (!!nci._frame) {
+            nci._frame();
+          }
+          nci = null;
         }
       } catch (e) {
         stlog.add(e, 4157);
@@ -4270,14 +4274,32 @@
 function SVGSetElement(){
   SVGAnimationElement.apply(this);
   NAIBU.Clip[NAIBU.Clip.length] = this;
+  this.addEventListener("DOMAttrModified", function(evt){
+    var tar = evt.target, name = evt.attrName;
+  }
   this.addEventListener("beginEvent", function(evt) {
-    var tar = evt.target;
+    var tar = evt.target, attrName = tar.getAttributeNS(null, "attributeName");
+    if (tar.targetElement) {
+      var tta = tar.targetElement[attrName];
+      if (!!tta) {
+        var base = tta.baseVal;
+        tar.targetElement.setAttributeNS(null, attrName, tar.getAttributeNS(null, "to"));
+        /*変化値はanimValプロパティに収納しておき、
+         *変化する前の、元の値はbaseValプロパティに再び収納しておく
+         */
+        tta.animVal = tta.baseVal;
+        tta.baseVal = base;
+      } else {
+        var style = tar.ownerDocument.getOverrideStyle(tar.targetElement, "");
+        style.setProperty(attrName, tar.getAttributeNS(null, "to"), null);
+      }
+    }
   }, false);
   this.addEventListener("endEvent", function(evt) {
     var tar = evt.target;
   }, false);
   this.addEventListener("repeatEvent", function(evt) {
-    var tar = evt.target;
+    var tar = evt.target, style = tar.ownerDocument.defaultView.geComputedStyle(tar.targetElment, "");
   }, false);
   return this;
 };




Sie-announce メーリングリストの案内
Zurück zum Archiv-Index