Knut Sveidqvist
5d536b9973
Adding documentation for markdown strings
2023-04-03 14:41:13 +02:00
Knut Sveidqvist
917a54f3cd
Merge branch 'develop' into 4220-string-synax-and-features
2023-04-03 12:31:56 +02:00
Knut Sveidqvist
471c842a58
Adding rendering tests and unit tests
2023-04-03 12:12:51 +02:00
Knut Sveidqvist
99f65813a1
Syntax for markdown strings is a single backtick.
2023-04-03 10:43:15 +02:00
Remco Haszing
da7725f38e
Merge branch 'develop' into fix-node16-module-resolution
2023-04-01 12:05:19 +02:00
Knut Sveidqvist
057c9e4b81
Merge branch 'develop' into feature/1618_repeating_tasks
2023-03-31 08:42:10 +02:00
Knut Sveidqvist
c4e4efd4b8
Merge pull request #4258 from mermaid-js/sidv/fix/4256
...
fix(#4256 ): Keep error diagram on screen
2023-03-31 08:34:53 +02:00
Knut Sveidqvist
da066553bd
Merge pull request #4257 from mermaid-js/sidv/fix/4137
...
fix(#4137 ): Cleanup comments before parsing
2023-03-31 08:32:55 +02:00
Sidharth Vinod
006da82470
fix: Remove comment line completely
2023-03-31 00:35:56 +05:30
Sidharth Vinod
1945a62990
fix: trimStart to text
2023-03-31 00:25:33 +05:30
Sidharth Vinod
d16894daf4
test: add space before init
2023-03-31 00:18:53 +05:30
Justin Greywolf
e357bbee42
Refactor to consolidate shared svgDraw components
2023-03-30 11:04:19 -07:00
Sidharth Vinod
46ab6f46f2
fix( #4256 ): Keep error diagram on screen
2023-03-30 23:09:46 +05:30
Sidharth Vinod
48d267c6dc
fix( #4137 ): Cleanup comments before parsing
2023-03-30 22:08:50 +05:30
Steph
35366f79ac
add announcements page content
2023-03-29 14:48:09 -07:00
Steph
4c0980629c
add blog page content
2023-03-29 14:46:19 -07:00
Steph
8bd2c0f272
create announcements and blog pages
2023-03-29 14:27:04 -07:00
Steph
2896865163
add latest news section
2023-03-29 14:23:44 -07:00
Sidharth Vinod
a49cdabd6c
Add Slack invite link
2023-03-29 21:50:15 +05:30
Remco Haszing
2dd6329872
Define and export the Mermaid type
...
This represents the type of the default export. This is useful when it’s
being passed around or declared as a global.
2023-03-29 16:55:58 +02:00
Knut Sveidqvist
507a518a91
Bugfix for port selection when using diamonds in elk layout of flowcharts
2023-03-29 16:17:59 +02:00
Knut Sveidqvist
4caf7d7c7b
Adding support for markdown string in flowchart-elk
2023-03-29 16:01:08 +02:00
Knut Sveidqvist
89eec225ce
Merge branch 'develop' into 4220-string-synax-and-features
2023-03-29 09:34:49 +02:00
Knut Sveidqvist
cbc2df1ff6
Merge branch 'develop' into feature/1618_repeating_tasks
2023-03-29 09:23:18 +02:00
Knut Sveidqvist
e4a2c74b1b
Merge pull request #4247 from kshitijsaksena/bug/4137_fix_comment_bug
...
Updated render to remove comments from text
2023-03-28 16:26:54 +02:00
Knut Sveidqvist
63160293c7
Updating support for the new type of strings for flowcharts-v2
2023-03-28 15:28:52 +02:00
PIRADATA
022e6670d0
docs: fix hexagon node flowchart code example
...
Use `mermaid-example` instead of `mmd` so that Mermaid formats
the code properly.
2023-03-25 20:13:04 +00:00
Kshitij
e3760d1709
Fixed regex bug
2023-03-25 20:13:30 +05:30
Kshitij
0475591fb6
Updated render to remove comments from text
2023-03-25 15:46:52 +05:30
Jeremy Funk
ba1c5dc6c7
Change to using display mode yaml
2023-03-25 01:56:50 +01:00
Jeremy Funk
2f8c571a5c
Fix unit test
2023-03-24 00:37:25 +01:00
Jeremy Funk
a70b3a881d
Add comment
2023-03-24 00:22:52 +01:00
Jeremy Funk
950f560d81
Refactor
2023-03-24 00:20:36 +01:00
Jeremy Funk
fd9680a050
Fix bug
2023-03-24 00:18:52 +01:00
Jeremy Funk
2d815e9626
Add documentation
2023-03-24 00:09:06 +01:00
Jeremy Funk
8c0550b2b7
Code refactoring, add e2e test
2023-03-23 23:45:59 +01:00
Jeremy Funk
f054609e02
Add test, fix typo
2023-03-23 22:58:46 +01:00
Jeremy Funk
45c0c5fee0
Bugfix
2023-03-23 22:54:58 +01:00
Jeremy Funk
a535fe1679
Bugfixes, refactor, add compact
2023-03-23 22:38:04 +01:00
Alois Klink
1184fce148
Merge pull request #4237 from xuanxu/patch-1
...
Fix typos in timeline docs
2023-03-23 20:00:39 +00:00
Juanjo Bazán
6cba2ea02d
docs: fix typos in timeline.md
2023-03-23 19:46:17 +00:00
Michael Vorburger ⛑️
3add711c55
docs: Remove repeated phrase
2023-03-23 19:42:33 +00:00
Jeremy Funk
b3b7108d59
Implement basic repeating tasks
2023-03-22 23:15:54 +01:00
Knut Sveidqvist
fd9ad95346
#4220 Handling paragraphs and html labels with classes in mindmaps.
2023-03-22 18:41:31 +01:00
Knut Sveidqvist
a1c50b8079
#4220 Parsing the text as markdown and rendering accordingly
2023-03-20 14:15:26 +01:00
Remco Haszing
f3bebf25ea
Merge branch 'develop' into fix-node16-module-resolution
2023-03-17 20:52:50 +01:00
Remco Haszing
8c69ecd5ac
Update @types/lodash-es
...
This adds support for the TypeScript `"moduleResolution": "node16"`.
2023-03-17 12:26:41 +01:00
Kazuki Tsunemi
b725b69fda
Add package of class diagrams to doc
2023-03-17 14:47:32 +09:00
Steph
b56c8a2a7a
fix favicon resolution
2023-03-16 08:13:10 -07:00
Steph
d18dff65e1
add hover effect to mc icon and update cspell
2023-03-16 08:12:53 -07:00
Steph
2dc71377dc
add team member
2023-03-16 08:12:42 -07:00
Steph
89b9868870
update cards
2023-03-16 08:11:29 -07:00
Steph
b232f20169
add mermaid chart logo and link to navbar
2023-03-16 08:11:03 -07:00
Kazuki Tsunemi
434961b44a
Implement rendering logic
2023-03-15 13:26:51 +09:00
Kazuki Tsunemi
75502d076e
Implement database for namespace data
2023-03-15 12:43:21 +09:00
Kazuki Tsunemi
4017bb3c49
Implement namespace parser
2023-03-15 12:18:52 +09:00
Kazuki Tsunemi
c1df62638d
class body grammer apply to class stetement only
2023-03-15 12:05:57 +09:00
Chuck
ddd245de71
typo fix
2023-03-14 20:35:39 +01:00
Knut Sveidqvist
853d9b7f98
#4220 Create text utility functions handling new lines and applying them on mindmap
2023-03-14 13:52:20 +01:00
renovate[bot]
f3a9f81bfb
fix(deps): update all non-major dependencies
2023-03-13 09:45:30 +00:00
Remco Haszing
fc80ba66d2
Fix import extensions
2023-03-11 15:27:16 +01:00
Remco Haszing
fd013286f6
Fix vue import error
2023-03-11 15:07:12 +01:00
Remco Haszing
b7d31adda4
Support node16 module resolution
...
The `node16` module resolution requires imports to use the `.js` file
extension in type definitions.
`@rollup/plugin-typescript` is needed to make this work with the Vite
setup used by Mermaid.
The module option for Mermaid internally is set to `nodenext`. This is
needed to support `.json` imports. Note that setting `module` to
`node16` or `nodenext` implies a matching `moduleResolution` value.
2023-03-11 14:54:21 +01:00
Sidharth Vinod
f75bd397f8
Merge pull request #4209 from RobertWeinmeister/doc/dokuwiki_plugin
...
Updated DokuWiki plugin for Mermaid integration
2023-03-11 01:20:06 +05:30
Sidharth Vinod
f70d52510a
Merge pull request #4210 from andrew-clarkson/patch-1
...
v smol fixes while reading thru docs
2023-03-11 01:18:56 +05:30
Andrew Clarkson
708633f639
Remove duplication in "A hexagon node"
2023-03-10 13:25:14 -05:00
Andrew Clarkson
2e174bb3b6
v smol fixes while reading thru docs
2023-03-10 13:12:21 -05:00
Robert Weinmeister
160fe0f971
Updated DokuWiki plugin for Mermaid integration
...
The plugin Mermaid for DokuWiki replaces the no longer supported plugin flowcharts.
2023-03-10 10:05:59 +01:00
Matthias
a17463307b
Clean up list of ignored links
...
The removed links work again.
2023-03-08 21:30:12 +01:00
Sidharth Vinod
141d38b4e7
Merge pull request #4181 from ischanx/fix-getbbox-cache
...
fix(squence): getBBox() returns zero
2023-03-07 11:16:42 +05:30
Sidharth Vinod
98af37f09f
Merge pull request #4183 from mermaid-js/sidv/fix/1066
...
fix(#1066 ): Return true if parse is success.
2023-03-07 11:16:25 +05:30
Sidharth Vinod
993a19e15b
Merge branch 'develop' into sidv/fix/1066
...
* develop:
ci(e2e): skip caching in actions/setup-node
chore: add default entry to exports
Fix: add require entry in package.json
2023-03-07 09:39:10 +05:30
Sidharth Vinod
533830172c
Add UMD back
2023-03-07 09:38:51 +05:30
Pedro Reyes
878c9f1d9d
Add documentation for exposed detectType function
2023-03-06 19:32:34 -03:00
Pedro Reyes
8ebd550e0b
Merge branch 'mermaid-js:develop' into feature/4156_expose_detectType
2023-03-06 19:29:59 -03:00
Sidharth Vinod
6b5221e465
Merge pull request #4164 from lceconi/patch-1
...
Fix: add require entry in package.json
2023-03-06 18:00:37 +05:30
Laura Ceconi
8f0cb695e7
chore: add default entry to exports
2023-03-06 12:15:22 +01:00
Sidharth Vinod
1913aad03f
Merge branch 'develop' into sidv/fix/1066
...
* develop:
fix(deps): update all non-major dependencies
chore(deps): update all non-major dependencies
Update Diagram.ts
Update Diagram.ts
feat: added internal label
feat: improve documentation
make clearer
fix: invalid url and generate docs
Update integrations.md to include Mermaid Flow
feat: expose the diagram api
fixup! fixup! Move pie outerStrokeWidth to theme variables, update docs
fixup! Move pie outerStrokeWidth to theme variables, update docs
Move pie outerStrokeWidth to theme variables, update docs
fixup! fixup! feat(pie): adding outer border, text position options
fixup! feat(pie): adding outer border, text position options
Update packages/mermaid/src/diagrams/pie/pieRenderer.js
feat(pie): adding outer border, text position options
2023-03-06 14:04:00 +05:30
Sidharth Vinod
b80da0daa1
Merge pull request #4174 from ted-marozzi/feature/4172_expose_diagram_api
...
feat: expose the diagram api
2023-03-06 14:00:02 +05:30
renovate[bot]
e9d49e6b98
fix(deps): update all non-major dependencies
2023-03-06 06:25:39 +00:00
Ted Marozzi
72c94b6e6e
Update Diagram.ts
2023-03-06 10:19:06 +11:00
Ted Marozzi
44d806e7f5
Update Diagram.ts
2023-03-06 10:17:43 +11:00
Pedro Reyes
526e8fa1ad
Expose detectType function
2023-03-05 15:55:54 -03:00
Ted Marozzi
969088187c
feat: added internal label
2023-03-06 05:28:34 +11:00
Ted Marozzi
649e6820cc
feat: improve documentation
2023-03-06 05:18:33 +11:00
Ted Marozzi
d65d4fc39f
fix: invalid url and generate docs
2023-03-06 04:44:47 +11:00
Sidharth Vinod
55ebfadb32
Update packages/mermaid/src/mermaidAPI.ts
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-03-05 11:19:40 +05:30
Ted Marozzi
c5a5a22b72
Update integrations.md to include Mermaid Flow
...
the interative visual mermaid editor!
2023-03-05 14:33:46 +11:00
Sidharth Vinod
ad52d7d823
Merge pull request #4145 from Billiam/feature/move-pie-labels
...
Pie: Adding outer border, text position options
2023-03-05 00:33:15 +05:30
Sidharth Vinod
43762c4d7f
fix( #1066 ): Return true if parse is success.
2023-03-05 00:22:02 +05:30
ischanx
4d1d1c36de
fix(squence): getBBox() returns zero
2023-03-04 00:06:03 +08:00
Knut Sveidqvist
20298d243a
v10.0.2
2023-03-02 13:45:56 +01:00
Ted Marozzi
51c6462f1d
feat: expose the diagram api
2023-03-02 19:17:14 +11:00
Sidharth Vinod
6f3077c856
fix: dayjs import extension
2023-03-01 23:16:24 +05:30
Knut Sveidqvist
4a9d96aaba
Setting version to 10.0.1
2023-03-01 14:04:03 +01:00
Knut Sveidqvist
a65fb3b979
#4168 Adding the correct offset for the edges
2023-03-01 13:38:26 +01:00
Knut Sveidqvist
c0dba713c5
Updated import of cytoscape for consistent behavior
2023-03-01 09:29:59 +01:00
Billiam
c3064f396c
fixup! Move pie outerStrokeWidth to theme variables, update docs
2023-02-28 13:44:09 -06:00
Billiam
82f5b4ca39
Move pie outerStrokeWidth to theme variables, update docs
2023-02-28 13:27:09 -06:00
Laura Ceconi
73ce499863
Fix: add require entry in package.json
2023-02-28 18:53:03 +01:00
Sidharth Vinod
807e1f303d
Use cytoscape esm
2023-02-28 20:40:56 +05:30
Sidharth Vinod
65f5f9dc45
Revert "chore: Defer elk loading"
...
This reverts commit 037504785c
.
2023-02-28 20:39:06 +05:30
Sidharth Vinod
b8b8c4740a
Revert "Split cytoscape"
...
This reverts commit f81f9f7c95
.
2023-02-28 20:31:03 +05:30
Sidharth Vinod
f8f7d94d5a
fix: Class with members and styles
2023-02-28 19:34:54 +05:30
Knut Sveidqvist
fda0c8d0a9
Merge branch 'develop' into sidv/fix4157
2023-02-28 13:20:37 +01:00
Knut Sveidqvist
b932cd0930
Merge pull request #4128 from kshitijsaksena/bug/3949_erdiagram_attribute_comment
...
Added grammar to skip comment in attribute block
2023-02-28 13:14:50 +01:00
Sidharth Vinod
1ab3ed1a1a
chore: Add vitest imports
2023-02-28 16:58:41 +05:30
Sidharth Vinod
1981f12976
chore: Fix snapshots
2023-02-28 16:58:04 +05:30
Sidharth Vinod
733967f65a
fix #4157 : Inject only fontFamily without replacing themeVariables
2023-02-28 16:55:25 +05:30
Sidharth Vinod
56d27d555b
Merge branch 'sidv/fixRunAsync' of https://github.com/mermaid-js/mermaid into sidv/fixRunAsync
...
* 'sidv/fixRunAsync' of https://github.com/mermaid-js/mermaid :
Update packages/mermaid/src/mermaid.ts
2023-02-28 16:49:02 +05:30
Sidharth Vinod
7cee8cb6dc
Merge branch 'develop' into sidv/fixRunAsync
...
* develop: (23 commits)
Fix test
refactor(deps): replace `moment` with `dayjs`
test(gantt): test daylight savings in ganttdb
Update .lycheeignore
chore: dagre-d3-es@7.0.9
chore: Add tsdoc for registerLazyLoadedDiagrams
feat: Ensure proper detection for flowcharts
fix: Class label not visible if class is already defined
Update import
fix TS errors
fix TS errors
feat: Match timeline section width to tasks
chore: TimelineRenderer in TS
Fix types
fix: Detector order
Lint
Cleanup nodes.js
docs: Update classdiagram docs
classLabel tests
Formatting
...
2023-02-28 16:48:54 +05:30
Knut Sveidqvist
c91fa192aa
Update packages/mermaid/src/mermaid.ts
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-02-28 12:14:35 +01:00
Knut Sveidqvist
3f93edaaf3
Merge pull request #4086 from sidharthv96/sidv/classDiagramLabels
...
feat: Add support for classDiagram labels
2023-02-28 12:03:22 +01:00
Knut Sveidqvist
0bed5d717b
Merge pull request #4126 from mermaid-js/sidv/timelineSectionWidth
...
💄 section width now covers all tasks - Timeline
2023-02-28 11:59:14 +01:00
Knut Sveidqvist
1b56071eb3
Merge pull request #4124 from mermaid-js/sidv/fixDetectorOrder
...
fix: Detector order
2023-02-28 11:49:08 +01:00
Sidharth Vinod
9b2f503dc7
Merge branch 'develop' into sidv/classDiagramLabels
...
* develop:
refactor(deps): replace `moment` with `dayjs`
test(gantt): test daylight savings in ganttdb
Update .lycheeignore
chore: dagre-d3-es@7.0.9
Update docs
Doc (typo): remove duplicate "be"
💄 section width now covers all tasks
2023-02-28 14:20:11 +05:30
Alois Klink
a5db04b01c
refactor(deps): replace `moment` with `dayjs`
...
Replace Mermaid's dependency on `moment` with `dayjs`.
[Moment is now in maintenance mode][1], and they don't recommend
using it.
[Dayjs][2] has almost exactly the same API as moment, and is still
curently being maintained. Unlike moment, dayjs objects are immutable,
which makes our life much easier, but we need to do
`a = a.add(1, "day")` instead of just `a.add(1, "day")`.
We can't use `dayjs.duration`, because unlike `moment.duration`,
[dayjs durations always degrade to ms][3].
This causes issues with daylight savings, since it assumes that each
day is 24 hours, when some days have 23/25 hours with daylight savings.
(it also assumes that each month is 30 days).
However, `dayjs.add(1, "d");` correctly adds 1 days, even when that
day is only 23 hours long, so we can use that instead.
[1]: https://momentjs.com/docs/#/-project-status/
[2]: https://day.js.org/
[3]: https://day.js.org/docs/en/durations/durations
2023-02-26 22:31:12 +00:00
Alois Klink
06640aba06
test(gantt): test daylight savings in ganttdb
...
Add a quick test that ensures `ganttDb` correctly adds `1d` (1 day),
even on days with 25 hours.
This test only runs if the test PC has the TZ='America/Los_Angeles'
set (California has daylight savings).
I've added a test to the GitHub Actions `test.yml` action too for this.
It should only add about 5 seconds to each test, so it isn't too bad.
2023-02-26 06:43:14 +00:00
Billiam
b079fb4710
fixup! feat(pie): adding outer border, text position options
2023-02-25 15:43:16 -06:00
Billiam
a2855931d2
Update packages/mermaid/src/diagrams/pie/pieRenderer.js
...
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
2023-02-24 22:21:51 -06:00
Sidharth Vinod
fa8a887ae1
chore: dagre-d3-es@7.0.9
2023-02-25 08:56:18 +05:30
Billiam
6e4e529af2
feat(pie): adding outer border, text position options
2023-02-24 18:56:29 -06:00
Sidharth Vinod
275a54a562
core: Fix render tsdoc
...
Co-authored-by: Dmitry Stratiychuk <dmstrati@microsoft.com>
2023-02-24 23:10:01 +05:30
Sidharth Vinod
1bace23cea
Merge branch 'develop' into sidv/fixRunAsync
...
* develop:
Update docs
fix: fix exports
Doc (typo): remove duplicate "be"
💄 section width now covers all tasks
2023-02-24 20:54:55 +05:30
Sidharth Vinod
f62c4831ad
Merge pull request #4074 from l2fprod/feature/user_journey_expand_section
...
💄 section width now covers all tasks
2023-02-24 20:00:17 +05:30
Sidharth Vinod
7b4ce7c6ea
chore: Add tsdoc for registerLazyLoadedDiagrams
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-02-24 17:32:39 +05:30
Sidharth Vinod
dda0d00fb9
Merge branch 'develop' into sidv/fixDetectorOrder
...
* develop:
Update docs
fix Lint
Update CHANGELOG.md
Update CHANGELOG.md
fix: fix exports
Doc (typo): remove duplicate "be"
Fix readme link
Regenerate mermaid docs
Add deepdwn to cspell
Add Deepdwn to native integrations list
2023-02-24 17:27:47 +05:30
Sidharth Vinod
4bf5c9f3d8
feat: Ensure proper detection for flowcharts
2023-02-24 17:27:24 +05:30
Sidharth Vinod
19e5ccfdda
Merge pull request #4133 from Julez404/patch-1
...
Doc (typo): remove duplicate "be"
2023-02-24 14:00:20 +05:30
Sidharth Vinod
b13707fa7b
fix: Class label not visible if class is already defined
2023-02-24 13:46:56 +05:30
Sidharth Vinod
716a4d2cbc
Update import
2023-02-24 13:29:34 +05:30
Sidharth Vinod
3b2d55efec
Merge branch 'develop' into sidv/classDiagramLabels
...
* develop: (85 commits)
fix Lint
Update CHANGELOG.md
Update CHANGELOG.md
fix: fix exports
Fix readme link
Regenerate mermaid docs
Add deepdwn to cspell
Add Deepdwn to native integrations list
docs: Fix changelog
docs: v10 breaking changes
Remove `null` from diagrams before render
fix docs diagram
Updated version
Minor cleanup to trigger build.
Fix spellings
Wrap option working in test case
Fix typos
Minor cleanup
Removed the deprecated use of mindmap in Demo
Minor cleanup
...
2023-02-24 13:28:28 +05:30
Sidharth Vinod
0206ff540a
fix( #4140 ): Deprecate mermaidAPI.render
2023-02-24 12:20:31 +05:30
Sidharth Vinod
1e5d9ae1f4
fix( #4140 ): Remove direct usage of mermaidAPI.render
2023-02-24 12:15:55 +05:30
Mr.Hope
f8abc9c6d5
fix: fix exports
...
"types" import should always be first
2023-02-23 15:20:17 +08:00
Yoshi404
ef20e0b77a
Doc (typo): remove duplicate "be"
2023-02-22 22:34:30 +01:00
Kshitij
285a7448ae
Added grammar to skipcomment in attribute block
2023-02-22 08:36:44 +05:30
Billiam
fd6ce89933
Add Deepdwn to native integrations list
2023-02-21 20:56:26 -06:00
Sidharth Vinod
c8e351c2bb
fix TS errors
2023-02-22 02:15:15 +05:30
Sidharth Vinod
a59904cf16
fix TS errors
2023-02-22 02:14:16 +05:30
Sidharth Vinod
df36968ec8
feat: Match timeline section width to tasks
2023-02-22 02:10:35 +05:30
Sidharth Vinod
2ab1e15b86
chore: TimelineRenderer in TS
2023-02-22 02:09:14 +05:30
Sidharth Vinod
eca4163363
Fix types
2023-02-21 23:24:11 +05:30
Sidharth Vinod
1ac219282b
fix: Detector order
2023-02-21 23:00:03 +05:30
Sidharth Vinod
0df8c149f9
Merge branch 'master' into develop
...
* master:
docs: Fix changelog
docs: v10 breaking changes
Remove `null` from diagrams before render
fix docs diagram
2023-02-21 21:40:29 +05:30
Sidharth Vinod
b868777184
docs: v10 breaking changes
2023-02-21 21:35:54 +05:30
Sidharth Vinod
fe2ef5e0c6
Remove `null` from diagrams before render
2023-02-21 16:33:42 +05:30
Sidharth Vinod
ac21fe2d5c
fix docs diagram
2023-02-21 16:25:18 +05:30
Per Brolin
6b251de227
Merge branch 'master' into develop
2023-02-21 10:29:21 +01:00
Per Brolin
3b25cd3238
Updated version
2023-02-21 10:25:02 +01:00