package nodeshape

import (
	
	
)

type shapeDocument struct {
	shapeSquare
}

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

func ( shapeDocument) () [][]*geo.RelativePoint {
	 := .GetBox()
	 := .Width
	 := .Height
	 := geo.NewBezierCurve([]*geo.Point{
		geo.NewPoint(0, *(16.3/18.925)),
		geo.NewPoint(/6, *(19.8/18.925)),
		geo.NewPoint(/3, *(19.8/18.925)),
		geo.NewPoint(/2, *(16.3/18.925)),
	}).At(0.5)
	 := geo.NewBezierCurve([]*geo.Point{
		geo.NewPoint(/2, *(16.3/18.925)),
		geo.NewPoint(*2/3, *(12.8/18.925)),
		geo.NewPoint(*5/6, *(12.8/18.925)),
		geo.NewPoint(, *(16.3/18.925)),
	})
	return [][]*geo.RelativePoint{
		// Top
		{
			geo.NewRelativePoint(0.25, 0),
			geo.NewRelativePoint(0.5, 0),
			geo.NewRelativePoint(0.75, 0),
		},
		// Left
		{
			geo.NewRelativePoint(0, 0.25),
			geo.NewRelativePoint(0, 0.5),
			geo.NewRelativePoint(0, 0.75),
		},
		// Bottom
		{
			geo.NewRelativePoint(.X/, .Y/),
			geo.NewRelativePoint(.At(0).X/, .At(0).Y/),
			geo.NewRelativePoint(.At(0.5).X/, .At(0.5).Y/),
		},
		// Right
		{
			geo.NewRelativePoint(1, 0.25),
			geo.NewRelativePoint(1, 0.5),
			geo.NewRelativePoint(1, 0.75),
		},
	}
}