feature: added saving graph to json

This commit is contained in:
2026-03-06 11:03:21 +01:00
parent e1adf6b9b0
commit 1a479e931f
3 changed files with 263 additions and 1 deletions

View File

@@ -5,8 +5,10 @@ import type { BreadcrumbItemType } from 'antd/es/breadcrumb/Breadcrumb';
import { useKeysdownStore } from './stores/ArrayStore';
import {
MenuFoldOutlined,
MenuUnfoldOutlined
MenuUnfoldOutlined,
SaveOutlined,
} from '@ant-design/icons';
import { saveConceptSketch } from './utils/saveGraph';
import { useGraphLayersTreeStore } from './stores/TreeStore';
const { Header, Content, Sider } = Layout;
@@ -67,6 +69,18 @@ const App: React.FC = () => {
color: colorBgContainer,
}}
/>
<Button
type="text"
icon={<SaveOutlined />}
onClick={saveConceptSketch}
title="Save as JSON"
style={{
fontSize: '16px',
width: 32,
height: 32,
color: colorBgContainer,
}}
/>
</div>
<Breadcrumb items={graphLevel} />
</Space>