diff --git a/.gitignore b/.gitignore index 1686045..fbac85e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ *.geojson *startup.jl /test/test_coverage.jl -/dev # Build artifacts for creating documentation generated by the Documenter package /examples/exported_files diff --git a/Project.toml b/Project.toml index f3fa91c..7d3c823 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "EnergyModelsGUI" uuid = "737a7361-d3b7-40e9-b1ac-59bee4c5ea2d" authors = ["Jon Vegard Venås ", "Magnus Askeland ", "Shweta Tiwari "] -version = "0.5.14" +version = "0.5.15" [deps] CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0" @@ -31,14 +31,14 @@ EnergyModelsGeography = "3f775d88-a4da-46c4-a2cc-aa9f16db6708" EMGExt = "EnergyModelsGeography" [compat] -CairoMakie = "0.12" +CairoMakie = "=0.12.18" Colors = "0.12" Dates = "1.9" EnergyModelsBase = "0.9" EnergyModelsGeography = "0.11" EnergyModelsInvestments = "0.8" FileIO = "1.16" -GLMakie = "0.10.5" +GLMakie = "=0.10.18" GeoJSON = "0.8" GeoMakie = "=0.7.12" HTTP = "1.10" diff --git a/src/utils_GUI/topo_axis_utils.jl b/src/utils_GUI/topo_axis_utils.jl index 4b64ce2..279c4e4 100644 --- a/src/utils_GUI/topo_axis_utils.jl +++ b/src/utils_GUI/topo_axis_utils.jl @@ -10,7 +10,7 @@ function pixel_to_data(gui::GUI, pixel_size::Real) y_range::Float64 = vars[:ylimits][2] - vars[:ylimits][1] # Get the widths of the axis - plot_widths::Vec2{Int64} = pixelarea(get_ax(gui, :topo).scene)[].widths + plot_widths::Vec2{Int64} = viewport(get_ax(gui, :topo).scene)[].widths # Calculate the conversion factor x_factor::Float64 = x_range / plot_widths[1] @@ -55,7 +55,7 @@ function new_global_delta_h(gui::GUI) vars = get_vars(gui) axes = get_axes(gui) xyWidths::Vec = axes[:topo].finallimits[].widths - plot_widths::Vec2{Int64} = pixelarea(axes[:topo].scene)[].widths + plot_widths::Vec2{Int64} = viewport(axes[:topo].scene)[].widths vars[:Δh] = maximum([ maximum(Vector(0.5 * vars[:Δh_px] * xyWidths ./ plot_widths)), minimum([ diff --git a/test/JuliaFormatter.jl b/test/JuliaFormatter.jl index b69b613..ee6cac4 100644 --- a/test/JuliaFormatter.jl +++ b/test/JuliaFormatter.jl @@ -2,6 +2,6 @@ using JuliaFormatter @testset "JuliaFormatter.jl" begin @test begin - format("..") + format(joinpath(@__DIR__, "..")) end end