mirror of https://github.com/tidwall/tile38.git
parent
d8b813a423
commit
c75a144b83
|
@ -254,7 +254,7 @@
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:3307384a763736cbcfa625076939fe9a240e5f5c9d6ace507fa4fd1f4f6944d6"
|
digest = "1:36ee77434dbfa0fafc20f0788cfc0a30f7dda8aea228b2574028be818cfabc31"
|
||||||
name = "github.com/tidwall/geojson"
|
name = "github.com/tidwall/geojson"
|
||||||
packages = [
|
packages = [
|
||||||
".",
|
".",
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
"geometry",
|
"geometry",
|
||||||
]
|
]
|
||||||
pruneopts = ""
|
pruneopts = ""
|
||||||
revision = "553da6f08f84f544b5482743fe73c3989facc578"
|
revision = "0d533c870e85d0cb1909818503e0127f9e543d92"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:3ddca2bd5496c6922a2a9e636530e178a43c2a534ea6634211acdc7d10222794"
|
digest = "1:3ddca2bd5496c6922a2a9e636530e178a43c2a534ea6634211acdc7d10222794"
|
||||||
|
|
|
@ -269,12 +269,14 @@ func appendJSONSeries(
|
||||||
func unionRects(a, b geometry.Rect) geometry.Rect {
|
func unionRects(a, b geometry.Rect) geometry.Rect {
|
||||||
if b.Min.X < a.Min.X {
|
if b.Min.X < a.Min.X {
|
||||||
a.Min.X = b.Min.X
|
a.Min.X = b.Min.X
|
||||||
} else if b.Max.X > a.Max.X {
|
}
|
||||||
|
if b.Max.X > a.Max.X {
|
||||||
a.Max.X = b.Max.X
|
a.Max.X = b.Max.X
|
||||||
}
|
}
|
||||||
if b.Min.Y < a.Min.Y {
|
if b.Min.Y < a.Min.Y {
|
||||||
a.Min.Y = b.Min.Y
|
a.Min.Y = b.Min.Y
|
||||||
} else if b.Max.Y > a.Max.Y {
|
}
|
||||||
|
if b.Max.Y > a.Max.Y {
|
||||||
a.Max.Y = b.Max.Y
|
a.Max.Y = b.Max.Y
|
||||||
}
|
}
|
||||||
return a
|
return a
|
||||||
|
|
Loading…
Reference in New Issue