Commit Graph

79 Commits

Author SHA1 Message Date
FutzMonitor 59264a33d7 Changes to gantt.html
1. Added a Gantt diagram that demonstrates to users that hashtages and semicolons can be added to titles, sections, and task data.
Changes to gantt.spec.js
1. Added unit tests to ensure that semicolons and hashtags didn't break the functionality of the gantt diagram when used in titles, sections or task data.
Changes to /parser/gantt.spec.js
1. Added rendering tests to ensure that semicolons and hashtags in titles, sections, and task data didn't break the rendering of Gantt diagrams.
2024-01-26 11:48:48 -05:00
futzmonitor 8e95cdb883 Changes to gantt.jison
1. Consistent spacing on line 30
2023-12-02 12:56:58 -05:00
futzmonitor 68ff352f2d Changes to gantt.jison
1. Removed typo
2023-12-02 10:26:46 -05:00
futzmonitor f02dfe60af Changes to gnatt.jison
1. Removed the hash and semicolon symbols from the title regex to allow for their use.
2. Removed the hash and semicolon symbols from the section regex to allow for their use.
3. Removed the hash and semicolon symbols for the taskTxt regex to allow for their use. I did not remove the colon because the parser fails to recognize when the actual taskData begins if that distinctions isn't kept.
4. Removed the regex \#[^\n]* which skipped comments to fix some bugs with hash symbols in the taskTxt. I tested this changed by putting it back and using the comment  to see if it was recognized as a comment, but I would receive a syntax error and the diagram would not be rendered. So, I think we can safely remove that line, BUT it would be best practice if someone else tested this change to ensure that this will not break anyone's Gantt diagrams.
2023-12-02 10:23:44 -05:00
Sidharth Vinod c2e26baf4d
Merge pull request #4930 from Mister-Hope/patch-2
feat(gantt): update styles
2023-11-08 20:42:53 +00:00
Mr.Hope 1fec55d5f7
feat(gantt): update styles 2023-10-09 11:25:09 +08:00
Hans Blankenhaus 846fb3f8f8 making consitent config imports from diagramAPI 2023-10-08 14:17:45 +02:00
Sidharth Vinod 157c90eeac
Revert "fix: Reduce gantt exclude days length"
This reverts commit 2bde5ad667.
2023-10-06 10:49:09 +05:30
Sidharth Vinod 2bde5ad667
fix: Reduce gantt exclude days length 2023-10-05 21:37:57 +05:30
Sidharth Vinod ee58743a04
fix: Use log instead of console 2023-09-26 19:24:39 +05:30
Sidharth Vinod 7cb1c2e0aa
fix(gantt): Set max exclude interval length to 5 years 2023-09-26 19:21:05 +05:30
Sidharth Vinod 5f5b216428
fix: Performance issue in Gantt diagram 2023-09-26 19:15:44 +05:30
Knut Sveidqvist 07f460a184
Merge pull request #4759 from sidharthv96/sidv/removeDirectiveGrammar
Add directive support to all diagrams by preprocessing
2023-09-07 07:00:44 +00:00
Sidharth Vinod 32729f82b9
Merge branch 'develop' into sidv/removeDirectiveGrammar
* develop: (26 commits)
  chore: Fix unit tests
  chore(deps): update all patch dependencies
  Update docs
  chore: remove unneeded `CommomDB`
  fix: Add support for `~test Array~string~`
  chore: Add JSDoc to apply in sequenceDB
  refactor: Tidy up direction handling
  chore: Fix flowchart arrow
  chore: Add test to verify activate
  chore: Update tests snapshot
  fix: #4691 Align arrowheads properly in sequenceDiagram
  chore: move `commonDb` into `diagrams/common/commonDb`
  Update docs
  run prettier fix
  Apply suggestions from code review
  chore: Add comments in edge handling
  chore: Make aggregation arrow transparent
  chore: Remove structuredClone
  chore: Make extension arrow transparent
  chore: Align edge markers properly in class
  ...
2023-09-06 18:36:02 +05:30
Sidharth Vinod c212490248
Merge pull request #4778 from vertxxyz/feature/4771_tickInterval-support-for-sec-and-ms
Added support for millisecond and second to gantt tickInterval
2023-09-06 13:03:05 +00:00
Reda Al Sulais a61887f5a2 chore: move `commonDb` into `diagrams/common/commonDb` 2023-09-02 17:51:33 +03:00
Thomas Ingram 8f340094d9 Added support for millisecond and second to gantt tickInterval 2023-08-27 16:08:47 +10:00
Sidharth Vinod 1e0918c2ff
refactor: Remove directives from grammar 2023-08-25 12:55:58 +05:30
Sidharth Vinod f0883be0e3
refactor: Update DBs to remove directive handling 2023-08-25 12:55:35 +05:30
Sidharth Vinod 11b599d77c
chore: Fix type imports 2023-08-22 13:44:11 +05:30
Brian Graham 4cdb43f791 ts-ignore comment was misleading, JISON doesn't support types 2023-08-01 14:30:58 +02:00
Lei Nelissen 85515bcf8d
chore: leave the newLine out of the jison spec 2023-07-15 15:28:48 +02:00
Lei Nelissen 803cd826ed
chore: replace switch-case with map 2023-07-15 00:17:10 +02:00
Lei Nelissen 103321bf72
chore: return after scanning weekday in jison 2023-07-15 00:17:09 +02:00
Lei Nelissen d0afc3bffe feat: validate individual values of weekdays 2023-07-14 14:13:18 +02:00
Lei Nelissen 11f2e31ff1 fix: also set weekday value to sunday in clear 2023-07-14 14:13:18 +02:00
Lei Nelissen d9c15b1e7a chore: move spec test to it.each 2023-07-14 14:13:18 +02:00
Lei Nelissen 4e8eeda30e chore: also apply weekday to topXAxis 2023-07-14 14:13:18 +02:00
Lei Nelissen 37adc23ae2 chore: also default to sundat in ganttDb 2023-07-14 14:13:18 +02:00
Lei Nelissen df10ab501a chore: add tests for all days 2023-07-14 14:13:18 +02:00
Lei Nelissen 03ce2810b5 feat: allow specifying on which weekday a tickInterval should start 2023-07-14 14:13:18 +02:00
Lei Nelissen 5631a218d1 fix: make gantt chart interval weeks start on monday instead of sunday 2023-07-14 14:13:18 +02:00
Nikolay Rozhkov d5021cab1d Remove double parsing 2023-07-03 18:57:26 +03:00
Yokozuna59 9573f336c3 standardize detectors loeader function definition with `DiagramLoader` type 2023-06-12 15:28:45 +03:00
Yokozuna59 e688138167 pref: change detectors from `.match` into `.test`
there is no need for matching, capturing results, and validating nullablity
just using `.test` would be enough and significantly faster

for more info, see https://stackoverflow.com/10940138/16476610
2023-06-12 14:45:08 +03:00
Knut Sveidqvist 98e75959cc #4438 Reverted to the changes from #4285 2023-06-01 12:53:21 +02:00
Atul Varma 725b80831e Reject ridiculous years in Gantt charts. 2023-05-02 09:46:59 -04:00
Remco Haszing aa5c1a5f78
Merge branch 'develop' into fix-node16-module-resolution 2023-04-13 14:58:17 +02:00
Emerson Bottero 37eb100bb2 chore: add files to imports 2023-04-08 23:50:10 -03:00
Emerson Bottero 4643bb1c00 fix: really import esm version of dayjs 2023-04-07 23:38:05 -03:00
Remco Haszing da7725f38e
Merge branch 'develop' into fix-node16-module-resolution 2023-04-01 12:05:19 +02:00
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 fd9680a050 Fix bug 2023-03-24 00:18:52 +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
Jeremy Funk b3b7108d59 Implement basic repeating tasks 2023-03-22 23:15:54 +01:00