package tyxml
TyXML is a library for building correct HTML and SVG documents
Install
Dune Dependency
Authors
Maintainers
Sources
tyxml-4.4.0.tbz
sha256=516394dd4a5c31726997c51d66aa31cacb91e3c46d4e16c7699130e204042530
sha512=d5f2187f8410524cec7a14b28e8950837070eb0b6571b015dd06076c2841eb7ccaffa86d5d2307eaf1950ee62f9fb926477dac01c870d9c1a2f525853cb44d0c
doc/tyxml.functor/Svg_f/index.html
Module Svg_f
Source
Typesafe constructors for SVG documents (Functorial interface)
This module is experimental, it may lack of some attributes, and the interface is very low level and do not take deeply into account the needs of SVG elements.
See <<a_manual chapter="functors"|the manual of the functorial interface>>.
Source
module Make
(Xml : Xml_sigs.T with type ('a, 'b) W.ft = 'a -> 'b) :
Svg_sigs.Make(Xml).T
with type +'a elt = Xml.elt
and type +'a attrib = Xml.attrib
Create a new implementation of Svg
, using the given underlying Xml
implementation. Will output a module of type Svg_sigs.T
with the various type equalities.
Source
module Wrapped_functions
(Xml : Xml_sigs.T with type ('a, 'b) W.ft = 'a -> 'b) :
Svg_sigs.Wrapped_functions with module Xml = Xml
The standard set of wrapped functions, when W.ft
is the regular function.
Source
module Make_with_wrapped_functions
(Xml : Xml_sigs.T)
(C : Svg_sigs.Wrapped_functions with module Xml = Xml) :
Svg_sigs.Make(Xml).T
with type +'a elt = Xml.elt
and type +'a attrib = Xml.attrib
Similar to Make
but with a custom set of wrapped functions.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>