@odopod/odo-object-fit
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,2 +7,4 @@ (function (global, factory) { | ||
var babelHelpers = {}; | ||
var classCallCheck = function (instance, Constructor) { | ||
@@ -32,2 +34,10 @@ if (!(instance instanceof Constructor)) { | ||
babelHelpers; | ||
/** | ||
@@ -128,3 +138,3 @@ * @fileoverview A helper which fits media elements (img, video). It polyfills | ||
} | ||
} else /* if (this.style === ObjectFit.Style.CONTAIN)*/if (this._mediaRatio > containerRatio) { | ||
} else /* if this.style === ObjectFit.Style.CONTAIN */if (this._mediaRatio > containerRatio) { | ||
elementWidth = containerWidth; | ||
@@ -261,3 +271,3 @@ elementHeight = containerWidth / this._mediaRatio; | ||
key: '_loadEventName', | ||
get: function get$$1() { | ||
get: function get() { | ||
return this._isVideo ? 'loadedmetadata' : 'load'; | ||
@@ -264,0 +274,0 @@ } |
{ | ||
"name": "@odopod/odo-object-fit", | ||
"description": "Fits media elements (img, video). It polyfills CSS' object-fit: cover; If the browser supports object-fit, it will not run.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/odo-object-fit.js", | ||
@@ -14,3 +14,2 @@ "odoModule": "src/object-fit.js", | ||
], | ||
"devDependencies": {}, | ||
"homepage": "https://github.com/odopod/code-library/tree/master/packages/odo-object-fit", | ||
@@ -37,5 +36,4 @@ "files": [ | ||
"scripts": { | ||
"link-local": "node ../../scripts/link-local-packages.js", | ||
"test": "gulp code-quality test" | ||
} | ||
} |
@@ -35,2 +35,2 @@ # Odo Object Fit | ||
[permalink]: https://odopod.github.io/odo/odo-object-fit/ | ||
[permalink]: https://code.odopod.com/odo-object-fit/ |
@@ -88,3 +88,3 @@ /** | ||
} | ||
} else /* if (this.style === ObjectFit.Style.CONTAIN)*/ if (this._mediaRatio > containerRatio) { | ||
} else /* if this.style === ObjectFit.Style.CONTAIN */ if (this._mediaRatio > containerRatio) { | ||
elementWidth = containerWidth; | ||
@@ -91,0 +91,0 @@ elementHeight = containerWidth / this._mediaRatio; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37708
7
434
1