layout
layout copied to clipboard
Layout algorithms for graphs.
急急急! dagre布局下我们需要用到节点的层级和order信息,能否在节点上加上该信息 本着不只能做拿来主义,我这边也提了pull request,麻烦看下:https://github.com/antvis/layout/pull/203
![截屏2024-01-08 18 54 42](https://github.com/antvis/layout/assets/10055390/1a229daf-ecf9-4fb9-bbc2-33617cb4ccad) 后续会开发支持吗?或者有什么兼容做法吗?
使用force2布局时,发现布局失败了打开控制台发现有报错 ![image](https://github.com/antvis/layout/assets/73928245/903a2792-2832-4d0d-8500-5eefdf19024e) 查看源码得知是单词拼写错误,导致报错: ![image](https://github.com/antvis/layout/assets/73928245/9ffed516-985f-481e-b8da-eb64b78745d7) 由于没有开发者权限,请大佬修复一下呢
importScripts' on 'WorkerGlobalScope': The script at 'https://unpkg.com/@antv/layout@latest/dist/layout.min.js' failed to load.
老项目引用 @antv/layout 0.3.x 时可能导致构建失败的问题 @antv/layout引用的"ml-matrix": "^6.5.0" 由于^匹配版本 会导致(在没有package-lock的情况下) 下载到 6.11.0版本 6.11.0是ml-matrix两小时前发布的一个新版本,这个版本有用到private property,可能导致某些老项目打包失败 指路: [查看临时解决方式](https://github.com/mljs/matrix/issues/180)
我的工程使用ice.js脚手架进行构建,显式引入了@antv/[email protected],它引入了@antv/[email protected]。 之前npm start一直是正常的。从一周左右前开始 在引入了@antv/[email protected]版本号不变的前提下,它引入的ml-matrix版本号从6.10.8变化到6.11.0,导致出现以下报错: ERROR Failed to compile with 2 errors 上午10:06:53 error in ./node_modules/[email protected]@ml-matrix/src/symmetricMatrix.js Module parse failed: Unexpected character '#' (8:2) You may need an appropriate loader to handle...
设置node节点的宽度, 如果是固定值,node 坐标可以对齐, 如果是动态赋值,就会错位.. ![image](https://github.com/antvis/layout/assets/39073567/de7fea49-dcbd-4cd1-af94-23c95d2a760a) ![image](https://github.com/antvis/layout/assets/39073567/93b6e31d-0393-459f-bff2-b86800a1cc45) ![image](https://github.com/antvis/layout/assets/39073567/32d6acae-a421-4b66-87f2-8425b3bde89c)
提供基于 WebGPU 实现的 Fruchterman 布局: https://www.yuque.com/antv/ou292n/lqhu9ez8zc4b3auu
offsetX,offsetY不准确,fixSize是准确的,群组大小不能包裹住群组内的节点 ![image](https://file.notion.so/f/f/4585f3d3-3f75-444c-87db-158abcdbd576/ea113e88-a0cf-4ed9-9c08-4205364bbb9f/Untitled.png?id=480d4a10-ddba-48c9-9e5c-588953b89f07&table=block&spaceId=4585f3d3-3f75-444c-87db-158abcdbd576&expirationTimestamp=1697241600000&signature=T4hu6H_D-Z334BE2v3IE8OGPTv4TEy0GGC8ysP_1al4&downloadName=Untitled.png) demo地址: https://codesandbox.io/s/beautiful-dirac-wylrwm?file=/index.ts
https://www.willusher.io/publications/graphwagu https://github.com/harp-lab/GraphWaGu/tree/main