hasufell
cb7d5269a0
DIAGRAM: add maybeDiag convenience function
2014-10-10 15:40:56 +02:00
hasufell
5d5d0b7643
DIAGRAM: improve haddock doc
2014-10-10 15:34:38 +02:00
hasufell
1540bf443e
DIAGRAM: abstract point to text conversion out a little
2014-10-10 15:34:18 +02:00
hasufell
01e2dd7802
Allow showing the coordinate points as text
2014-10-10 15:03:12 +02:00
hasufell
4137af7a7f
DIAGRAM: Fix haddock comment
2014-10-10 01:08:53 +02:00
hasufell
207360b4a5
Improve function names
2014-10-10 00:42:15 +02:00
hasufell
dfb25a7a1d
DIAGRAM: make the grid size modifiable
2014-10-10 00:30:56 +02:00
hasufell
8338ab109f
Clarify some String types
2014-10-10 00:23:58 +02:00
hasufell
12da4040dc
Improve overall style and indenting
2014-10-10 00:19:05 +02:00
hasufell
22482f7c49
DIAGRAM: improve haddock doc
2014-10-09 21:37:58 +02:00
hasufell
fa749ddd25
DIAGRAM: finalize x/y-axis wrt #1
2014-10-09 21:37:45 +02:00
hasufell
ccbe034ef1
DIAGRAM: improve style
2014-10-09 18:55:55 +02:00
hasufell
e2f1c865f3
DIAGRAM: fix filtering of points based on the dimensions
2014-10-09 18:51:32 +02:00
hasufell
de5aba792e
Allow showing a grid
2014-10-09 18:45:37 +02:00
hasufell
4195404694
DIAGRAM: improve x/y-axis by showing segment lines
2014-10-09 18:13:33 +02:00
hasufell
8a2ef92fa7
DIAGRAMS: add TODO note
2014-10-09 17:20:14 +02:00
hasufell
fa3e498c45
DIAGRAM: rename functions to reflect their type
2014-10-09 17:19:58 +02:00
hasufell
5020778f60
DIAGRAM: fix crash when passed an empty array to showConvexHullLines
2014-10-09 17:09:49 +02:00
hasufell
1fd0b9f27f
Allow generating gifs vor visualizing steps of the graham algo
...
TODO: this still requires us to hack on Main.hs, because
it isn't compatible with the GUI.
Also see https://github.com/diagrams/diagrams-cairo/issues/55
2014-10-09 03:10:21 +02:00
hasufell
8949d05b3b
Properly handle mempty in Monoid Diag instance
2014-10-09 00:59:18 +02:00
hasufell
2fa1204d82
Also connect lines of convex hull
2014-10-08 19:31:55 +02:00
hasufell
0677a26040
Fix y-axis
2014-10-08 19:29:51 +02:00
hasufell
c0be077f15
Improve haddock comments
2014-10-08 19:23:40 +02:00
hasufell
85a00951ba
Fix alignments/origins and correctly expand for the drawing widget
2014-10-08 19:23:15 +02:00
hasufell
8458841182
Small adjustments in Monoid Diag instance
...
The lwG propery doesn't have any effect, so remove it.
Using '<>' here gets correctly inferred for the Diagrams library
data types, so just use it.
2014-10-08 19:21:47 +02:00
hasufell
d8d28d3ca9
Add convex hull algorithm via graham scan
2014-10-08 16:39:46 +02:00
hasufell
46377164b4
Rework vector/point typesystem
...
Don't rely on Data.Vector.V2 and friend anymore, but use
the types we have from Diagrams already and enhance them.
2014-10-08 16:37:38 +02:00
hasufell
73984b796d
Move Defaults.hs to 'Class' subsystem
2014-10-07 19:18:16 +02:00
hasufell
b7d752ae20
Restructure files, add new subsystems
2014-10-07 19:12:59 +02:00
hasufell
3ef3fb1621
Fix typo
2014-10-07 19:12:59 +02:00
hasufell
dd33a8b252
Show haddock documentation for non-exports as well
2014-10-06 23:14:23 +02:00
hasufell
394b450e51
Rm comment to fix generation of haddock docs
...
Unfortunately it seems to be not supported to document individual
parameters of these kind of contructs.
2014-10-06 23:02:09 +02:00
hasufell
98a1b367d5
Style
2014-10-06 22:19:46 +02:00
hasufell
b98d8be723
Limit public API in Diagram
2014-10-06 22:15:10 +02:00
hasufell
330049fde6
Rename showEmptyRectB and emptyRect to showWhiteRectB and whiteRect
2014-10-06 21:22:32 +02:00
hasufell
8547122be6
Make the diagram API more abstract
...
In particular we now have the data type 'Diag' which
can be used to concatenate multiple Diagrams via mconcat while
keep the properties and VTable across all of them consistent.
2014-10-06 21:11:28 +02:00
hasufell
6c728324fd
Rm obsolete centerX/centerY
2014-10-05 21:33:22 +02:00
hasufell
522ad2b452
Allow specifying the diagram dimensions in the GUI
2014-10-05 18:41:41 +02:00
hasufell
197dc99058
Allow more control over the dimensions
2014-10-05 18:09:24 +02:00
hasufell
6e2873ece1
Improve haddock documentation
2014-10-05 15:57:31 +02:00
hasufell
ae019e86ed
Style
2014-10-05 15:50:52 +02:00
hasufell
884a8a3121
Use a proper API for default parameters
2014-10-05 15:50:42 +02:00
hasufell
0ab6a15d4e
Draw two lines for both x and y-axis
2014-10-02 20:07:49 +02:00
hasufell
c018304319
Don't draw borders for the white square
2014-10-02 14:37:51 +02:00
hasufell
d39180a723
Style
2014-10-02 14:30:08 +02:00
hasufell
80b5286095
Style improvements
2014-10-02 13:13:58 +02:00
hasufell
5e5408422b
Improve haddock documentation
2014-10-01 23:02:43 +02:00
hasufell
7f20f3ff5b
Allow changing the thickness of dots
...
By achieving that we have introduced the DiagProp data type
which can be enhanced in the future.
2014-10-01 21:48:31 +02:00
hasufell
aec00c7e4d
Rm useless filterValidCoords, refactor inRange
2014-10-01 20:17:59 +02:00
hasufell
8f1ab75fe7
Set white background for the drawing area
2014-10-01 03:03:09 +02:00