From 3a754133dbc138390503341fd2e9beba3e43aa4b Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Fri, 27 Jan 2012 12:05:17 -0800 Subject: Merged old FileIO --- node_modules/montage/core/undo-manager.js | 0 node_modules/montage/core/url.js | 0 node_modules/montage/ui/flow-controller.reel/flow-controller.html | 0 node_modules/montage/ui/flow-controller.reel/flow-controller.js | 0 node_modules/montage/ui/flow-offset.js | 0 node_modules/montage/ui/flow-path-cubic.js | 0 node_modules/montage/ui/flow-path-lerp.js | 0 node_modules/montage/ui/flow-path-linear.js | 0 node_modules/montage/ui/flow-path-sigmoid.js | 0 node_modules/montage/ui/flow-path.js | 0 node_modules/montage/ui/flow.reel/flow.html | 0 node_modules/montage/ui/flow.reel/flow.js | 0 node_modules/montage/ui/hottext.reel/hottext.css | 0 node_modules/montage/ui/hottext.reel/hottext.html | 0 node_modules/montage/ui/hottext.reel/hottext.js | 0 node_modules/montage/ui/hottextunit.reel/hottextunit.css | 0 node_modules/montage/ui/hottextunit.reel/hottextunit.html | 0 node_modules/montage/ui/hottextunit.reel/hottextunit.js | 0 node_modules/montage/ui/image.reel/image.js | 0 node_modules/montage/ui/image2.reel/image2.html | 0 node_modules/montage/ui/image2.reel/image2.js | 0 node_modules/montage/ui/image3d.reel/image3d.html | 0 node_modules/montage/ui/image3d.reel/image3d.js | 0 node_modules/montage/ui/nearest-neighbor-component-search.js | 0 node_modules/montage/ui/scroll-bars.reel/scroll-bars.html | 0 node_modules/montage/ui/scroll-bars.reel/scroll-bars.js | 0 node_modules/montage/ui/scroller.reel/scroller.html | 0 node_modules/montage/ui/scroller.reel/scroller.js | 0 node_modules/montage/ui/slider-base.js | 0 29 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 node_modules/montage/core/undo-manager.js mode change 100644 => 100755 node_modules/montage/core/url.js mode change 100644 => 100755 node_modules/montage/ui/flow-controller.reel/flow-controller.html mode change 100644 => 100755 node_modules/montage/ui/flow-controller.reel/flow-controller.js mode change 100644 => 100755 node_modules/montage/ui/flow-offset.js mode change 100644 => 100755 node_modules/montage/ui/flow-path-cubic.js mode change 100644 => 100755 node_modules/montage/ui/flow-path-lerp.js mode change 100644 => 100755 node_modules/montage/ui/flow-path-linear.js mode change 100644 => 100755 node_modules/montage/ui/flow-path-sigmoid.js mode change 100644 => 100755 node_modules/montage/ui/flow-path.js mode change 100644 => 100755 node_modules/montage/ui/flow.reel/flow.html mode change 100644 => 100755 node_modules/montage/ui/flow.reel/flow.js mode change 100644 => 100755 node_modules/montage/ui/hottext.reel/hottext.css mode change 100644 => 100755 node_modules/montage/ui/hottext.reel/hottext.html mode change 100644 => 100755 node_modules/montage/ui/hottext.reel/hottext.js mode change 100644 => 100755 node_modules/montage/ui/hottextunit.reel/hottextunit.css mode change 100644 => 100755 node_modules/montage/ui/hottextunit.reel/hottextunit.html mode change 100644 => 100755 node_modules/montage/ui/hottextunit.reel/hottextunit.js mode change 100644 => 100755 node_modules/montage/ui/image.reel/image.js mode change 100644 => 100755 node_modules/montage/ui/image2.reel/image2.html mode change 100644 => 100755 node_modules/montage/ui/image2.reel/image2.js mode change 100644 => 100755 node_modules/montage/ui/image3d.reel/image3d.html mode change 100644 => 100755 node_modules/montage/ui/image3d.reel/image3d.js mode change 100644 => 100755 node_modules/montage/ui/nearest-neighbor-component-search.js mode change 100644 => 100755 node_modules/montage/ui/scroll-bars.reel/scroll-bars.html mode change 100644 => 100755 node_modules/montage/ui/scroll-bars.reel/scroll-bars.js mode change 100644 => 100755 node_modules/montage/ui/scroller.reel/scroller.html mode change 100644 => 100755 node_modules/montage/ui/scroller.reel/scroller.js mode change 100644 => 100755 node_modules/montage/ui/slider-base.js (limited to 'node_modules') diff --git a/node_modules/montage/core/undo-manager.js b/node_modules/montage/core/undo-manager.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/core/url.js b/node_modules/montage/core/url.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-controller.reel/flow-controller.html b/node_modules/montage/ui/flow-controller.reel/flow-controller.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-controller.reel/flow-controller.js b/node_modules/montage/ui/flow-controller.reel/flow-controller.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-offset.js b/node_modules/montage/ui/flow-offset.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-path-cubic.js b/node_modules/montage/ui/flow-path-cubic.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-path-lerp.js b/node_modules/montage/ui/flow-path-lerp.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-path-linear.js b/node_modules/montage/ui/flow-path-linear.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-path-sigmoid.js b/node_modules/montage/ui/flow-path-sigmoid.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow-path.js b/node_modules/montage/ui/flow-path.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow.reel/flow.html b/node_modules/montage/ui/flow.reel/flow.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/flow.reel/flow.js b/node_modules/montage/ui/flow.reel/flow.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/hottext.reel/hottext.css b/node_modules/montage/ui/hottext.reel/hottext.css old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/hottext.reel/hottext.html b/node_modules/montage/ui/hottext.reel/hottext.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/hottext.reel/hottext.js b/node_modules/montage/ui/hottext.reel/hottext.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/hottextunit.reel/hottextunit.css b/node_modules/montage/ui/hottextunit.reel/hottextunit.css old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/hottextunit.reel/hottextunit.html b/node_modules/montage/ui/hottextunit.reel/hottextunit.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/hottextunit.reel/hottextunit.js b/node_modules/montage/ui/hottextunit.reel/hottextunit.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/image.reel/image.js b/node_modules/montage/ui/image.reel/image.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/image2.reel/image2.html b/node_modules/montage/ui/image2.reel/image2.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/image2.reel/image2.js b/node_modules/montage/ui/image2.reel/image2.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/image3d.reel/image3d.html b/node_modules/montage/ui/image3d.reel/image3d.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/image3d.reel/image3d.js b/node_modules/montage/ui/image3d.reel/image3d.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/nearest-neighbor-component-search.js b/node_modules/montage/ui/nearest-neighbor-component-search.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/scroll-bars.reel/scroll-bars.html b/node_modules/montage/ui/scroll-bars.reel/scroll-bars.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/scroll-bars.reel/scroll-bars.js b/node_modules/montage/ui/scroll-bars.reel/scroll-bars.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/scroller.reel/scroller.html b/node_modules/montage/ui/scroller.reel/scroller.html old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/scroller.reel/scroller.js b/node_modules/montage/ui/scroller.reel/scroller.js old mode 100644 new mode 100755 diff --git a/node_modules/montage/ui/slider-base.js b/node_modules/montage/ui/slider-base.js old mode 100644 new mode 100755 -- cgit v1.2.3 From ad81ae4c61eb5857cd444ef0caf5b0b33e8072ba Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 29 Jan 2012 00:26:20 -0800 Subject: Moved the ninja components out of the Montage folder Signed-off-by: Valerio Virgillito --- node_modules/montage/effect/desaturate-effect.js | 25 -- node_modules/montage/effect/effect.js | 15 - node_modules/montage/effect/invert-effect.js | 23 -- node_modules/montage/effect/kaliedoscope-effect.js | 17 - node_modules/montage/effect/multiply-effect.js | 23 -- node_modules/montage/effect/sepia-effect.js | 25 -- .../ui/flow-controller.reel/flow-controller.html | 275 -------------- .../ui/flow-controller.reel/flow-controller.js | 288 -------------- node_modules/montage/ui/flow-offset.js | 389 ------------------- node_modules/montage/ui/hottext.reel/hottext.css | 27 -- node_modules/montage/ui/hottext.reel/hottext.html | 29 -- node_modules/montage/ui/hottext.reel/hottext.js | 376 ------------------- .../montage/ui/hottextunit.reel/hottextunit.css | 41 -- .../montage/ui/hottextunit.reel/hottextunit.html | 28 -- .../montage/ui/hottextunit.reel/hottextunit.js | 185 --------- node_modules/montage/ui/image2.reel/image2.html | 31 -- node_modules/montage/ui/image2.reel/image2.js | 26 -- node_modules/montage/ui/image3d.reel/image3d.html | 95 ----- node_modules/montage/ui/image3d.reel/image3d.js | 30 -- .../montage/ui/photo-editor.reel/photo-editor.css | 34 -- .../montage/ui/photo-editor.reel/photo-editor.html | 50 --- .../montage/ui/photo-editor.reel/photo-editor.js | 415 --------------------- node_modules/montage/ui/slider-base.js | 278 -------------- .../ninja-components/effect/desaturate-effect.js | 25 ++ node_modules/ninja-components/effect/effect.js | 15 + .../ninja-components/effect/invert-effect.js | 23 ++ .../ninja-components/effect/kaliedoscope-effect.js | 17 + .../ninja-components/effect/multiply-effect.js | 23 ++ .../ninja-components/effect/sepia-effect.js | 25 ++ .../flow-controller.reel/flow-controller.html | 275 ++++++++++++++ .../flow-controller.reel/flow-controller.js | 288 ++++++++++++++ node_modules/ninja-components/flow-offset.js | 389 +++++++++++++++++++ .../ninja-components/hottext.reel/hottext.css | 27 ++ .../ninja-components/hottext.reel/hottext.html | 29 ++ .../ninja-components/hottext.reel/hottext.js | 376 +++++++++++++++++++ .../hottextunit.reel/hottextunit.css | 41 ++ .../hottextunit.reel/hottextunit.html | 28 ++ .../hottextunit.reel/hottextunit.js | 185 +++++++++ .../ninja-components/image2.reel/image2.html | 31 ++ .../ninja-components/image2.reel/image2.js | 26 ++ .../ninja-components/image3d.reel/image3d.html | 95 +++++ .../ninja-components/image3d.reel/image3d.js | 30 ++ .../photo-editor.reel/photo-editor.css | 34 ++ .../photo-editor.reel/photo-editor.html | 50 +++ .../photo-editor.reel/photo-editor.js | 415 +++++++++++++++++++++ node_modules/ninja-components/slider-base.js | 278 ++++++++++++++ 46 files changed, 2725 insertions(+), 2725 deletions(-) delete mode 100755 node_modules/montage/effect/desaturate-effect.js delete mode 100755 node_modules/montage/effect/effect.js delete mode 100755 node_modules/montage/effect/invert-effect.js delete mode 100755 node_modules/montage/effect/kaliedoscope-effect.js delete mode 100755 node_modules/montage/effect/multiply-effect.js delete mode 100755 node_modules/montage/effect/sepia-effect.js delete mode 100644 node_modules/montage/ui/flow-controller.reel/flow-controller.html delete mode 100644 node_modules/montage/ui/flow-controller.reel/flow-controller.js delete mode 100644 node_modules/montage/ui/flow-offset.js delete mode 100644 node_modules/montage/ui/hottext.reel/hottext.css delete mode 100644 node_modules/montage/ui/hottext.reel/hottext.html delete mode 100644 node_modules/montage/ui/hottext.reel/hottext.js delete mode 100644 node_modules/montage/ui/hottextunit.reel/hottextunit.css delete mode 100644 node_modules/montage/ui/hottextunit.reel/hottextunit.html delete mode 100644 node_modules/montage/ui/hottextunit.reel/hottextunit.js delete mode 100644 node_modules/montage/ui/image2.reel/image2.html delete mode 100644 node_modules/montage/ui/image2.reel/image2.js delete mode 100644 node_modules/montage/ui/image3d.reel/image3d.html delete mode 100644 node_modules/montage/ui/image3d.reel/image3d.js delete mode 100755 node_modules/montage/ui/photo-editor.reel/photo-editor.css delete mode 100755 node_modules/montage/ui/photo-editor.reel/photo-editor.html delete mode 100755 node_modules/montage/ui/photo-editor.reel/photo-editor.js delete mode 100644 node_modules/montage/ui/slider-base.js create mode 100755 node_modules/ninja-components/effect/desaturate-effect.js create mode 100755 node_modules/ninja-components/effect/effect.js create mode 100755 node_modules/ninja-components/effect/invert-effect.js create mode 100755 node_modules/ninja-components/effect/kaliedoscope-effect.js create mode 100755 node_modules/ninja-components/effect/multiply-effect.js create mode 100755 node_modules/ninja-components/effect/sepia-effect.js create mode 100644 node_modules/ninja-components/flow-controller.reel/flow-controller.html create mode 100644 node_modules/ninja-components/flow-controller.reel/flow-controller.js create mode 100644 node_modules/ninja-components/flow-offset.js create mode 100644 node_modules/ninja-components/hottext.reel/hottext.css create mode 100644 node_modules/ninja-components/hottext.reel/hottext.html create mode 100644 node_modules/ninja-components/hottext.reel/hottext.js create mode 100644 node_modules/ninja-components/hottextunit.reel/hottextunit.css create mode 100644 node_modules/ninja-components/hottextunit.reel/hottextunit.html create mode 100644 node_modules/ninja-components/hottextunit.reel/hottextunit.js create mode 100644 node_modules/ninja-components/image2.reel/image2.html create mode 100644 node_modules/ninja-components/image2.reel/image2.js create mode 100644 node_modules/ninja-components/image3d.reel/image3d.html create mode 100644 node_modules/ninja-components/image3d.reel/image3d.js create mode 100755 node_modules/ninja-components/photo-editor.reel/photo-editor.css create mode 100755 node_modules/ninja-components/photo-editor.reel/photo-editor.html create mode 100755 node_modules/ninja-components/photo-editor.reel/photo-editor.js create mode 100644 node_modules/ninja-components/slider-base.js (limited to 'node_modules') diff --git a/node_modules/montage/effect/desaturate-effect.js b/node_modules/montage/effect/desaturate-effect.js deleted file mode 100755 index defa1973..00000000 --- a/node_modules/montage/effect/desaturate-effect.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - 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 Effect = require("effect/effect").Effect; - -exports.DesaturateEffect = Montage.create(Effect, { - - applyEffect: { - value: function(pixels, pixelCount) { - var i = 0, - average; - - for (i = 0; i < pixelCount; i += 4) { - average = (pixels[i] + pixels[i+1] + pixels[i+2])/ 3; - pixels[i] = average; - pixels[i+1] = average; - pixels[i+2] = average; - } - } - } - -}); diff --git a/node_modules/montage/effect/effect.js b/node_modules/montage/effect/effect.js deleted file mode 100755 index 4c5bb52c..00000000 --- a/node_modules/montage/effect/effect.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - 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 Effect = exports.Effect = Montage.create(Montage, { - - applyEffect: { - enumerable: false, - value: null - } - -}); diff --git a/node_modules/montage/effect/invert-effect.js b/node_modules/montage/effect/invert-effect.js deleted file mode 100755 index d5a3f7cf..00000000 --- a/node_modules/montage/effect/invert-effect.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - 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 Effect = require("effect/effect").Effect; - -exports.InvertEffect = Montage.create(Effect, { - - applyEffect: { - value: function(pixels, pixelCount) { - var i; - - for (i = 0; i < pixelCount; i += 4) { - pixels[i] = 255 - pixels[i]; - pixels[i+1] = 255 - pixels[i+1]; - pixels[i+2] = 255 - pixels[i+2]; - } - } - } - -}); diff --git a/node_modules/montage/effect/kaliedoscope-effect.js b/node_modules/montage/effect/kaliedoscope-effect.js deleted file mode 100755 index 38462602..00000000 --- a/node_modules/montage/effect/kaliedoscope-effect.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - 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 Effect = require("effect/effect").Effect; - -exports.KaliedoscopeEffect = Montage.create(Effect, { - - applyEffect: { - value: function() { - console.log("kaliedoscope") - } - } - -}); diff --git a/node_modules/montage/effect/multiply-effect.js b/node_modules/montage/effect/multiply-effect.js deleted file mode 100755 index b8599668..00000000 --- a/node_modules/montage/effect/multiply-effect.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - 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 Effect = require("effect/effect").Effect; - -exports.MultiplyEffect = Montage.create(Effect, { - - applyEffect: { - value: function(pixels, pixelCount, multiplier) { - var i = 0; - - for (i = 0; i < pixelCount; i += 4) { - pixels[i ] = pixels[i ] * multiplier; // red - pixels[i+1] = pixels[i+1] * multiplier; // green - pixels[i+2] = pixels[i+2] * multiplier; // blue - } - } - } - -}); diff --git a/node_modules/montage/effect/sepia-effect.js b/node_modules/montage/effect/sepia-effect.js deleted file mode 100755 index 779074b7..00000000 --- a/node_modules/montage/effect/sepia-effect.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - 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 Effect = require("effect/effect").Effect; - -exports.SepiaEffect = Montage.create(Effect, { - - applyEffect: { - value: function(pixels, pixelCount) { - var i = 0, - average; - - for (i = 0; i < pixelCount; i += 4) { - average = (pixels[i ] + pixels[i+1] + pixels[i+2])/ 3; - pixels[i ] = average + 10; // red - pixels[i+1] = average; // green - pixels[i+2] = average; // blue - } - } - } - -}); diff --git a/node_modules/montage/ui/flow-controller.reel/flow-controller.html b/node_modules/montage/ui/flow-controller.reel/flow-controller.html deleted file mode 100644 index da2fae62..00000000 --- a/node_modules/montage/ui/flow-controller.reel/flow-controller.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - - - - -
-
-
-
-
- - \ No newline at end of file diff --git a/node_modules/montage/ui/flow-controller.reel/flow-controller.js b/node_modules/montage/ui/flow-controller.reel/flow-controller.js deleted file mode 100644 index 0ce12473..00000000 --- a/node_modules/montage/ui/flow-controller.reel/flow-controller.js +++ /dev/null @@ -1,288 +0,0 @@ -/* -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, - Component = require("ui/component").Component; - -exports.FlowController = Montage.create(Component, { - - templateDidLoad: { - value: function() { -// this.spacing = this.offsetController.scale; -// this.animation = this.path2; -// this.hasMomentum = this.scrollController.hasMomentum; - } - }, - - scrollController: { - enumerable: true, - serializable: true, - value: null - }, - - offsetController: { - enumerable: true, - serializable: true, - value: null - }, - - flowComponent: { - enumerable: true, - serializable: true, - value: null - }, - - - - // ------------------------------------------------------------------------ - // Forwarding these properties to their equivalents in Scroll - _speed: { - enumerable: true, - serializable: true, - value: 1 - }, - - speed: { - get: function() { - return this._speed; - }, - set: function(value) { - if(this._speed !== value) - { - if( this.scrollController && (this.scrollController.pointerSpeedMultiplier !== value) ) - { - this._speed = value; - this.scrollController.pointerSpeedMultiplier = value; - this.needsDraw = true; - } - } - } - }, - - hasMomentum: { - get: function() { - if(this.scrollController) - { - return this.scrollController.hasMomentum; - } - }, - set: function(value) { - if( this.scrollController && (this.scrollController.hasMomentum !== value) ) - { - this.scrollController.hasMomentum = value; - this.needsDraw = true; - } - } - }, - - hasBouncing: { - get: function() { - if(this.scrollController) - { - return this.scrollController.hasBouncing; - } - }, - set: function(value) { - if( this.scrollController && (this.scrollController.hasBouncing !== value) ) - { - this.scrollController.hasBouncing = value; - this.needsDraw = true; - } - } - }, - - momentumDuration: { - get: function() { - if(this.scrollController) - { - return this.scrollController.momentumDuration; - } - }, - set: function(value) { - if( this.scrollController && (this.scrollController.momentumDuration !== value) ) - { - this.scrollController.momentumDuration = value; - this.needsDraw = true; - } - } - }, - - bouncingDuration: { - get: function() { - if(this.scrollController) - { - return this.scrollController.bouncingDuration; - } - }, - set: function(value) { - if( this.scrollController && (this.scrollController.bouncingDuration !== value) ) - { - this.scrollController.bouncingDuration = value; - this.needsDraw = true; - } - } - }, - // ------------------------------------------------------------------------ - - - - // ------------------------------------------------------------------------ - // Forwarding these properties to their equivalents in FlowOffset - _spacing: { - enumerable: true, - serializable: true, - value: 350 - }, - - spacing: { - get: function() { - return this._spacing; - }, - set: function(scale) { -// if( this.offsetController && (this.offsetController.scale !== scale) ) -// { -// this.offsetController.scale = scale; -// this.needsDraw = true; -// } - if(this._spacing !== scale) - { - if( this.offsetController && (this.offsetController.scale !== scale) ) - { - this._spacing = scale; - this.offsetController.scale = scale; - this.needsDraw = true; - } - } - } - }, - // ------------------------------------------------------------------------ - - - - // ------------------------------------------------------------------------ - // Some paths definitions and necessary values - interpValue: { - enumerable: true, - serializable: true, - value: 1 - }, - - slideShow: { - value: { - value: function (slide) { - var path={ - translateX: 10+slide.time - }; - return path; - } - } - }, - // ------------------------------------------------------------------------ - - - - // ------------------------------------------------------------------------ - // Forwarding these properties to their equivalents in Flow - - // TODO - hard-coding values for demo - _src: { - enumerable: true, - serializable: true, - value: "" - }, - - src: { - get: function() { - return this._src; - }, - set: function(value) { - this.images = this.imagesForDemo; - this._src = "images"; - this.needsDraw = true; - } - }, - - images: { - enumerable: true, - serializable: true, - value: [] - }, - - imagesForDemo: { - enumerable: true, - serializable: true, - value: [ - {"src": "images/0.jpg", "text": "We win together"}, - {"src": "images/1.jpg", "text": "We do the right thing"}, - {"src": "images/2.jpg", "text": "We are passionate about what we do"}, - {"src": "images/3.jpg", "text": "We are obsessed with product superiority"}, - {"src": "images/4.jpg", "text": "We make things simple"}, - {"src": "images/5.jpg", "text": "We are customer centric"}, - {"src": "images/6.jpg", "text": "Lorem Ipsum 0"}, - {"src": "images/7.jpg", "text": "Lorem Ipsum 1"}, - {"src": "images/8.jpg", "text": "Lorem Ipsum 2"}, - {"src": "images/9.jpg", "text": "Lorem Ipsum 3"}, - {"src": "images/10.jpg", "text": "Lorem Ipsum 4"}, - {"src": "images/11.jpg", "text": "Lorem Ipsum 5"}, - {"src": "images/12.jpg", "text": "Lorem Ipsum 6"}, - {"src": "images/13.jpg", "text": "Lorem Ipsum 7"}, - {"src": "images/14.jpg", "text": "Lorem Ipsum 8"} - ] - }, - - _animation: { - enumerable: true, - serializable: true, - value: this.path2 - }, - - animation: { - get: function() { - return this._animation; - }, - set: function(value) { - if(this._animation !== value) - { - if( this.flowComponent && (this.flowComponent.path !== value) ) - { - this._animation = value; - switch(value) - { - case "slideshow": - this.flowComponent.path = this.slideShow; - this.offsetController.scale = 350; - this.scrollController.pointerSpeedMultiplier = 1; - break; - case "carousel": - this.flowComponent.path = this.path2.path; - this.offsetController.scale = 320; - this.scrollController.pointerSpeedMultiplier = 1; - break; - case "cover-flow": - this.flowComponent.path = this.path3.path; - this.offsetController.scale = 1000; - this.scrollController.pointerSpeedMultiplier = 3; - break; - case "wave": - this.flowComponent.path = this.path4.path; - this.offsetController.scale = 320; - this.scrollController.pointerSpeedMultiplier = 1; - break; - case "explosion": - this.flowComponent.path = this.path1.path; - this.offsetController.scale = 320; - this.scrollController.pointerSpeedMultiplier = 1; - break; - default: - } - this.flowComponent.needsDraw = true; - } - } - } - } - // ------------------------------------------------------------------------ - -}); diff --git a/node_modules/montage/ui/flow-offset.js b/node_modules/montage/ui/flow-offset.js deleted file mode 100644 index e45a14f3..00000000 --- a/node_modules/montage/ui/flow-offset.js +++ /dev/null @@ -1,389 +0,0 @@ -/* -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 FlowOffset = exports.FlowOffset = Montage.create(Montage, { - - hasTemplate: { - value: false - }, - - isAnimating: { - enumerable: false, - value: false - }, - - component: { - value: null - }, - - draw: { - value: function () { - if (this.isAnimating) { - this._interval(); - } - } - }, - - deserializedFromTemplate: { - value: function () { - var oldComponentDraw = this.component.draw, - self = this; - - this.component.draw = function () { - self.draw(); - oldComponentDraw.call(self.component); - }; - } - }, - - _hasElasticScrolling: { - enumerable: false, - value: true - }, - - hasElasticScrolling: { - get: function () { - return this._hasElasticScrolling; - }, - set: function (value) { - this._hasElasticScrolling=(value===true)?true:false; - } - }, - - _selectedSlideIndex: { - enumerable: false, - value: null - }, - - selectedSlideIndex: { - get: function () { - return this._selectedSlideIndex; - }, - set: function (value) { - this._selectedSlideIndex=value; - if (typeof this.animatingHash[this._selectedSlideIndex] !== "undefined") { - var tmp=this.slide[this._selectedSlideIndex].x; - this.origin+=(this._selectedSlideIndex*this._scale)-tmp; - } - } - }, - - _selectedComponent: { - enumerable: false, - value: null - }, - - selectedComponent: { - get: function () { - return this._selectedComponent; - }, - set: function (value) { - this._selectedComponent=value; - this.selectedSlideIndex=value; - } - }, - - _animating: { - enumerable: false, - value: null - }, - - animating: { - enumerable: false, - get: function () { - if (!this._animating) { - this._animating=[]; - } - return this._animating; - }, - set: function () { - } - }, - - _animatingHash: { - enumerable: false, - value: null - }, - - animatingHash: { - enumerable: false, - get: function () { - if (!this._animatingHash) { - this._animatingHash={}; - } - return this._animatingHash; - }, - set: function () { - } - }, - - _slide: { - enumerable: false, - value: null - }, - - slide: { - enumerable: false, - get: function () { - if (!this._slide) { - this._slide={}; - } - return this._slide; - }, - set: function () { - } - }, - - startAnimating: { - enumerable: false, - value: function (index, pos) { - if (typeof this.animatingHash[index] === "undefined") { - var length=this.animating.length; - - this.animating[length]=index; - this.animatingHash[index]=length; - this.slide[index]={ - speed: 0, - x: pos - }; - } else { - this.slide[index].x=pos; - } - } - }, - - stopAnimating: { - enumerable: false, - value: function (index) { - if (typeof this.animatingHash[index] !== "undefined") { - this.animating[this.animatingHash[index]]=this.animating[this.animating.length-1]; - this.animatingHash[this.animating[this.animating.length-1]]=this.animatingHash[index]; - this.animating.pop(); - delete this.animatingHash[index]; - delete this.slide[index]; - } - } - }, - - _range: { - value: 15 - }, - - lastDrawTime: { - value: null - }, - - _origin: { - enumerable: false, - value: 0 - }, - - origin: { - get: function () { - return this._origin; - }, - set: function (value) { - if (this._hasElasticScrolling) { - var i, - n, - min=this._selectedSlideIndex-this._range, - max=this._selectedSlideIndex+this._range+1, - tmp, - j, - x, - self=this; - - tmp=value-this._origin; - if (min<0) { - min=0; - } - - if (!this.isAnimating) { - this.lastDrawTime=Date.now(); - } - for (i=min; ii*this._scale) { - this.startAnimating(i, x); - } - } - } - } - this.stopAnimating(this._selectedSlideIndex); - - if (!this.isAnimating) { - this._interval=function () { - var animatingLength=self.animating.length, - n, j, i, _iterations=8, - time=Date.now(), - interval1=self.lastDrawTime?(time-self.lastDrawTime)*0.015:0, - interval=interval1/_iterations, - mW=self._scale, x, - epsilon=.5; - - for (n=0; n<_iterations; n++) { - for (j=0; ji*self._scale-epsilon) { - self.stopAnimating(i); - animatingLength--; - } else { - j++; - } - } else { - if (self.slide[i].x -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. - */ - -.hottext { - cursor: default; - border:none; - border-bottom:1px dotted white; - width:50px; - text-align:center; - -webkit-user-select:none; - outline:none; -} - -.hottext:hover -{ - cursor: pointer; -} - -.hottextInput -{ - cursor: default; - width:50px; - text-align:center; -} \ No newline at end of file diff --git a/node_modules/montage/ui/hottext.reel/hottext.html b/node_modules/montage/ui/hottext.reel/hottext.html deleted file mode 100644 index 29912e42..00000000 --- a/node_modules/montage/ui/hottext.reel/hottext.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/node_modules/montage/ui/hottext.reel/hottext.js b/node_modules/montage/ui/hottext.reel/hottext.js deleted file mode 100644 index b593e175..00000000 --- a/node_modules/montage/ui/hottext.reel/hottext.js +++ /dev/null @@ -1,376 +0,0 @@ -/* -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, - SliderBase = require("ui/slider-base").SliderBase; - -var HotText = exports.HotText = Montage.create(SliderBase, { - /* Allow users to specify a function to format the display. - * For example, the Color Picker can specify a function to map - * the numeric hot text value to hex color values. - */ - labelFunction: { - serializable: true, - enumerable: true, - value: null - }, - - inputFunction: { - serializable: true, - enumerable: true, - value: parseFloat - }, - - _numValue: { - enumerable: false, - value: 0 - }, - - numValue: { - serializable: false, - enumerable: true, - get: function() { - return this._numValue; - }, - set: function(value) { - if (value < this._minValue) { - value = this._minValue; - } - if (value > this._maxValue) { - value = this._maxValue; - } - if (value !== this._numValue) { - this._numValue = Math.round(value * this._decimalPlace)/this._decimalPlace; - } - } - }, - - _previousValue: { - enumerable: false, - value: null - }, - - _stepSize: { - enumerable: false, - value: 1 - }, - - stepSize: { - serializable: true, - enumerable: true, - get: function() { - return this._stepSize; - }, - set: function(value) { - if (value !== this._stepSize) { - this._stepSize = value; - this.needsDraw = true; - } - } - }, - - _stepSizeShift: { - enumerable: false, - value: 10 - }, - - _xStart: { - enumerable: false, - value: 0 - }, - - _yStart: { - enumerable: false, - value: 0 - }, - - // Needed to determine when to commit a value change - _wasShiftKeyPressed: { - enumerable: false, - value: false - }, - - // for ones, use 1 - // for tenths, use 10 - // for hundredths, use 100, etc. - _decimalPlace: { - enumerable: false, - value: 1 - }, - - decimalPlace: { - serializable: true, - enumerable: true, - get: function() { - return this._decimalPlace; - }, - set: function(value) { - if (value !== this._decimalPlace) { - this._decimalPlace = value; - this.needsDraw = true; - } - } - }, - - value: { - serializable: true, - enumerable: true, - get: function() { - return this._value; - }, - set: function(value, fromInput) { - if (isNaN(value)) { - this._valueSyncedWithInputField = false; - this.needsDraw = true; - return; - } - - if (value < this._minValue) { - value = this._minValue; - this._valueSyncedWithInputField = false; - this.needsDraw = true; - } - else if (value > this._maxValue) { - value = this._maxValue; - this._valueSyncedWithInputField = false; - this.needsDraw = true; - } - - if (value !== this._value) { - this._value = this._numValue = Math.round(value * this._decimalPlace)/this._decimalPlace; - this._valueSyncedWithInputField = false; - this.needsDraw = true; - this._dispatchActionEvent(); - } - } - }, - - _valueSyncedWithInputField: { - enumerable: false, - value: false - }, - - // We don't want to handle every input; we only want to handle input from tab or enter - // Thus, we don't listen for an input event; we call this from handleKeydown - handleInput: { - enumerable: false, - value: function() { - this._setEventFlags("change", false); - Object.getPropertyDescriptor(this, "value").set.call(this, this.inputFunction(this.element.value), true); - } - }, - - - _valueFromPageOffset: { - value: function(offset, pageY, isShiftKeyPressed, wasSetByCode) { - if(!this._isMouseDown) - { - this._handleMoveEnd(); // If the user has moused up, check if we should go into input mode - return; - } - - var clickPoint = webkitConvertPointFromPageToNode(this.element, new WebKitPoint(offset,pageY)); - - var dX = clickPoint.x - this._xStart; - var dY = clickPoint.y - this._yStart; - - var dXAbs = Math.abs(dX); - var dYAbs = Math.abs(dY); - - if( (dXAbs < 5) && (dYAbs < 5) ) - { - return; // Don't process unless the user moves at least 5 pixels - } - - var incrementVal = dXAbs-4; // otherwise, the first value change will be 5 pixels - var multFactor = 1; - - if(dXAbs > dYAbs) - { - if(dX < 0) - { - multFactor = -1; - } - } - else - { - if(dY > 0) - { - multFactor = -1; - } - incrementVal = dYAbs-4; - } - - if(isShiftKeyPressed) - { - if(!this._wasShiftKeyPressed) - { - this._xStart = clickPoint.x; - this._yStart = clickPoint.y; - this._previousValue = this._numValue; - incrementVal = 1; - } - this.numValue = this._previousValue + multFactor * incrementVal * this._stepSizeShift; - this._wasShiftKeyPressed = true; - } - else - { - if(this._wasShiftKeyPressed) - { - this._xStart = clickPoint.x; - this._yStart = clickPoint.y; - this._previousValue = this._numValue; - incrementVal = 1; - this._wasShiftKeyPressed = false; - } - this.numValue = this._previousValue + multFactor * incrementVal * this._stepSize; - } - - this.value = this._numValue; - } - }, - - handleKeydown: { - enumerable: false, - value: function(event) { - switch(event.keyCode) - { - case 9: //tab - case 13: // enter - this.handleInput(); - break; - case 27: // esc - this._valueSyncedWithInputField = false; - this.needsDraw = true; - break; - case 38: // up - this._setEventFlags("change", false); - this.value += this._stepSize; - break; - case 40: // down - this._setEventFlags("change", false); - this.value -= this._stepSize; - break; - default: -// return; - } - } - }, - - handleBlur: { - enumerable: false, - value: function(event) { - event.target = this; - this._hasFocus = false; - - this.handleInput(); // Check if value has changed when focusing out - this.needsDraw = true; - - this.dispatchEvent(event); - } - }, - - handleFocus: { - enumerable: false, - value: function(event) { - event.target = this; - this._hasFocus = true; - this.dispatchEvent(event); - } - }, - - _handleMoveEnd: { - value: function() { - // If we don't change value (mouse up on ourself), we should go into text edit mode - if(this._numValue === this._previousValue) - { - this._hasFocus = true; - } - else - { - this._hasFocus = false; - this._dispatchActionEvent(); - } - this.needsDraw = true; - } - }, - - draw: { - enumerable: false, - value: function() { - if(this._hasFocus) - { - if(!this._isMouseDown) - { - this.element.classList.remove("hottext"); - this.element.classList.add("hottextInput"); - - // if element targeted; balancing demands of multitouch - // with traditional single focus model -