package nodeshape
import (
"github.com/pancsta/d2/lib/label"
)
type shapeCircle struct {
shapeSquare
}
func (s shapeCircle ) LabelPositionPreferences (preferenceSet LabelTier ) map [label .Position ]struct {} {
switch preferenceSet {
case Good :
return map [label .Position ]struct {}{
label .OutsideTopCenter : {},
label .InsideMiddleCenter : {},
label .OutsideBottomCenter : {},
}
case OK :
return map [label .Position ]struct {}{
label .InsideBottomCenter : {},
label .InsideTopCenter : {},
label .InsideMiddleLeft : {},
label .InsideMiddleRight : {},
}
case Unideal :
return map [label .Position ]struct {}{
label .InsideTopLeft : {},
label .InsideTopRight : {},
label .InsideBottomLeft : {},
label .InsideBottomRight : {},
label .OutsideLeftMiddle : {},
label .OutsideRightMiddle : {},
}
case Bad :
return map [label .Position ]struct {}{
label .OutsideTopLeft : {},
label .OutsideTopRight : {},
label .OutsideLeftTop : {},
label .OutsideRightTop : {},
label .OutsideBottomLeft : {},
label .OutsideBottomRight : {},
label .OutsideLeftBottom : {},
label .OutsideRightBottom : {},
}
}
return map [label .Position ]struct {}{}
}
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 .