mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
With the Color or Gradient panel open as a pop-out, every second frame at rest ran the whole window twice: egui discarded the first pass because a content column in the panel body measured differently from the transcript its flyout kept. storytold/craft-libs#4932 fixes the layout memory, and this moves the craft-libs pin to its head c2a47dfe, which is craft-libs main 092a2c6b with the fix. The egui and winit revisions are unchanged. The bump also brings in craft-libs #4584, #4804, #2415, #4531, #4676, #3061 and #4050. Test: with either pop-out open, each of 10 frames at rest runs one pass.
38 lines
1.8 KiB
TOML
38 lines
1.8 KiB
TOML
[package]
|
|
name = "vectorcraft-web"
|
|
description = "VectorCraft in the browser (eframe web runner, WebGPU with WebGL2 fallback)"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bin]]
|
|
name = "vectorcraft-web"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
vectorcraft-engine = { workspace = true, features = ["bundled-fonts", "heif"] }
|
|
vectorcraft-ui-egui = { workspace = true }
|
|
vectorcraft-format = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
craft = { workspace = true, features = ["ui", "keymap", "automation", "platform"] }
|
|
egui = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
# Image loaders for `src/web.rs`, which builds only for wasm32.
|
|
egui_extras = { workspace = true }
|
|
# `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback.
|
|
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit"] }
|
|
# The page command API (storytold/craft-libs#413): the request plumbing behind window.vectorcraft.
|
|
craft-web-api = { git = "https://github.com/storytold/craft-libs", rev = "c2a47dfea38b215245f739c675da3662c89f1e09", version = "0.1.0" }
|
|
|
|
wasm-bindgen = "0.2"
|
|
serde_json = { workspace = true }
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlElement", "HtmlCanvasElement", "HtmlInputElement", "KeyboardEvent", "HtmlIFrameElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "ClipboardEvent", "DataTransfer", "File", "FileList", "Url", "Location", "CssStyleDeclaration", "Event", "EventTarget", "MouseEvent", "PointerEvent", "TouchEvent", "AddEventListenerOptions", "DomRect", "DragEvent", "Storage", "Navigator", "RequestInit", "Response", "AbortController", "AbortSignal", "Node", "Worker", "MessageEvent", "ErrorEvent", "Performance"] }
|