hgeometry-svg
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageGHC2024

HGeometry.Miso.Svg.Draw

Description

Draw geometric objects to Svg files through miso.

This uses the newer API common with ipe

Synopsis

Documentation

data Svg model action Source #

The Svg backend; which renders to Svg using Miso

Instances

Instances details
ToMisoString r => IsDrawable (Svg model action) (TextLabel r) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (TextLabel r) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (TextLabel r) = TextAttributes r

Methods

draw :: [Attr (Svg model action) (TextLabel r)] -> TextLabel r -> Rendered (Svg model action) Source #

(Point_ center 2 r, Radical r, ToMisoString r, r ~ NumType center) => IsDrawable (Svg model action) (Circle center) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (Circle center) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Circle center) = PathAttributes (NumType center)

Methods

draw :: [Attr (Svg model action) (Circle center)] -> Circle center -> Rendered (Svg model action) Source #

(Point_ center 2 r, Radical r, ToMisoString r, r ~ NumType center, Radical r, Fractional r) => IsDrawable (Svg model action) (Disk center) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (Disk center) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Disk center) = PathAttributes (NumType center)

Methods

draw :: [Attr (Svg model action) (Disk center)] -> Disk center -> Rendered (Svg model action) Source #

(Point_ corner 2 r, ToMisoString r, Num r, r ~ NumType corner) => IsDrawable (Svg model action) (Rectangle corner) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (Rectangle corner) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Rectangle corner) = PathAttributes (NumType corner)

Methods

draw :: [Attr (Svg model action) (Rectangle corner)] -> Rectangle corner -> Rendered (Svg model action) Source #

(Point_ point 2 r, Fractional r, ToMisoString r, r ~ NumType point) => IsDrawable (Svg model action) (CubicBezier point) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (CubicBezier point) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (CubicBezier point) = PathAttributes (NumType point)

Methods

draw :: [Attr (Svg model action) (CubicBezier point)] -> CubicBezier point -> Rendered (Svg model action) Source #

(Point_ vertex 2 (NumType vertex), ToMisoString (NumType vertex), EndPoint_ (endPoint vertex), IxValue (endPoint vertex) ~ vertex) => IsDrawable (Svg model action) (LineSegment endPoint vertex) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (LineSegment endPoint vertex) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (LineSegment endPoint vertex) = PathAttributes (NumType vertex)

Methods

draw :: [Attr (Svg model action) (LineSegment endPoint vertex)] -> LineSegment endPoint vertex -> Rendered (Svg model action) Source #

ToMisoString r => IsDrawable (Svg model action) (Point 2 r) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (Point 2 r) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Point 2 r) = SymbolAttributes r

Methods

draw :: [Attr (Svg model action) (Point 2 r)] -> Point 2 r -> Rendered (Svg model action) Source #

(Point_ vertex 2 (NumType vertex), ToMisoString (NumType vertex), PolyLine_ (PolyLineF f vertex) vertex) => IsDrawable (Svg model action) (PolyLineF f vertex) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (PolyLineF f vertex) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (PolyLineF f vertex) = PathAttributes (NumType vertex)

Methods

draw :: [Attr (Svg model action) (PolyLineF f vertex)] -> PolyLineF f vertex -> Rendered (Svg model action) Source #

(Point_ vertex 2 (NumType vertex), ToMisoString (NumType vertex), SimplePolygon_ (SimplePolygonF f vertex) vertex (NumType vertex)) => IsDrawable (Svg model action) (SimplePolygonF f vertex) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

Associated Types

type AttrOf (Svg model action) (SimplePolygonF f vertex) 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (SimplePolygonF f vertex) = PathAttributes (NumType vertex)

Methods

draw :: [Attr (Svg model action) (SimplePolygonF f vertex)] -> SimplePolygonF f vertex -> Rendered (Svg model action) Source #

type Rendered (Svg model action) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type Rendered (Svg model action) = [View () () model action]
type AttrOf (Svg model action) (TextLabel r) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (TextLabel r) = TextAttributes r
type AttrOf (Svg model action) (Circle center) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Circle center) = PathAttributes (NumType center)
type AttrOf (Svg model action) (Disk center) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Disk center) = PathAttributes (NumType center)
type AttrOf (Svg model action) (Rectangle corner) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Rectangle corner) = PathAttributes (NumType corner)
type AttrOf (Svg model action) (CubicBezier point) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (CubicBezier point) = PathAttributes (NumType point)
type AttrOf (Svg model action) (LineSegment endPoint vertex) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (LineSegment endPoint vertex) = PathAttributes (NumType vertex)
type AttrOf (Svg model action) (Point 2 r) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (Point 2 r) = SymbolAttributes r
type AttrOf (Svg model action) (PolyLineF f vertex) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (PolyLineF f vertex) = PathAttributes (NumType vertex)
type AttrOf (Svg model action) (SimplePolygonF f vertex) Source # 
Instance details

Defined in HGeometry.Miso.Svg.Draw

type AttrOf (Svg model action) (SimplePolygonF f vertex) = PathAttributes (NumType vertex)

type SVG = Svg () Void Source #

Static Svg

module Ipe.Draw