{"id":18008265,"url":"https://github.com/clemapfel/mousetrapmakie.jl","last_synced_at":"2025-04-04T11:46:47.921Z","repository":{"id":202659949,"uuid":"695167619","full_name":"Clemapfel/MousetrapMakie.jl","owner":"Clemapfel","description":"Allows for integrating Makie Plots into Mousetrap.jl Applications","archived":false,"fork":false,"pushed_at":"2024-07-18T12:12:42.000Z","size":70,"stargazers_count":14,"open_issues_count":6,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-28T19:51:17.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clemapfel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-22T13:57:32.000Z","updated_at":"2024-04-27T02:53:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fd55d7b-cfd2-4892-91ea-cf59b44bedeb","html_url":"https://github.com/Clemapfel/MousetrapMakie.jl","commit_stats":null,"previous_names":["clemapfel/mousetrapmakie.jl"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2FMousetrapMakie.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2FMousetrapMakie.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2FMousetrapMakie.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2FMousetrapMakie.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clemapfel","download_url":"https://codeload.github.com/Clemapfel/MousetrapMakie.jl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174403,"owners_count":20896074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T01:18:05.551Z","updated_at":"2025-04-04T11:46:47.905Z","avatar_url":"https://github.com/Clemapfel.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MousetrapMakie.jl\n\nExperimental package that adds `GLMakieArea`, a [Mousetrap](https://github.com/Clemapfel/Mousetrap.jl/) widget that allows displaying [GLMakie](https://github.com/MakieOrg/Makie.jl) plots, similar to how [Gtk4Makie.jl](https://github.com/JuliaGtk/Gtk4Makie.jl) allows the same for GTK4.jl.\n\nThis package is not production ready and should be considered in early alpha. The following features are still missing:\n\n+ Applying a post-processing config is not yet implemented\n+ Modifying the screen after it is realized remains untested\n+ Setups with multiple `GLMakie.Screen`s remain untested\n+ `runtests.jl` is unimplemented, meaning CI through GitHub actions is not yet set up\n+ The Makie event model is ignored completely, only Mousetraps event controllers allow for user input\n\nIf you are experienced with Makie, consider opening a PR to fully implement this package and extend its functionalities. Any significant contributor will be credited as an author. See [`src/MousetrapMakie.jl`](./src/MousetrapMakie.jl), which is heavily commented to make understanding and extending the package easier.\n\nSee the [Mousetrap.jl manual chapter on OpenGL integration](https://clemens-cords.com/mousetrap/01_manual/12_opengl_integration/) for more information.\n\n# Installation\n\n```julia\nimport Pkg\nbegin\n    Pkg.add(url=\"https://github.com/clemapfel/mousetrap_jll\")\n    Pkg.add(url=\"https://github.com/clemapfel/Mousetrap.jl\")\n    Pkg.add(url=\"https://github.com/clemapfel/MousetrapMakie.jl\")\nend\n```\n\n# Showcase\n\n```julia\nusing Mousetrap, MousetrapMakie, GLMakie\nmain() do app::Application\n    window = Window(app)\n    canvas = GLMakieArea()\n    set_child!(window, canvas)\n    set_size_request!(canvas, Vector2f(200, 200))\n\n    screen = Ref{Union{Nothing, GLMakie.Screen{GLMakieArea}}}(nothing)\n    connect_signal_realize!(canvas) do self\n        screen[] = create_glmakie_screen(canvas)\n        display(screen[], scatter(rand(123)))\n        return nothing\n    end\n    present!(window)\nend\n```\n\n![](https://github.com/Clemapfel/Mousetrap.jl/blob/main/docs/src/assets/makie_scatter.png)\n\n## Credits \u0026 Contribution\n\n`MousetrapMakie` was created by `Mousetrap.jl`s main developer, [C. Cords](https://clemens-cords.com).\n\n## License\n\nLicensed [lGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.de.html), meaning it available for both open-source, as well as closed-source, commercial use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemapfel%2Fmousetrapmakie.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclemapfel%2Fmousetrapmakie.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemapfel%2Fmousetrapmakie.jl/lists"}