Adrian Hall
053a86c0d4
Do explicit imports for d3 instead of wildcards
2020-05-11 07:10:04 +01:00
Danny Shemesh
22dd50a047
Extracted out the commonly used line break regex
...
This commit extract the commonly used /br\s*\/?>/gi regex to common.js,
in order to keep the code more DRY.
2020-04-23 07:20:47 +03:00
Marc Faber
7f67435cb9
#1343 Add flowchart subroutine node shape
2020-04-10 00:14:41 +02:00
Adrian Hall
9d5303c59d
Prevent un-labelled edges that are left of the left-most vertex from being cut off the diagram
2020-04-02 15:29:12 +01:00
Marc Faber
d67e49400f
#684 Fix applying default class to flowchart nodes
2020-02-24 01:31:39 +01:00
Knut Sveidqvist
89c1853977
#1261 Removed calls to console.log
2020-02-21 09:50:04 +01:00
Knut Sveidqvist
f298c154e2
Merge branch 'develop' of github.com:mermaid-js/mermaid into develop
2020-02-05 19:40:18 +01:00
Knut Sveidqvist
822df37f8c
#1224 Possibility to style text color of nodes and subgraphs as well as apply classes to subgraphs
2020-02-05 19:39:50 +01:00
Marc Faber
a0e7789d50
#962 added color setting for default link style
2020-02-04 22:07:10 +01:00
Marc Faber
2dd4aa31e5
#962 moved "style from array" function to utils.js, added unit test
2020-02-04 00:24:50 +01:00
Marc Faber
c95adfaf74
#962 Set text color for flowchart link labels according to linkStyle definitions
2020-02-02 22:59:59 +01:00
Marc Faber
d2d4a24229
#487 Set text color for flowchart nodes according to style definitions
2020-01-24 01:24:47 +01:00
Marc Faber
c38f053294
#1212 Class definition is not applied to flowchart nodes with links
2020-01-19 18:10:14 +01:00
Marc Faber
5493fadc9e
#1200 Unify regex for finding <br> tags throughout mermaid
2020-01-13 22:04:47 +01:00
Marc Faber
ffbf9f265f
#1182 : remove "newDagreD3" switch from the flowchart renderer
2020-01-08 20:27:33 +01:00
Marc Faber
b3934c9788
#1152 add node spacing to flowchart configuration
2020-01-05 22:03:53 +01:00
Knut Sveidqvist
75e2abe242
Merge pull request #1166 from GDFaber/feature/flowchart_add_cylindric_shape
...
#1154 Flow diagram DB shape request
2020-01-01 00:24:56 -08:00
Knut Sveidqvist
2db8075e3f
Merge pull request #1163 from GDFaber/bug/891_make_link_clickable_on_the_entire_node
...
Bug/Clicking on a link only works directly on the node text
2019-12-31 07:58:47 -08:00
Marc Faber
bc59d015e6
#1154 Flow diagram DB shape request
2019-12-31 16:30:03 +01:00
Marc Faber
7ce0974767
#891 Clicking on a link only works directly on the node text
2019-12-26 15:38:53 +01:00
Gene Wood
3abd77a1e6
Extend the br
tag regex
...
This extends the `br` tag regex to accommodate an arbitrary amount of
any type of whitespace instead of a single space character, which holds
more closely to the HTML spec[1]
This extends the fix to #702 added in #1153
[1]: http://www.w3.org/TR/REC-xml/#sec-starttags
2019-12-23 08:02:11 -08:00
Marc Faber
608445e64f
#910 set correct position and style for edge labels when using linkStyle, #1088 handle multiline texts in edge labels when using linkStyle
2019-12-10 03:51:37 +01:00
Marc Faber
1f4be77662
Revert " #910 set correct position and style for edge labels when using linkStyle, #1088 handle multiline texts in edge labels when using linkStyle" - Sorry, forgot to push to a new branch.
...
This reverts commit 0deae4abf9
.
2019-12-10 03:48:12 +01:00
Marc Faber
0deae4abf9
#910 set correct position and style for edge labels when using linkStyle, #1088 handle multiline texts in edge labels when using linkStyle
2019-12-10 03:34:40 +01:00
Marc Faber
9a0df5afb0
#723 Add stadium shape for flowchart nodes
2019-12-08 16:51:47 +01:00
Knut Sveidqvist
d23ce9fb63
#935 Fix for stylink of links. Default theme colors are picked up and styling via themeCSS works
2019-12-08 10:10:03 +01:00
Christian Klemm
4254781391
Adjusted imports
2019-12-03 22:09:43 +01:00
Knut Sveidqvist
bea2e73b82
#1065 Updated dependency of dagre-d3 to unofficial release
2019-11-27 19:09:14 +01:00
Knut Sveidqvist
3f8f9f6711
#1055 Better selectors
2019-11-08 20:15:48 +01:00
Knut Sveidqvist
a5cc1e804b
#1031 Adding stricter code checks
2019-10-27 15:24:56 +01:00
Knut Sveidqvist
8f8638fb7c
#1029 Linting fixes
2019-10-24 19:46:42 +02:00
Knut Sveidqvist
d1c74070ab
#1029 Fix for issues after switching to master branch of dagre-d3
2019-10-24 19:33:13 +02:00
Pirate Praveen
ca5e60b38b
Use dagre-d3 master branch (for d3v5)
2019-10-21 22:46:20 +05:30
Kolja Markwardt
90fe015d68
#958 Cannot center-justify text in nodes
...
- assign text-align style to text node to allow aligning of node text
2019-10-15 16:02:11 +02:00
Knut Sveidqvist
554189908d
Merge pull request #970 from mearns/issue-530-hexagon
...
Add hex shape for flow charts
2019-10-08 21:43:10 +02:00
Brian Mearns
dcbcbf40a0
#530 Started adding some tests around how flowchart shapes are rendered in SVG
2019-10-04 22:38:27 -04:00
Brian Mearns
20b2866631
#530 Further encapsulation of common code
2019-10-04 21:21:00 -04:00
Brian Mearns
01fd54dd6f
#530 Encapsulate some redudant flow shape code
2019-10-02 22:51:12 -04:00
Brian Mearns
550f91aa68
#530 Better shaping of hexagon
...
The "corner" triangles are a fixed ratio to the height,
so the triangles will always be mathemtically similar.
2019-10-02 22:36:02 -04:00
Brian Mearns
b300a4decb
#530 Fit hexagon to width and height
...
The hexagon shape in flow chart now fits
the width and height independently, so it can better fit
large content without taking up too much space.
2019-10-02 22:23:30 -04:00
Brian Mearns
51e902cd36
Added the hex shape to the renderer, and support for it in the flow parser.
...
Need to work on properly sizing it.
2019-10-02 22:11:02 -04:00
Volkan Unsal
682faa4f9d
Add useMaxWidth to flowRenderer
2019-09-29 09:31:41 -04:00
knsv
34de31195f
#931 Aligning with code standard
2019-09-12 12:58:04 -07:00
knsv
e37f5a6eb2
#926 Applying the color styling on the label instead of the node
2019-09-08 02:56:06 -07:00
knsv
7b335fb62e
#901 Fixed the issue with multiple calls to bind the click functions. Also sanitized the tooltips so that no tags are allowed in them for ( #847 ).
2019-08-11 03:26:44 -07:00
knsv
f11d1a6fa1
#847 Better sanitizing of urls
2019-07-22 02:18:09 -07:00
Adam Wulf
03abeacea4
Added parallelograms.
2019-06-25 23:15:43 -05:00
Adam Wulf
24600355c8
Merge remote-tracking branch 'origin/master' into flow/trapezoid
2019-06-25 22:36:13 -05:00
Knut Sveidqvist
434a033411
Resolved an name change issue fom a merge
2019-06-11 08:22:55 -07:00
Knut Sveidqvist
0816591cf9
Resolved some merge conflicts
2019-06-11 08:20:12 -07:00