Mattéo Delabre
01344a991d
Add support for changing the length of edges
...
Resolves #637 , resolves #1495 .
The syntax for edges is extended to allow for extra
dashes/equals signs/dots (depending on the edge type). Each added
character increases the length of the edge by one rank level, as
follows:
Length | 1 | 2 | 3 |
------------------|:------:|:-------:|:--------:|
Normal | `---` | `----` | `-----` |
Normal with arrow | `-->` | `--->` | `---->` |
Thick | `===` | `====` | `=====` |
Thick with arrow | `==>` | `===>` | `====>` |
Dotted | `-.-` | `-..-` | `-...-` |
Dotted with arrow | `-.->` | `-..->` | `-...->` |
This features leverages the `minlen` property exposed by Dagre which was
not previously available when using Mermaid.
2020-08-14 00:15:26 +02:00
Knut Sveidqvist
36e421eb5f
Merge pull request #1586 from mermaid-js/1542_take_two
...
1542 take two
2020-07-30 08:58:56 +02:00
Knut Sveidqvist
f1836c281c
#1542 Fix for secirity config
2020-07-30 08:20:27 +02:00
Knut Sveidqvist
a4bf85b1b6
#1542 Making sure config and directives works for overriding theme variables using initialize call or directives + tests
2020-07-29 18:38:59 +02:00
Knut Sveidqvist
cf70678188
Merge branch 'develop' into feature/1460_add_link_target_to_flowchart_click
2020-07-28 13:21:31 +02:00
Marc Faber
d04d8c3a1d
#1460 Add link target option to flowchart click
2020-07-28 10:49:54 +02:00
chris moran
771bf78576
Fixed parsers to use the correct type name in close_directive
...
Added directive support to pie
(Refactored pie parsing to be a bit more clear)
Added more unit tests to pie
2020-07-27 13:24:23 -04:00
chris moran
c4ad95760a
Fixed a regression in sequence diagram parsing.
...
Added the parser as the first argument to parseDirective to support custom directive handling (for now delegated within mermaidAPI but should probably discriminate based on type for delegation)
2020-07-27 06:50:54 -04:00
chris moran
38d4b5be1a
Fixed an issue with flowchart rendering. Remember to render html, securityLevel='loose' must be set by the siteConfig. The default securityLevel as of now is 'strict'. This causes html to be url encoded.
2020-07-27 05:33:41 -04:00
Knut Sveidqvist
06d80032fe
#1578 Fetching updated configuration before use
2020-07-26 08:00:43 +02:00
Knut Sveidqvist
2af1f9a9d3
Fix for broken build, issue with config use in flowcahart and gantt diagram
2020-07-02 22:27:03 +02:00
Toan
28dcc781b4
Chart Node click event support key-path value for function callback
2020-06-13 17:41:52 +07:00
Toan
44675739a1
when window scroll, the tooltip show incorrect position coz its missing offset of window.scrollXY
2020-06-11 16:01:36 +07:00
Adrian Hall
053a86c0d4
Do explicit imports for d3 instead of wildcards
2020-05-11 07:10:04 +01:00
Knut Sveidqvist
215e930da4
#1295 Markers implmented, the gereric pattern and diagram specific for flowcharts.
2020-03-16 07:55:02 +01:00
Knut Sveidqvist
963a0ce6ef
#1295 Edges between subgraphs
2020-03-14 17:38:35 +01:00
Justin Greywolf
6d74c5663f
1169- break out getRows
...
Moved getRows function from `state/stateRenderer.js` and `state/shapes.js` into `common/common.js`. Broke out section into small one line functions for replacing line breaks, then moved the `sanitize` function from `utils.js` to this new module as there is shared functionality
2020-02-21 13:49:05 -08:00
Knut Sveidqvist
89c1853977
#1261 Removed calls to console.log
2020-02-21 09:50:04 +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
b1bfdec473
#1196 Keep flowchart node label text (if already defined) when a style is applied
2020-01-14 23:37:30 +01:00
Justin Greywolf
e6fbfcb1e8
1064 Adding tooltip and function calls to click evens in class diagrams
2020-01-02 11:06:29 -08:00
Knut Sveidqvist
4e6aad5115
#834 Using & as a separator for the multiple nodes
2020-01-02 18:52:50 +01:00
wfnuser
4eedeebd46
other/typos in flowDb
2019-12-24 16:14:42 +08:00
Knut Sveidqvist
5716d163ec
Merge branch 'develop' into other/1143_utilze_browser_console_object_better
2019-12-18 18:41:14 +01:00
Knut Sveidqvist
42ef035241
#834 Using space as separator, simplfifying the grammar some more, reomving some logging
2019-12-18 18:36:34 +01:00
Knut Sveidqvist
6598b1b10d
#1143 Adding support in grammar for multiple nodes in dependency declarations
2019-12-15 18:10:52 +01:00
Knut Sveidqvist
4ff4058244
#1142 Simplified arrows/edges in the grammar
2019-12-15 13:34:35 +01:00
Knut Sveidqvist
ab191abd5a
#903 Fix for broken build
2019-12-07 15:06:44 +01:00
Knut Sveidqvist
c2e5e94b37
#903 Allowing >,< and = characters in svg. Updating xss tests to handle both htmlLabels and non htmlLabels
2019-12-07 12:19:45 +01:00
Knut Sveidqvist
3f8f9f6711
#1055 Better selectors
2019-11-08 20:15:48 +01:00
Knut Sveidqvist
48ce7a9b78
#1023 Fix for tests
2019-11-07 19:19:44 +01:00
Knut Sveidqvist
09bf54f9af
#1038 Updated prefix for the internal dom id
2019-11-07 19:14:06 +01:00
Knut Sveidqvist
a5cc1e804b
#1031 Adding stricter code checks
2019-10-27 15:24:56 +01:00
knsv
f39e120952
#941 Fix for issue with directions iin flowchart
2019-09-19 13:56:41 -07:00
knsv
d8397f146b
#937 Handling direction keywords in node ids
2019-09-18 12:56:24 -07:00
knsv
34de31195f
#931 Aligning with code standard
2019-09-12 12:58:04 -07:00
knsv
21aa8c5f15
#922 Fix for click binding on nodes with ids starting with a number
2019-09-03 11:31:47 -07:00
knsv
2cb54293f8
Lint fixes
2019-09-01 02:18:00 -07:00
knsv
5610185050
#918 Removed som logging
2019-09-01 00:45:24 -07:00
knsv
699bd61045
#918 Fix for issue with nodes starting with a number in a subgraph
2019-09-01 00:44:48 -07:00
knsv
a48a306fe8
#914 Fix for issue identifying node wehen the id of the node starts with a digit
2019-08-27 12:16:11 -07:00
Knut Sveidqvist
4eda2aa36d
#900 Handling ids starting with a number and styling for other nodes as well
2019-08-16 12:38:34 +02:00
Knut Sveidqvist
a35892da4f
Fix for issue #895
2019-08-15 08:57:49 +02:00
Knut Sveidqvist
23b567e11b
#900 Fix for subgraph ids starting with a number
2019-08-14 20:00:06 +02: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
cf686c445c
Standard fixes
2019-07-22 05:23:03 -07:00
knsv
f11d1a6fa1
#847 Better sanitizing of urls
2019-07-22 02:18:09 -07:00
knsv
c33533082c
#847 Handling of embedded javascript in links
2019-07-21 07:39:36 -07:00
knsv
9c150eec4e
Linting fixes
2019-07-21 02:14:49 -07:00
knsv
c25a3cf1c1
#731 Issue with clicks in flowcharts. Replacing d3 with document.querySelect and addEventListener
2019-07-21 02:12:54 -07:00