Skip to content

Commit

Permalink
style: whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and philippfromme committed Oct 31, 2024
1 parent b140578 commit f439f12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions lib/features/outline/MultiSelectionOutline.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import {
append as svgAppend,
attr as svgAttr,
Expand Down Expand Up @@ -32,13 +31,10 @@ var SELECTION_OUTLINE_PADDING = 6;
* @param {Selection} selection
*/
export default function MultiSelectionOutline(eventBus, canvas, selection) {

this._canvas = canvas;

var self = this;



eventBus.on('element.changed', function(event) {
if (selection.isSelected(event.element)) {
self._updateMultiSelectionOutline(selection.get());
Expand Down
2 changes: 0 additions & 2 deletions test/spec/features/outline/MultiSelectionOutlineSpec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import {
bootstrapDiagram,
inject,
Expand Down Expand Up @@ -36,7 +35,6 @@ describe('features/outline - MultiSelectionOutline', function() {
selection.select([ shape1, shape2 ]);

outline = domQuery('.djs-selection-outline');

}));


Expand Down
5 changes: 4 additions & 1 deletion test/spec/features/outline/OutlineSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('features/outline - Outline', function() {


it('should expose API', inject(function(outline) {

expect(outline).to.exist;
expect(outline.updateShapeOutline).to.exist;
}));
Expand Down Expand Up @@ -104,6 +103,7 @@ describe('features/outline - Outline', function() {
expect(outline).to.exist;
expect(svgClasses(gfx).has('selected')).to.be.false; // Outline class is not set
}));

});


Expand Down Expand Up @@ -190,6 +190,7 @@ describe('features/outline - Outline', function() {

var gfx = elementRegistry.getGraphics(shape);
var outlineShape = domQuery('.djs-outline', gfx);

expect(outlineShape).to.exist;
expect(svgClasses(gfx).has('selected')).to.be.true;
}));
Expand Down Expand Up @@ -217,5 +218,7 @@ describe('features/outline - Outline', function() {
// then
expect(outlineElement.tagName).to.equal('rect');
}));

});

});

0 comments on commit f439f12

Please sign in to comment.