1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-16 18:25:11 +00:00
Commit Graph

1626 Commits

Author SHA1 Message Date
The-Lum
dcfe17b73c feat: add new JSON builtin function (%json_set)
From this request:
- https://github.com/plantuml/plantuml/issues/328#issuecomment-2089276726
2024-05-03 17:06:30 +00:00
PlantUML
34e3cfc9f4
Merge pull request #1757 from The-Lum/Evol
fix: add `int` and `string` management on `%json_add`
2024-04-25 00:06:15 +02:00
The-Lum
6c4eaebd8f fix: add int and string management on %json_add
That fixes:
- https://github.com/plantuml/plantuml/issues/328#issuecomment-2071079413

Here is a fix for `int` and `string`, in order to manage:

```puml
%json_add({"age" : 30}, name, 123) '=> {"age":30,"name":123}
```

```puml
%json_add({"age" : 30}, name, Sally) '=> {"age":30,"name":"Sally"}
```

[FYI @philCryoport]
Reagrds,
Th.
2024-04-24 19:52:11 +00:00
PlantUML
81e7e76c50
Merge pull request #1742 from The-Lum/Evol
feat: add new JSON builtin functions (`%str2json`, `%json_add` and `%json_remove`)
2024-04-16 14:20:30 +02:00
PlantUML
c7d43f3d39
Merge pull request #1740 from Benjamin-Davies/chen-common-commands
Add support for more common commands in Chen EER diagrams
2024-04-16 13:51:36 +02:00
The-Lum
24239ff0bd feat: add new JSON builtin functions (%str2json, %json_add and %json_remove)
From those requests:
- https://forum.plantuml.net/15436/allow-update-json-object-or-array-value
- https://forum.plantuml.net/17474/modify-json-variables-in-preprocessor
- https://forum.plantuml.net/18418/request-%25set_json_keys-function-json-writing-capabilities
- #328
- #1733
2024-04-15 05:33:02 +00:00
Benjamin Davies
494c0c981e
Add support for more common commands in Chen EER diagrams
Fixes #1729
2024-04-15 12:43:17 +12:00
Arnaud Roques
91e87b9691 refactor: remove dead code 2024-04-14 11:29:32 +02:00
Arnaud Roques
171a35971b refactor: enhance external process handling using ProcessBuilder 2024-04-14 10:50:33 +02:00
PlantUML
3adf9c93c7
Merge pull request #1736 from travkin79/patch/1735
Fix #1735 - Fix hiding some of multiple stereotypes in clusters (rectangles, packages, etc.)
2024-04-11 22:43:19 +02:00
Dietrich Travkin
46ac4a391f Fix #1735 - Only hide the stereotype text block if it does not contain visible stereotypes 2024-04-11 17:21:35 +02:00
PlantUML
9f53546ff6
Merge pull request #1732 from The-Lum/PatchBranch
Improve `Chen diagram` management & Rename `%splitstrregex` to `%splitstr_regex`
2024-04-10 17:51:46 +02:00
The-Lum
6802c2b578 fix: rename %splitstrregex builtin function to %splitstr_regex
According to:
- https://forum.plantuml.net/18827/%25splitstr-please-add-regex-support-as-second-argument?show=18838#c18838
2024-04-10 13:25:15 +00:00
The-Lum
52fdd3bbe4 feat: Improve Chen diagram management
According to `Chen` diagram and new PlantUML Keywords from:
- #1718

Add `Chen` diagram on:
- Syntax _(improve Language Descriptor (to follow plantuml/backlog#4))_
- Sub-diagram
- Readme

_(Similar to #1669)_
_[FYI @Benjamin-Davies]_
2024-04-10 13:15:06 +00:00
PlantUML
f862254e22
Merge pull request #1731 from The-Lum/Random
feat: add `%splitstrregex` builtin function
2024-04-09 17:11:29 +02:00
PlantUML
64f3a8fc0e
Merge pull request #1730 from rubikscuber/fix-#1713
fix #1713
2024-04-09 16:51:07 +02:00
The-Lum
f3ee15f97b feat: add %splitstrregex builtin function
From this request:
- https://forum.plantuml.net/18827/%25splitstr-please-add-regex-support-as-second-argument

Ack. & Ref.:
- https://forum.plantuml.net/15374/delimited-string-split-into-an-array
- https://forum.plantuml.net/18827/%25splitstr-please-add-regex-support-as-second-argument
- https://www.javacodeexamples.com/java-stringtokenizer-using-regex-pattern/3570
2024-04-09 14:04:18 +00:00
PlantUML
e982bb326d
Merge pull request #1727 from theavege/fix/sunlust
fix json and yaml
2024-04-09 14:18:17 +02:00
rubikscuber
7c9866ac69
fix #1713 2024-04-09 14:12:21 +02:00
Artem V. Ageev
d50aa2e289 fix json and yaml 2024-04-08 15:27:16 +03:00
Arnaud Roques
9432e0b1e5 chore: version 1.2024.4 2024-04-06 16:39:52 +02:00
Arnaud Roques
460d53f12b refactor: Replace computeIfAbsent with manual check for Java 1.7 compatibility 2024-04-06 13:28:57 +02:00
PlantUML
06d06e729b
Merge pull request #1724 from travkin79/patch/fix-NPE
Avoid NPE when a remote input stream cannot be read (while reading a remote style file)
2024-04-06 13:22:10 +02:00
PlantUML
8bc1c27c23
Merge pull request #1701 from DaumAlexande/create_script_xmi
Add a tool-independent XMI format
2024-04-06 13:12:26 +02:00
Arnaud Roques
04eada12ab refactor: Replaced stream usage with loops for Java 1.7 compatibility (!) 2024-04-06 13:02:19 +02:00
Dietrich Travkin
33e5903e80 Avoid NPE when a remote input stream cannot be read
Avoids the following stacktrace:
java.lang.NullPointerException
	at java.base/java.io.Reader.<init>(Reader.java:168)
	at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:88)
	at net.sourceforge.plantuml.utils.BlocLines.load(BlocLines.java:79)
	at net.sourceforge.plantuml.style.CommandStyleImport.executeArg(CommandStyleImport.java:89)
2024-04-04 17:52:10 +02:00
PlantUML
7755ae5be4
Merge pull request #1720 from diguage/select-line
Supports double-clicking to select all elements and links on a line. Fix #1719
2024-03-24 23:39:08 +01:00
diguage
3cc580ebd1 Supports double-clicking to select all elements and links on a line 2024-03-24 21:47:50 +08:00
PlantUML
4afe3ef7fe
Merge pull request #1718 from Benjamin-Davies/cheneer
Implement Chen Notation for ER-diagrams
2024-03-21 22:30:28 +01:00
Benjamin Davies
4b5bcd3bca
Fix compatibility with Java 8 2024-03-21 19:38:05 +13:00
Benjamin Davies
e14c8ef0a5
Re-add chronology diagram
This was accidentally removed in a merge
2024-03-21 19:34:33 +13:00
Benjamin Davies
234cb3adea
Add tests for each new command 2024-03-21 17:55:42 +13:00
Benjamin Davies
d39bfbc3b5
Add test for aliases 2024-03-20 16:57:41 +13:00
Benjamin Davies
cbe84c240a
Fix attribute labels 2024-03-20 16:54:40 +13:00
Benjamin Davies
83255431f7
Document purpose of shared methods 2024-03-20 16:08:43 +13:00
Benjamin Davies
90a88ce4ee
Support long name and alias in Chen-EER 2024-03-16 18:42:55 +13:00
Benjamin Davies
8312e8c22f
Correctly detect cheneer diagrams 2024-03-16 17:38:41 +13:00
Benjamin Davies
60de4baff9
Merge branch 'master' into cheneer 2024-03-16 16:59:49 +13:00
PlantUML
3499373851
Merge pull request #1710 from The-Lum/PatchBranch
fix: math two-dimensional matrices and add tests
2024-03-10 19:23:12 +01:00
The-Lum
f82f1a9a76 fix: math two-dimensional matrices and add test
Report of https://github.com/The-Lum/ASCIIMathTeXImg/commit/6f3bb01d
That fixes #1706

Regards,
Th.
2024-03-10 17:09:12 +00:00
PlantUML
1188a05a60
Merge pull request #1705 from ouss1002/bug-custom-functions-name
Prevent IndexOutOfBoundsException in equation rendering by checking non-empty 'texsymbol' strings
2024-03-08 19:10:32 +01:00
BOUDJENIBA Oussama
d85f96256e
Prevent IndexOutOfBoundsException in equation rendering by checking non-empty 'texsymbol' strings
This commit introduces a check before accessing the first character of 'texsymbol' strings in equation rendering, preventing IndexOutOfBoundsException when custom functions names are used which can lead to an empty string. This change ensures that equations custom variables names ending with standard function strings are handled gracefully without errors
2024-03-04 09:58:29 +01:00
Daum Alexander (DCL ATV SC D RAD CSFW FW)
3216eea2d9 Add XMI_SCRIPT support to DescriptionDiagrams 2024-02-28 13:20:08 +01:00
Daum Alexander (DCL ATV SC D RAD CSFW FW)
124aa0384c Introduce XMI_SCRIPT file type
XMI_SCRIPT is intented to be used to generate XMI files, that contain as
much metadata (UML standard compliant), that can be generated by
plantuml.
2024-02-28 11:06:13 +01:00
Arnaud Roques
a0be1ed677 feat: timing set background color of concise
https://forum.plantuml.net/18682/timing-set-background-color-of-concise
https://forum.plantuml.net/18676/supporting-markdown-syntax
2024-02-27 20:39:02 +01:00
Arnaud Roques
2a49ef06da fix negative values causing syntax error in robust "has" list
https://forum.plantuml.net/18701/negative-values-causing-syntax-error-in-robust-has-list?show=18705
2024-02-27 19:42:44 +01:00
Arnaud Roques
6c945e2508 fix: Activity Diagram: Style of multiline Box
https://github.com/plantuml/plantuml/issues/1697
2024-02-26 22:50:31 +01:00
Arnaud Roques
f385bc0dba chore: use Collections.emptyList() instead of new ArrayList() 2024-02-24 12:03:21 +01:00
Arnaud Roques
3cc68235dd refactor: prepare preprocessor error improvement 2024-02-22 20:28:03 +01:00
Arnaud Roques
a48dd52d9f refactor: prepare preprocessor error improvement (almost finished :-)
https://github.com/plantuml/plantuml/pull/1668
2024-02-22 20:06:59 +01:00