@JsUnion
external enum value class GraphItemType(val value: Int) {
NODE(1), EDGE(2), PORT(4), LABEL(8)
}
println(GraphItemType.EDGE) // 2
println(GraphItemType.PORT) // 4
t
turansky
04/28/2021, 11:25 PM
Current plan - use single enum feature - “named constants”.
It allows to declare plugin in libraries only ( where annotation used).
Otherwise you will need to use plugin in all projects, which use library.
a
andylamax
04/29/2021, 12:29 AM
yikes . . . I would go with named constants for sure