question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`classDef default` does not apply

See original GitHub issue

According to the docs, I should be able to set the style of any otherwise-unstyled flowchart elements like this:

classDef default fill:#f9f,stroke:#333,stroke-width:4px;

However, it doesn’t seem to actually work.

Here’s an example in the Live Editor (based on the default sample):

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
bhrutledgecommented, Jul 6, 2019

Maybe this could be worked around via the node and edgePath classes that are already applied:

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

classDef node stroke-width:2px,fill:none,stroke:red
classDef edgePath stroke-width:2px,stroke-dasharray: 5, 5
Screen Shot 2019-07-06 at 7 03 27 AM

See also #724.

3reactions
stale[bot]commented, Jul 5, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Initialize Property Values - MATLAB & Simulink - MathWorks
MATLAB does not reevaluate the default expression unless the class definition is cleared from memory. Handle Objects as Default Property Values. When you...
Read more >
Case Class default apply method - scala - Stack Overflow
When you create a case class the Scala compiler will create a companion object with an apply and an unapply method for you,...
Read more >
9. Classes — Python 3.11.1 documentation
Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances...
Read more >
IXC344I - IBM
TRANSPORT CLASS DEFAULT ASSIGNED CLASS LENGTH MAXMSG GROUPS classname classln ... If the GROUP keyword was used with the DISPLAY XCF,CLASSDEF command, ...
Read more >
17 Adding a Class - ROOT - CERN
A class with the ClassDef macro has the ability to obtain a TClass with the IsA method. ... By default an object inheriting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found