egui/egui_web/Cargo.toml

63 lines
1.3 KiB
TOML
Raw Normal View History

2018-12-30 20:08:29 +00:00
[package]
2020-07-17 09:05:57 +00:00
name = "egui_web"
Release Egui 0.5.0 ## 0.5.0 - 2020-12-13 ### Added ⭐ * Emoji support: 1216 different emojis that work in any text. * The Demo app comes with a Font Book to explore the available glyphs. * `ui.horizontal_wrapped(|ui| ...)`: Add widgets on a row but wrap at `max_size`. * `ui.horizontal_wrapped_for_text`: Like `ui.horizontal_wrapped`, but with spacing made for embedding text. * `ui.horizontal_for_text`: Like `ui.horizontal`, but with spacing made for embedding text. * `egui::Layout` now supports justified layouts where contents is _also_ centered, right-aligned, etc. * `ui.allocate_ui(size, |ui| ...)`: Easily create a child-`Ui` of a given size. * `SelectableLabel` (`ui.selectable_label` and `ui.selectable_value`): A text-button that can be selected. * `ui.small_button`: A smaller button that looks good embedded in text. * `ui.drag_angle_tau`: For those who want to specify angles as fractions of τ (a full turn). * Add `Resize::id_source` and `ScrollArea::id_source` to let the user avoid Id clashes. ### Changed 🔧 * New default font: [Ubuntu-Light](https://fonts.google.com/specimen/Ubuntu). * Make it simpler to override fonts in `FontDefinitions`. * Remove minimum button width. * Refactor `egui::Layout` substantially, changing its interface. * Calling `on_hover_text`/`on_hover_ui` multiple times will stack tooltips underneath the previous ones. * Text wrapping on labels, buttons, checkboxes and radio buttons is now based on the layout. ### Removed 🔥 * Removed the `label!` macro.
2020-12-13 20:15:57 +00:00
version = "0.5.0"
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
description = "Bindings for compiling Egui code to WASM for a web page"
license = "MIT OR Apache-2.0"
2018-12-30 20:08:29 +00:00
edition = "2018"
homepage = "https://github.com/emilk/egui"
2020-08-09 15:30:12 +00:00
readme = "README.md"
repository = "https://github.com/emilk/egui"
2020-08-09 15:30:12 +00:00
categories = ["gui", "graphics"]
keywords = ["wasm", "web", "egui", "gui", "gamedev"]
include = [ "**/*.rs", "Cargo.toml"]
2018-12-30 20:08:29 +00:00
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
Release Egui 0.5.0 ## 0.5.0 - 2020-12-13 ### Added ⭐ * Emoji support: 1216 different emojis that work in any text. * The Demo app comes with a Font Book to explore the available glyphs. * `ui.horizontal_wrapped(|ui| ...)`: Add widgets on a row but wrap at `max_size`. * `ui.horizontal_wrapped_for_text`: Like `ui.horizontal_wrapped`, but with spacing made for embedding text. * `ui.horizontal_for_text`: Like `ui.horizontal`, but with spacing made for embedding text. * `egui::Layout` now supports justified layouts where contents is _also_ centered, right-aligned, etc. * `ui.allocate_ui(size, |ui| ...)`: Easily create a child-`Ui` of a given size. * `SelectableLabel` (`ui.selectable_label` and `ui.selectable_value`): A text-button that can be selected. * `ui.small_button`: A smaller button that looks good embedded in text. * `ui.drag_angle_tau`: For those who want to specify angles as fractions of τ (a full turn). * Add `Resize::id_source` and `ScrollArea::id_source` to let the user avoid Id clashes. ### Changed 🔧 * New default font: [Ubuntu-Light](https://fonts.google.com/specimen/Ubuntu). * Make it simpler to override fonts in `FontDefinitions`. * Remove minimum button width. * Refactor `egui::Layout` substantially, changing its interface. * Calling `on_hover_text`/`on_hover_ui` multiple times will stack tooltips underneath the previous ones. * Text wrapping on labels, buttons, checkboxes and radio buttons is now based on the layout. ### Removed 🔥 * Removed the `label!` macro.
2020-12-13 20:15:57 +00:00
egui = { version = "0.5.0", path = "../egui", features = ["serde"] }
2019-01-04 13:14:32 +00:00
js-sys = "0.3"
parking_lot = { version = "0.11", features = ["wasm-bindgen"] }
2018-12-30 20:08:29 +00:00
serde = "1"
serde_json = "1"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
2018-12-30 20:08:29 +00:00
2019-01-04 13:14:32 +00:00
[dependencies.web-sys]
version = "0.3"
features = [
'Clipboard',
'ClipboardEvent',
'console',
2020-07-18 08:54:31 +00:00
'CssStyleDeclaration',
'DataTransfer',
2019-01-04 13:14:32 +00:00
'Document',
'DomRect',
2019-01-04 13:14:32 +00:00
'Element',
'Headers',
2019-01-04 13:14:32 +00:00
'HtmlCanvasElement',
2020-07-18 08:54:31 +00:00
'HtmlElement',
'KeyboardEvent',
2020-07-18 08:54:31 +00:00
'Location',
'MouseEvent',
'Navigator',
2019-01-06 15:34:01 +00:00
'Performance',
'Request',
'RequestInit',
'RequestMode',
'Response',
'Storage',
'Touch',
'TouchEvent',
'TouchList',
2019-01-04 13:14:32 +00:00
'WebGlBuffer',
'WebGlProgram',
'WebGlRenderingContext',
'WebGlShader',
2019-01-05 14:28:07 +00:00
'WebGlTexture',
2019-01-04 13:14:32 +00:00
'WebGlUniformLocation',
'WheelEvent',
2019-01-04 13:14:32 +00:00
'Window',
]