21 lines
286 B
Go
21 lines
286 B
Go
package shape
|
|
|
|
import (
|
|
"oss.terrastruct.com/d2/lib/geo"
|
|
)
|
|
|
|
// Table is basically a rectangle
|
|
type shapeTable struct {
|
|
shapeSquare
|
|
}
|
|
|
|
func NewTable(box *geo.Box) Shape {
|
|
return shapeTable{
|
|
shapeSquare{
|
|
baseShape: &baseShape{
|
|
Type: TABLE_TYPE,
|
|
Box: box,
|
|
},
|
|
},
|
|
}
|
|
}
|