-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reimplement async dependencies using styles
add kdoc
- Loading branch information
Showing
56 changed files
with
630 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/com/github/chriskn/structurizrextension/api/view/style/C4PUmlElementShape.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.github.chriskn.structurizrextension.api.view.style | ||
|
||
/** | ||
* Enum representing the available element shapes in C4 PlantUml | ||
*/ | ||
enum class C4PUmlElementShape(internal val pUmlString: String) { | ||
ROUNDED_BOX("RoundedBoxShape()"), | ||
EIGHT_SIDED("EightSidedShape()") | ||
} |
7 changes: 0 additions & 7 deletions
7
src/main/kotlin/com/github/chriskn/structurizrextension/api/view/style/C4PUmlShape.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 13 additions & 2 deletions
15
.../kotlin/com/github/chriskn/structurizrextension/api/view/style/sprite/OpenIconicSprite.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
package com.github.chriskn.structurizrextension.api.view.style.sprite | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore | ||
import com.github.chriskn.structurizrextension.api.view.style.toValidColor | ||
import com.github.chriskn.structurizrextension.internal.view.style.toValidColor | ||
|
||
/** | ||
* Open iconic sprite | ||
* | ||
* Can be used to include open iconic icons. | ||
* See [Open Iconic](https://github.com/iconic/open-iconic) | ||
* | ||
* @property name the name of the icon | ||
* @property color the color of the icon. Must be a valid hex code or a named color (e.g. "green") | ||
* @property scale the scale of the icon | ||
* @constructor Create Open iconic sprite | ||
*/ | ||
data class OpenIconicSprite( | ||
val name: String, | ||
val color: String? = null, | ||
val scale: Double? = null, | ||
) : Sprite(scale) { | ||
|
||
@get:JsonIgnore | ||
internal val validatedColor: String? = color?.let { toValidColor(color) } | ||
internal val colorValidated: String? = color?.let { toValidColor(color) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.