def marker.orient

gralha-svg-render@0.1.0.1 · svg.bend:3039

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

3039def marker.orient(+s: String, angle: F32, start: Bool) -> F32:
3040  +auto = U.string.equal(s, "auto") || U.string.equal(s, "auto-start-reverse")
3041  U.choose(F32, auto, (angle + U.choose(F32, start && U.string.equal(s, "auto-start-reverse"), 180.0, 0.0) : F32), marker.angle.number(U.number(s)))

Uses (10)

Used by (1)