G6VP
G6VP copied to clipboard
G6VP is an online visual analysis tool for graphs and a low-code platform for building graph applications.
# 业务场景: 点类型:cust、有属性:cust_type(客户类型)、is_risk(是否高风险) # 现有的设置样式: 示例: ``` -- 常规客户 { "id": "SimpleNode", "props": { "size": 26, "color": "#ddd", -- 常规颜色 "label": [ "name" ] }, "expressions": [ { "name": "CUST",...
![image](https://github.com/antvis/G6VP/assets/10703060/0a97e04d-fc39-43cb-8cff-9b9902674c0f)
参考 G 的实践进行优化 https://github.com/antvis/G/pull/1383 https://github.com/antvis/G/actions/runs/5407941823/workflow
![image](https://github.com/antvis/G6VP/assets/2605838/c640f67b-df2c-4527-8858-7a2a97e48431)
- https://gremlify.com - 布局容器可以参考 ![image](https://github.com/antvis/G6VP/assets/10703060/781bd0ad-bbc5-4169-a380-aa89b9ed11f3)
使用 children 回调创建菜单会造成每次重复渲染,可以优化下写法 https://github.com/antvis/G6VP/blob/a2a17ded5ff8dc16ee17dad7cc8a88c3c0d46f21/packages/gi-assets-basic/src/components/ContextMenu/ContextMenu.tsx#L32-L52
针对数据库场景,用户可能写了一堆的查询语句,需要参数化,希望右键菜单的时候,可以根据这个语句去查询 ![image](https://github.com/antvis/G6VP/assets/10703060/14287e7c-bd76-4606-87f9-617233d15530)