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
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
Sidharth Vinod
555d4f2cdc
Fix spellings
2023-02-21 13:27:37 +05:30
Florian Kohrt
bfb8a75fca
Fix typos
2023-02-20 22:06:38 +01:00
Sidharth Vinod
14c15b221a
Minor cleanup
...
Co-authored-by: Per Brolin <per@mermaidchart.com>
2023-02-20 19:28:31 +05:30
pbrolin47
22b18a4320
Merge pull request #4113 from mermaid-js/3192_invisible_edges
...
Adding the ability to use invisible edges
2023-02-20 14:40:43 +01:00
pbrolin47
786023ffa6
Merge pull request #4110 from mermaid-js/sidv/splitDiagrams
...
splitDiagrams
2023-02-20 13:54:27 +01:00
Sidharth Vinod
68cdc759a7
Minor cleanup
...
Co-authored-by: Per Brolin <per@mermaidchart.com>
2023-02-20 17:53:07 +05:30
Knut Sveidqvist
b6cac3a431
#3192 Adding docs and visual test
2023-02-20 11:19:23 +01:00
Knut Sveidqvist
3a71618a49
#3192 Adding the ability to create invisible links in flowcharts(v2)
2023-02-20 11:08:25 +01:00
Sidharth Vinod
38b2cbc3d1
chore: Update RunOptions docs
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2023-02-20 13:10:54 +05:30
Sidharth Vinod
2272af38b9
Merge branch 'release/10.0.0' into sidv/splitDiagrams
...
* release/10.0.0:
Cleanup
2023-02-20 01:32:12 +05:30
Sidharth Vinod
40b5f868de
Cleanup
2023-02-20 01:19:07 +05:30
Sidharth Vinod
c9c4320f89
fix unit tests
2023-02-20 00:14:39 +05:30
Sidharth Vinod
543e4de0c8
chore: Remove lazyLoadedDiagrams from config
2023-02-19 23:55:22 +05:30
Sidharth Vinod
8174c7ca16
Cleanup
2023-02-19 22:42:26 +05:30
Sidharth Vinod
014ab85420
Cleanup
2023-02-19 22:41:44 +05:30
Sidharth Vinod
c7d9103ede
Merge pull request #4107 from rodja/develop
...
add links to NiceGUI integration
2023-02-19 22:12:43 +05:30
Sidharth Vinod
638362baea
Merge branch 'release/10.0.0' into sidv/splitDiagrams
...
* release/10.0.0: (333 commits)
10.0.0-rc.3
Export more types
no side effects
10.0.0-rc.2
skip failing elk test
Cleanup
Update docs
fix(#3406 , #3394 ): Remove init & initThrowsErrors
chore: Rename lazy loaded diagram definitions
Skip flowchart-elk failing test
Fix docs
fix Server
Fix lint
Remove Readme
Fix E2E Tests
Fix tests
feat: Break render and parse types
chore: Remove all non async render/parse/init
Remove CJS builds from docs
chore: Remove cjs from build
...
2023-02-19 20:18:26 +05:30
Sidharth Vinod
e22171c5bc
10.0.0-rc.3
2023-02-19 20:07:07 +05:30
Sidharth Vinod
77207e0452
Export more types
2023-02-19 20:04:46 +05:30
Sidharth Vinod
4a721a2d25
no side effects
2023-02-19 18:59:08 +05:30