wumpus-basic: Common drawing utilities built on wumpus-core.
** WARNING ** - this package is sub-alpha. It was released to Hackage prematurely - designing a higher-level drawing library turns out to be much more demanding than designing a low-level one (Wumpus-Core).
Some of the modules (SafeFonts, SVGColours, X11Colours) are
relatively stable. The core modules of Basic.Graphic (Base,
PrimGraphic, DrawingContext) seem to support a good set
primitive functions, but the exact types of drawing objects do
not feel right at the moment. Other modules (Paths, Chains,
Shapes) are still being worked out and may be substantially
revised in subsequent updates.
Version 0.12.0 extends the sets of arrowheads and connectors. Unfortunately Shapes are still undercooked.
Changelog:
11.0 to 0.12.0:
Changes Base types in
Basic.Graphic. TheGraphicandImagetypes now produce (wrapped)Primitives, rather than Hughes lists ofPrimitives. This means they can now be transformed with the affine transformations. Removed the functionati, it is replaced byat.Added
Basic.Utils.Combinators.Arrowheads and Connectors reworked - Arrowheads are now a functional type, Connectors use new Image combining operations from
Basic.Graphic.Base.Path connectors re-worked and renamed.
Dot hierarchy changed -
Basic.DotsbecomesBasic.Dots.AnchorDots;Basic.Dots.PrimitivebecomesBasic.Dots.Marks.Basic.Shapes- internals reworked.
10.0 to 0.11.0:
Reworked arrowheads and connectors - connectors are now configurable: there are functions to make connectors with a left arrowhead, right arrowhead, none or both.
Reworked shapes - internally shapes now create a
Pathrather than aGraphicthis means the path can be manipulated (e.g. round cornered rectangles, diamonds... can be constructed).Coordinateis no longer aShape- it is now similar object but of a different type. Likewise,FreeLabelhas been replaced byPlaintextwhich is not aShape, but has some similar properties. Unfortunately, the Shape types are still difficult to work with and a larger reworking is still necessary.Basic.Paths.Base-Pathtype changed,PathEmptyconstructor removed so empty paths cannot be created. This allows a better API for taking points on a path. It also meansPathis no longer an instance of Monoid. Type changes to various functions (e.g.tipR,tipL) reflecting that as paths cannot now be empty, functions on them can generally be total.toPrimPathUremoved as converting to a PrimPath as now always safe.tracePointsrenamedtraceLinePoints,tracePointsCurverenamedtraceCurvePoints,midpointrenamedmidway.Basic.Graphic- the typesConnDrawingR,ConnGraphicetc. have had their names expanded toConnectorDrawingR,ConnectorGraphic...Basic.SafeFont- font names changed to use underscore separators rather than camelCase. Wumpus generally uses underscored names for constants.Removed
connfromBasic.Graphic.Drawing. Connectors should be used instead.The class
DrawingCtxMnow hasApplicativeas a superclass.lineSpacingrenamedbaselineSpacing.
Modules
[Index]
Downloads
- wumpus-basic-0.12.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.1, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.20.0, 0.21.0, 0.22.0, 0.24.0 |
|---|---|
| Change log | CHANGES |
| Dependencies | base (<5), containers (>=0.3 && <=0.4), vector-space (>=0.6), wumpus-core (==0.36.0) [details] |
| License | BSD-3-Clause |
| Copyright | Stephen Tetley <stephen.tetley@gmail.com> |
| Author | |
| Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
| Uploaded | by StephenTetley at 2010-10-21T16:42:17Z |
| Category | Graphics |
| Home page | http://code.google.com/p/copperbox/ |
| Distributions | |
| Reverse Dependencies | 4 direct, 0 indirect [details] |
| Downloads | 14765 total (76 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |