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

bpmn-js

Package Overview
Dependencies
Maintainers
2
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.6.0 to 0.6.1

11

lib/features/label-editing/LabelEditingProvider.js

@@ -24,14 +24,9 @@ 'use strict';

// per default, listen to double click events
eventBus.on('shape.dblclick', function(event) {
// listen to dblclick on non-root elements
eventBus.on('element.dblclick', function(event) {
directEditing.activate(event.element);
});
// per default, listen to double click events
eventBus.on('connection.dblclick', function(event) {
directEditing.activate(event.element);
});
// intercept direct canvas clicks to deselect all selected shapes
eventBus.on('canvas.click', function(event) {
eventBus.on('element.click', function(event) {
directEditing.complete();

@@ -38,0 +33,0 @@ });

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

@@ -5,0 +5,0 @@ "scripts": {

@@ -40,3 +40,3 @@ 'use strict';

// when
eventBus.fire('shape.dblclick', { element: shape });
eventBus.fire('element.dblclick', { element: shape });

@@ -57,3 +57,3 @@ // then

// activate
eventBus.fire('shape.dblclick', { element: shape });
eventBus.fire('element.dblclick', { element: shape });

@@ -74,3 +74,3 @@ // a jQuery <textarea /> element

it('should submit on <canvas.click>', inject(function(elementRegistry, directEditing, eventBus) {
it('should submit on root element click', inject(function(elementRegistry, directEditing, canvas, eventBus) {

@@ -82,3 +82,3 @@ // given

// activate
eventBus.fire('shape.dblclick', { element: shape });
eventBus.fire('element.dblclick', { element: shape });

@@ -93,3 +93,3 @@ var newName = 'new value';

textarea.val(newName);
eventBus.fire('canvas.click', {});
eventBus.fire('element.click', { element: canvas.getRootElement() });

@@ -118,5 +118,5 @@ // then

if (element.waypoints) {
eventBus.fire('connection.dblclick', { element: element });
eventBus.fire('element.dblclick', { element: element });
} else {
eventBus.fire('shape.dblclick', { element: element });
eventBus.fire('element.dblclick', { element: element });
}

@@ -192,3 +192,3 @@ }

eventBus.on('shape.changed', function(e) {
eventBus.on('element.changed', function(e) {
if (e.element === diagramElement) {

@@ -215,3 +215,3 @@ listenerCalled = true;

eventBus.on('shape.changed', function(e) {
eventBus.on('element.changed', function(e) {
if (e.element === diagramElement.label) {

@@ -218,0 +218,0 @@ listenerCalled = true;

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