package shape

import (
	

	
	
	
)

type shapeStoredData struct {
	*baseShape
}

const storedDataWedgeWidth = 15.

func ( *geo.Box) Shape {
	 := shapeStoredData{
		baseShape: &baseShape{
			Type: STORED_DATA_TYPE,
			Box:  ,
		},
	}
	.FullShape = go2.Pointer(Shape())
	return 
}

func ( shapeStoredData) () *geo.Box {
	 := .Box.Width
	 := .Box.TopLeft.Copy()
	 -= 2 * storedDataWedgeWidth
	.X += storedDataWedgeWidth
	return geo.NewBox(, , .Box.Height)
}

func storedDataPath( *geo.Box) *svg.SvgPathContext {
	 := storedDataWedgeWidth
	 := 0.27
	if .Width < *2 {
		 = .Width / 2.0
	}
	 := svg.NewSVGPathContext(.TopLeft, 1, 1)
	.StartAt(.Absolute(, 0))
	.H(true, .Width-)
	.C(false, .Width-*, 0, .Width-, .Height*, .Width-, .Height/2.0)
	.C(false, .Width-, .Height-.Height*, .Width-*, .Height, .Width, .Height)
	.H(true, -(.Width - ))
	.C(false, -*, .Height, 0, .Height-.Height*, 0, .Height/2.0)
	.C(false, 0, .Height*, -*, 0, , 0)
	.Z()
	return 
}

func ( shapeStoredData) () []geo.Intersectable {
	return storedDataPath(.Box).Path
}

func ( shapeStoredData) () []string {
	return []string{
		storedDataPath(.Box).PathData(),
	}
}

func ( shapeStoredData) (, , ,  float64) (float64, float64) {
	 :=  +  + 2*storedDataWedgeWidth
	return math.Ceil(), math.Ceil( + )
}

func ( shapeStoredData) () (,  float64) {
	return defaultPadding - 10, defaultPadding
}