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

22 lines
286 B
Go

package shape
import (
"oss.terrastruct.com/d2/lib/geo"
)
type shapeImage struct {
*baseShape
}
func NewImage(box *geo.Box) Shape {
return shapeImage{
baseShape: &baseShape{
Type: IMAGE_TYPE,
Box: box,
},
}
}
func (s shapeImage) IsRectangular() bool {
return true
}