+2
-2
@@ -1,5 +1,5 @@
|
||||
[tool.bumpversion]
|
||||
current_version = "1.1.0"
|
||||
current_version = "1.1.1"
|
||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||
serialize = ["{major}.{minor}.{patch}"]
|
||||
search = "{current_version}"
|
||||
@@ -7,7 +7,7 @@ replace = "{new_version}"
|
||||
regex = false
|
||||
ignore_missing_version = false
|
||||
ignore_missing_files = false
|
||||
tag = true
|
||||
tag = false
|
||||
sign_tags = false
|
||||
tag_name = "v{new_version}"
|
||||
tag_message = "Bump version: {current_version} → {new_version}"
|
||||
|
||||
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
---
|
||||
|
||||
## [1.1.1] - 2025-12-11
|
||||
|
||||
### Fixed
|
||||
|
||||
- Add a check for collapsed state. If collapsed use the default value `30` as height.
|
||||
|
||||
---
|
||||
|
||||
## [1.1.0] - 2025-11-25
|
||||
|
||||
### Added
|
||||
|
||||
@@ -111,6 +111,7 @@ If issues persist, please open an issue with:
|
||||
|
||||
## Versioning & Releases
|
||||
|
||||
- **1.1.1** - Fixed collapsed state node links.
|
||||
- **1.1.0** - Added subway style and geometry awareness.
|
||||
- **1.0.2** - Fixed path method to patch each instance.
|
||||
- **1.0.1** - Fixed links lookup.
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
__author__ = 'Edoardo Carmignani'
|
||||
__email__ = 'edoardo.carmignani@gmail.com'
|
||||
__version__ = '1.1.0'
|
||||
__version__ = '1.1.1'
|
||||
|
||||
WEB_DIRECTORY = './web'
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "extralinks"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
description = "More connection links."
|
||||
authors = [
|
||||
{name = "Edoardo Carmignani", email = "edoardo.carmignani@gmail.com"}
|
||||
|
||||
+11
-5
@@ -50,7 +50,9 @@ const LinkRenderers = {
|
||||
path.lineTo(x2, y2);
|
||||
return;
|
||||
}
|
||||
const sourceBottom = start_node.pos[1] + start_node.size[1];
|
||||
|
||||
const nodeHeight = start_node.collapsed ? start_node.height / 2 : start_node.size[1];
|
||||
const sourceBottom = start_node.collapsed ? start_node.pos[1] - (nodeHeight - offset) / 2 : nodeHeight + start_node.pos[1];
|
||||
const sourceLeft = (start_node.pos[1] + start_node.size[1] < y2) ? start_node.pos[0] + start_node.size[0] : start_node.pos[0] + 10;
|
||||
|
||||
const trayY = sourceBottom + ((slot_id + 1) * offset / 2);
|
||||
@@ -114,7 +116,8 @@ const LinkRenderers = {
|
||||
return;
|
||||
}
|
||||
|
||||
const sourceBottom = start_node.pos[1] + start_node.size[1];
|
||||
const nodeHeight = start_node.collapsed ? start_node.height / 2 : start_node.size[1];
|
||||
const sourceBottom = start_node.collapsed ? start_node.pos[1] - (nodeHeight - offset) / 2 : nodeHeight + start_node.pos[1];
|
||||
const sourceLeft = (start_node.pos[1] + start_node.size[1] < y2) ? start_node.pos[0] + start_node.size[0] : start_node.pos[0] + 10;
|
||||
|
||||
const trayY = sourceBottom + ((slot_id + 1) * offset / 2);
|
||||
@@ -184,9 +187,9 @@ const LinkRenderers = {
|
||||
pos[2] = Math.atan2(dy, dx);
|
||||
return;
|
||||
}
|
||||
|
||||
const sourceBottom = start_node.pos[1] + start_node.size[1];
|
||||
const sourceLeft = (start_node.pos[1] + start_node.size[1] < y2) ? start_node.pos[0] + start_node.size[0]: start_node.pos[0] + 10;
|
||||
const nodeHeight = start_node.collapsed ? start_node.height / 2 : start_node.size[1];
|
||||
const sourceBottom = start_node.collapsed ? start_node.pos[1] - (nodeHeight - offset) / 2 : nodeHeight + start_node.pos[1];
|
||||
const sourceLeft = (start_node.pos[1] + nodeHeight < y2) ? start_node.pos[0] + start_node.size[0]: start_node.pos[0] + 10;
|
||||
|
||||
const trayY = sourceBottom + ((slot_id + 1) * offset / 2);
|
||||
let turnX2 = x2 - offset;
|
||||
@@ -254,6 +257,9 @@ export class ExtraLinks {
|
||||
const start_node = app.graph.getNodeById(full_link_object?.origin_id);
|
||||
const end_node = app.graph.getNodeById(full_link_object?.target_id);
|
||||
|
||||
console.log(start_node)
|
||||
// console.log(end_node)
|
||||
|
||||
const is_dragging = (link2?.id == 'temp') || !app.graph.links[link2.id];
|
||||
|
||||
const startPos = link2.startPoint;
|
||||
|
||||
@@ -47,7 +47,7 @@ app.registerExtension({
|
||||
},
|
||||
{
|
||||
id: "Extra Links.ExtraLinks",
|
||||
name: "Version 1.1.0",
|
||||
name: "Version 1.1.1",
|
||||
type: () => {
|
||||
const container = document.createElement("span");
|
||||
const btn = document.createElement("button");
|
||||
|
||||
Reference in New Issue
Block a user