
## 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.
62 lines
1.3 KiB
TOML
62 lines
1.3 KiB
TOML
[package]
|
|
name = "egui_web"
|
|
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"
|
|
edition = "2018"
|
|
homepage = "https://github.com/emilk/egui"
|
|
readme = "README.md"
|
|
repository = "https://github.com/emilk/egui"
|
|
categories = ["gui", "graphics"]
|
|
keywords = ["wasm", "web", "egui", "gui", "gamedev"]
|
|
include = [ "**/*.rs", "Cargo.toml"]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
egui = { version = "0.5.0", path = "../egui", features = ["serde"] }
|
|
js-sys = "0.3"
|
|
parking_lot = "0.11"
|
|
serde = "1"
|
|
serde_json = "1"
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3"
|
|
features = [
|
|
'Clipboard',
|
|
'ClipboardEvent',
|
|
'console',
|
|
'CssStyleDeclaration',
|
|
'DataTransfer',
|
|
'Document',
|
|
'DomRect',
|
|
'Element',
|
|
'Headers',
|
|
'HtmlCanvasElement',
|
|
'HtmlElement',
|
|
'KeyboardEvent',
|
|
'Location',
|
|
'MouseEvent',
|
|
'Navigator',
|
|
'Performance',
|
|
'Request',
|
|
'RequestInit',
|
|
'RequestMode',
|
|
'Response',
|
|
'Storage',
|
|
'Touch',
|
|
'TouchEvent',
|
|
'TouchList',
|
|
'WebGlBuffer',
|
|
'WebGlProgram',
|
|
'WebGlRenderingContext',
|
|
'WebGlShader',
|
|
'WebGlTexture',
|
|
'WebGlUniformLocation',
|
|
'WheelEvent',
|
|
'Window',
|
|
]
|