Skip to content

Conversation

@DymoneLewis
Copy link
Collaborator

详细改动点晚点补充

@DymoneLewis DymoneLewis requested a review from Copilot December 1, 2025 11:17
@changeset-bot
Copy link

changeset-bot bot commented Dec 1, 2025

⚠️ No Changeset found

Latest commit: 9ae083a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot finished reviewing on behalf of DymoneLewis December 1, 2025 11:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements comprehensive UI beautification for the LogicFlow library, focusing on modernizing visual styling, improving component design, and enhancing the grid system.

Key Changes:

  1. Visual Design Updates: Increased border-radius values (5px → 8px), refined spacing/padding, updated shadows and colors
  2. Theme Mode Support: Added dark mode support with themed class names (lf-control-${themeMode})
  3. Grid System Enhancements: New advanced grid configuration with major/bold line support and dynamic dash patterns
  4. Geometry Utilities: New generateRoundedCorners function for consistent rounded corners across shapes
  5. Control Panel Improvements: Optional text hiding, improved icon styling, and responsive layout

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated no comments.

Show a summary per file
File Description
style/raw.ts, style/index.less Updated CSS with modern styling: 8px radius, refined spacing, shadow updates, theme support
components/control/index.ts Added hideText option for controls, theme mode class integration
util/geometry.ts New generateRoundedCorners utility for universal corner rounding
view/overlay/Grid.tsx Enhanced grid with major/bold lines, dynamic dash patterns, period-based rendering
view/overlay/gridConfig.ts New grid configuration system with validation and merging logic
view/overlay/OutlineOverlay.tsx Refactored outline rendering, adjusted offsets (10→4 for nodes, improved edge handling)
view/shape/Polygon.tsx Integrated generateRoundedCorners, fixed typo (classNmaeclassName)
view/edge/PolylineEdge.tsx Applied universal corner rounding to polyline edges
view/node/HtmlNode.tsx Added shadow filter support and rect background
view/Control.tsx Adjusted resize control positioning and sizing
util/theme.ts Refactored theme system, extracted theme constants
util/edge.ts Enhanced getBBoxOfPoints with separate height offset
constant/theme.ts New theme constants file (not shown in diff)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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