Skip to content

Commit daf8de0

Browse files
minor bug fix for connection events
1 parent 8a95be9 commit daf8de0

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.js.LICENSE.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@
6464
*/
6565

6666
/*! Also see LICENSE file in the root of the project. */
67+
68+
//!important to set a unique name for the port as this is used to identify the port in the connections

dist/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "circuit-sketcher-core",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"main": "dist/main.js",
55
"types": "dist/main.d.ts",
66
"sideEffects": true,

src/components/customDefinitions/customConnection.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export const CustomConnection = draw2d.Connection.extend({
5757

5858
if (sourcePort) this.revertLabel(sourcePort);
5959
if (targetPort) this.revertLabel(targetPort);
60+
61+
this.canvas.getCommandStack().execute(new DummyCommand());
6062
},
6163

6264
onKeyDown: function (event: KeyboardEvent) {

0 commit comments

Comments
 (0)