Personal tools

User:Lenny222

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
m (Todo)
m (Todo)
Line 33: Line 33:
 
** splitVertical :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space
 
** splitVertical :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space
   
  +
* Path
  +
** ArcTo: http://chlor.svn.sourceforge.net/viewvc/chlor/trunk/src/core/CPath.m?revision=561&view=markup
  +
*** http://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes
  +
*** http://lib2geom.svn.sourceforge.net/viewvc/lib2geom/lib2geom/trunk/src/2geom/elliptical-arc.h
  +
*** http://lib2geom.svn.sourceforge.net/viewvc/lib2geom/lib2geom/trunk/src/2geom/elliptical-arc.cpp
  +
  +
* Diagram
  +
** Histogram http://had.co.nz/ggplot2/geom_histogram.html
  +
** Pie (only for displaying fractions)
  +
** Stairs http://had.co.nz/ggplot2/geom_step.html
   
 
* Datatypes
 
* Datatypes
Line 53: Line 63:
 
* Datatypes
 
* Datatypes
 
** <haskell>data Length = Length Unit Double deriving(Eq, Show)</haskell>
 
** <haskell>data Length = Length Unit Double deriving(Eq, Show)</haskell>
 
* Path
 
** ArcTo: http://chlor.svn.sourceforge.net/viewvc/chlor/trunk/src/core/CPath.m?revision=561&view=markup
 
*** http://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes
 
*** http://lib2geom.svn.sourceforge.net/viewvc/lib2geom/lib2geom/trunk/src/2geom/elliptical-arc.h
 
*** http://lib2geom.svn.sourceforge.net/viewvc/lib2geom/lib2geom/trunk/src/2geom/elliptical-arc.cpp
 
 
* Diagram
 
** Histogram http://had.co.nz/ggplot2/geom_histogram.html
 
** Pie (only for displaying fractions)
 
** Stairs http://had.co.nz/ggplot2/geom_step.html
 
   
 
* Shape
 
* Shape

Revision as of 09:01, 12 January 2010

Contents

1 Things i think need improvement

1.1 Chlor


1.1.1 Todo

  • delete Layout/*
  • Box
    • splitHorizontal :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space
subBoxWidth = (width - (n - 1) * subBoxMargin) / n
subBoxes = map (\i -> left + i * (subBoxWidth + subBoxMargin)) [0..n-1]
  • Box
    • splitVertical :: Int -> Double -> Box -> [Box] -- ^ number of boxes, space
  • Datatypes
    • Unit
      • defaultUnit
  data Unit =
          UnitCM
        | UnitEM
        | UnitEX
        | UnitIN
        | UnitMM
        | UnitPC
        | UnitPT
        | UnitPX
        | UnitPercent
        deriving(Eq, Show)
  • Datatypes
    • data Length = Length Unit Double deriving(Eq, Show)
  • SVG export
    • SvgPath
      • <path d="M 100 100 L 300 100 L 200 300 z" fill="red" stroke="blue" stroke-width="3" />
    • SvgRectangle
      • <rect x="400" y="100" width="400" height="200" fill="yellow" stroke="navy" stroke-width="10" />
        
  • ObjectLike: DList instead of List?
  • SVG XML generation
    • HStringTemplate?
    • HXT?
    • HaXml?
  • Layout
    • Instances
      • Column
      • Grid (cols, rows, margins)
      • Margin/Frame
        • content size (absolute, relative, remaining)
        • margin sizes (absolute, relative, remaining)
  • repeatedly
    • use HLint
    • use ghc -W
  • AffineTransformation

1.1.2 Ideas

  • layout
    • Table
    • SpaceHorizontal
    • SpaceVertical

1.2 Simplified Haskell homepage

A simplified Haskell frontpage

Why?