def with_mode
import bend-visgraph@2.0.0.0/bend_visgraph.bend as BendVisgraphimport Base
import bend-visgraph@2.0.0.0/visgraph.bend as VG
118def with_mode(found: Maybe<&2, Mode>, name: String, value: String, o: String, x: String, g: VG.Visibility, d: VG.Direction, k: VG.Weight, l: U32) -> Config:
119 match found:
120 case Some{m}:
121 Config{o, x, g, d, k, l, m}
122 case None{}:
123 bad(name, value)