Commit Graph

1050 Commits

Author SHA1 Message Date
Gijs van Dam 7ca9df9357 Refactor ganttDb tests 2019-02-04 11:33:24 +08:00
Gijs van Dam f912f8582d Remove MomentJS dependency from Gantt Jest test cases
To reduce the dependencies of the Jest test cases, the moment dates in
both Jest test files are replaced with native javascript. Also the
physical file gantt.spec.js is moved to be in the same folder as
gantt.js
2019-02-04 10:21:58 +08:00
Gijs van Dam a211b6d55d Use it.each in test cases to prevent code repetition 2019-02-01 17:04:43 +08:00
Gijs van Dam c84c154603 Add tests for all possible task tags 2019-02-01 16:16:28 +08:00
Gijs van Dam f903090e0f Refactor tag parsing of tags
The allowed tags are now a const at the top of the code.
Adding a tag there, automatically assigns the property to the
javascript object, if the tag is present in the data.
2019-02-01 14:21:25 +08:00
Gijs van Dam 901df242b7 Replace multiple returns with single return 2019-02-01 13:28:12 +08:00
Gijs van Dam 9dbb3767e2 Extract tag parsing in separate function 2019-02-01 13:27:42 +08:00
Gijs van Dam 5565d36ef2 Fix lint issues 2019-02-01 12:41:03 +08:00
Gijs van Dam 48f8c3f85a Add custom rendering of milestone tasks
If a task is a milestone, the rect shape will be square in the center of
the original width of the rectangular calculated if it weren't a
milestone. The placement of the label text is adjusted accordingly.
Both the rect and the text get a 'milestone' and 'milestoneText' class
accordingly.
The scss rotates the square and scales it a bit down, so that it's a
diamond, which appears to be the defacto standard for milestone icons.
The label text is put in italics.
The rotational transform is done in the scss, so that it's easy for
users to create their own milestone icon-style.
2019-02-01 12:34:55 +08:00
Gijs van Dam a3eef7298e Add milestone to ganttDb 2019-01-31 15:33:35 +08:00
Tyler Long 7d3578b31a
Merge pull request #721 from paulbland/right-angles
Add option for right angles
2018-12-18 14:04:19 +08:00
Tyler Long 2914d4975b Fix arrowhead style issue 2018-12-18 13:55:14 +08:00
Tyler Long 2a0fcd99e4
Merge pull request #720 from paulbland/add-activation-class
Add nested activation classes
2018-12-18 13:39:18 +08:00
Tyler Long d7e0e4afc5 Fix code style issue 2018-12-18 13:32:36 +08:00
Tyler Long de78bb5ffe
Merge pull request #688 from imma90/master
add comments about CSS in config
2018-12-17 17:37:25 +08:00
Tyler Long 9ecee6b163 Generate jison files 2018-12-17 17:31:22 +08:00
Tyler Long e25e8af135 Support latest version of font awesome 2018-12-17 16:27:46 +08:00
Tyler Long 4ab2fed8d2
Merge pull request #757 from gjlubbertsen/master
Fix issue with marker-end.
2018-12-17 15:56:49 +08:00
Tyler Long 3e8fea6533
Merge pull request #764 from watsoncj/master
Support Multi-line Actor Descriptions
2018-12-17 15:53:20 +08:00
Tyler Long a57b90809b
Merge pull request #765 from flying-sheep/links
Render nodes as real links
2018-12-17 15:30:13 +08:00
Tyler Long b097b8bb34
Merge pull request #768 from znxkznxk1030/master
Remove duplicate code
2018-12-17 15:06:00 +08:00
Tyler Long 349aeb5a26 Upgrade dependencies 2018-12-17 14:56:26 +08:00
Tyler Long e8aebb00ee Fix typos in test cases 2018-12-17 14:42:52 +08:00
ysKim 6ece2838bd Remove duplicate code 2018-12-05 22:45:03 +09:00
Philipp A bcd3aa7d61 Improved docs, split setClickEvent and setLink 2018-12-01 15:31:57 +01:00
Philipp A aca80726d7 Render nodes as real links 2018-11-28 17:09:34 +01:00
Casey Watson 2fc5745c58 Support Multi-line Actor Descriptions
- Add support for <br/> delimiter in actor descriptions.
- Add actorFontFamily and actorFontSize options to sequence diagram.
- Change default actor description font from times to sans.

Fix #384 #702 #755
2018-11-26 11:49:33 -07:00
Gerrit-Jan Lubbertsen ba2f2cb284
Fix issue with marker-end.
I had issues with marker-end. Assuming that CSS got more strict over time.
2018-11-13 16:32:26 +01:00
Bland, Paul 06aa4a5c07 prevent deeply nested activations from calling classes that don't exist (by limiting to 3) 2018-08-29 14:24:42 -04:00
Bland, Paul 80c7c9a86e added ability to style nested activations 2018-08-24 11:56:28 -04:00
Bland, Paul 42d66fd3d9 tweak for lint 2018-08-23 11:53:04 -04:00
Bland, Paul ae8dde981b make path a bit wider 2018-08-22 15:30:12 -04:00
Bland, Paul 228b832bed moved hard-coded fill and stroke colors from svgDraw.js to scss files, and added defaults to all themes 2018-08-22 10:22:50 -04:00
Bland, Paul b80bad0a93 created option for right angle arrows 2018-08-17 10:56:15 -04:00
Imma f476002691 add comments about CSS in config 2018-07-15 19:04:42 +02:00
Tyler Long a4992963b3 Set SVG viewBox 2018-04-12 23:05:08 +08:00
Tyler Long 44ff608868 ultimate solution to position the svg 2018-04-12 09:06:20 +08:00
Tyler Long f2ea725edb Add a sample to test diagram cut off issue 2018-04-12 07:39:02 +08:00
Tyler Long 40a87fa736 Update todo list 2018-04-12 07:38:01 +08:00
Tyler Long a5627f97ff Make diamond shape a little bit bigger 2018-03-21 22:06:44 +08:00
Tyler Long 8b1698b17d Fix flowchart text size measuring issue 2018-03-21 21:29:12 +08:00
Tyler Long f8da3c2e48 More padding to fix cutoff issue 2018-03-20 23:04:01 +08:00
Tyler Long 03f9264394 Update dependencies 2018-03-20 21:49:31 +08:00
Tyler Long 33da5bcee1 Fix flowchart cut off issue 2018-03-20 20:08:52 +08:00
Tyler Long 01541a3dc1 Fix a typo in flowRenderer. Fix #541 2018-03-19 09:31:29 +08:00
Tyler Long 13ec3f6c0d Support all d3 curves 2018-03-18 09:35:28 +08:00
Tyler Long a949c2aaec config.sequenceDiagram backwards compatibility 2018-03-18 09:08:05 +08:00
Tyler Long f4324d1de6 Fix test about curve 2018-03-17 23:19:13 +08:00
Tyler Long f1d2808594 Support flowchart curve as option 2018-03-17 23:05:14 +08:00
Tyler Long 52d0605066 Fix subgraph issue 2018-03-17 18:12:24 +08:00