Dustin Carlino
558eb6f716
Extract DrawMap into a separate crate, along with everything else it
...
depends on.
The goal is to be able to split things like the OSM viewer, parking
mapper, and 15 min tool into separate crates from the game, while still
sharing lots of code.
2020-11-23 17:58:32 -08:00
Dustin Carlino
abf3dbc859
Don't specify a widgetry backend by default; force every user to set the feature explicitly.
2020-11-22 18:35:03 -08:00
Dustin Carlino
aa966d7533
Upgrade a bunch of dependencies
2020-11-11 12:02:53 -08:00
Dustin Carlino
1b4e25e12f
Get the downloader UI to actually fetch stuff. #326
2020-11-07 18:39:15 -08:00
Dustin Carlino
31fcf1b863
Prototype a UI to view aggregated collisions. #87
2020-11-05 17:53:54 -08:00
Dustin Carlino
8920c2c0b8
Store gzipped files in S3 and decompress upon loading. A few basic tests
...
showed this is faster than downloading the uncompressed files, but of
course it probably depends on network speed vs CPU. #326
Also cut over the updater to use gzipped files using flate, instead of
single-file .zip's. [rebuild]
2020-10-31 18:09:48 -07:00
Dustin Carlino
3b26d25fe4
Build a wasm binary that jumps straight into the OSM viewer
2020-10-27 15:34:58 -07:00
Dustin Carlino
17416d9fd6
Start deploying the web build to s3... #21
2020-10-08 16:29:06 -07:00
Dustin Carlino
d1d1d1532c
Silence warnings when compiling wasm
2020-10-08 12:26:54 -07:00
Dustin Carlino
64bc4ee318
On the web, load different maps by making asynchronous HTTP calls. #21 ( #364 )
...
* On the web, load different maps by making asynchronous HTTP calls. #21
This is a very strange, specializd approach; it's unclear how it'll
generalize to reading scenarios and prebaked results. Ideally we could
call abstutil::read_binary as we currently do and somehow hide this async
trickery underneath, but I'm not sure how yet. In the meantime, this
moves us forward with the hack well-contained.
Next steps for web: stop bundling in all of data/system in the .wasm,
now that we can load from HTTP.
2020-10-08 10:51:13 -07:00
Dustin Carlino
982b0bc194
Support opening new browser tabs on web. The webbrowser crate claims it's experimental, but works fine for me, and the impl is pretty much what I'd try anyway.
2020-10-05 19:50:52 -07:00
Dustin Carlino
bb6dbb0731
Switch from stdweb to websys for #21 .
...
When I added web support in February, it was easier to get started with
stdweb, since it has the nice cargo web tool. However, stdweb is
unmaintained, winit is deprecating support for it, and the next steps
for web (downloading maps dynamically) have better support for web-sys.
With Alvin's guidance, I got
https://github.com/dabreegster/minimal_websys_winit_glow_demo working
first. This PR cuts A/B Street over too.
I tested abst and the widgetry demo in both native and web. The only
major regression from stdweb is the canvas placement and size. I
attempted some fixes, but at this point, I'll leave it as a smaller
followup instead.
2020-10-05 19:50:52 -07:00
Dustin Carlino
2ddd9a62ff
Cleanups for #346 :
...
- Add Distance::min()/max()
- Bring in log crate everywhere
- Consolidate traffic signal validation
2020-09-26 10:11:08 -07:00
Dustin Carlino
597ef473f2
Upgrade most dependencies
2020-09-24 09:36:26 -07:00
Dustin Carlino
3cc6a8ce12
And finally, a UI to tune offset between two signals! [rebuild]
2020-09-19 11:10:45 -07:00
Dustin Carlino
5be4c2ca84
Add an API to add a new trip in the middle of the simulation. Fixes #313
...
[rebuild]
2020-09-06 13:53:31 -07:00
Dustin Carlino
2935d2379b
Mechanical rename of ezgui -> widgetry, a much better name to enchant the Rust community. #253 [rebuild]
2020-08-27 10:37:04 -07:00
Dustin Carlino
ad423b22e9
Remove the glium backend, now that @michaelkirk has gotten the glow native/wasm backends ship-shape. Got rid of the glutin fallback behavior for now; need to ideally upstream something there for #103
2020-08-20 16:59:54 -07:00
Michael Kirk
58d360668e
add glow feature
2020-08-12 15:44:48 -07:00
Dustin Carlino
8f6a6d40e6
change the few places that copied an OSM ID to the clipboard to instead
...
open the browser. this is more useful, and it also lets us get rid of a
dependency on clipboard stuff, fixing #264
2020-08-05 11:24:51 -07:00
Dustin Carlino
eb4acdc2f6
split parking lot code from building code, for #231
2020-07-25 07:09:43 -07:00
Dustin Carlino
1ae29881ba
i forgot that there was an isochrone experiment. plug it up to contours.
2020-07-21 07:23:33 -07:00
Dustin Carlino
a65107145f
turn heatmaps into nice polygon contours
2020-07-20 17:03:32 -07:00
Dustin Carlino
82345767c9
store a bitset of access restrictions per road. derive zones from this only for editing and pathfinding. this unblocks editing zones
2020-07-06 13:09:49 -07:00
Dustin Carlino
f02fa8bddd
add a tool to export roads to https://github.com/d-wasserman/shared-row
2020-07-04 11:29:45 -07:00
Dustin Carlino
ec2411fb8b
experiment with isochrones. nothing yet.
2020-07-02 13:41:24 -07:00
Dustin Carlino
05cf8c113f
depend on rust-native TLS to fix #77 and adjust some wording to fix #80
2020-06-23 09:00:41 -07:00
Dustin Carlino
288e90e530
use lyon for stroking line plots
2020-06-18 17:44:12 -07:00
Dustin Carlino
863593708a
tool to copy OriginalLane to clipboard. also fix wasm build breakage [rebuild]
2020-06-07 16:25:42 -07:00
Dustin Carlino
855d8f4d22
update glutin, winit, glium now that a fix for linux startup time is upstreamed in glutin. and a few other packages too. ditch geo-offset dependency, since it uses old versions and isn't being used yet
2020-06-01 09:18:17 -07:00
Dustin Carlino
27179ee87d
better faces. go back to hiding a few things in debug mode [rebuild]
2020-05-29 13:09:46 -07:00
Dustin Carlino
2bb36124bd
add random nicknames to people
2020-05-29 11:37:21 -07:00
Dustin Carlino
222695423e
start organizing all the use cases / ideas
2020-05-27 16:21:15 -07:00
Dustin Carlino
ff40eb2d4c
use lttb to downsample points for jump-to-time. looks better and is
...
simpler to reason about!
2020-05-27 12:17:45 -07:00
Dustin Carlino
608d8cad4f
breathe life into the little buggers
2020-05-25 17:10:15 -07:00
Dustin Carlino
ce7d28b188
add a button to give feedback [rebuild]
2020-05-22 14:48:26 -07:00
Dustin Carlino
ddf6de5f59
stop dependending directly on serde_derive
2020-05-19 15:06:32 -07:00
Dustin Carlino
4816e5fe8f
filling out the parking mapper
2020-05-11 12:18:19 -07:00
Dustin Carlino
db7c276e91
select a path of roads
2020-05-09 10:34:52 -07:00
Dustin Carlino
55c8a9d875
use colorous for heatmaps
2020-04-27 18:48:19 -07:00
Dustin Carlino
8be319300b
fold the popdat crate into importer; nothing else should have any dependencies on it
2020-04-25 13:14:48 -07:00
Dustin Carlino
2181d8a56d
two sanity refactors
...
- btreeset macro
- switch to "ID #123 " by default
2020-03-31 16:40:07 -07:00
Dustin Carlino
2b2b30a6bb
express many ezgui widgets as a generic trait.
...
- prepares the API for anyone to implement widgets
- cleans up boilerplate code
- gets rid of hacks with Plot<T>
2020-03-22 14:06:02 -07:00
Dustin Carlino
0bcbac1fee
upgrade a few misc packages
2020-03-17 10:35:37 -07:00
Dustin Carlino
377fed6ce0
cutover to the separate traffic signals repo
2020-03-10 17:08:19 -07:00
Dustin Carlino
b835f8a6f7
unused deps
2020-03-06 08:27:00 -08:00
Dustin Carlino
1ad434f3d6
record some metadata about the traffic signals. bad UI for now.
2020-03-04 14:40:32 -08:00
Dustin Carlino
bdb0844512
make game crate compile under wasm
2020-02-14 16:15:44 -08:00
Dustin Carlino
b2c92ab8f9
upstreaming some changes for wasm here
...
- use instant crate
- bring in the wasm ezgui backend and necessary setup tweaks
- upgrade stdweb
but no map editor build magic yet
2020-02-14 14:28:25 -08:00
Dustin Carlino
606325ac77
make the glow and glium backends toggleable at build-time
2020-02-10 20:23:12 -08:00