Skip to content

Conversation

Crystal-RainSlide
Copy link
Contributor

Copy link

Walkthrough

This pull request addresses incorrect layout type names in the layouts/types.ts file. The changes involve correcting the naming conventions for layout types to ensure consistency and accuracy with the documented standards.

Changes

File Summary
packages/g6/src/layouts/types.ts Corrected layout type names from 'fruchtermanGPU' to 'fruchterman-gpu' and 'forceAtlas2' to 'force-atlas2'.


interface FruchtermanLayout extends BaseLayoutOptions, FruchtermanLayoutOptions {
type: 'fruchterman' | 'fruchtermanGPU';
type: 'fruchterman' | 'fruchterman-gpu';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that all references to 'fruchtermanGPU' are updated to 'fruchterman-gpu' throughout the codebase to avoid inconsistencies.


interface ForceAtlas2 extends BaseLayoutOptions, ForceAtlas2LayoutOptions {
type: 'forceAtlas2';
type: 'force-atlas2';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that all references to 'forceAtlas2' are updated to 'force-atlas2' throughout the codebase to avoid inconsistencies.

@Aarebecca Aarebecca merged commit f6627e7 into antvis:v5 Feb 19, 2025
2 checks passed
@Crystal-RainSlide Crystal-RainSlide deleted the fix-type-layout-name branch February 20, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants