-
Notifications
You must be signed in to change notification settings - Fork 194
chore: add more checks in ts-support
#728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Use `RubberBandHandler` and some methods of Graph provided by some Graph mixins. In addition: - improve the JSDoc of `RubberBandHandler` - simplify types usage in ts-example and ts-example-without-defaults
WalkthroughThis pull request refines documentation and type usage across multiple packages. The documentation in the RubberBandHandler class has been enhanced for clarity by updating comments and default value definitions. Additionally, explicit TypeScript type assertions have been removed from query selector calls in two example files in favor of non-null assertion operators. In the TS support package, the import statement is updated to include additional entities, and new configuration code has been added for the rubberBandHandler plugin on the graph. Changes
Sequence Diagram(s)sequenceDiagram
participant Main
participant Document
participant Graph
participant RubberBandHandler
Main->>Document: querySelector('#graph-container')!
Main->>Graph: Instantiate Graph using container
Graph->>Graph: getPlugin(RubberBandHandler)
Graph->>RubberBandHandler: Configure (defaultOpacity = 50, fadeOut = true)
Main->>Graph: Call getAllConnectionConstraints(new CellState, flag)
Main->>Graph: Set cellsEditable = false
Main->>Graph: Call getFoldingImage(new CellState)
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Definitions (2)packages/ts-example/src/main.ts (2)
packages/ts-example-without-defaults/src/main.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (20)
✨ 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:
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 (
|
|
Use
RubberBandHandler
and some methods of Graph provided by some Graph mixins.In addition:
RubberBandHandler
Summary by CodeRabbit
New Features
Refactor