Repository navigation
refactor layout with build-in and update layout API - #75
Merged
Merged
Conversation
#74) * feat(layout): bundle only force-directed layouts and support custom layout classes - Bundle only force, force-atlas2, d3-force, and fruchterman by default - Allow passing @antv/layout classes directly as layout.type - Run custom layout classes on the main thread; keep Worker for built-in names - Update docs, demos, and tests to use the new layout API - Reduce UMD gzip size from 171.7 KB to 118.6 KB * fix(layout): align LayoutInstance with @antv/layout node types - Allow string | number node ids and optional forEachNode index - Remove unnecessary type assertions for built-in layouts - Use built-in force layout in README examples * refactor(layout): remove layout wrappers and import classes from @antv/layout - Upgrade @antv/layout to 2.1.0-beta.1 - Remove all custom layout implementations and optional subpath entries - Import layout classes directly from @antv/layout in docs and demos - Remove g6-lite-layouts.min.js build and registration requirements - Delete obsolete tests for removed layout functions * docs: update package size measurements after layout cleanup - Remove hardcoded byte counts from README badge descriptions - Update performance docs with current UMD and ESM sizes * docs: use versionless CDN URLs for automatic latest version resolution * docs: simplify package size section to UMD minified and gzip sizes * docs: update homepage UMD size measurement to 118.2 kB
Member
Author
|
官网,文档人工验证一下,如果还有问题,pr 提交到 refactor-layout 分支,确认没问题后再合并本分支。 |
✅ Preview is ready!
↩️ Previous: ⚡️ 🤖 Powered by surge-preview |
|||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

改动
force、force-atlas2、d3-force、fruchterman。@antv/layout导入布局类传入,无需注册。@antv/g6-lite/layouts/*子入口。@antv/layout到2.1.0。使用方式
内置布局:
外置布局:
包大小