(clip p? pattern)clips all sshapes in a pattern
clips all sshapes in a pattern
(clip-sshape p? {:keys [style points]})takes a predicate and a sshape, splits the sshape at any point which doesn't meet the predicate, return pattern
takes a predicate and a sshape, splits the sshape at any point which doesn't meet the predicate, return pattern
(explain-group data)Returns detailed explanation if data is not a valid group
Returns detailed explanation if data is not a valid group
(explain-sshape data)Returns detailed explanation if data is not a valid SShape
Returns detailed explanation if data is not a valid SShape
(filter-sshapes-in-pattern p? pattern)this removes entire sshapes from the pattern that have points that don't match the criteria
this removes entire sshapes from the pattern that have points that don't match the criteria
(flatten-pattern pattern)(flatten-pattern style pattern)Flatten all sshapes into a single sshape
Flatten all sshapes into a single sshape
(h-centre pattern)Assumes pattern is taller than wide so move it to horizontal centre
Assumes pattern is taller than wide so move it to horizontal centre
(horizontal-centre-pattern-in-pattern inner-pattern outer-pattern)(mol= pattern1 pattern2)more or less equal patterns
more or less equal patterns
(over-style style pattern)Changes the style of a pattern
Changes the style of a pattern
(reframe-scaler sshape)Takes a sshape and returns a scaler to reduce it to usual viewport coords [-1 -1][1 1]
Takes a sshape and returns a scaler to reduce it to usual viewport coords [-1 -1][1 1]
(validate-group data)Validates if data is a valid group (sequence of SShapes)
Validates if data is a valid group (sequence of SShapes)
(vertical-centre-pattern-in-pattern inner-pattern outer-pattern)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |