svnno****@sourc*****
svnno****@sourc*****
2010年 1月 5日 (火) 23:28:44 JST
Revision: 1540
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1540
Author: dhrname
Date: 2010-01-05 23:28:44 +0900 (Tue, 05 Jan 2010)
Log Message:
-----------
Modified Paths:
--------------
branches/DOM/org/w3c/dom/svg.js
Modified: branches/DOM/org/w3c/dom/svg.js
===================================================================
--- branches/DOM/org/w3c/dom/svg.js 2010-01-05 14:21:32 UTC (rev 1539)
+++ branches/DOM/org/w3c/dom/svg.js 2010-01-05 14:28:44 UTC (rev 1540)
@@ -462,6 +462,7 @@
/*readonly SVGICCColor*/ this.iccColor;
return this;
};
+
// Color Types
/*unsigned short*/ SVGColor.SVG_COLORTYPE_UNKNOWN = 0;
/*unsigned short*/ SVGColor.SVG_COLORTYPE_RGBCOLOR = 1;
@@ -473,24 +474,25 @@
/*void*/ SVGColor.prototype.setRGBColor = function(/*DOMString*/ rgbColor ){
this.colorType = SVGColor.SVG_COLORTYPE_RGBCOLOR;
this.cssText = rgbColor;
- var tkr = this.keywords[rgbColor]
+ var tkr = this.keywords[rgbColor];
if (tkr !== void 0) {
rgbColor = tkr;
}
if (rgbColor.indexOf("%", 5) > 0) { // %を含むrgb形式の場合
rgbColor = rgbColor.replace(/[\d.]+%/g, function(s) {
- return Math.round(2.55 * parseFloat(s));
+ return Math.round((2.55 * parseFloat(s)));
});
- } else if (rgbColor.indexOf("#") > 0) } //#を含む場合
+ } else if (rgbColor.indexOf("#") > 0) { //#を含む場合
rgbColor = rgbColor.replace(/[\dA-F][\dA-F]/g, function(s) {
- return parseInt(s, 16);
+ return parseInt(s, 16);
});
}
var s = rgbColor.match(/\d+/g);
this.rgbColor.r = parseInt(s[0]);
this.rgbColor.g = parseInt(s[1]);
this.rgbColor.b = parseInt(s[2]);
-}
+};
+
// raises( SVGException );
/*void*/ SVGColor.prototype.setColor =function(/*unsigned short*/ colorType, /*DOMString*/ rgbColor, /*DOMString*/ iccColor ){
if (colorType === 1) {
@@ -876,7 +878,7 @@
arr[i].set(sw,sh);
}
} catch(e) {stlog.add(e,170);}
-}
+};
/*float*/ SVGSVGElement.prototype.getCurrentTime = function(){
return (this._currentTime);
@@ -1549,6 +1551,7 @@
this.pathSegTypeAsLetter = "q";
return this;
};
+
function SVGPathSegArcAbs() {
/*float*/ this.x;
/*float*/ this.y;