Alois Klink
ef30283fe9
refactor: fix more type errors in kanbanItem
...
Fixes: 7401cb8f6a
2024-10-29 21:44:34 +09:00
Ashish Jain
dffaf9fa8f
fix for kanban section shape
2024-10-29 13:41:20 +01:00
Alois Klink
9168d5d1f4
refactor(types): fix some type errors in kanbanItem
...
Fixes: 7401cb8f6a
2024-10-29 21:14:51 +09:00
Alois Klink
f33ebfaf7a
refactor: fix broken generic on insertLabel()
...
Fixes: 7401cb8f6a
2024-10-29 21:14:48 +09:00
Alois Klink
054f929150
refactor: remove unused param from labelHelper()
...
Fixes: 7401cb8f6a
2024-10-29 21:14:40 +09:00
Michael Baudino
d752240efc
Fix a configuration example in gantt.md
...
According to the [config schema docs](https://mermaid.js.org/config/schema-docs/config-defs-gantt-diagram-config.html#tickinterval-constraints ), Gantt's `tickInterval` configuration must match the following regular expression, which does **not** allow any space:
```regexp
/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/
```
2024-10-29 13:09:54 +01:00
Knut Sveidqvist
f6c32b6da4
Merge branch 'develop' into fix/make-parse-error-on-invalid-shape
2024-10-29 10:45:50 +01:00
Knut Sveidqvist
75ca802b62
Merge branch 'develop' into update-class-diagram
2024-10-29 10:40:39 +01:00
yari-dewalt
5ae5a0cea3
Merge branch 'develop' into update-er-diagram and fix conflicts
2024-10-28 10:53:45 -07:00
yari-dewalt
b315d70af5
Merge branch 'develop' into update-class-diagram and fix conflicts
2024-10-28 10:32:19 -07:00
Alois Klink
5fabd414fb
fix: error mermaid.parse
on invalid shapes
...
Currently, invalid shapes cause an error when rendering, but not when
parsing. This confuses the Mermaid Live Editor, e.g. by not showing the
error message.
Instead, I've added an `isValidShape()` that validates if the shape is
valid at parse time. This only checks shapes using the new extended
shapes syntax. Currenlty, using `A(-this is an ellipse node-)` is broken
(see #5976 ) and also causes an invalid shape error at render time, but
I've ignored it in this PR, so it will continue pass at parse-time
(we have unit tests checking ellipse parsing).
See: https://github.com/mermaid-js/mermaid/issues/5976
2024-10-28 23:17:13 +09:00
Alois Klink
17e2f9e0d4
refactor: fix addVertex
type
parameter
...
I went through
`packages/mermaid/src/diagrams/flowchart/parser/flow.jison` and found
every possible value this `type` parameter could be.
2024-10-28 23:17:13 +09:00
Alois Klink
7fa8b35bdc
refactor: convert if-statements to switch..case
2024-10-28 23:17:13 +09:00
Knut Sveidqvist
e6ea4eae50
Fix for missing function
2024-10-28 14:29:06 +01:00
Knut Sveidqvist
7401cb8f6a
Merge branch 'develop' into knsv/5342-kanban
2024-10-28 14:22:10 +01:00
Sidharth Vinod
b5cd101d86
Merge branch 'develop' into refactor/improving-rendering-shape-types
2024-10-28 18:11:41 +05:30
Knut Sveidqvist
2c676b6222
Moving kanbanItem out of the shapes doc
2024-10-28 13:03:18 +01:00
Knut Sveidqvist
0af08276d2
#5232 Enabling handdrawn mode
2024-10-28 12:53:03 +01:00
Knut Sveidqvist
d790e353b0
#5432 Theme based text color for labels
2024-10-28 11:51:44 +01:00
Knut Sveidqvist
e07e9b9daf
Merge branch 'knsv/5342-kanban' of github.com:mermaid-js/mermaid into knsv/5342-kanban
2024-10-28 11:47:17 +01:00
Knut Sveidqvist
948ec4d1ce
#5342 Handing of wide section texts
2024-10-28 11:43:56 +01:00
autofix-ci[bot]
e62d268c89
[autofix.ci] apply automated fixes
2024-10-28 09:19:37 +00:00
Knut Sveidqvist
742ad7c130
Adding changeset and kanban in the docs sidenav
2024-10-28 10:03:42 +01:00
Knut Sveidqvist
56cc3728c5
End to end tests and docs
2024-10-25 15:40:58 +02:00
Knut Sveidqvist
fb86e5c689
Merge branch 'develop' into knsv/5342-kanban
2024-10-25 14:56:46 +02:00
yari-dewalt
01e5346004
Update handling of classes and add support for default class
2024-10-24 10:18:17 -07:00
Yari DeWalt
87fa698c79
Merge branch 'develop' into update-er-diagram
2024-10-23 12:07:27 -07:00
yari-dewalt
b49afeefc2
Cleanup
2024-10-23 12:06:59 -07:00
yari-dewalt
8ace44b428
Add fix for edge markers showing under node if handDrawn
2024-10-23 12:02:49 -07:00
yari-dewalt
39a6c308fb
Fix conflict with style statements
2024-10-23 12:01:08 -07:00
yari-dewalt
2771b14f65
Update tests
2024-10-23 12:00:21 -07:00
Jake Beamish
eddd8313c9
Fix code block typo
...
Previously, the h4 line "#### Using Dagre Layout with Classic Look:" was included at the bottom of the previous Example configuration code block. Now it renders as a h4
2024-10-23 15:03:36 +01:00
Alois Klink
f8746bee04
refactor: move MaybePromise
type to src/types.ts
...
Suggested-by: https://github.com/mermaid-js/mermaid/pull/5974#discussion_r1810562136
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com >
2024-10-22 21:49:23 +09:00
Alois Klink
bb97fdbd1e
refactor: use parseFontSize()
...
Handle `NaN` values by using `parseFontSize()`.
Suggested-by: https://github.com/mermaid-js/mermaid/pull/5974#discussion_r1810570967
2024-10-22 21:49:02 +09:00
Steph
6df1fa1a03
update taglines
2024-10-21 23:26:17 -07:00
yari-dewalt
fd6b875f87
Fix subgraph / cluster node width based off of label
2024-10-21 16:09:55 -07:00
yari-dewalt
64bc7f4bd9
Add fix for flipped edge markers
2024-10-21 15:37:24 -07:00
Yari DeWalt
75e796f183
Merge branch 'develop' into update-class-diagram
2024-10-21 15:36:29 -07:00
Alois Klink
6cc0132e0a
refactor(elk): add LabelData
type for layout-elk
...
I don't know what exactly the type does or is for, but I've tried to
type it to what it seems to be.
2024-10-21 22:23:36 +09:00
Alois Klink
4bc70b7325
refactor: use more standard types
...
See: https://github.com/mermaid-js/mermaid/pull/5974#discussion_r1806473749
See: https://github.com/mermaid-js/mermaid/pull/5974#discussion_r1808511738
Co-authored-by: saurabhg772244 <saurabh@mermaidchart.com >
2024-10-21 22:23:36 +09:00
Bryan
c828867852
add documentation
2024-10-19 17:50:00 +01:00
yari-dewalt
bfdd0f244d
Fix tests to work with new cssClasses attribute
2024-10-18 16:36:06 -07:00
Bryan
5fca47c5ec
Revert "run prettier"
...
This reverts commit 6d33d93b15
.
2024-10-18 21:30:10 +01:00
Bryan
4cd3f0a8bb
try implementing assert as if->throw
2024-10-18 21:21:15 +01:00
Bryan
73653c348d
remove import for assert
2024-10-18 21:12:55 +01:00
Bryan
0bc07f356d
add import for assert
2024-10-18 20:54:10 +01:00
Bryan
6d33d93b15
run prettier
2024-10-18 20:28:37 +01:00
Bryan
b602f67abe
Add bit count syntax to packet diagram
2024-10-18 20:05:42 +01:00
yari-dewalt
0e819ae050
Change cssClasses to use concatenated string instead of array to pick up css styles
2024-10-18 10:33:56 -07:00
yari-dewalt
74695d2e88
Fix undesired wrapping on notes
2024-10-18 10:11:36 -07:00