package nodeshape

import (
	
	
)

type shapeParallelogram struct {
	shapeSquare
}

func ( shapeParallelogram) ( LabelTier) map[label.Position]struct{} {
	switch  {
	case Good:
		return map[label.Position]struct{}{
			label.InsideTopLeft:      {},
			label.InsideMiddleCenter: {},
			label.InsideBottomRight:  {},
			label.OutsideTopRight:    {},
			label.OutsideBottomLeft:  {},
		}
	case OK:
		return map[label.Position]struct{}{
			label.OutsideTopCenter:    {},
			label.InsideTopCenter:     {},
			label.InsideBottomCenter:  {},
			label.OutsideBottomCenter: {},
		}
	case Unideal:
		return map[label.Position]struct{}{
			label.OutsideLeftMiddle:  {},
			label.OutsideLeftBottom:  {},
			label.OutsideRightTop:    {},
			label.OutsideRightMiddle: {},
			label.InsideTopRight:     {},
			label.InsideMiddleLeft:   {},
			label.InsideMiddleRight:  {},
			label.InsideBottomLeft:   {},
		}
	case Bad:
		return map[label.Position]struct{}{
			label.OutsideTopLeft:     {},
			label.OutsideLeftTop:     {},
			label.OutsideRightBottom: {},
			label.OutsideBottomRight: {},
		}
	}
	return map[label.Position]struct{}{}
}

func ( shapeParallelogram) () [][]*geo.RelativePoint {
	 := .GetBox().Width
	 := 26.0
	if  <  {
		 =  / 2.0
	}

	return [][]*geo.RelativePoint{
		// Top
		{
			geo.NewRelativePoint(/+((-)/)*0.25, 0),
			geo.NewRelativePoint(/+((-)/)*0.5, 0),
			geo.NewRelativePoint(/+((-)/)*0.75, 0),
		},
		// Left
		{
			geo.NewRelativePoint((/2.0+)/2.0/, 0.25),
			geo.NewRelativePoint(/2.0/, 0.5),
			geo.NewRelativePoint(/2.0/2.0/, 0.75),
		},
		// Bottom
		{
			geo.NewRelativePoint(((-)/)*0.25, 1),
			geo.NewRelativePoint(((-)/)*0.5, 1),
			geo.NewRelativePoint(((-)/)*0.75, 1),
		},
		// Right
		{
			geo.NewRelativePoint((-)/+(/2.0+)/2.0/, 0.25),
			geo.NewRelativePoint((-)/+/2.0/, 0.5),
			geo.NewRelativePoint((-)/+/2.0/2.0/, 0.75),
		},
	}
}