-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from rdeits/no-webio
Remove WebIO and build directly on Mux.jl and HTTP.jl
- Loading branch information
Showing
14 changed files
with
233 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.ipynb_checkpoints | ||
deps/build.log | ||
Manifest.toml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
name = "MeshCat" | ||
uuid = "283c5d60-a78f-5afe-a0af-af636b173e11" | ||
authors = ["Robin Deits <[email protected]>"] | ||
version = "0.9.1" | ||
version = "0.10.0" | ||
|
||
[deps] | ||
AssetRegistry = "bf4720bc-e11a-5d0c-854e-bdca1663c893" | ||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | ||
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee" | ||
Blink = "ad839575-38b3-5650-b840-f874b8c74a25" | ||
Cassette = "7057c7e9-c182-5462-911a-8362d720325c" | ||
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" | ||
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298" | ||
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" | ||
FFMPEG = "c87230d0-a227-11e9-1b43-d7ebe4e7570a" | ||
GeometryTypes = "4d00f742-c7ba-57c2-abde-4428a4b178cb" | ||
JSExpr = "97c1335a-c9c5-57fe-bc5d-ec35cebe8660" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
MsgPack = "99f44e22-a591-53d1-9472-aa23ef4bd671" | ||
Mux = "a975b10e-0019-58db-a62f-e48ff68538c9" | ||
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a" | ||
|
@@ -24,26 +22,22 @@ Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc" | |
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc" | ||
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | ||
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | ||
WebIO = "0f1e0344-ec1d-5b48-a673-e5cf874b6c29" | ||
WebSockets = "104b5d7c-a370-577a-8038-80a2059c5097" | ||
|
||
[compat] | ||
AssetRegistry = "0.1" | ||
BinDeps = "1" | ||
Blink = "0.12" | ||
Cassette = "0.2.5" | ||
Colors = "0.9, 0.10, 0.11" | ||
CoordinateTransformations = "0.5" | ||
DocStringExtensions = "0.5, 0.6, 0.7, 0.8" | ||
FFMPEG = "0.2" | ||
GeometryTypes = "0.6, 0.7" | ||
JSExpr = "0.3, 0.5" | ||
MsgPack = "1" | ||
Mux = "0.7" | ||
Parameters = "0.10, 0.11, 0.12" | ||
Requires = "0.5, 1" | ||
Rotations = "0.8, 0.9, 0.10, 0.11, 0.13" | ||
StaticArrays = "0.10, 0.11, 0.12" | ||
WebIO = "0.8.11" | ||
julia = "0.7, 1" | ||
|
||
[extras] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
function develop_meshcat_assets(skip_confirmation=false) | ||
meshcat_dir = abspath(joinpath(@__DIR__, "..", "assets", "meshcat")) | ||
if !skip_confirmation | ||
println("CAUTION: This will delete all downloaded meshcat assets and replace them with a git clone.") | ||
println("The following path will be overwritten:") | ||
println(meshcat_dir) | ||
println("To undo this operation, you will need to manually remove that directory and then run `Pkg.build(\"MeshCat\")`") | ||
print("Proceed? (y/n) ") | ||
choice = chomp(readline()) | ||
if isempty(choice) || lowercase(choice[1]) != 'y' | ||
println("Canceled.") | ||
return | ||
end | ||
end | ||
println("Removing $meshcat_dir") | ||
rm(meshcat_dir, force=true, recursive=true) | ||
run(`git clone https://github.com/rdeits/meshcat $meshcat_dir`) | ||
rm(joinpath(meshcat_dir, "..", "meshcat.stamp")) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function setup_integrations() | ||
@require Blink="ad839575-38b3-5650-b840-f874b8c74a25" begin | ||
function Base.open(core::CoreVisualizer, w::Blink.AtomShell.Window) | ||
# Ensure the window is ready | ||
Blink.js(w, "ok") | ||
# Set its contents | ||
Blink.loadurl(w, url(core)) | ||
w | ||
end | ||
end | ||
|
||
@require WebIO="0f1e0344-ec1d-5b48-a673-e5cf874b6c29" begin | ||
WebIO.render(vis::Visualizer) = WebIO.render(vis.core) | ||
|
||
WebIO.render(core::CoreVisualizer) = WebIO.render(MeshCat.render(core)) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.