2022-11-03 13:54:49 +00:00
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-23 18:32:12 +00:00
|
|
|
|
|
|
|
|
func (s shapeTable) GetDefaultPadding() (paddingX, paddingY float64) {
|
|
|
|
|
return 0, 0
|
|
|
|
|
}
|