feat: drag relation tags along threads

This commit is contained in:
2026-08-14 18:26:20 +02:00
parent 5d59af1dd9
commit b39d2efa75
11 changed files with 164 additions and 29 deletions
@@ -0,0 +1,8 @@
ALTER TABLE osint.exhibit_connections
ADD COLUMN tag_position_percent SMALLINT NOT NULL DEFAULT 50
CHECK (tag_position_percent BETWEEN 0 AND 100),
ADD COLUMN tag_lateral_offset SMALLINT NOT NULL DEFAULT 0
CHECK (ABS(tag_lateral_offset) <= 10 + ROUND((100 - tightness) * 0.6));
COMMENT ON COLUMN osint.exhibit_connections.tag_position_percent IS 'Position of the relation tag along its red thread, measured from the source exhibit';
COMMENT ON COLUMN osint.exhibit_connections.tag_lateral_offset IS 'Signed perpendicular tag displacement, limited by thread tightness';