Prefix group element names with s_str_ for Designer search
Group names now format as s_str_{id} (e.g. s_str_UL17_20_VFD)
for searchability in Ignition Designer.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
12a2ad62bf
commit
015e2406b0
@ -364,7 +364,8 @@ function svgElementToIgnition(el: Element): Record<string, any> | null {
|
||||
|
||||
if (tag === 'g') {
|
||||
obj.type = 'group';
|
||||
obj.name = el.getAttribute('id') || el.getAttribute('inkscape:label') || 'group';
|
||||
const gId = el.getAttribute('id') || el.getAttribute('inkscape:label') || 'group';
|
||||
obj.name = gId !== 'group' ? `s_str_${gId}` : 'group';
|
||||
if (el.getAttribute('id')) obj.id = el.getAttribute('id');
|
||||
if (el.getAttribute('transform')) obj.transform = el.getAttribute('transform');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user