svnno****@sourc*****
svnno****@sourc*****
2009年 11月 26日 (木) 21:58:32 JST
Revision: 1437 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1437 Author: dhrname Date: 2009-11-26 21:58:32 +0900 (Thu, 26 Nov 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/055/sie.js Modified: branches/05x/055/sie.js =================================================================== --- branches/05x/055/sie.js 2009-11-25 14:57:00 UTC (rev 1436) +++ branches/05x/055/sie.js 2009-11-26 12:58:32 UTC (rev 1437) @@ -2161,6 +2161,7 @@ matrix = data = t = null; }; +NAIBU.Frame = []; function STSetElement(/*Element*/ ele, /*Matrix*/ matrix, /*float*/w, h) { var parent = ele.parentNode, dummy = new Matrix(1, 0, 0, 1, 0, 0), s = {}; if (parent.nodeName === "shape") { @@ -2202,14 +2203,13 @@ this.transformable = matrix; this.currentFrame = 0; this.attributeName = ele.getAttribute("attributeName").replace(/(fill|stroke)\-/, "&1"); - this.begin = ele.getAttribute("begin"); - this.end = ele.getAttribute("end"); - this.dur = ele.getAttribute("dur"); + var timing = [ele.getAttribute("begin"), ele.getAttribute("end"), ele.getAttribute("dur")]; this.fill = ele.getAttribute("fill"); this.w = w; this.h = h; this._begin = this._end = null; dummy = null; + NAIBU.Frame[NAIBU.Frame.length] = this; return this; }; STSetElement.prototype.set = function (w,h){ @@ -2229,13 +2229,13 @@ } } }; -};STSetElement.prototype.beginElement = function (){ +STSetElement.prototype.beginElement = function (){ var target = this.target; var base = target[this.attributeName]; if (base !== void 0) { if (typeof base === "string") { target[this.attributeName] = this.to; - } else if (base instanceOf STLength) { + } else if (base instanceof STLength) { var s = base.value; base.newValueSpecified(base.unitType, parseFloat(this.to)); base = s; @@ -2245,6 +2245,7 @@ target.paint[this.attributeName] = this.to; } else { base = ""; + target.tar.style[this.attributeName] = this.to; } target.set(this.w, this.h); this.base = base;