mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Move every craft-libs dependency from 77ade517 to 0582d506, which is craft-libs main at 13198740 (with storytold/craft-libs#5272) plus storytold/craft-libs#5281. Take the egui fork at 399fc6e0 and the winit fork at 3fd7ae64, the revisions craft-libs pins. The winit fork no longer pulls in wayland-protocols-plasma. Adjust VectorCraft to the new framework behavior: - The Unsaved Changes question opens on the dialog host as a HostedUnsavedChangesDialog. - The drag session now resolves a release against the targets of the release pass and delivers the drop in the next pass. The canvas no longer drops art released over a pane itself in that pass, which copied the art twice. - Files the person drops in a pass that carries injected input stay confined to the automation roots in the pass that delivers them. - Dragging art over another document's tab and back to its own canvas moves it again: craft-libs#5281 keeps the drag session running when the source canvas shows again.
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 = "0582d506c494c7bf5280d952f36e60f325f85855", 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"] }
|