refactor: migrate the DragSource story to TypeScript#860
Conversation
Ease the maintenance and detect errors earlier. In addition, export the `DragHandler` type that is part of the API and that wasn't available outside maxGraph.
WalkthroughThe changes centralize the definition of the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DragSource
participant DropHandler
participant Graph
User->>DragSource: Initiates drag-and-drop
DragSource->>DropHandler: Calls drop handler with (graph, event, cell, x?, y?)
DropHandler->>Graph: Processes drop event
Graph-->>DropHandler: Updates graph state
DropHandler-->>DragSource: Returns control
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (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. 🪧 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 (
|
|



Ease the maintenance and detect errors earlier.
In addition, export the
DragHandlertype that is part of the API and that wasn't available outside maxGraph.Summary by CodeRabbit
Refactor
Style
Tests