Skip to content

Commit 92be058

Browse files
committed
sync with upstream
2 parents 314abd9 + e762ee4 commit 92be058

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

.github/workflows/TagBot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@ on:
66
workflow_dispatch:
77
inputs:
88
lookback:
9-
default: 3
9+
default: "3"
1010
permissions:
11+
actions: read
12+
checks: read
1113
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
1223
jobs:
1324
TagBot:
1425
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CI
2-
on: [push]
2+
on: [push, pull_request]
33
jobs:
44
test:
55
strategy:
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: julia-actions/setup-julia@v1
13+
- uses: julia-actions/setup-julia@v2
1414
with:
1515
version: ${{ matrix.julia_version }}
16-
- uses: julia-actions/cache@v1
16+
- uses: julia-actions/cache@v2
1717
- uses: julia-actions/julia-runtest@v1
1818
- uses: julia-actions/julia-processcoverage@v1
1919
- uses: codecov/codecov-action@v4

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TrajectoryGamesBase"
22
uuid = "ac1ac542-73eb-4349-ae1b-660ab3609574"
33
authors = ["David Fridovich-Keil <[email protected]>", "Forrest Laine <[email protected]", "Lasse Peters <[email protected]>"]
4-
version = "0.3.8"
4+
version = "0.3.11"
55

66
[deps]
77
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
@@ -18,15 +18,15 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1818
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
1919

2020
[extensions]
21-
MakieVizExt = "Makie"
21+
MakieExt = "Makie"
2222

2323
[compat]
2424
BlockArrays = "0.16"
2525
Colors = "0.12"
2626
GeometryBasics = "0.4.2"
27-
InfiniteArrays = "0.12, 0.13"
27+
InfiniteArrays = "0.12, 0.13, 0.14"
2828
LazySets = "1.54, 2"
29-
Makie = "0.17, 0.18, 0.19, 0.20"
29+
Makie = "0.17, 0.18, 0.19, 0.20, 0.21"
3030
Polyhedra = "0.7"
3131
julia = "1.7"
3232

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
module MakieVizExt
1+
module MakieExt
22
using TrajectoryGamesBase: TrajectoryGamesBase
33
using Makie: Makie, @recipe
44
using Colors: @colorant_str
55
using GeometryBasics: GeometryBasics
66

77
Makie.plottype(::TrajectoryGamesBase.PolygonEnvironment) = Makie.Poly
88

9-
function Makie.convert_arguments(::Type{<:Makie.Poly}, environment::TrajectoryGamesBase.PolygonEnvironment)
9+
function Makie.convert_arguments(
10+
::Type{<:Makie.Poly},
11+
environment::TrajectoryGamesBase.PolygonEnvironment,
12+
)
1013
geometry = GeometryBasics.Polygon(GeometryBasics.Point{2}.(environment.set.vertices))
1114
(geometry,)
1215
end
@@ -57,7 +60,7 @@ function Makie.plot!(viz::OpenLoopStrategyViz{<:Tuple{TrajectoryGamesBase.OpenLo
5760
endtime = something($(viz.endtime), lastindex($strategy.xs))
5861
subsampled_states = $strategy.xs[starttime:($(viz.position_subsampling)):endtime]
5962
if $(viz.dimensionality) == 2
60-
[Makie.Point2f(xi[2], xi[1]) for xi in subsampled_states]
63+
[Makie.Point2f(xi[1], xi[2]) for xi in subsampled_states]
6164
elseif $(viz.dimensionality) == 3
6265
[Makie.Point3f(xi[1], xi[2], xi[3]) for xi in subsampled_states]
6366
else

src/TrajectoryGamesBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export to_blockvector,
6565
unflatten_trajectory
6666

6767
if !isdefined(Base, :get_extension)
68-
include("../ext/MakieVizExt.jl")
68+
include("../ext/MakieExt.jl")
6969
end
7070

7171
end

0 commit comments

Comments
 (0)