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
9ecee6b163
Generate jison files
2018-12-17 17:31:22 +08:00
Tyler Long
015b976c28
Fix CSS cannot select number ID issue
2018-03-17 09:10:10 +08:00
Tyler Long
9b65abe76a
Remove useless code
2018-03-13 15:04:05 +08:00
Tyler Long
f62736c749
Support customization of gantt diagram xAxis format using diagram code
2018-03-13 14:01:44 +08:00
Tyler Long
7ef1b28c83
Remvoe ganttDb getDateFormat
2018-03-13 13:48:27 +08:00
Tyler Long
37076d3d1f
Support global config of gantt axisFormat
2018-03-12 21:33:02 +08:00
Tyler Long
c0c7c96f28
Re-generate jison js files
2018-03-11 16:43:02 +08:00
Tyler Long
e9f3ad63c6
Remove local d3 file
2018-03-08 21:42:39 +08:00
Tyler Long
197671960d
Fix gantt diagram xAxis format
2018-03-07 22:05:54 +08:00
Tyler Long
e434ac9a1f
Improve gantt diagram code
2018-03-06 19:11:55 +08:00
Tyler Long
1d7589abb9
Try to fix gantt diagram
2018-03-06 18:41:06 +08:00
Tyler Long
3f55200737
Update some dependencies
2018-03-06 14:37:27 +08:00
Frank Schmitt
48ef5d74e8
Several small fixes in the Gantt spec
...
- removed duplicate test for date spec
- fixed title of title spec
- added section to section spec
2017-11-18 16:22:49 +01:00
Frank Schmitt
18117af067
Fixed grammar in Gantt spec
2017-11-18 16:18:24 +01:00
Tyler Long
20b43d8ad1
Get rid of var
2017-09-14 20:59:58 +08:00
Tyler Long
2e0bfaeb74
Replace var with const
2017-09-14 20:27:52 +08:00
Tyler Long
75d9e7bc59
webpack fs: 'empty'
2017-09-11 23:06:34 +08:00
Tyler Long
c5a7eeaa0f
Remove 'fs' as dependency
2017-09-10 23:16:35 +08:00
Tyler Long
4fc082b526
Add export default to diagram files
2017-09-10 22:03:10 +08:00
Tyler Long
2a0bc3b2e8
Add export default to *Db.js
2017-09-10 21:51:48 +08:00
Tyler Long
a7d79baf00
Replace require with import
2017-09-10 21:23:04 +08:00
Tyler Long
c9442653e9
Replace require with import
2017-09-10 19:41:34 +08:00
Tyler Long
bdf9b33b10
Remove parseError properties
2017-09-10 10:19:15 +08:00
Tyler Long
5da8c26cb6
Replace exports. with module.exports
2017-09-09 17:08:52 +08:00
Tyler Long
801d1e9eda
jison 'token-stack': true
2017-09-03 12:06:40 +08:00
Tyler Long
15977695cd
Re-run jison
2017-09-03 11:57:36 +08:00
Tyler Long
e2b4fd4b20
New documentation website: https://mermaidjs.github.io/
2017-08-16 22:02:28 +08:00
Tyler Long
5d68359eb6
First working version of babel
2017-04-17 22:34:25 +08:00
Tyler Long
4032824c79
Format code
2017-04-17 17:13:37 +08:00
Tyler Long
5624453c87
Refactor code
2017-04-16 23:48:36 +08:00
Tyler Long
15bdaca2f9
Use yarn install of npm
2017-04-13 22:21:09 +08:00
Tyler Long
a2ce9e6a54
Fix code style issues
2017-04-13 20:16:38 +08:00
Tyler Long
413162dfad
Fix some code style issues
2017-04-11 22:57:57 +08:00
Tyler Long
620f3e8734
Auto fix standard style voilations
2017-04-11 22:14:25 +08:00
Knut Sveidqvist
c7c077c21c
Fix for issue #501
...
Added heko request to readme
2017-04-01 13:51:03 +02:00
Knut Sveidqvist
d8929db208
New release
2016-05-29 19:18:04 +02:00
tkfm.yamaguchi
0cd04af6a4
Replace sidePadding with left/rightPadding
2016-05-23 11:21:38 +09:00
knsv
4eb38e4cfd
Fix for issues #239 and #257 .
2015-11-15 15:06:24 +01:00
Tomasz Szczęśniak-Szlagowski
841aea9d97
Add changes in generated files after jison update
2015-10-24 21:33:19 +01:00
knsv
eecd56d6e0
Fix for issue #229 , poor handling of activities in a gantt diagram where one activities follows a yet undefined activity.
2015-10-24 12:44:47 +02:00