com.github.chriskn.structurizrextension.view.LayoutRegistry.kt Maven / Gradle / Ivy
package com.github.chriskn.structurizrextension.view
import com.github.chriskn.structurizrextension.plantuml.C4PlantUmlLayout
object LayoutRegistry {
private val keyToLayout = mutableMapOf()
fun registerLayoutForKey(key: String, layout: C4PlantUmlLayout) = keyToLayout.put(key, layout)
fun layoutForKey(key: String): C4PlantUmlLayout = keyToLayout.getOrDefault(key, C4PlantUmlLayout())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy