Friday, September 30, 2011

wumpus-drawing

Copperbox revision 2600.

I've added a few more incline trails - diamond, chamfered rectangle, tube.

Thursday, September 29, 2011

wumpus-drawing

Copperbox revision 2599.

Initial work on Incline Trails - trails formed from a base vector representing west-to-east but at some angle of incline.

Hopefully arrowheads, some box connectors and path vamps should be derivable from incline trails, so they can all share a library of common primitives.

Wednesday, September 28, 2011

wumpus

Copperbox revision 2598.

I've renamed PlacedTrail to AnaTrail - ana indicating anacrusis / prefix. I didn't like the adjectival prefix Placed and AnaTrail matches better with CatTrail.

Tuesday, September 27, 2011

wumpus

Copperbox revision 2597.

First round of work updating arrowheads in Wumpus-Drawing to use trails, rather than point-list generators.

Monday, September 26, 2011

wumpus

Copperbox revision 2596.

I've sorted out clock direction for rounding corners, previously it was hacked expecting shapes would be drawn counter-clockwise. Also I've improved the API of the curve trails so they are respective of clock direction, the waveform trails need a similar improvement...

Sunday, September 25, 2011

new releases - wumpus

Copperbox revision 2595.

New releases:

wumpus-core-0.52.0
wumpus-basic-0.22.0
wumpus-drawing-0.7.0
wumpus-tree-0.18.0

The changes to Wumpus-Core are cosmetic but important to the higher level layers - renaming clip to clipPrim and changing the types of d2r and r2d. As Wumpus-Core is such a large archive, I've added support for annotating with SVG id attributes to make it a worthwhile Hackage update.

wumpus-drawing

Copperbox revision 2594.

I've updated the demos in Wumpus-Drawing as I intend to make a new set of releases.

wumpus

Copperbox revision 2593.

I've updated Basic adding methods to the Decorate class that implement SVG annotation.

Rounding corners for Paths has been re-implemented in Drawing.

wumpus-core

Copperbox revision 2592.

I've added explicit support for SVG id attributes. Text labels support id directly, other elements have only limited support cascading downwards from a SVG group element.

The rationale for this is to support changing text dynamically via DOM scripting, Wumpus is too static to readily support scripting anything else.

Saturday, September 24, 2011

wumpus

Copperbox revision 2590.

I've changed the d2r and r2d functions in Wumpus-Core so that degree is typed to Double rather than a polymorphic a. This means user code can avoid type annotations for the common case where degrees are represented by Doubles.

Copperbox revision 2591.

Updates to Wumpus-Basic and Wumpus-Drawing to work with the Core changes. Also I've stopped exposing jointedAppend from the Path.Base API.

Friday, September 23, 2011

wumpus

Copperbox revision 2589.

First work towards removing jointedAppend from Paths. I've reworked curved arrowheads to use trails rather than AbsPaths (and jointedAppend).

Also I noticed that the curve CatTrail constructors should account for clockwise and counter-clockwise directions...

Thursday, September 22, 2011

wumpus-basic

Copperbox revision 2588.

I've optimized trail drawing so that contiguous straight lines in the same direction are coalesced. This is potentially useful for drawing Djembe beam groups in Wumpus-Rhythm.

At the weekend, when I've more time to concentrate, I'll look at removing jointedAppend from Paths in Wumpus-Drawing as AbsPaths aren't really monoidal. Also I suspect there are modules in Wumpus-Drawing that use AbsPath when a trail would be better - Arrowheads is one...

Wednesday, September 21, 2011

wumpus

Copperbox revision 2587.

I've updated Wumpus-Tree and Wumpus-Rhythm to work with the latest revisions of Basic and Drawing.

Tuesday, September 20, 2011

wumpus-drawing

Copperbox revision 2586.

I've added a few more Doc symbols - left and right slices and a box.

Monday, September 19, 2011

wumpus-drawing

Copperbox revision 2585.

Preliminary work basing Dots on Symbols - SimpleDots are expected to be fixed sized symbols. Also work on re-defining Symbols as Doc objects so they can be used inside text where otherwise using the Symbol font is controversial for SVG.

Sunday, September 18, 2011

wumpus

Copperbox revision 2584.

I've added a module for drawing symbols to Wumpus-Drawing. Dots and potentially DocText should be able to to elaborate these primitive symbols to make their respective objects rather than define their own analogues.

Saturday, September 17, 2011

wumpus-basic

Copperbox revision 2583.

I've finally implemented the wedge graphic using trial arcs. 

Friday, September 16, 2011

wumpus-basic

Copperbox revision 2583.

I've renamed yesterday's code as the functions were more correctly circle sweeps rather than arcs. The distinction is how they "join" an existing trail - circle sweeps continue round a guiding circle; an arc would be drawn along a possibly tangential vector.

Tomorrow I'll re-implement arcs as they are needed for Wumpus-Drawing.

Thursday, September 15, 2011

wumpus-basic

Copperbox revision 2581.

I've reworked the arc trails to be better cognisant of whether they are drawn in a clockwise or counter-clockwise direction.

Wednesday, September 14, 2011

wumpus-basic

Copperbox revision 2580.

I've added a trail for circular arcs. Hopefully this will be useful for rounded corners, which unfortunately have never been implemented satisfactorily in Wumpus.

Tuesday, September 13, 2011

wumpus

Copperbox revision 2579.

I've finally implemented a tube connector - i.e. a box connector with round ends. This has been on my TODO list for as long as there has been the BoxConnectors module in Wumpus-Drawing.

Monday, September 12, 2011

wumpus-basic

Copperbox revision 2578.

I've added some trails for single Bezier curves.

Sunday, September 11, 2011

wumpus-basic

Copperbox revision 2577.

More work on waveform trails. I've added sine wave and squiggle wave (semicircles) and improved the API so waveforms are drawn according to the number of repetitions - this produces better paths for waves like square or sawtooth that have lines that are otherwise "split" at the end of a phase.

wumpus-basic

Copperbox revision 2576.

Work on waveform trails - sawtooth and square wave. Eventually these should be useful for decorating connector paths.

Saturday, September 10, 2011

wumpus

Copperbox revision 2575.

More work on trails in Wumpus-Basic, I've now added a squiggle trail. Wumpus-Drawing has been updated removing HPath and using CatTrail instead.

Friday, September 9, 2011

wumpus-basic

Copperbox revision 2574.

I've changed GoingTrail to CatTrail and changed the representation to a Hughes list so it supports efficient append. This is so it can replace HPath in Wumpus-Drawing.

Thursday, September 8, 2011

wumpus-basic

Copperbox revision 2573.

More work on Trail.

Off-topic, Wumpus's development has slowed down as I'm contracting and have a lot less "free" time. I generally try to do a commit a day, but on days like today the commit can be fairly insubstantial.

Wednesday, September 7, 2011

wumpus-basic

Copperbox revision 2572.

I've added a new module Trail for what were previously path schemes or point schemes.

I thought of the name Trail this morning on the lines of breadcrumb trails and the Slint song and it seemed to fit better than path scheme (or PrePath, PathPlan...). Coincidentally, I discovered later that Diagrams has a module Trail for Path like functionality - I follow the Diagrams mailing list, but don't know the library well as I haven't been able to build it on Windows.

Monday, September 5, 2011

wumpus

Copperbox revision 2571.

I've changed the argument order of the connect function in Wumpus-Basic. The new order should be better for partial application.

Sunday, September 4, 2011

wumpus

Copperbox revision 2570.

Work on Chains and DocText.

Some of the chains are common enough to merit their own run functions - this is a pattern other Wumpus objects should follow.

User state added to DocText.

Saturday, September 3, 2011

wumpus-basic

Copperbox revision 2568 and 2569.

I've added user state to PosObject and moved it into Kernel.Drawing so it is with the other obviously monadic objects. Without user state in PosObject, it would be impractical to add user state to the Doc object in Wumpus-Drawing.

wumpus

Copperbox revision 2567.

I've updated the demos in Basic and Drawing so they work with the new changes to the argument order of the monadic run functions.

Thursday, September 1, 2011

wumpus-basic

Copperbox revision 2566.

I've changed the arg order of the monadic run functions to follow the monadLib style (args then monadic operation) rather than the MTL style (monadic operation then args).

Using the MTL style was as good as forcing code to use where clauses for the monadic operation if they wanted to be typographically neat, whereas the monadLib style can be linear by using ($).

Wumpus-Drawing needs updating to follow this convention.



Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.