FSketch


DrawingUtils

Namespace: FSketch

Functions and values

Function or valueDescription
boundariesReducer b1 b2
Signature: b1:('a * 'b * 'c * 'd) option -> b2:('a * 'b * 'c * 'd) option -> ('a * 'b * 'c * 'd) option
Type parameters: 'a, 'b, 'c, 'd
computeBoundingBox centerOnOrigin shapes
Signature: centerOnOrigin:bool -> shapes:Shapes -> (Numeric * Numeric * Numeric * Numeric) option
computeBoundingPolygon shape
Signature: shape:Shape -> (Numeric * Numeric) list
computeShapeBoundingBox (...)
Signature: (refSpace:RefSpace * shape:StyledShape) -> Numeric * Numeric * Numeric * Numeric
getPathPoints path
Signature: path:Path -> (Numeric * Numeric) list
measureText
Signature: Text -> float * float
minMaxReducer (min1, max1) (min2, max2)
Signature: (min1:'?8615 * max1:'?8616) -> (min2:'?8615 * max2:'?8616) -> '?8615 * '?8616
Type parameters: '?8615, '?8616
Fork me on GitHub