From 5a305ec44b2bd5198a248357439aae8ebbd75fee Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 2 Feb 2012 00:11:51 -0800 Subject: upgrading to Montage v0.6 Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/flow-path-sigmoid.js | 42 ++++++++++++---------------- 1 file changed, 18 insertions(+), 24 deletions(-) (limited to 'node_modules/montage/ui/flow-path-sigmoid.js') diff --git a/node_modules/montage/ui/flow-path-sigmoid.js b/node_modules/montage/ui/flow-path-sigmoid.js index 57cc9662..2e776b5a 100644 --- a/node_modules/montage/ui/flow-path-sigmoid.js +++ b/node_modules/montage/ui/flow-path-sigmoid.js @@ -1,18 +1,12 @@ -/* -This file contains proprietary software owned by Motorola Mobility, Inc.
-No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
-(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ - var Montage = require("montage").Montage; - + var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { - + _variable: { enumerable: false, value: "time" }, - + variable: { get: function () { return this._variable; @@ -29,12 +23,12 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { this._updatePath(); } }, - + _smoothness: { enumerable: false, value: 0 }, - + smoothness: { get: function () { return this._smoothness; @@ -49,7 +43,7 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { enumerable: false, value: 0 }, - + scale: { get: function () { return this._scale; @@ -64,7 +58,7 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { enumerable: false, value: 0 }, - + width: { get: function () { return this._width; @@ -79,7 +73,7 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { enumerable: false, value: 0 }, - + origin: { get: function () { return this._origin; @@ -89,12 +83,12 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { this._updatePath(); } }, - + _sigmoidCenter: { enumerable: false, value: 0 }, - + sigmoidCenter: { get: function () { return this._sigmoidCenter; @@ -104,12 +98,12 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { this._updatePath(); } }, - + _slope: { enumerable: false, value: 1 }, - + slope: { get: function () { return this._slope; @@ -119,12 +113,12 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { this._updatePath(); } }, - + _path: { enumerable: false, value: "0" }, - + path: { get: function () { return this._path; @@ -133,16 +127,16 @@ var FlowPathSigmoid = exports.FlowPathSigmoid = Montage.create(Montage, { this._path = value; } }, - + _updatePath: { enumerable: false, value: function () { var s = "(slide."+this._variable+"-("+this._origin+"))"; - - + + /** parseInt((a/(1+Math.pow(c, -(j*d)))-(a/2)+j*b)*1000)/1000; this.path = "parseInt(("+this._a+"/(1+Math.pow("+this._c+", -"+s+"*("+this._d+")))-(("+this._a+")/2)+"+s+"*("+this._b+"))*1000)/1000";*/ this.path = "((("+this._width+")/(1+Math.pow(2, (("+this._sigmoidCenter+")-"+s+")/("+this._smoothness+"))))-("+(this._width/2)+")+"+s+"*("+this._slope+"))*("+this._scale+")"; } } -}); \ No newline at end of file +}); -- cgit v1.2.3