Add conflictology map mode and fix graph rendering reliability.
Support conflict types, involvement sizing, and map-type toggles while keeping polar sector layout; improve GraphView init retries and edge matching on network maps. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,10 +30,20 @@ RELATION_TYPES = [
|
||||
('other', 'Другое'),
|
||||
]
|
||||
|
||||
CONFLICT_RELATION_TYPES = [
|
||||
('conflict_open', 'Открытый конфликт'),
|
||||
('conflict_tension', 'Напряжение'),
|
||||
('conflict_alliance', 'Союз / поддержка'),
|
||||
('conflict_neutral', 'Нейтральная связь'),
|
||||
]
|
||||
|
||||
ALL_RELATION_TYPES = RELATION_TYPES + CONFLICT_RELATION_TYPES
|
||||
|
||||
|
||||
def choices_payload():
|
||||
return {
|
||||
'relation_types': [{'value': v, 'label': l} for v, l in RELATION_TYPES],
|
||||
'conflict_relation_types': [{'value': v, 'label': l} for v, l in CONFLICT_RELATION_TYPES],
|
||||
'life_spheres': [{'value': v, 'label': l} for v, l in LIFE_SPHERES],
|
||||
'network_circles': [{'value': v, 'label': l} for v, l in NETWORK_CIRCLES],
|
||||
'interaction_intensities': [{'value': v, 'label': l} for v, l in INTERACTION_INTENSITY],
|
||||
|
||||
Reference in New Issue
Block a user