def target.index
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
5131def target.index(+t: Target, +px: U32, +py: U32) -> U32:
5132 Target{x, y, w, h} = t
5133 ((py - y) * w + px - x : U32)
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
5131def target.index(+t: Target, +px: U32, +py: U32) -> U32:
5132 Target{x, y, w, h} = t
5133 ((py - y) * w + px - x : U32)