24 lines
347 B
Go
24 lines
347 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,
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
func (s shapeCode) GetDefaultPadding() (paddingX, paddingY float64) {
|
|
return 0, 0
|
|
}
|