Difference between revisions of "User:Lenny222"

From HaskellWiki
Jump to navigation Jump to search
Line 16: Line 16:
 
** primitives :: [Primitive] => subobjects :: [Object]
 
** primitives :: [Primitive] => subobjects :: [Object]
 
** Shape => Ellipse, Rectangle, etc :: Object
 
** Shape => Ellipse, Rectangle, etc :: Object
  +
** SvgPath
  +
*** <pre><path d="M 100 100 L 300 100 L 200 300 z" fill="red" stroke="blue" stroke-width="3" /></pre>
  +
** SvgRectangle
  +
***<pre><rect x="400" y="100" width="400" height="200" fill="yellow" stroke="navy" stroke-width="10" />
  +
</pre>
  +
 
* SvgDocument: HStringTemplate?
 
* SvgDocument: HStringTemplate?
   

Revision as of 09:30, 14 December 2009

Things i think need improvement

Chlor

Todo

  • test, if pattern matching to e.g. Shape works in Svg export
    • primitives :: [Primitive] => subobjects :: [Object]
    • Shape => Ellipse, Rectangle, etc :: Object
    • 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" />
  • SvgDocument: HStringTemplate?
  • Layout
    • Instances
      • Column
      • Grid (cols, rows, margins)
      • Margin/Frame
        • content size (absolute, relative, remaining)
        • margin sizes (absolute, relative, remaining)
  • use HLint
  • Vector
    • createVectors :: [Double] -> [Vector2d]
  • AffineTransformation
  • Shape
    • Sine
    • Spiral
    • Star
    • Pie Chart (only for displaying fractions)
  • Path
    • approximate :: [Vector2D] -> [Segment]
  • Shape
    • intersect
    • intersections

Ideas

  • layout
    • Table
    • SpaceHorizontal
    • SpaceVertical

Simplified Haskell homepage

A simplified Haskell frontpage

Why?