
com.github.rahulsom.grooves.asciidoctor.Constants.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grooves-diagrams Show documentation
Show all versions of grooves-diagrams Show documentation
Asciidoctor Extension to generate Event Sourcing Diagrams like those on https://rahulsom.github.io/grooves
The newest version!
package com.github.rahulsom.grooves.asciidoctor
/**
* Constants used in computing dimensions while rendering Event Sourcing diagrams.
*
* @author Rahul Somasunderam
*/
object Constants {
const val eventLineHeight: Int = 100
const val aggregateHeight: Int = 40
const val aggregateWidth: Int = 100
const val eventSpace: Int = 50
const val offset: Int = 45
const val textLineHeight: Int = 18
val CSS: String by lazy {
Constants::class.java.getResourceAsStream("/esdiag.css").reader().readText()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy