| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Previously, the cursors used in various places where define in the CURSOR enum, so their values wasn't configurable. The cursors can now be configurable using global configuration objects or directly in the classes where they are used. BREAKING CHANGES: the `constants.CURSOR` enum has been removed. The values are now configurable and have been moved to: - `ConnectionHandler` - `EdgeHandlerConfig` - `HandleConfig` - `VertexHandlerConfig`
WalkthroughThis change removes the CURSOR enum from the constants module and replaces all its usages throughout the codebase with configurable cursor properties attached to handler configuration objects (EdgeHandlerConfig, HandleConfig, VertexHandlerConfig) and as an instance property in ConnectionHandler. The changelog is updated to reflect this breaking change. The update ensures that cursor styles for various interactive elements are now configurable rather than fixed, with the relevant cursor values relocated to the appropriate configuration objects or class properties. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Handler (Edge/Vertex/Connection)
participant Config (EdgeHandlerConfig/VertexHandlerConfig/HandleConfig)
User->>Handler: Interacts with UI element (e.g., edge, vertex, handle)
Handler->>Config: Retrieves cursor style property (e.g., cursorMovable)
Handler->>User: Sets cursor style according to config value
Assessment against linked issues
Possibly related PRs
📜 Recent review details Configuration used: CodeRabbit UI Reviewing files that changed from the base of the PR and between 6207f1e and 66348b6. 📒 Files selected for processing (9)
packages/core/src/view/handler/config.ts (1)packages/core/src/view/handler/ElbowEdgeHandler.ts (1) packages/core/src/view/handler/config.ts (1)packages/core/src/view/handler/VertexHandler.ts (1) packages/core/src/view/handler/config.ts (2)packages/core/src/view/plugins/SelectionHandler.ts (1) packages/core/src/view/handler/config.ts (2)packages/core/src/view/handler/EdgeHandler.ts (1) packages/core/src/view/handler/config.ts (2)⏰ Context from checks skipped due to timeout of 90000ms (4)
CHANGELOG.md (1)✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ Share 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (.coderabbit.yaml)
Documentation and Community
|
Sorry, something went wrong.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Previously, the cursors used in various places where define in the CURSOR enum, so their values wasn't configurable.
The cursors can now be configurable using global configuration objects or directly in the classes where they are used.
BREAKING CHANGES: the constants.CURSOR enum has been removed. The values are now configurable and have been moved to:
Notes
Covers #192
Closes #378
Impact on the size of the examples
Summary by CodeRabbit
Breaking Changes
Documentation