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
Alois Klink
16a5fc05d6
refactor: remove some any
types from render()
...
This let's us confirm that the types we're passing to `insertNode()` are
valid.
2024-10-18 01:51:53 +09:00
Alois Klink
62fd359c0e
refactor: convert shapes/util.js
to TypeScript
...
Convert the
`packages/mermaid/src/rendering-util/rendering-elements/shapes/util.js`
file to TypeScript at:
`packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts`.
2024-10-18 01:51:53 +09:00
Alois Klink
b0f4ace3a1
refactor: convert rendering-elements/nodes
to TS
...
Convert the
`packages/mermaid/src/rendering-util/rendering-elements/nodes.js`
file to TypeScript at
`packages/mermaid/src/rendering-util/rendering-elements/nodes.ts`
2024-10-18 01:51:53 +09:00
Alois Klink
9afb181d06
refactor: correct shapes types
...
All of the shapes in
`packages/mermaid/src/rendering-util/rendering-elements/shapes/` use
`D3.Selection`s as input parameters and as return parameters.
Although, for some reason, passing them to roughjs seems to work?
2024-10-17 22:29:38 +09:00
Alois Klink
cfe7cce41d
refactor: improve types of shapes
...
Instead of being a `Record<string, ShapeHandler>`, the type now knows
every key in the variable.
2024-10-17 18:59:43 +09:00
Sidharth Vinod
b45224755e
Merge branch 'develop' into sidv/autoGenerateShapeDocs
2024-10-09 13:41:43 +05:30
Sidharth Vinod
14524e1b0e
docs: Optimise document generation
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2024-10-09 13:39:06 +05:30
Sidharth Vinod
efa47e3176
fix: Docs vitepress build
2024-10-09 13:18:01 +05:30
Sidharth Vinod
1bc45405e0
chore: Generate shape doc before verification
2024-10-09 13:18:01 +05:30
Sidharth Vinod
3720e1a894
docs: Auto generate shape docs
...
Not keen on how it's currently run, open to suggestions on better ways.
2024-10-09 13:18:00 +05:30
Alois Klink
2506c29f6b
Merge pull request #5937 from mermaid-js/saurabh/icon-shape-style-fix
...
Fix icon shape color for colored icons.
2024-10-09 07:47:34 +00:00
Saurabh Gore
3c5a19d297
Merge branch 'develop' into saurabh/icon-shape-style-fix
2024-10-09 11:12:56 +05:30
saurabhg772244
a98290a6e2
remove doc for icon shape
2024-10-09 11:08:27 +05:30
saurabhg772244
4062813d44
Added docs for icon-shape
2024-10-08 17:45:53 +05:30
Sidharth Vinod
29b9d3069b
Merge branch 'develop' into sidv/refactorShapes
2024-10-08 16:15:34 +05:30
Sidharth Vinod
2f65429aa4
chore: Rollback dompurify update range
2024-10-08 15:01:11 +05:30
renovate[bot]
1c6304b3fb
chore(deps): update all patch dependencies
2024-10-08 09:11:33 +00:00
Sidharth Vinod
f99e2c9366
fix: Add internalAliases
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2024-10-08 13:25:00 +05:30
Sidharth Vinod
51be99c9de
fix: Remove duplicates, add documentation, rename legacyAlias
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2024-10-08 13:01:31 +05:30
saurabhg772244
0b8f27e1d2
Updated icon shape to use css color style instead of stroke
2024-10-07 15:52:12 +05:30
Remco Haszing
72d60d2633
Fix TypeScript dependencies
...
The Mermaid type definitions depend on `@types/d3` and
`@types/dompurify`. Without these dependencies, the Mermaid types cause
a type error for users.
2024-10-04 17:19:04 +02:00
Sidharth Vinod
5a3e0ccc3d
chore: rebuild
2024-10-04 02:33:45 +05:30
Sidharth Vinod
0ae4f97036
test: Update nodes test
2024-10-04 00:05:38 +05:30
Sidharth Vinod
218bfe1603
chore: Update import path
2024-10-03 22:13:00 +05:30
Sidharth Vinod
339c670839
docs: Update new shape registration doc
2024-10-03 22:12:41 +05:30
Sidharth Vinod
c5a19f6e85
chore: Organize shape handling
2024-10-03 22:08:30 +05:30
github-actions[bot]
0cb88c21dc
Version Packages
2024-10-03 14:40:03 +00:00
Sidharth Vinod
4776f97f82
Merge pull request #5921 from mermaid-js/develop
...
Pre Release
2024-10-03 19:58:58 +05:30
Sidharth Vinod
460db0aea7
fix: Link checker
2024-10-03 19:36:05 +05:30
Sidharth Vinod
02cf111995
Merge pull request #5825 from mermaid-js/knsv/new-shapes
...
New Flowchart Shapes (with new syntax)
2024-10-03 17:03:20 +05:30
Steph
fce77a19b0
update product hunt badge for whiteboard and mermaid chart page
2024-10-03 02:18:00 -07:00
Sidharth Vinod
ef8c0025fd
Merge pull request #5801 from jbriales/patch-1
...
Update sequenceDiagram.md
2024-10-03 04:26:46 +00:00
Sidharth Vinod
be0bbe9950
Merge branch 'develop' into patch-1
2024-10-03 09:43:13 +05:30
Sidharth Vinod
b503c2c758
Merge branch 'develop' into patch-2
2024-10-03 09:42:47 +05:30
Sidharth Vinod
c7382af161
Merge pull request #5916 from iSparsh/docs/5836_add-horizontal-block-merging-instructions
...
Added documentation about merging blocks horizontally (Resolves #5836 )
2024-10-03 03:51:09 +00:00
autofix-ci[bot]
d50a6cf75c
[autofix.ci] apply automated fixes
2024-10-02 17:58:15 +00:00
Sparsh Prashant Mishra
2cebf09cf2
Updated code to show nested blocks and added it to the correct section.
2024-10-02 12:48:17 -05:00
Sparsh Prashant Mishra
46419f7bfe
Added section about merging blocks horizontally.
2024-10-02 12:38:11 -05:00
Sidharth Vinod
43e8f831c0
fix: Shape aliases in docs
...
Co-authored-by: Alois Klink <alois@aloisklink.com>
2024-10-02 20:46:11 +05:30
Sidharth Vinod
760ea1e020
chore: Remove unused default exports
2024-10-02 20:37:59 +05:30
ReneLombard
07d7704ef4
Merge branch 'develop' into bug/5487-add-support-for-nested-classes
2024-10-02 16:57:02 +02:00
Sidharth Vinod
df1fba7fc5
chore: Ignore broken types
2024-10-02 19:33:16 +05:30
Sidharth Vinod
bb521f7af8
chore: Remove unnecessary ts-ignores
2024-10-02 18:49:57 +05:30
Sidharth Vinod
dfcb4af18b
chore: Remove unused function
2024-10-02 18:41:35 +05:30
autofix-ci[bot]
5c67e42a55
[autofix.ci] apply automated fixes
2024-10-02 13:00:17 +00:00
Sidharth Vinod
7441be09b5
Update packages/mermaid/src/docs/syntax/flowchart.md
2024-10-02 18:22:33 +05:30
Sidharth Vinod
a75665c7bf
chore: Rename RenderOptions interface to avoid duplication.
2024-10-02 18:20:35 +05:30
Sidharth Vinod
4cb0f87b72
Merge branch 'develop' into knsv/new-shapes
2024-10-02 17:50:41 +05:30