[Sie-announce] SIEコード [1262] SVGRectオブジェクトの作成

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 9月 17日 (木) 22:05:58 JST


Revision: 1262
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1262
Author:   dhrname
Date:     2009-09-17 22:05:58 +0900 (Thu, 17 Sep 2009)

Log Message:
-----------
SVGRectオブジェクトの作成

Modified Paths:
--------------
    branches/DOM/org/w3c/dom/svg.js

Modified: branches/DOM/org/w3c/dom/svg.js
===================================================================
--- branches/DOM/org/w3c/dom/svg.js	2009-09-17 13:02:30 UTC (rev 1261)
+++ branches/DOM/org/w3c/dom/svg.js	2009-09-17 13:05:58 UTC (rev 1262)
@@ -1347,13 +1347,6 @@
   } catch(e) {stlog.add(e,1031);}
 }
 
-//SVGRectを参照
-function STRect(x,y,w,h) { //引数はすべてNumber型
-  this.x = x; this.y = y;
-  this.width = w; this.height = h;
-  return this;
-}
-
 //SVGPreserveAspectRatioを参照
 function STPreserveAspectRatio( /*int*/ a, /*int*/ mos) {this.align=a;this.meetOrSlice=mos;
   return this;
@@ -1933,16 +1926,16 @@
   whitesmoke: "#F5F5F5",
   yellowgreen: "#9ACD32"
 };
-function SVGRect { 
-             attribute float x;
+function SVGRect() { 
+  /*float*/ this.x = 0;
                          // raises DOMException on setting
-             attribute float y;
+  /*float*/ this.y = 0;
                          // raises DOMException on setting
-             attribute float width;
+  /*float*/ this.width = 1000;
                          // raises DOMException on setting
-             attribute float height;
+  /*float*/ this.height = 1000;
                          // raises DOMException on setting
-  
+  return this;
 };
   interface SVGAnimatedRect { 
     readonly attribute SVGRect baseVal;




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