Skip to content
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

Customizing rough.js options by diagram or shape #6153

Open
noamross opened this issue Dec 27, 2024 · 1 comment
Open

Customizing rough.js options by diagram or shape #6153

noamross opened this issue Dec 27, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@noamross
Copy link

Proposal

In would be great if Mermaid.js could add the ability to modify rough.js options for diagrams using look: handDrawn, so as to customize the hand-drawn look, especially if one if matching diagrams with other visualization produced with rough.js. Options could be set at both the shape and the diagram level.

Example

At the shape level, one could add options using the new flexible shape syntax, perhaps passing all the rough.js options as an object:

A@{ shape: rect, label: "Start", roughjs: {fillStyle: "cross-hatch", roughness: 2.0}}

At the diagram level, one could have a roughjs: configuration to set options.

Ideally it would be possible to set rough.js options separately for nodes or connectors, or in general in a CSS-like way so that one could set them for specific shape or connector types.

Screenshots

No response

@noamross noamross added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Dec 27, 2024
@tamaro-skaljic
Copy link

Is related to mermaid-js/mermaid-live-editor#1457, #1886 and #2216.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@noamross @tamaro-skaljic and others