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

cytoscape-popper

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-popper - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

cytoscape-popper.js

@@ -204,3 +204,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

var renderedDimensions = function renderedDimensions(el) {
return { w: el.renderedWidth(), h: el.renderedHeight() };
return el.isNode() ? { w: el.renderedWidth(), h: el.renderedHeight() } : { w: 3, h: 3 };
};

@@ -207,0 +207,0 @@ var renderedPosition = function renderedPosition(el) {

{
"name": "cytoscape-popper",
"version": "1.0.3",
"version": "1.0.4",
"description": "A Cytoscape.js extension for Popper.js",

@@ -5,0 +5,0 @@ "main": "cytoscape-popper.js",

@@ -18,3 +18,3 @@ const assign = require('./assign');

function createOptionsObject(target, opts) {
let renderedDimensions = el => ({ w: el.renderedWidth(), h: el.renderedHeight() });
let renderedDimensions = el => el.isNode() ? ({ w: el.renderedWidth(), h: el.renderedHeight() }) : ({ w: 3, h: 3 });
let renderedPosition = el => el.isNode() ? getRenderedCenter(el, renderedDimensions) : getRenderedMidpoint(el);

@@ -21,0 +21,0 @@ let popper = {};

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