Add member or utility function to keys to get the position of their stem(s). For most keys, this will be their x,y plus half of their width/height. Some keys don't follow this rule, namely stepped, non-rectangular keys and space bars with off-center stems. In those cases, undefined could be returned (at least until there's a way to encode the position in the serialization format).
Stem position is helpful when creating plates and PCBs.
All that said, it's very easy for a client application to calculate the regular positions itself, so the need for such a feature isn't huge. More of a nice-to-have.
Add member or utility function to keys to get the position of their stem(s). For most keys, this will be their x,y plus half of their width/height. Some keys don't follow this rule, namely stepped, non-rectangular keys and space bars with off-center stems. In those cases,
undefinedcould be returned (at least until there's a way to encode the position in the serialization format).Stem position is helpful when creating plates and PCBs.
All that said, it's very easy for a client application to calculate the regular positions itself, so the need for such a feature isn't huge. More of a nice-to-have.