forked from 1b-agent/opencadstudio-upstream
paper_limits() now reads paper_width/paper_height/plot_rotation from the Layout object (populated by a patched acadrust from the embedded DWG PlotSettings). This fixes layouts where min/max_limits do not match the physical paper size (e.g. A4 portrait content inside A3 landscape limits). DXF files use codes 44/45/73 from raw_plot_settings_codes; DWG files use the PlotSettings block embedded in the LAYOUT object. Both fall back to min/max_limits when paper_width is zero. Depends on HakanSeven12/acadrust feat/layout-paper-dimensions (PR #21 on hakanaktt/acadrust); using that fork until the PR is merged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
892 B
TOML
27 lines
892 B
TOML
[package]
|
|
name = "H7CAD"
|
|
version = "0.1.7"
|
|
edition = "2021"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
iced = { version = "0.14", features = ["debug", "image", "svg", "advanced", "canvas"] }
|
|
bytemuck = { version = "1.14", features = ["derive"] }
|
|
glam = { version = "0.27", features = ["bytemuck"] }
|
|
truck-modeling = "0.6"
|
|
truck-meshalgo = { version = "0.4", default-features = false, features = ["tessellation"] }
|
|
truck-polymesh = "0.6"
|
|
rfd = "0.15"
|
|
acadrust = "0.3.4"
|
|
open = "5"
|
|
printpdf = "0.9.1"
|
|
flate2 = "1"
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp", "tiff"] }
|
|
rayon = "1"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows-sys = { version = "0.59", features = ["Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
|
|
|
|
[patch.crates-io]
|
|
acadrust = { git = "https://github.com/HakanSeven12/acadrust.git", branch = "feat/layout-paper-dimensions" }
|