package tyxml
A library for building correct HTML and SVG documents
Install
Dune Dependency
Authors
Maintainers
Sources
tyxml-4.5.0.tbz
sha256=c69accef5df4dd89d38f6aa0baad01e8fda4e9e98bb7dad61bec1452c5716068
sha512=772535441b09c393d53c27152e65f404a0a541aa0cea1bda899a8d751ab64d1729237e583618c3ff33d75e3865d53503d1ea413c6bbc8c68c413347efd1709b3
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)"
>