Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@odopod/odo-dual-viewer

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odopod/odo-dual-viewer - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

34

dist/odo-dual-viewer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc