cytoscape-popper
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32787