Team:Queens-Canada/head
From 2010.igem.org
(Difference between revisions)
Line 542: | Line 542: | ||
update: function(position) { | update: function(position) { | ||
var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position); | var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position); | ||
- | if(this.options.scaleContent | + | if(!(!this.options.scaleContent || !this.fontSize)) |
this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType }); | this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType }); | ||
this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale); | this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale); | ||
Line 1,038: | Line 1,038: | ||
(transform.originalValue == transform.targetValue) || | (transform.originalValue == transform.targetValue) || | ||
( | ( | ||
- | transform.unit | + | !(transform.unit = 'color') || |
- | (isNaN(transform.originalValue) || isNaN(transform.targetValue)) | + | !(isNaN(transform.originalValue) || isNaN(transform.targetValue)) |
) | ) | ||
) | ) |
Revision as of 18:58, 21 June 2010