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

diagram-js

Package Overview
Dependencies
Maintainers
10
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diagram-js - npm Package Compare versions

Comparing version 12.7.3 to 12.8.0

15

lib/features/context-pad/ContextPad.js

@@ -26,2 +26,5 @@ import {

import { isConnection } from '../../util/ModelUtil';
/**

@@ -511,2 +514,8 @@ * @typedef {import('../../model/Types').Element} Element

*
* If target is a connection, the context pad will be placed according to the
* connection's last waypoint.
*
* If multiple targets, the context pad will be placed according to the bounding
* box containing all targets.
*
* @param {ContextPadTarget} target

@@ -518,2 +527,4 @@ *

target = isConnection(target) ? getLastWaypoint(target) : target;
var elements = isArray(target) ? target : [ target ];

@@ -551,2 +562,6 @@ var bBox = getBBox(elements);

return array.indexOf(item) !== -1;
}
function getLastWaypoint(connection) {
return connection.waypoints[connection.waypoints.length - 1];
}

2

package.json
{
"name": "diagram-js",
"version": "12.7.3",
"version": "12.8.0",
"description": "A toolbox for displaying and modifying diagrams on the web",

@@ -5,0 +5,0 @@ "main": "lib/Diagram.js",

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