Major graph editor improvements: standalone features, touch, docking, UX
Graph standalone features: - Clone button on all entity nodes (copy icon, watches for new entity) - Scene preset activation button (play icon, calls /activate API) - Automation enable/disable via start/stop toggle (PUT enabled) - Add missing entity types: sync_clock, scene_preset, pattern_template - Fix edit/delete handlers for cspt, sync_clock - CSPT added to test/preview button kinds - Bulk delete with multi-select + Delete key confirmation - Undo/redo framework with toolbar buttons (disabled when empty) - Keyboard shortcuts help panel (? key, draggable, anchor-persisted) - Enhanced search: type:device, tag:production filter syntax - Tags passed through to all graph nodes for tag-based filtering - Filter popover with grouped checkboxes replaces flat pill row Touch device support: - Pinch-to-zoom with 2-finger gesture tracking - Double-tap zoom toggle (1.0x ↔ 1.8x) - Multi-touch pointer tracking with pinch-to-pan - Overlay buttons and port labels visible on selected (tapped) nodes - Larger touch targets for ports (@media pointer: coarse) - touch-action: none on SVG canvas - 10px dead zone for touch vs 4px for mouse Visual improvements: - Port pin labels shown outside node on hover/select (outlined text) - Hybrid active edge flow: thicker + glow + animated dots - Test/preview icon changed to flask (matching card tabs) - Clone icon scaled down to 60% for compact overlay buttons - Monospace font for metric values (stable-width digits) - Hide scrollbar on graph tab (html:has override) Toolbar docking: - 8-position dock system (4 corners + 4 side midpoints) - Vertical layout when docked to left/right sides - Dock position indicators shown during drag (dots with highlight) - Snap animation on drop - Persisted dock position in localStorage Resize handling: - View center preserved on fullscreen/window resize (ResizeObserver) - All docked panels re-anchored on container resize - Zoom inertia for wheel and toolbar +/- buttons Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1521,5 +1521,37 @@
|
||||
"graph.filter_group.strip": "色带",
|
||||
"graph.filter_group.audio": "音频",
|
||||
"graph.filter_group.targets": "目标",
|
||||
"graph.filter_group.other": "其他"
|
||||
"graph.filter_group.other": "其他",
|
||||
"graph.bulk_delete_confirm": "删除 {count} 个选中的实体?",
|
||||
"graph.nothing_to_undo": "没有可撤销的操作",
|
||||
"graph.nothing_to_redo": "没有可重做的操作",
|
||||
"graph.help_title": "键盘快捷键",
|
||||
"graph.help.search": "搜索",
|
||||
"graph.help.filter": "筛选",
|
||||
"graph.help.add": "添加实体",
|
||||
"graph.help.shortcuts": "快捷键",
|
||||
"graph.help.delete": "删除 / 断开",
|
||||
"graph.help.select_all": "全选",
|
||||
"graph.help.undo": "撤销",
|
||||
"graph.help.redo": "重做",
|
||||
"graph.help.fullscreen": "全屏",
|
||||
"graph.help.deselect": "取消选择",
|
||||
"graph.help.navigate": "节点导航",
|
||||
"graph.help.click": "单击",
|
||||
"graph.help.click_desc": "选择节点",
|
||||
"graph.help.dblclick": "双击",
|
||||
"graph.help.dblclick_desc": "缩放到节点",
|
||||
"graph.help.shift_click": "Shift+单击",
|
||||
"graph.help.shift_click_desc": "多选",
|
||||
"graph.help.shift_drag": "Shift+拖拽",
|
||||
"graph.help.shift_drag_desc": "框选",
|
||||
"graph.help.drag_node": "拖拽节点",
|
||||
"graph.help.drag_node_desc": "重新定位",
|
||||
"graph.help.drag_port": "拖拽端口",
|
||||
"graph.help.drag_port_desc": "连接实体",
|
||||
"graph.help.right_click": "右键边线",
|
||||
"graph.help.right_click_desc": "断开连接",
|
||||
"automation.enabled": "自动化已启用",
|
||||
"automation.disabled": "自动化已禁用",
|
||||
"scene_preset.activated": "预设已激活"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user