package nodespacing
import (
"github.com/d2lang/elk-go/internal/geometry"
"github.com/d2lang/elk-go/internal/graph"
)
var (
Margins = graph .CloneablePropertyWithDefault ("org.eclipse.elk.margins" , func () geometry .Spacing {
return geometry .Spacing {}
})
SpacingLabelNode = graph .PropertyWithDefault ("org.eclipse.elk.spacing.labelNode" , func () float64 { return 5 })
SpacingPortPort = graph .PropertyWithDefault ("org.eclipse.elk.spacing.portPort" , func () float64 { return 10 })
NodeLabelsPlacement = graph .CloneablePropertyWithDefault ("org.eclipse.elk.nodeLabels.placement" , func () []string { return nil })
PortLabelsPlacement = graph .CloneablePropertyWithDefault ("org.eclipse.elk.portLabels.placement" , func () []string {
return []string {"OUTSIDE" }
})
EdgeLabelsPlacement = graph .PropertyWithDefault ("org.eclipse.elk.edgeLabels.placement" , func () string { return "CENTER" })
NodeSizeOptions = graph .CloneablePropertyWithDefault ("org.eclipse.elk.nodeSize.options" , func () []string {
return []string {"DEFAULT_MINIMUM_SIZE" }
})
PortBorderOffset = graph .PropertyWithDefault ("org.eclipse.elk.port.borderOffset" , func () float64 { return 0 })
PortAlignment = graph .PropertyWithDefault ("org.eclipse.elk.portAlignment.default" , func () string { return "DISTRIBUTED" })
)
func has(values []string , value string ) bool {
for _ , candidate := range values {
if candidate == value {
return true
}
}
return false
}
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .