(rawName, index)
| 1509 | } |
| 1510 | |
| 1511 | describeLayerName(rawName, index) { |
| 1512 | if (typeof rawName === "string" && rawName.trim().length > 0) { |
| 1513 | const normalized = rawName.replace(/[_-]+/g, " ").trim(); |
| 1514 | return normalized.length ? normalized : `Layer ${index + 1}`; |
| 1515 | } |
| 1516 | return `Layer ${index + 1}`; |
| 1517 | } |
| 1518 | |
| 1519 | update(model) { |
| 1520 | if (!model || !Array.isArray(model.layers) || model.layers.length === 0) { |