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

bpmn-js

Package Overview
Dependencies
Maintainers
4
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmn-js - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

lib/features/modeling/behavior/AutoExpandParentBehavior.js

3

lib/features/context-pad/ContextPadProvider.js

@@ -80,5 +80,6 @@ 'use strict';

var top = padRect.top - diagramRect.top;
var left = padRect.left - diagramRect.left;
var pos = {
x: padRect.left,
x: left,
y: top + padRect.height + Y_OFFSET

@@ -85,0 +86,0 @@ };

{
"name": "bpmn-js",
"version": "0.10.2",
"version": "0.10.3",
"description": "A bpmn 2.0 toolkit and web modeler",

@@ -58,4 +58,4 @@ "scripts": {

"dependencies": {
"bpmn-moddle": "^0.8.0",
"diagram-js": "^0.10.1",
"bpmn-moddle": "^0.8.3",
"diagram-js": "^0.10.2",
"diagram-js-direct-editing": "^0.10.0",

@@ -62,0 +62,0 @@ "didi": "^0.0.4",

@@ -31,2 +31,40 @@ 'use strict';

});
describe('should show chooser/replace menu in the correct position ', function() {
var container;
beforeEach(function() {
container = jasmine.getEnv().getTestContainer();
});
it('for a diagram element', inject(function(elementRegistry, eventBus, contextPad, popupMenu) {
// given
var bpmnContainer = container.firstChild,
element = elementRegistry.get('StartEvent_1'),
padding = 5,
replaceMenuRect,
padMenuRect;
bpmnContainer.style.marginLeft = '200px';
bpmnContainer.style.marginTop = '200px';
// when
eventBus.on('contextPad.open', function(event) {
event.current.entries.replace.action.click(null, element);
replaceMenuRect = popupMenu._instances['replace-menu']._container.getBoundingClientRect();
padMenuRect = contextPad.getPad(element).html.getBoundingClientRect();
});
eventBus.fire('element.click', { element: element });
// then
expect(replaceMenuRect.left).not.toBeGreaterThan(padMenuRect.left);
expect(replaceMenuRect.top).not.toBeGreaterThan(padMenuRect.bottom + padding);
}));
});
});
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