From 7a15b14594b64965ca817f7743b1ee05cbaef993 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 5 Jul 2023 18:43:58 +0200 Subject: [PATCH] Update README.md (#3048) And test if CI hangs like in https://github.com/MakieOrg/Makie.jl/pull/3044 --- WGLMakie/README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/WGLMakie/README.md b/WGLMakie/README.md index ef93085c519..5ceaee50e96 100644 --- a/WGLMakie/README.md +++ b/WGLMakie/README.md @@ -1,11 +1,9 @@ WGLMakie is a WebGL backend for the [Makie.jl](https://www.github.com/MakieOrg/Makie.jl) plotting package, implemented using Three.js. -Read the docs for Makie and it's backends [here](http://docs.makie.org/dev) +Read the docs for Makie and it's backends [here](http://docs.makie.org) # Usage -Now, it should just work like Makie: - ```julia using WGLMakie scatter(rand(4)) @@ -16,7 +14,8 @@ In VSCode, this should open in the plotpane. You can also embed plots in a JSServe webpage: ```julia -function dom_handler(session, request) +using JSServe +app = App(session, request) return DOM.div( DOM.h1("Some Makie Plots:"), meshscatter(1:4, color=1:4), @@ -27,8 +26,8 @@ function dom_handler(session, request) meshscatter(rand(Point3f, 10), marker=Pyramid(Point3f(0), 1f0, 1f0)), ) end -isdefined(Main, :app) && close(app) -app = JSServe.Server(dom_handler, "127.0.0.1", 8082) +isdefined(Main, :server) && close(server) +server = JSServe.Server(app, "127.0.0.1", 8082) ``` ## Sponsors