d2/lib/shape/shape_text.go

22 lines
294 B
Go
Raw Normal View History

package shape
import (
"oss.terrastruct.com/d2/lib/geo"
)
// Text is basically a rectangle
type shapeText struct {
shapeSquare
}
func NewText(box *geo.Box) Shape {
return shapeText{
shapeSquare: shapeSquare{
baseShape: &baseShape{
Type: TEXT_TYPE,
Box: box,
},
},
}
}