package ocaml-canvas
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Transform manipulation functions
type t = {
a : float;
(*x scaling/flipping, rotation
*)b : float;
(*x shearing, rotation
*)c : float;
(*y shearing, rotation
*)d : float;
(*y scaling/flipping, rotation
*)e : float;
(*x translation
*)f : float;
(*y translation
*)
}
A type to represent transformation matrices of the form:
a b 0
c d 0
e f 1
val id : t
Identity transformation
val create : (float * float * float * float * float * float) -> t
create t
creates a transformation given the matrix t = (a, b, c, d, e, f)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>