comparison nodejs/svg.js @ 857:ea1e88c40548 abs_n_rel_center

Make scale work on center of an object
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 20 Sep 2010 22:43:44 +0800
parents eff2f580b536
children e69f551e4a37
comparison
equal deleted inserted replaced
856:88f4916a0691 857:ea1e88c40548
499 get x() { return this._x; }, 499 get x() { return this._x; },
500 500
501 /*! \brief Prevent user to modify value. 501 /*! \brief Prevent user to modify value.
502 */ 502 */
503 get y() { return this._y; }, 503 get y() { return this._y; },
504
505 get rel() {
506 var rev;
507 var xy;
508
509 rev = this._get_ac_rev();
510 xy = _pnt_transform(this._svg_saved_x, this._svg_saved_y, rev);
511
512 return {x: xy[0], y: xy[1]};
513 },
504 }; 514 };
505 515
506 loadSVG.prototype._set_bbox = function(node, tgt) { 516 loadSVG.prototype._set_bbox = function(node, tgt) {
507 var a; 517 var a;
508 var vstr; 518 var vstr;