Makepad Code (editor layout, selection, sidebar, early yield), the EN/ZH Translator with voice, Weather with a generated offline forecast, Amp playing its offline library, and fixes across the other apps and examples. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
44 lines
1.8 KiB
TOML
44 lines
1.8 KiB
TOML
# pdf — a PDF viewer, part of the Makepad app family (terminal, wm, files,
|
|
# image, video, task, sheets, route, mixer...).
|
|
#
|
|
# `pdf <path>` opens a document as one continuous scroll of pages on a
|
|
# system theme background: PageDown/Space page through, Cmd +/- zoom,
|
|
# Cmd+0 fits the width, Cmd+1 shows 100%, Cmd+scroll zooms around the
|
|
# cursor, Cmd+Shift+T shows a thumbnail strip, Escape/Q quits.
|
|
# `--preview <path>` sizes the window as a popup — that is files' Quick
|
|
# Look.
|
|
#
|
|
# Nothing here parses or draws PDF: the parser is libs/pdf_parse and the
|
|
# renderer is the `PdfView`/`PdfPageView` pair in widgets/families/pdf/src/pdf_view.rs
|
|
# (feature `pdf`), which walks the page's content-stream ops straight into
|
|
# DrawVector geometry and DrawText runs — no rasterization anywhere. This
|
|
# crate is the viewer around them: an off-thread loader that streams parsed
|
|
# pages in as they come, the zoom/fit/navigation maths, the thumbnail
|
|
# strip, and the chrome.
|
|
|
|
[package]
|
|
name = "makepad-app-pdf"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
default-run = "makepad-app-pdf"
|
|
|
|
[lib]
|
|
name = "makepad_app_pdf"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "makepad-app-pdf"
|
|
path = "src/main.rs"
|
|
|
|
[features]
|
|
default = ["tweaker"]
|
|
# The design overlay (Shift+F10 with the dev overlays on). On for development
|
|
# builds; the Builder's releases build without it (--no-default-features).
|
|
tweaker = ["dep:makepad-widgets-tweaker", "makepad-widgets/data", "makepad-widgets/dock", "makepad-widgets/fab"]
|
|
|
|
[dependencies]
|
|
makepad-widgets = { path = "../../widgets", default-features = false, features = ["pdf"] }
|
|
makepad-widgets-tweaker = { path = "../../widgets/families/tweaker", optional = true }
|
|
makepad-pdf-parse = { path = "../../libs/pdf_parse" }
|
|
makepad-wm-api = { path = "../../libs/wm_api" }
|