@odopod/odo-dual-viewer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,3 @@ (function (global, factory) { | ||
(global.OdoDualViewer = factory(global.TinyEmitter,global.OdoHelpers,global.OdoDraggable,global.OdoWindowEvents,global.OdoObjectFit)); | ||
}(this, (function (TinyEmitter,_odopod_odoHelpers,OdoDraggable,OdoWindowEvents,OdoObjectFit) { 'use strict'; | ||
}(this, (function (TinyEmitter,odoHelpers,OdoDraggable,OdoWindowEvents,OdoObjectFit) { 'use strict'; | ||
@@ -51,2 +51,4 @@ TinyEmitter = TinyEmitter && TinyEmitter.hasOwnProperty('default') ? TinyEmitter['default'] : TinyEmitter; | ||
var babelHelpers = {}; | ||
var classCallCheck = function (instance, Constructor) { | ||
@@ -60,10 +62,2 @@ if (!(instance instanceof Constructor)) { | ||
var inherits = function (subClass, superClass) { | ||
@@ -85,12 +79,2 @@ if (typeof superClass !== "function" && superClass !== null) { | ||
var possibleConstructorReturn = function (self, call) { | ||
@@ -104,2 +88,6 @@ if (!self) { | ||
babelHelpers; | ||
var DualViewer = function (_TinyEmitter) { | ||
@@ -257,3 +245,3 @@ inherits(DualViewer, _TinyEmitter); | ||
var height = this._containerHeight * (1 - this.options.verticalSafeZone * 2); | ||
limits = new _odopod_odoHelpers.math.Rect(0, top, this._containerWidth, height); | ||
limits = new odoHelpers.math.Rect(0, top, this._containerWidth, height); | ||
} else { | ||
@@ -264,3 +252,3 @@ var containingEl = this.getElementByClass(DualViewer.ClassName.SCRUBBER_CONTAINER); | ||
limits = new _odopod_odoHelpers.math.Rect(Math.round(containingRect.left - mainRect.left), containingEl.offsetTop, containingEl.offsetWidth, this._containerHeight); | ||
limits = new odoHelpers.math.Rect(Math.round(containingRect.left - mainRect.left), containingEl.offsetTop, containingEl.offsetWidth, this._containerHeight); | ||
} | ||
@@ -317,3 +305,3 @@ | ||
return _odopod_odoHelpers.math.clamp(percent, min, max); | ||
return odoHelpers.math.clamp(percent, min, max); | ||
}; | ||
@@ -485,3 +473,3 @@ | ||
var stepper = new _odopod_odoHelpers.animation.Stepper({ | ||
var stepper = new odoHelpers.animation.Stepper({ | ||
start: this._previousPercent, | ||
@@ -488,0 +476,0 @@ end: percent, |
{ | ||
"name": "@odopod/odo-dual-viewer", | ||
"description": "A draggable UI component which reveals two panes.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/odo-dual-viewer.js", | ||
@@ -16,6 +16,6 @@ "style": "css/odo-dual-viewer.css", | ||
"dependencies": { | ||
"@odopod/odo-draggable": "^1.0.0", | ||
"@odopod/odo-helpers": "^1.0.0", | ||
"@odopod/odo-object-fit": "^1.0.0", | ||
"@odopod/odo-window-events": "^1.0.0", | ||
"@odopod/odo-draggable": "^1.0.1", | ||
"@odopod/odo-helpers": "^1.0.1", | ||
"@odopod/odo-object-fit": "^1.0.1", | ||
"@odopod/odo-window-events": "^1.0.1", | ||
"tiny-emitter": "^2.0.1" | ||
@@ -46,5 +46,4 @@ }, | ||
"scripts": { | ||
"link-local": "node ../../scripts/link-local-packages.js", | ||
"test": "gulp code-quality test" | ||
} | ||
} |
@@ -23,2 +23,2 @@ # Odo Dual Viewer | ||
[permalink]: https://odopod.github.io/odo/odo-dual-viewer/ | ||
[permalink]: https://code.odopod.com/odo-dual-viewer/ |
@@ -9,3 +9,2 @@ import TinyEmitter from 'tiny-emitter'; | ||
class DualViewer extends TinyEmitter { | ||
/** | ||
@@ -12,0 +11,0 @@ * Component which has a draggable element in the middle which reveals one or |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1
78737
10
947