cleanup
This commit is contained in:
parent
4bfbedac7d
commit
4b931f7aec
2 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,6 @@ func run(t *testing.T, tc testCase) {
|
|||
renderOpts := &d2svg.RenderOpts{
|
||||
Pad: 0,
|
||||
ThemeID: tc.themeID,
|
||||
// SetDimensions: true,
|
||||
}
|
||||
if len(diagram.Layers) > 0 || len(diagram.Scenarios) > 0 || len(diagram.Steps) > 0 {
|
||||
masterID, err := diagram.HashID()
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ func (labelPosition Position) GetPointOnBox(box *geo.Box, padding, width, height
|
|||
}
|
||||
|
||||
// return the top left point of a width x height label at the given label position on the route
|
||||
// also return the index of the route segment that point is on
|
||||
func (labelPosition Position) GetPointOnRoute(route geo.Route, strokeWidth, labelPercentage, width, height float64) (point *geo.Point, index int) {
|
||||
totalLength := route.Length()
|
||||
leftPosition := LEFT_LABEL_POSITION * totalLength
|
||||
|
|
|
|||
Loading…
Reference in a new issue