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
(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) (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