d2/lib/shape/shape_code.go
Alexander Wang 524c089a74 oss
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00

20 lines
261 B
Go

package shape
import (
"oss.terrastruct.com/d2/lib/geo"
)
type shapeCode struct {
shapeSquare
}
func NewCode(box *geo.Box) Shape {
return shapeCode{
shapeSquare: shapeSquare{
baseShape: &baseShape{
Type: CODE_TYPE,
Box: box,
},
},
}
}