Svg.style.present: def of gralha-svg-render@0.1.0.1 Import: import gralha-svg-render@0.1.0.1/svg.bend as Svg Lines 1065-1072 of gralha-svg-render@0.1.0.1/svg.bend: https://jend.leeeet.dev/read.txt?path=gralha-svg-render@0.1.0.1/svg.bend&start_line=1065&end_line=1072 import Base import gralha-text-scan@0.1.0.1/scan.bend as U def style.present(found: Maybe<&2, String>, +fallback: String, +initial: String, +inherited: Bool) -> String: match found: case None{}: U.choose(String, inherited, fallback, initial) case Some{v}: +vv = v +k = style.keyword(vv) U.choose(String, U32.is_eq(k, 1) || (inherited && U32.is_eq(k, 3)), fallback, U.choose(String, U32.is_eq(k, 2) || U32.is_eq(k, 3), initial, vv)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=gralha-svg-render@0.1.0.1/svg.bend&name=style.keyword https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=choose