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 --- .../ninja-components/image3d.reel/image3d.js | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 node_modules/ninja-components/image3d.reel/image3d.js (limited to 'node_modules/ninja-components/image3d.reel/image3d.js') diff --git a/node_modules/ninja-components/image3d.reel/image3d.js b/node_modules/ninja-components/image3d.reel/image3d.js new file mode 100644 index 00000000..d9b7b302 --- /dev/null +++ b/node_modules/ninja-components/image3d.reel/image3d.js @@ -0,0 +1,30 @@ +/* +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; + +var Image3D = exports.Image3D = Montage.create(Component, { + + _data: {value: null}, + + data: { + set: function(value) { + this._data = value; + this.needsDraw = true; + } + }, + + draw: { + value: function() { + this._element.style.background = "url(" + this._data["src"] + ")"; + this.left.textContent = this._data["text"]; + this.right.textContent = this._data["text"]; + //this.left.style.background = "-webkit-gradient(linear, left top, left bottom, from(rgba(50,50,50,.7)), color-stop(10%, rgba(10,10,10,.5)), to(black)) left top no-repeat, url(" + this._src + ") left top no-repeat"; + //this.left.style.backgroundSize="10000% 10000%"; + } + } +}); \ No newline at end of file -- cgit v1.2.3