-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] develop from mermaid-js:develop #18
Conversation
Adding animations to flowchart edges also fixing bug with invisible edges
Reviewer's Guide by SourceryThis pull request implements animation support for flowchart edges in Mermaid. It introduces a new way to attach IDs to edges, define animation properties, and apply animations using both inline properties and class definitions. Sequence diagram for edge animation processingsequenceDiagram
participant Parser
participant FlowDB
participant Renderer
Parser->>FlowDB: Parse edge with ID (e1@-->)
FlowDB->>FlowDB: Extract metadata
FlowDB->>FlowDB: Apply animation properties
FlowDB->>Renderer: Pass edge with animation data
Renderer->>Renderer: Apply animation styles
Note over Renderer: Add CSS animation classes
Class diagram showing updated Edge types and metadataclassDiagram
class FlowEdge {
+string start
+string end
+string type
+string text
+string labelType
+string[] classes
+string id
+string animation
+boolean animate
}
class EdgeMetaData {
+string animation
+boolean animate
}
class Edge {
+string id
+string[] style
+boolean animate
+string animation
+string[] cssCompiledStyles
}
Edge <|-- FlowEdge
note for EdgeMetaData "New type for edge animation metadata"
note for Edge "Updated with animation properties"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 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 (
|
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
New Features:
fast
,slow
), and applying animations using class definitions.