From de8b6ffa3c686256030df04a6dd56025fe6de8ac Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 2 Sep 2016 13:31:36 -0400 Subject: remove 2h site and bump to 0.1.40 --- .../assets/javascripts/mx/primitives/mx.image.js | 50 ---------------------- 1 file changed, 50 deletions(-) delete mode 100644 site/public/assets/javascripts/mx/primitives/mx.image.js (limited to 'site/public/assets/javascripts/mx/primitives/mx.image.js') diff --git a/site/public/assets/javascripts/mx/primitives/mx.image.js b/site/public/assets/javascripts/mx/primitives/mx.image.js deleted file mode 100644 index 39bb0b5..0000000 --- a/site/public/assets/javascripts/mx/primitives/mx.image.js +++ /dev/null @@ -1,50 +0,0 @@ -MX.Image = MX.Object3D.extend({ - init: function (ops) { - - this.type = "Image" - this.media = ops.media - this.width = 0 - this.height = 0 - this.x = ops.x || 0 - this.y = ops.y || 0 - this.z = ops.z || 0 - this.scale = ops.scale || 1 - this.backface = ops.backface || false - - ops.className && this.el.classList.add(ops.className) - this.backface && this.el.classList.add("backface-visible") - this.el.classList.add("image") - this.el.classList.add("mx-scenery") - - this.el.style.backgroundRepeat = 'no-repeat' - - this.load(ops) - }, - - load: function(ops){ - var layer = this - layer.ops = defaults(ops, layer.ops) - - var image = new Image() - image.onload = function(){ - if (! layer.ops) return - layer.scale = layer.ops.scale || 1 - layer.width = layer.ops.width || image.naturalWidth - layer.height = layer.ops.height || image.naturalHeight -// layer.x = layer.ops.x || 0 -// layer.y = layer.ops.y || 0 -// layer.z = layer.ops.z || 0 -// layer.rotationX = layer.ops.rotationX || 0 -// layer.rotationY = layer.ops.rotationY || 0 -// layer.rotationZ = layer.ops.rotationZ || 0 - layer.el.style.backgroundImage = "url(" + image.src + ")" - layer.el.classList.add('image') - layer.dirty = true - layer.ops.onload && layer.ops.onload( image ) - layer.update() - } - image.src = ops.src; - if (image.complete) setTimeout(image.onload) - }, - -}) -- cgit v1.2.3-70-g09d2