mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
This commit is contained in:
commit
ef98aa507a
29 files changed
+1549
-136
No files matched your search
Generated
+31
-31
@@ -4742,7 +4742,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"arboard",
|
||||
"async-io",
|
||||
@@ -4792,7 +4792,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-affinity"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"crc32fast",
|
||||
"flate2",
|
||||
@@ -4802,7 +4802,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-algo"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-color",
|
||||
"photocraft-geom",
|
||||
@@ -4816,7 +4816,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-automation"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"cap-std",
|
||||
@@ -4840,7 +4840,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-cli"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"clap_complete",
|
||||
@@ -4859,7 +4859,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-cms"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"moxcms",
|
||||
"rayon",
|
||||
@@ -4867,7 +4867,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-codecs"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"craft-jpeg",
|
||||
"exr",
|
||||
@@ -4889,7 +4889,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-color"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-cms",
|
||||
"serde",
|
||||
@@ -4897,7 +4897,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-compose"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"criterion",
|
||||
"photocraft-cms",
|
||||
@@ -4913,7 +4913,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-doc"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-color",
|
||||
"photocraft-geom",
|
||||
@@ -4924,7 +4924,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-engine"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"blake3",
|
||||
"chrono",
|
||||
@@ -4965,7 +4965,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-format"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"blake3",
|
||||
"crc32fast",
|
||||
@@ -4988,14 +4988,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-geom"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-gpu"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"half",
|
||||
@@ -5015,14 +5015,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-heif"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"heic-rs",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-io"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"blake3",
|
||||
"craft-docpath",
|
||||
@@ -5055,18 +5055,18 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-ipp"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-ops"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-doc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-paint"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-cms",
|
||||
"photocraft-color",
|
||||
@@ -5079,7 +5079,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-plugins"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-color",
|
||||
"photocraft-geom",
|
||||
@@ -5095,7 +5095,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-psd"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"photocraft-psd",
|
||||
@@ -5106,7 +5106,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-raster"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-color",
|
||||
"photocraft-geom",
|
||||
@@ -5117,7 +5117,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-raw"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"image",
|
||||
@@ -5132,7 +5132,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-tablet"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"block2 0.6.2",
|
||||
"objc2 0.6.4",
|
||||
@@ -5144,7 +5144,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-testkit"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"memory-stats",
|
||||
"serde_json",
|
||||
@@ -5152,7 +5152,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-text"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"parley",
|
||||
@@ -5167,7 +5167,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-ui-egui"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"craft-print",
|
||||
@@ -5210,7 +5210,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-vector"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"photocraft-color",
|
||||
"photocraft-doc",
|
||||
@@ -5221,7 +5221,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-web"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"eframe",
|
||||
"egui",
|
||||
@@ -5243,7 +5243,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "photocraft-web-boot"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"js-sys",
|
||||
@@ -8897,7 +8897,7 @@ checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9"
|
||||
|
||||
[[package]]
|
||||
name = "xtask"
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"serde",
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ members = ["crates/*", "apps/*", "xtask"]
|
||||
default-members = ["crates/*", "apps/photocraft", "apps/photocraft-cli", "xtask"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.15.1"
|
||||
version = "0.16.0"
|
||||
edition = "2024"
|
||||
license = "MIT OR Apache-2.0"
|
||||
rust-version = "1.95"
|
||||
|
||||
+124
-18
@@ -324,33 +324,110 @@ pub fn paste(scene: &Scene, i: usize, src: &Surface, src_rect: Rect, at: [f64; 2
|
||||
Ok(Some(out))
|
||||
}
|
||||
|
||||
/// The fixed frame of one clone stroke: the source and destination planes, the source offset in
|
||||
/// plane-metric units and the brush radius, all set at the stroke's anchor (its first dab).
|
||||
struct CloneFrame {
|
||||
hs: Homography,
|
||||
ls: (f64, f64),
|
||||
hd: Homography,
|
||||
hd_inv: Homography,
|
||||
ld: (f64, f64),
|
||||
offset: [f64; 2],
|
||||
r_m: f64,
|
||||
}
|
||||
|
||||
impl CloneFrame {
|
||||
fn new(scene: &Scene, source: [f64; 2], anchor: [f64; 2], size: f64) -> Option<CloneFrame> {
|
||||
let (ps, pd) = (scene.plane_at(source)?, scene.plane_at(anchor)?);
|
||||
let ((hs, lus, lvs), (hd, lud, lvd)) = (scene.frame(ps)?, scene.frame(pd)?);
|
||||
let (hs_inv, hd_inv) = (hs.inverse()?, hd.inverse()?);
|
||||
let ms = metric(&hs_inv, (lus, lvs), source);
|
||||
let md0 = metric(&hd_inv, (lud, lvd), anchor);
|
||||
// Brush radius in metric units (from the image size at the anchor).
|
||||
let probe = metric(&hd_inv, (lud, lvd), [anchor[0] + size / 2.0, anchor[1]]);
|
||||
let r_m = ((probe[0] - md0[0]).hypot(probe[1] - md0[1])).max(1e-9);
|
||||
let offset = [ms[0] - md0[0], ms[1] - md0[1]];
|
||||
(offset.iter().all(|v| v.is_finite()) && r_m.is_finite()).then_some(CloneFrame { hs, ls: (lus, lvs), hd, hd_inv, ld: (lud, lvd), offset, r_m })
|
||||
}
|
||||
|
||||
/// The source point (image px) that destination `p` copies from.
|
||||
fn source_of(&self, p: [f64; 2]) -> [f64; 2] {
|
||||
let m = metric(&self.hd_inv, self.ld, p);
|
||||
let (x, y) = self.hs.apply((m[0] + self.offset[0]) / self.ls.0, (m[1] + self.offset[1]) / self.ls.1);
|
||||
[x, y]
|
||||
}
|
||||
}
|
||||
|
||||
/// Image point → plane-metric coordinates through the plane's inverse homography.
|
||||
fn metric(inv: &Homography, l: (f64, f64), p: [f64; 2]) -> [f64; 2] {
|
||||
let (u, v) = inv.apply(p[0], p[1]);
|
||||
[u * l.0, v * l.1]
|
||||
}
|
||||
|
||||
/// Perspective clone stamp: one stroke of dabs at image points `points` on the destination
|
||||
/// plane, copying from `source` (image px) with the offset fixed in plane-metric units at the
|
||||
/// first dab. `size` is the brush diameter in px at the first dab; `hardness` 0..=1.
|
||||
pub fn clone_stroke(scene: &Scene, surf: &mut Surface, source: [f64; 2], points: &[[f64; 2]], size: f64, hardness: f64, opacity: f32) -> usize {
|
||||
let Some(first) = points.first() else { return 0 };
|
||||
let (Some(ps), Some(pd)) = (scene.plane_at(source), scene.plane_at(*first)) else { return 0 };
|
||||
let (Some((hs, lus, lvs)), Some((hd, lud, lvd))) = (scene.frame(ps), scene.frame(pd)) else { return 0 };
|
||||
let (Some(hs_inv), Some(hd_inv)) = (hs.inverse(), hd.inverse()) else { return 0 };
|
||||
let metric = |inv: &Homography, lu: f64, lv: f64, p: [f64; 2]| {
|
||||
let (u, v) = inv.apply(p[0], p[1]);
|
||||
[u * lu, v * lv]
|
||||
};
|
||||
let ms = metric(&hs_inv, lus, lvs, source);
|
||||
let md0 = metric(&hd_inv, lud, lvd, *first);
|
||||
let offset = [ms[0] - md0[0], ms[1] - md0[1]];
|
||||
// Brush radius in metric units (from the image size at the first dab).
|
||||
let probe = metric(&hd_inv, lud, lvd, [first[0] + size / 2.0, first[1]]);
|
||||
let r_m = ((probe[0] - md0[0]).hypot(probe[1] - md0[1])).max(1e-9);
|
||||
clone_dabs(scene, surf, source, *first, points, size, hardness, opacity).0
|
||||
}
|
||||
|
||||
/// Where a clone stroke that starts at `anchor` copying from `source` samples for destination
|
||||
/// `p`: the same plane-metric offset. A live preview paints a stroke in pieces with it, and
|
||||
/// Aligned strokes keep the first stroke's offset. `None` when `source` or `anchor` is off the
|
||||
/// planes.
|
||||
pub fn clone_source(scene: &Scene, source: [f64; 2], anchor: [f64; 2], p: [f64; 2]) -> Option<[f64; 2]> {
|
||||
let s = CloneFrame::new(scene, source, anchor, 1.0)?.source_of(p);
|
||||
s.iter().all(|v| v.is_finite()).then_some(s)
|
||||
}
|
||||
|
||||
/// [`clone_stroke`]'s dabs at `points` for a stroke anchored at `anchor` (its first dab, which
|
||||
/// fixes the offset and the brush's metric size). Samples a snapshot taken at this call.
|
||||
/// For incremental painting use [`clone_dabs_from`] with one snapshot per stroke.
|
||||
/// Returns the dabs painted and the area they changed.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn clone_dabs(
|
||||
scene: &Scene,
|
||||
surf: &mut Surface,
|
||||
source: [f64; 2],
|
||||
anchor: [f64; 2],
|
||||
points: &[[f64; 2]],
|
||||
size: f64,
|
||||
hardness: f64,
|
||||
opacity: f32,
|
||||
) -> (usize, Rect) {
|
||||
let src_copy = surf.clone();
|
||||
clone_dabs_from(scene, surf, &src_copy, source, anchor, points, size, hardness, opacity)
|
||||
}
|
||||
|
||||
/// Paint a batch of one stroke using the same immutable source snapshot for every batch.
|
||||
/// Source and destination must have the same pixel format; otherwise no dabs are painted.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn clone_dabs_from(
|
||||
scene: &Scene,
|
||||
surf: &mut Surface,
|
||||
src_copy: &Surface,
|
||||
source: [f64; 2],
|
||||
anchor: [f64; 2],
|
||||
points: &[[f64; 2]],
|
||||
size: f64,
|
||||
hardness: f64,
|
||||
opacity: f32,
|
||||
) -> (usize, Rect) {
|
||||
if surf.format() != src_copy.format() {
|
||||
return (0, Rect::EMPTY);
|
||||
}
|
||||
let Some(f) = CloneFrame::new(scene, source, anchor, size) else { return (0, Rect::EMPTY) };
|
||||
let CloneFrame { hs, ls: (lus, lvs), hd, hd_inv, ld: (lud, lvd), offset, r_m } = f;
|
||||
let fmt = surf.format();
|
||||
let n = fmt.channels();
|
||||
// Scratch for `sample`: the dab's source pixels, the four bilinear corners, the result.
|
||||
let mut win = Window { area: Rect::new(0, 0, 0, 0), data: Vec::new() };
|
||||
let (mut corners, mut s) = (vec![0.0f32; 4 * n], vec![0.0f32; n]);
|
||||
let mut dabs = 0;
|
||||
let mut changed_area = Rect::EMPTY;
|
||||
for p in points {
|
||||
let mc = metric(&hd_inv, lud, lvd, *p);
|
||||
let mc = metric(&hd_inv, (lud, lvd), *p);
|
||||
// Image-space footprint: map a metric circle's bounding points.
|
||||
let footprint = |h: &Homography, lu: f64, lv: f64, c: [f64; 2]| {
|
||||
let mut bb = [f64::MAX, f64::MAX, f64::MIN, f64::MIN];
|
||||
@@ -359,6 +436,9 @@ pub fn clone_stroke(scene: &Scene, surf: &mut Surface, source: [f64; 2], points:
|
||||
let (x, y) = h.apply((c[0] + r_m * a.cos()) / lu, (c[1] + r_m * a.sin()) / lv);
|
||||
bb = [bb[0].min(x), bb[1].min(y), bb[2].max(x), bb[3].max(y)];
|
||||
}
|
||||
if bb.iter().any(|v| !v.is_finite()) {
|
||||
return Rect::EMPTY;
|
||||
}
|
||||
Rect::new(bb[0].floor() as i32, bb[1].floor() as i32, (bb[2].ceil() as i32).saturating_add(1), (bb[3].ceil() as i32).saturating_add(1))
|
||||
};
|
||||
let area = footprint(&hd, lud, lvd, mc);
|
||||
@@ -385,9 +465,9 @@ pub fn clone_stroke(scene: &Scene, surf: &mut Surface, source: [f64; 2], points:
|
||||
let mut changed = false;
|
||||
for (i, px) in data.chunks_exact_mut(n).enumerate() {
|
||||
let (x, y) = (area.x0 as f64 + (i % w) as f64 + 0.5, area.y0 as f64 + (i / w) as f64 + 0.5);
|
||||
let m = metric(&hd_inv, lud, lvd, [x, y]);
|
||||
let m = metric(&hd_inv, (lud, lvd), [x, y]);
|
||||
let d = (m[0] - mc[0]).hypot(m[1] - mc[1]) / r_m;
|
||||
if d >= 1.0 {
|
||||
if d >= 1.0 || d.is_nan() {
|
||||
continue;
|
||||
}
|
||||
let hard = hardness.clamp(0.0, 0.99);
|
||||
@@ -396,7 +476,7 @@ pub fn clone_stroke(scene: &Scene, surf: &mut Surface, source: [f64; 2], points:
|
||||
// Source pixel at the same metric offset.
|
||||
let sm = [m[0] + offset[0], m[1] + offset[1]];
|
||||
let (sx, sy) = hs.apply(sm[0] / lus, sm[1] / lvs);
|
||||
sample(&src_copy, &win, sx - 0.5, sy - 0.5, &mut corners, &mut s);
|
||||
sample(src_copy, &win, sx - 0.5, sy - 0.5, &mut corners, &mut s);
|
||||
for c in 0..n {
|
||||
px[c] += (s[c] - px[c]) * k;
|
||||
}
|
||||
@@ -405,9 +485,10 @@ pub fn clone_stroke(scene: &Scene, surf: &mut Surface, source: [f64; 2], points:
|
||||
if changed {
|
||||
surf.write_region(area, &data);
|
||||
dabs += 1;
|
||||
changed_area = if changed_area.is_empty() { area } else { changed_area.union(&area) };
|
||||
}
|
||||
}
|
||||
dabs
|
||||
(dabs, changed_area)
|
||||
}
|
||||
|
||||
/// Pixels of `area` read from the source surface (`read_region` layout).
|
||||
@@ -421,6 +502,10 @@ struct Window {
|
||||
/// read from `s`.
|
||||
fn sample(s: &Surface, win: &Window, x: f64, y: f64, corners: &mut Vec<f32>, out: &mut [f32]) {
|
||||
let n = out.len();
|
||||
if !x.is_finite() || !y.is_finite() {
|
||||
out.fill(0.0);
|
||||
return;
|
||||
}
|
||||
let (x0, y0) = (x.floor() as i32, y.floor() as i32);
|
||||
let (tx, ty) = ((x - x0 as f64) as f32, (y - y0 as f64) as f32);
|
||||
let (x1, y1) = (x0.saturating_add(1), y0.saturating_add(1));
|
||||
@@ -537,6 +622,27 @@ mod tests {
|
||||
let n = clone_stroke(&sc, &mut s, [sx, sy], &[[dx, dy]], 10.0, 0.8, 1.0);
|
||||
assert_eq!(n, 1);
|
||||
assert!(s.rgba(dx as i32, dy as i32)[0] > 0.8, "{:?}", s.rgba(dx as i32, dy as i32));
|
||||
// The stroke's anchor copies from the source itself.
|
||||
let back = clone_source(&sc, [sx, sy], [dx, dy], [dx, dy]).unwrap();
|
||||
assert!((back[0] - sx).abs() < 1e-6 && (back[1] - sy).abs() < 1e-6, "{back:?}");
|
||||
}
|
||||
#[test]
|
||||
fn incremental_clone_uses_one_source_snapshot_per_stroke() {
|
||||
let sc = Scene::new(VpPlane { corners: [[0.0, 0.0], [100.0, 0.0], [100.0, 100.0], [0.0, 100.0]] }, [50.0, 50.0], None, 800.0);
|
||||
for fmt in [PixelFormat::RGBA8, PixelFormat::RGBA16, PixelFormat::RGBA32F] {
|
||||
let mut original = Surface::new(fmt);
|
||||
for x in 0..100 {
|
||||
original.fill_rect(Rect::new(x, 0, x + 1, 100), &[x as f32 / 100.0, (x % 7) as f32 / 6.0, 0.3, 1.0]);
|
||||
}
|
||||
let points = [[40.0, 50.0], [44.0, 50.0], [48.0, 50.0], [52.0, 50.0]];
|
||||
let mut whole = original.clone();
|
||||
assert_eq!(clone_stroke(&sc, &mut whole, [36.0, 50.0], &points, 12.0, 0.8, 1.0), 4);
|
||||
let mut pieces = original.clone();
|
||||
for part in points.chunks(2) {
|
||||
clone_dabs_from(&sc, &mut pieces, &original, [36.0, 50.0], points[0], part, 12.0, 0.8, 1.0);
|
||||
}
|
||||
assert_eq!(whole.read_region(Rect::new(0, 0, 100, 100)), pieces.read_region(Rect::new(0, 0, 100, 100)));
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
+230
-40
@@ -3,7 +3,7 @@
|
||||
//! ([`photocraft_algo::vanishing`]). The edit lands on the active pixel layer, or on a new layer
|
||||
//! with `"newLayer": true` (Photoshop's advice for non-destructive Vanishing Point work).
|
||||
|
||||
use photocraft_algo::vanishing::{Edge, PlaneCheck, Scene, VpPlane, clone_stroke, paste};
|
||||
use photocraft_algo::vanishing::{Edge, PlaneCheck, Scene, VpPlane, clone_dabs, paste};
|
||||
use photocraft_doc::{Document, Layer, LayerContent, LayerId};
|
||||
use photocraft_geom::Rect;
|
||||
use photocraft_raster::Surface;
|
||||
@@ -13,6 +13,11 @@ use crate::commands::CommandSpec;
|
||||
use crate::{EngineError, Result, Session};
|
||||
|
||||
pub const VP: &str = "filter.vanishingPoint";
|
||||
/// Most planes a scene holds.
|
||||
pub const MAX_PLANES: usize = 64;
|
||||
/// Most clone strokes, and dabs over all of them, one run paints.
|
||||
pub const MAX_CLONE_STROKES: usize = 4096;
|
||||
pub const MAX_CLONE_DABS: usize = 200_000;
|
||||
|
||||
fn bad(msg: impl Into<String>) -> EngineError {
|
||||
EngineError::BadParams { cmd: VP.into(), msg: msg.into() }
|
||||
@@ -29,6 +34,9 @@ pub fn scene(p: &Value, canvas: Rect) -> Result<Scene> {
|
||||
.and_then(Value::as_array)
|
||||
.filter(|a| !a.is_empty())
|
||||
.ok_or_else(|| bad("pass `planes`: [{\"corners\":[[x,y]×4]}, {\"from\":0,\"edge\":\"top\",\"angle\":90}]"))?;
|
||||
if planes.len() > MAX_PLANES {
|
||||
return Err(bad(format!("at most {MAX_PLANES} planes")));
|
||||
}
|
||||
let center = [(canvas.x0 + canvas.x1) as f64 / 2.0, (canvas.y0 + canvas.y1) as f64 / 2.0];
|
||||
let corners = |v: &Value| -> Option<[[f64; 2]; 4]> {
|
||||
let a = v.get("corners")?.as_array()?;
|
||||
@@ -67,6 +75,12 @@ pub fn scene(p: &Value, canvas: Rect) -> Result<Scene> {
|
||||
};
|
||||
let angle = pl.get("angle").and_then(Value::as_f64).unwrap_or(90.0);
|
||||
let depth = pl.get("depth").and_then(Value::as_f64).unwrap_or(1.0);
|
||||
if !angle.is_finite() || !(0.0..=360.0).contains(&angle) {
|
||||
return Err(bad(format!("plane {i}: `angle` must be 0..360 degrees")));
|
||||
}
|
||||
if !depth.is_finite() || depth <= 0.0 || depth > 1000.0 {
|
||||
return Err(bad(format!("plane {i}: `depth` must be above 0 and at most 1000")));
|
||||
}
|
||||
sc.tear_off(from, edge, angle, depth).ok_or_else(|| bad(format!("plane {i} would lie behind the camera")))?;
|
||||
}
|
||||
if sc.planes.iter().any(|p| p.homography().is_none()) {
|
||||
@@ -75,6 +89,88 @@ pub fn scene(p: &Value, canvas: Rect) -> Result<Scene> {
|
||||
Ok(sc)
|
||||
}
|
||||
|
||||
/// One stroke of `"clone"`.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct CloneSpec {
|
||||
pub source: [f64; 2],
|
||||
pub points: Vec<[f64; 2]>,
|
||||
pub size: f64,
|
||||
pub hardness: f64,
|
||||
pub opacity: f64,
|
||||
}
|
||||
|
||||
/// Reads `"clone"`: finite points, at most [`MAX_CLONE_STROKES`] strokes and
|
||||
/// [`MAX_CLONE_DABS`] dabs in all.
|
||||
pub fn clone_specs(p: &Value) -> Result<Vec<CloneSpec>> {
|
||||
let Some(v) = p.get("clone").filter(|v| !v.is_null()) else { return Ok(Vec::new()) };
|
||||
let strokes = v.as_array().ok_or_else(|| bad("`clone` is a list of strokes"))?;
|
||||
if strokes.len() > MAX_CLONE_STROKES {
|
||||
return Err(bad(format!("at most {MAX_CLONE_STROKES} clone strokes")));
|
||||
}
|
||||
let finite = |q: [f64; 2]| q.iter().all(|v| v.is_finite() && v.abs() < 1e7);
|
||||
let num = |c: &Value, k: &str, default: f64, lo: f64, hi: f64| -> Result<f64> {
|
||||
match c.get(k) {
|
||||
None | Some(Value::Null) => Ok(default),
|
||||
Some(v) => v.as_f64().filter(|x| x.is_finite()).map(|x| x.clamp(lo, hi)).ok_or_else(|| bad(format!("clone `{k}` must be a number"))),
|
||||
}
|
||||
};
|
||||
let mut dabs = 0usize;
|
||||
let mut out = Vec::with_capacity(strokes.len());
|
||||
for (k, c) in strokes.iter().enumerate() {
|
||||
let source = c.get("source").and_then(pt).filter(|q| finite(*q)).ok_or_else(|| bad(format!("clone {k}: `source` [x,y]")))?;
|
||||
let raw = c.get("points").and_then(Value::as_array).ok_or_else(|| bad(format!("clone {k}: `points` [[x,y], …]")))?;
|
||||
dabs = dabs.saturating_add(raw.len());
|
||||
if dabs > MAX_CLONE_DABS {
|
||||
return Err(bad(format!("at most {MAX_CLONE_DABS} clone points in all")));
|
||||
}
|
||||
let points =
|
||||
raw.iter().map(|q| pt(q).filter(|q| finite(*q))).collect::<Option<Vec<_>>>().ok_or_else(|| bad(format!("clone {k}: every point is [x,y]")))?;
|
||||
out.push(CloneSpec {
|
||||
source,
|
||||
points,
|
||||
size: num(c, "size", 40.0, 1.0, 2000.0)?,
|
||||
hardness: num(c, "hardness", 50.0, 0.0, 100.0)? / 100.0,
|
||||
opacity: num(c, "opacity", 100.0, 0.0, 100.0)? / 100.0,
|
||||
});
|
||||
}
|
||||
Ok(out)
|
||||
}
|
||||
|
||||
/// Paints clone stroke `c` on `surf`, or, with `work` (the image it samples), on `work` and copies
|
||||
/// the pixels it changed inside `canvas` to `surf`. Returns the dabs painted.
|
||||
pub fn clone_into(sc: &Scene, surf: &mut Surface, work: Option<&mut Surface>, c: &CloneSpec, canvas: Rect) -> usize {
|
||||
let Some(first) = c.points.first() else { return 0 };
|
||||
let Some(work) = work else {
|
||||
return clone_dabs(sc, surf, c.source, *first, &c.points, c.size, c.hardness, c.opacity as f32).0;
|
||||
};
|
||||
let before = work.clone();
|
||||
let (dabs, area) = clone_dabs(sc, work, c.source, *first, &c.points, c.size, c.hardness, c.opacity as f32);
|
||||
// The dabs' boxes can span far off the canvas (points up to 1e7 px apart): reading their
|
||||
// union back would allocate without bound.
|
||||
copy_changed(surf, &before, work, area.intersect(&canvas));
|
||||
dabs
|
||||
}
|
||||
|
||||
/// Copies to `dst` the pixels of `area` where `after` differs from `before` (same format).
|
||||
pub fn copy_changed(dst: &mut Surface, before: &Surface, after: &Surface, area: Rect) {
|
||||
if area.is_empty() {
|
||||
return;
|
||||
}
|
||||
let n = dst.format().channels();
|
||||
let (nw, ow, mut cur) = (after.read_region(area), before.read_region(area), dst.read_region(area));
|
||||
for ((c, a), b) in cur.chunks_exact_mut(n).zip(nw.chunks_exact(n)).zip(ow.chunks_exact(n)) {
|
||||
if a != b {
|
||||
c.copy_from_slice(a);
|
||||
}
|
||||
}
|
||||
dst.write_region(area, &cur);
|
||||
}
|
||||
|
||||
/// The image a `"newLayer"` run's clone strokes sample: the visible document.
|
||||
pub fn visible_image(doc: &Document) -> Surface {
|
||||
crate::file_cmds::flattened(doc, doc.pixel_format())
|
||||
}
|
||||
|
||||
fn has_layer(s: &Session) -> std::result::Result<(), String> {
|
||||
let d = s.active().ok_or("no document open")?;
|
||||
match d.active_layer.and_then(|id| d.doc.layer(id)).map(|l| &l.content) {
|
||||
@@ -84,8 +180,16 @@ fn has_layer(s: &Session) -> std::result::Result<(), String> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Pastes `src` (content in `rect`) onto plane `plane` of `sc` over `surf`, as the command's
|
||||
/// `"paste"` does. Returns the area the paste covers.
|
||||
pub fn paste_onto(sc: &Scene, surf: &mut Surface, plane: usize, src: &Surface, rect: Rect, at: [f64; 2], width: f64) -> Result<Rect> {
|
||||
let Some(out) = paste(sc, plane, src, rect, at, width)? else { return Ok(Rect::EMPTY) };
|
||||
over(surf, &out);
|
||||
Ok(out.content_bounds())
|
||||
}
|
||||
|
||||
/// Composites `top` over `dst` (premultiplied source-over), same format.
|
||||
fn over(dst: &mut Surface, top: &Surface) {
|
||||
pub fn over(dst: &mut Surface, top: &Surface) {
|
||||
let b = top.content_bounds();
|
||||
if b.is_empty() {
|
||||
return;
|
||||
@@ -134,20 +238,31 @@ fn vanishing_point(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
let width = item.get("width").and_then(Value::as_f64).unwrap_or(0.5).clamp(0.01, 10.0);
|
||||
pastes.push((plane, surf, rect, at, width));
|
||||
}
|
||||
let clones: Vec<Value> = p.get("clone").and_then(Value::as_array).cloned().unwrap_or_default();
|
||||
let clones = clone_specs(p)?;
|
||||
let new_layer = p.get("newLayer").and_then(Value::as_bool).unwrap_or(false);
|
||||
// The layer the mode was opened on (the UI passes it: other layers can be picked meanwhile).
|
||||
let layer = crate::commands::explicit_layer(s, p)?;
|
||||
let mut dabs = 0usize;
|
||||
let target = s.edit("Vanishing Point", |doc: &mut Document, active| {
|
||||
if let Some(l) = layer
|
||||
&& doc.layer(l).is_none()
|
||||
{
|
||||
return Err(EngineError::NoLayer(l));
|
||||
}
|
||||
let on = layer.or(*active);
|
||||
let id = if new_layer {
|
||||
let l = Layer::raster(doc.next_layer_name("Vanishing Point"), doc.pixel_format());
|
||||
let nid = doc.insert_above(*active, l);
|
||||
let nid = doc.insert_above(on, l);
|
||||
*active = Some(nid);
|
||||
nid
|
||||
} else {
|
||||
active.ok_or_else(|| EngineError::Other("no active layer".into()))?
|
||||
// The painted layer becomes active, so Fade and a colour-channel target follow it.
|
||||
let id = on.ok_or_else(|| EngineError::Other("no active layer".into()))?;
|
||||
*active = Some(id);
|
||||
id
|
||||
};
|
||||
// A new layer clones from the visible image; otherwise from the layer itself.
|
||||
let base: Option<Surface> = new_layer.then(|| crate::file_cmds::flattened(doc, doc.pixel_format()));
|
||||
let base: Option<Surface> = new_layer.then(|| visible_image(doc));
|
||||
let locks = doc.effective_locks(id);
|
||||
let l = doc.layer_mut(id).ok_or(EngineError::NoLayer(id))?;
|
||||
if locks.all || locks.pixels {
|
||||
@@ -155,40 +270,16 @@ fn vanishing_point(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
}
|
||||
let surf = l.surface_mut().ok_or_else(|| EngineError::Other("Vanishing Point needs a pixel layer".into()))?;
|
||||
for (plane, src, rect, at, width) in &pastes {
|
||||
if let Some(out) = paste(&sc, *plane, src, *rect, *at, *width)? {
|
||||
over(surf, &out);
|
||||
}
|
||||
paste_onto(&sc, surf, *plane, src, *rect, *at, *width)?;
|
||||
}
|
||||
for (k, c) in clones.iter().enumerate() {
|
||||
let source = c.get("source").and_then(pt).ok_or_else(|| bad(format!("clone {k}: `source` [x,y]")))?;
|
||||
let points: Vec<[f64; 2]> = c.get("points").and_then(Value::as_array).map(|a| a.iter().filter_map(pt).collect()).unwrap_or_default();
|
||||
let size = c.get("size").and_then(Value::as_f64).unwrap_or(40.0).clamp(1.0, 2000.0);
|
||||
let hardness = c.get("hardness").and_then(Value::as_f64).unwrap_or(50.0).clamp(0.0, 100.0) / 100.0;
|
||||
let opacity = (c.get("opacity").and_then(Value::as_f64).unwrap_or(100.0).clamp(0.0, 100.0) / 100.0) as f32;
|
||||
// Sample from the original pixels (merged with what's been pasted).
|
||||
let mut work = match &base {
|
||||
Some(b) => {
|
||||
let mut w = b.clone();
|
||||
over(&mut w, surf);
|
||||
w
|
||||
}
|
||||
None => surf.clone(),
|
||||
};
|
||||
let before = work.clone();
|
||||
dabs += clone_stroke(&sc, &mut work, source, &points, size, hardness, opacity);
|
||||
// Copy back only what the stroke changed.
|
||||
let b = work.content_bounds().union(&before.content_bounds());
|
||||
if !b.is_empty() {
|
||||
let (nw, ow) = (work.read_region(b), before.read_region(b));
|
||||
let n = surf.format().channels();
|
||||
let mut cur = surf.read_region(b);
|
||||
for i in 0..cur.len() / n {
|
||||
if nw[i * n..(i + 1) * n] != ow[i * n..(i + 1) * n] {
|
||||
cur[i * n..(i + 1) * n].copy_from_slice(&nw[i * n..(i + 1) * n]);
|
||||
}
|
||||
}
|
||||
surf.write_region(b, &cur);
|
||||
}
|
||||
// A new layer samples the visible image (merged with what's been pasted) and takes only
|
||||
// the pixels the strokes change; otherwise the strokes paint the layer itself.
|
||||
let mut work = base.map(|mut w| {
|
||||
over(&mut w, surf);
|
||||
w
|
||||
});
|
||||
for c in &clones {
|
||||
dabs += clone_into(&sc, surf, work.as_mut(), c, canvas);
|
||||
}
|
||||
surf.prune();
|
||||
Ok(id)
|
||||
@@ -211,7 +302,7 @@ pub fn specs() -> Vec<CommandSpec> {
|
||||
label: "Vanishing Point…",
|
||||
menu: &["Filter"],
|
||||
shortcut: Some("Cmd+Alt+V"),
|
||||
params: r##"{"planes":[{"corners":[[x,y]×4]} | {"from":plane,"edge":"top|right|bottom|left","angle":deg=90,"depth":1}],"focalLength":px=0,"paste":[{"plane":0,"layer":id? (else the clipboard),"at":[u,v]=[0.25,0.25],"width":0..1=0.5}],"clone":[{"source":[x,y],"points":[[x,y]],"size":px=40,"hardness":0..100=50,"opacity":0..100=100}],"newLayer":bool=false}"##,
|
||||
params: r##"{"planes":[{"corners":[[x,y]×4]} | {"from":plane,"edge":"top|right|bottom|left","angle":deg=90,"depth":1}],"focalLength":px=0,"paste":[{"plane":0,"layer":id? (else the clipboard),"at":[u,v]=[0.25,0.25],"width":0..1=0.5}],"clone":[{"source":[x,y],"points":[[x,y]],"size":px=40,"hardness":0..100=50,"opacity":0..100=100}],"newLayer":bool=false,"layer":id|name? (else the active layer)}"##,
|
||||
enabled: has_layer,
|
||||
run: vanishing_point,
|
||||
journal: true,
|
||||
@@ -282,4 +373,103 @@ mod tests {
|
||||
}
|
||||
assert!(s.execute(VP, json!({"planes": [{"corners": square}]})).is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_hostile_clone_and_tear_off_params() {
|
||||
let mut s = Session::new();
|
||||
s.execute("file.new", json!({"width": 200, "height": 200, "depth": 32})).unwrap();
|
||||
s.execute("layer.new.layer", json!({})).unwrap();
|
||||
let floor = json!({"corners": [[60, 60], [140, 60], [190, 190], [10, 190]]});
|
||||
let before = s.active().unwrap().doc.clone();
|
||||
let steps = s.active().unwrap().history.past_len();
|
||||
for torn in [json!({"from": 0, "angle": 1e9}), json!({"from": 0, "depth": -1}), json!({"from": 0, "depth": 1e300})] {
|
||||
let e = s.execute(VP, json!({"planes": [floor, torn]})).unwrap_err().to_string();
|
||||
assert!(e.contains("plane 1"), "{e}");
|
||||
assert!(std::sync::Arc::ptr_eq(&s.active().unwrap().doc, &before));
|
||||
assert_eq!(s.active().unwrap().history.past_len(), steps);
|
||||
}
|
||||
let many: Vec<[f64; 2]> = vec![[100.0, 150.0]; MAX_CLONE_DABS + 1];
|
||||
for clone in [
|
||||
json!([{"points": [[100, 150]]}]),
|
||||
json!([{"source": [100, 180], "points": [[100, 150], "x"]}]),
|
||||
json!([{"source": [100, 180], "points": [[100, 150]], "size": "big"}]),
|
||||
json!([{"source": [100, 180], "points": many}]),
|
||||
json!({"source": [100, 180]}),
|
||||
] {
|
||||
let label: String = clone.to_string().chars().take(80).collect();
|
||||
assert!(s.execute(VP, json!({"planes": [floor], "clone": clone, "newLayer": true})).is_err(), "{label}");
|
||||
assert!(std::sync::Arc::ptr_eq(&s.active().unwrap().doc, &before));
|
||||
assert_eq!(s.active().unwrap().history.past_len(), steps);
|
||||
}
|
||||
let planes: Vec<Value> = std::iter::repeat_n(floor.clone(), MAX_PLANES + 1).collect();
|
||||
assert!(s.execute(VP, json!({"planes": planes})).is_err());
|
||||
assert!(std::sync::Arc::ptr_eq(&s.active().unwrap().doc, &before));
|
||||
assert_eq!(s.active().unwrap().history.past_len(), steps);
|
||||
// A clone on a torn-off wall, at 32 bits, sampling the floor.
|
||||
let r = s
|
||||
.execute(VP, json!({"planes": [floor, {"from": 0, "edge": "top", "angle": 90, "depth": 0.5}], "clone": [{"source": [100, 150], "points": [[100, 50], [104, 50]], "size": 8}]}))
|
||||
.unwrap();
|
||||
assert_eq!(r["planes"].as_array().unwrap().len(), 2);
|
||||
assert!(r["dabs"].as_u64().unwrap() >= 1, "{r}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn new_layer_clone_stays_on_the_canvas() {
|
||||
let mut s = Session::new();
|
||||
s.execute("file.new", json!({"width": 200, "height": 200})).unwrap();
|
||||
s.execute("layer.new.layer", json!({})).unwrap();
|
||||
s.execute("edit.fill", json!({"color": "#40c040"})).unwrap();
|
||||
// A red stripe where the first dab samples, so cloning it changes pixels.
|
||||
s.edit("stripe", |doc, active| {
|
||||
doc.layer_mut(active.unwrap()).unwrap().surface_mut().unwrap().fill_rect(Rect::new(140, 80, 160, 120), &[1.0, 0.0, 0.0, 1.0]);
|
||||
Ok(())
|
||||
})
|
||||
.unwrap();
|
||||
let planes = json!([{"corners": [[0, 0], [200, 0], [200, 200], [0, 200]]}]);
|
||||
// The second dab lies left of the canvas and samples the canvas 50 px to its right; the
|
||||
// third is far off it (its box joined with the first's once asked for petabytes).
|
||||
for points in [json!([[100, 100], [-30, 100]]), json!([[100, 100], [-30, 100], [9_000_000, 9_000_000]])] {
|
||||
let r = s.execute(VP, json!({"planes": planes, "newLayer": true, "clone": [{"source": [150, 100], "points": points, "size": 20}]})).unwrap();
|
||||
let l = s.active().unwrap().doc.layer(LayerId(r["layer"].as_u64().unwrap())).unwrap().surface().unwrap();
|
||||
let b = l.content_bounds();
|
||||
assert!(!b.is_empty() && Rect::new(0, 0, 200, 200).contains_rect(&b), "{b:?}");
|
||||
assert!(l.rgba(100, 100)[0] > 0.9, "{:?}", l.rgba(100, 100));
|
||||
s.undo();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn layer_param_paints_that_layer_not_the_active_one() {
|
||||
let mut s = Session::new();
|
||||
s.execute("file.new", json!({"width": 200, "height": 200})).unwrap();
|
||||
s.execute("layer.new.layer", json!({"name": "floor"})).unwrap();
|
||||
s.execute("edit.fill", json!({"color": "#40c040"})).unwrap();
|
||||
s.edit("stripe", |doc, active| {
|
||||
doc.layer_mut(active.unwrap()).unwrap().surface_mut().unwrap().fill_rect(Rect::new(140, 80, 160, 120), &[1.0, 0.0, 0.0, 1.0]);
|
||||
Ok(())
|
||||
})
|
||||
.unwrap();
|
||||
let floor = s.active().unwrap().active_layer.unwrap();
|
||||
s.execute("layer.new.layer", json!({"name": "other"})).unwrap();
|
||||
let other = s.active().unwrap().active_layer.unwrap();
|
||||
let planes = json!([{"corners": [[0, 0], [200, 0], [200, 200], [0, 200]]}]);
|
||||
let clone = json!([{"source": [150, 100], "points": [[100, 100]], "size": 20}]);
|
||||
let surf = |s: &Session, id| s.active().unwrap().doc.layer(id).unwrap().surface().unwrap().clone();
|
||||
let r = s.execute(VP, json!({"planes": planes, "clone": clone, "layer": floor.0})).unwrap();
|
||||
assert_eq!(r["layer"].as_u64(), Some(floor.0));
|
||||
assert!(surf(&s, floor).rgba(100, 100)[0] > 0.9, "{:?}", surf(&s, floor).rgba(100, 100));
|
||||
assert!(surf(&s, other).content_bounds().is_empty(), "the active layer stays untouched");
|
||||
s.undo();
|
||||
// A new layer goes right above the named layer.
|
||||
let r = s.execute(VP, json!({"planes": planes, "clone": clone, "layer": floor.0, "newLayer": true})).unwrap();
|
||||
let d = &s.active().unwrap().doc;
|
||||
let ids: Vec<u64> = d.layers.iter().map(|l| l.id.0).collect();
|
||||
let at = |id: u64| ids.iter().position(|&i| i == id).unwrap();
|
||||
assert_eq!(at(r["layer"].as_u64().unwrap()), at(floor.0) + 1, "{ids:?}");
|
||||
s.undo();
|
||||
let before = s.active().unwrap().doc.clone();
|
||||
assert!(s.execute(VP, json!({"planes": planes, "clone": clone, "layer": 999_999})).is_err());
|
||||
assert!(s.execute(VP, json!({"planes": planes, "clone": clone, "layer": 999_999, "newLayer": true})).is_err());
|
||||
assert!(std::sync::Arc::ptr_eq(&s.active().unwrap().doc, &before));
|
||||
}
|
||||
}
|
||||
@@ -1479,6 +1479,9 @@ pub(crate) fn display_doc(app: &mut PhotocraftApp, idx: usize) -> (std::sync::Ar
|
||||
if let Some(shown) = crate::type_font_preview::display_doc(app, idx) {
|
||||
return shown;
|
||||
}
|
||||
// Vanishing Point's strokes over the document as it is now (the Layers panel may have
|
||||
// changed it since the options bar synced them this frame).
|
||||
crate::vp_ui::sync_preview(app);
|
||||
// Puppet / Perspective Warp previews hide the layer they draw on a mesh.
|
||||
if let Some(shown) = crate::distort_ui::display_doc(app, idx) {
|
||||
return shown;
|
||||
@@ -2032,6 +2035,13 @@ pub(crate) fn damage_since(app: &PhotocraftApp, idx: usize, seen: (u64, u64), no
|
||||
{
|
||||
return Some(if r.is_empty() { r } else { r.inflate(effect_reach(&st.doc.layers)) });
|
||||
}
|
||||
// Between Vanishing Point stamp previews (and the document): the areas the strokes painted.
|
||||
if seen.0 == now.0
|
||||
&& let Some(st) = app.session.documents().get(idx)
|
||||
&& let Some(r) = crate::vp_ui::damage(app, st.doc.id, now.0, seen.1 ^ display_key, now.1)
|
||||
{
|
||||
return Some(if r.is_empty() { r } else { r.inflate(effect_reach(&st.doc.layers)) });
|
||||
}
|
||||
// Between hovered blend modes (and the document): where the layer's blending shows.
|
||||
if seen.0 == now.0
|
||||
&& let Some(st) = app.session.documents().get(idx)
|
||||
|
||||
@@ -138,12 +138,13 @@ pub fn cancel_stale(app: &mut PhotocraftApp) {
|
||||
}
|
||||
}
|
||||
|
||||
/// The document shown on the canvas while Puppet or Perspective Warp previews a layer.
|
||||
/// The document shown on the canvas while Puppet or Perspective Warp previews a layer, or
|
||||
/// Vanishing Point's Stamp has painted.
|
||||
pub fn display_doc(app: &PhotocraftApp, idx: usize) -> Option<(Arc<Document>, u64)> {
|
||||
if app.session.active_index() != Some(idx) {
|
||||
return None;
|
||||
}
|
||||
let id = app.session.documents().get(idx).map(|st| st.doc.id)?;
|
||||
let (id, revision) = app.session.documents().get(idx).map(|st| (st.doc.id, st.revision))?;
|
||||
if let Some(p) = &app.distort.puppet
|
||||
&& p.document == id
|
||||
{
|
||||
@@ -154,7 +155,8 @@ pub fn display_doc(app: &PhotocraftApp, idx: usize) -> Option<(Arc<Document>, u6
|
||||
{
|
||||
return Some((p.preview_doc.clone(), (1 << 42) + p.key));
|
||||
}
|
||||
None
|
||||
// Vanishing Point: the clone strokes painted so far, on the document as they were painted.
|
||||
app.distort.vanishing.as_ref().and_then(|v| v.shown_on(id, revision))
|
||||
}
|
||||
|
||||
/// Menu / control routing. `Some` when this module handles the invocation.
|
||||
|
||||
@@ -3589,6 +3589,8 @@ curves Smooth Vyhladit
|
||||
Vanishing Point is not active Úběžník není aktivní
|
||||
Apply Vanishing Point ({key}) Použít úběžník ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Nejprve opravte červenou rovinu: její rohy musí tvořit konvexní čtyřúhelník
|
||||
Alt-click a plane to set the clone source Klepnutím s Alt na rovinu nastavte zdroj klonování
|
||||
Too many clone strokes: apply Vanishing Point first Příliš mnoho tahů klonování: nejprve použijte Úběžník
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Cibulová slupka
|
||||
Marching Ants Pochodující mravenci
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -2785,6 +2785,8 @@ curves Smooth Glätten
|
||||
Vanishing Point is not active Fluchtpunkt ist nicht aktiv
|
||||
Apply Vanishing Point ({key}) Fluchtpunkt anwenden ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Korrigieren Sie zuerst die rote Ebene: Ihre Ecken müssen ein konvexes Viereck bilden
|
||||
Alt-click a plane to set the clone source Alt-Klick auf eine Ebene legt die Kopierquelle fest
|
||||
Too many clone strokes: apply Vanishing Point first Zu viele Kopierstriche: Wenden Sie zuerst Fluchtpunkt an
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Zwiebelschicht
|
||||
Marching Ants Laufende Ameisen
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3834,6 +3834,8 @@ curves Smooth Εξομάλυνση
|
||||
Vanishing Point is not active Το Σημείο φυγής δεν είναι ενεργό
|
||||
Apply Vanishing Point ({key}) Εφαρμογή σημείου φυγής ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Διορθώστε πρώτα το κόκκινο επίπεδο: οι γωνίες του πρέπει να σχηματίζουν κυρτό τετράπλευρο
|
||||
Alt-click a plane to set the clone source Alt-κλικ σε ένα επίπεδο για να ορίσετε την πηγή κλωνοποίησης
|
||||
Too many clone strokes: apply Vanishing Point first Πάρα πολλές πινελιές κλωνοποίησης: εφαρμόστε πρώτα το Σημείο φυγής
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Φλούδα κρεμμυδιού
|
||||
Marching Ants Κινούμενο περίγραμμα
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 1041 and column 18.
|
@@ -2821,6 +2821,8 @@ curves Smooth Suavizar
|
||||
Vanishing Point is not active Punto de fuga no está activo
|
||||
Apply Vanishing Point ({key}) Aplicar punto de fuga ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Corrija primero el plano rojo: sus esquinas deben formar un cuadrilátero convexo
|
||||
Alt-click a plane to set the clone source Haga Alt-clic en un plano para definir el origen de clonación
|
||||
Too many clone strokes: apply Vanishing Point first Demasiados trazos de clonación: aplique primero Punto de fuga
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Papel cebolla
|
||||
Marching Ants Hormigas en marcha
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 4 and column 47.
|
@@ -3157,6 +3157,8 @@ curves Smooth Lisser
|
||||
Vanishing Point is not active Point de fuite n’est pas actif
|
||||
Apply Vanishing Point ({key}) Appliquer le point de fuite ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Corrigez d’abord le plan rouge : ses coins doivent former un quadrilatère convexe
|
||||
Alt-click a plane to set the clone source Alt-clic sur un plan pour définir la source de duplication
|
||||
Too many clone strokes: apply Vanishing Point first Trop de traits de duplication : appliquez d’abord Point de fuite
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Pelure d'oignon
|
||||
Marching Ants Fourmis en marche
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4037,6 +4037,8 @@ cameraRaw Yellow Sárga
|
||||
Amount: Mérték:
|
||||
Apply Vanishing Point ({key}) Enyészpont alkalmazása ({key})
|
||||
Apply the removal ({key}) Eltávolítás alkalmazása ({key})
|
||||
Alt-click a plane to set the clone source Alt-kattintás egy síkra a klónforrás beállításához
|
||||
Too many clone strokes: apply Vanishing Point first Túl sok klónvonás: először alkalmazza az Enyészpontot
|
||||
Drag to draw the curve · {key}-click draws a straight line Húzással rajzold meg a görbét · {key}+kattintás: egyenes vonal
|
||||
Draw to modify the curve Rajzolj a görbe módosításához
|
||||
Edit points to modify the curve Szerkeszd a pontokat a görbe módosításához
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3161,6 +3161,8 @@ curves Smooth Haluskan
|
||||
Vanishing Point is not active Vanishing Point tidak aktif
|
||||
Apply Vanishing Point ({key}) Terapkan Vanishing Point ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Perbaiki bidang merah dulu: sudut-sudutnya harus membentuk segi empat cembung
|
||||
Alt-click a plane to set the clone source Alt-klik sebuah bidang untuk menetapkan sumber kloning
|
||||
Too many clone strokes: apply Vanishing Point first Terlalu banyak goresan kloning: terapkan Vanishing Point terlebih dahulu
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Kulit Bawang
|
||||
Marching Ants Semut Berbaris
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 4 and column 47.
|
@@ -2806,6 +2806,8 @@ curves Smooth Leviga
|
||||
Vanishing Point is not active Punto di fuga non è attivo
|
||||
Apply Vanishing Point ({key}) Applica punto di fuga ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Correggi prima il piano rosso: i suoi angoli devono formare un quadrilatero convesso
|
||||
Alt-click a plane to set the clone source Alt-clic su un piano per impostare l’origine della clonazione
|
||||
Too many clone strokes: apply Vanishing Point first Troppi tratti di clonazione: applica prima Punto di fuga
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Velina
|
||||
Marching Ants Formiche in marcia
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2408 and column 12.
|
@@ -3747,6 +3747,8 @@ curves Smooth スムーズ
|
||||
Vanishing Point: click four corners to create a plane 消点: 4 つの角をクリックして面を作成します
|
||||
Vanishing Point is not active 消点はアクティブではありません
|
||||
Apply Vanishing Point ({key}) 消点を適用({key})
|
||||
Alt-click a plane to set the clone source Alt キーを押しながら平面をクリックしてコピー元を設定
|
||||
Too many clone strokes: apply Vanishing Point first コピースタンプのストロークが多すぎます:先に消点を適用してください
|
||||
Fix the red plane first: its corners must form a convex quad 先に赤い面を修正してください: 角が凸四角形になる必要があります
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin オニオンスキン
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3350,6 +3350,8 @@ curves Smooth 매끄럽게
|
||||
Vanishing Point is not active 소실점이 활성화되어 있지 않습니다
|
||||
Apply Vanishing Point ({key}) 소실점 적용 ({key})
|
||||
Fix the red plane first: its corners must form a convex quad 먼저 빨간색 평면을 수정하십시오: 모서리가 볼록 사각형을 이루어야 합니다
|
||||
Alt-click a plane to set the clone source Alt 키를 누른 채 평면을 클릭하여 복제 소스를 설정하십시오
|
||||
Too many clone strokes: apply Vanishing Point first 복제 획이 너무 많습니다. 먼저 소실점을 적용하십시오
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin 어니언 스킨
|
||||
Marching Ants 점선 윤곽
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2956 and column 12.
|
@@ -3890,6 +3890,8 @@ curves Smooth Vloeiend maken
|
||||
Vanishing Point is not active Verdwijnpunt is niet actief
|
||||
Apply Vanishing Point ({key}) Verdwijnpunt toepassen ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Herstel eerst het rode vlak: de hoeken moeten een convexe vierhoek vormen
|
||||
Alt-click a plane to set the clone source Alt-klik op een vlak om de kloonbron in te stellen
|
||||
Too many clone strokes: apply Vanishing Point first Te veel kloonstreken: pas eerst Verdwijnpunt toe
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Uienschil
|
||||
Marching Ants Mierenmars
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 8 and column 34.
|
@@ -3766,6 +3766,8 @@ curves Smooth Wygładź
|
||||
Vanishing Point is not active Punkt zbieżności nie jest aktywny
|
||||
Apply Vanishing Point ({key}) Zastosuj punkt zbieżności ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Najpierw popraw czerwoną płaszczyznę: jej narożniki muszą tworzyć czworokąt wypukły
|
||||
Alt-click a plane to set the clone source Kliknij płaszczyznę z Alt, aby ustawić źródło klonowania
|
||||
Too many clone strokes: apply Vanishing Point first Zbyt wiele pociągnięć klonowania: najpierw zastosuj Punkt zbieżności
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Skórka cebuli
|
||||
Marching Ants Maszerujące mrówki
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3159,6 +3159,8 @@ curves Smooth Suavizar
|
||||
Vanishing Point is not active Ponto de fuga não está ativo
|
||||
Apply Vanishing Point ({key}) Aplicar ponto de fuga ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Corrija primeiro o plano vermelho: seus cantos devem formar um quadrilátero convexo
|
||||
Alt-click a plane to set the clone source Clique com Alt em um plano para definir a origem da clonagem
|
||||
Too many clone strokes: apply Vanishing Point first Traços de clonagem demais: aplique Ponto de fuga primeiro
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Papel vegetal
|
||||
Marching Ants Formigas marchando
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3082,6 +3082,8 @@ curves Smooth Сгладить
|
||||
Vanishing Point is not active Точка схода не активна
|
||||
Apply Vanishing Point ({key}) Применить точку схода ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Сначала исправьте красную плоскость: ее углы должны образовывать выпуклый четырехугольник
|
||||
Alt-click a plane to set the clone source Щёлкните плоскость с Alt, чтобы задать источник клонирования
|
||||
Too many clone strokes: apply Vanishing Point first Слишком много мазков клонирования: сначала примените «Точку схода»
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Калька
|
||||
Marching Ants Бегущие муравьи
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3086,6 +3086,8 @@ curves Smooth Izgladi
|
||||
Vanishing Point is not active Tačka nestajanja nije aktivna
|
||||
Apply Vanishing Point ({key}) Primeni tačku nestajanja ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Prvo ispravite crvenu ravan: njeni uglovi moraju činiti konveksan četvorougao
|
||||
Alt-click a plane to set the clone source Alt-kliknite ravan da postavite izvor kloniranja
|
||||
Too many clone strokes: apply Vanishing Point first Previše poteza kloniranja: prvo primenite tačku nestajanja
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Prozirni prikaz
|
||||
Marching Ants Pokretne crtice
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3838,6 +3838,8 @@ cameraData Lens Lens
|
||||
Draw to modify the curve Eğriyi değiştirmek için çiz
|
||||
Edit points to modify the curve Eğriyi değiştirmek için noktaları düzenle
|
||||
Fix the red plane first: its corners must form a convex quad Önce kırmızı düzlemi düzeltin: köşeleri dışbükey bir dörtgen oluşturmalı
|
||||
Alt-click a plane to set the clone source Klon kaynağını ayarlamak için bir düzleme Alt+tıklayın
|
||||
Too many clone strokes: apply Vanishing Point first Çok fazla klon darbesi: önce Kaybolma Noktası'nı uygulayın
|
||||
Grid Size: Izgara Boyutu:
|
||||
Light Blue Açık Mavi
|
||||
Light Gray Açık Gri
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 8 and column 34.
|
@@ -3824,6 +3824,8 @@ curves Smooth Згладити
|
||||
Vanishing Point is not active Точка сходження не активна
|
||||
Apply Vanishing Point ({key}) Застосувати точку сходження ({key})
|
||||
Fix the red plane first: its corners must form a convex quad Спершу виправте червону площину: її кути мають утворювати опуклий чотирикутник
|
||||
Alt-click a plane to set the clone source Клацніть площину з Alt, щоб задати джерело клонування
|
||||
Too many clone strokes: apply Vanishing Point first Забагато мазків клонування: спочатку застосуйте «Точку сходження»
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin Калька
|
||||
Marching Ants Мурашки
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 1409 and column 18.
|
@@ -2462,6 +2462,8 @@ shape Appearance Diện mạo
|
||||
Fill with {mode}-neutral color (black) Tô bằng màu trung tính của {mode} (đen)
|
||||
Fill with {mode}-neutral color (white) Tô bằng màu trung tính của {mode} (trắng)
|
||||
Fix the red plane first: its corners must form a convex quad Hãy sửa mặt phẳng đỏ trước: các góc phải tạo thành tứ giác lồi
|
||||
Alt-click a plane to set the clone source Nhấp Alt vào một mặt phẳng để đặt nguồn sao chép
|
||||
Too many clone strokes: apply Vanishing Point first Quá nhiều nét sao chép: hãy áp dụng Điểm tụ trước
|
||||
Float Panel Thả nổi bảng
|
||||
Functions Hàm
|
||||
Grid Size: Cỡ lưới:
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -2790,6 +2790,9 @@ curves Smooth 平滑
|
||||
Vanishing Point is not active 消失点未处于活动状态
|
||||
Apply Vanishing Point ({key}) 应用消失点({key})
|
||||
Fix the red plane first: its corners must form a convex quad 请先修正红色平面:其四个角必须构成凸四边形
|
||||
Alt-click a plane to set the clone source 按住 Alt 键单击平面以设置仿制源
|
||||
Too many clone strokes: apply Vanishing Point first 仿制描边过多:请先应用消失点
|
||||
Stamp 图章
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin 洋葱皮
|
||||
Marching Ants 蚂蚁线
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2384 and column 12.
|
@@ -2739,6 +2739,9 @@ curves Smooth 平滑
|
||||
Vanishing Point is not active 消失點未啟用
|
||||
Apply Vanishing Point ({key}) 套用消失點 ({key})
|
||||
Fix the red plane first: its corners must form a convex quad 請先修正紅色平面:其四個角必須構成凸四邊形
|
||||
Alt-click a plane to set the clone source 按住 Alt 鍵按一下平面以設定仿製來源
|
||||
Too many clone strokes: apply Vanishing Point first 仿製筆畫過多:請先套用消失點
|
||||
Stamp 印章
|
||||
# Select and Mask view modes (#1754)
|
||||
Onion Skin 洋蔥皮
|
||||
Marching Ants 螞蟻線
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
+1104
-41
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -167,7 +167,7 @@ Corpus floors (`crates/io/tests/it/corpus.rs`): the enforced minimums; the corpu
|
||||
| TOOL-214-11 | Stroke Path dialog: pick any brush-based tool, Simulate Pressure | done | [#214](https://github.com/storytold/photocraft/issues/214) | path.stroke tool: Brush, Pencil, Eraser and every other brush-based tool (Background Eraser, Clone/Pattern Stamp, Healing/Spot Healing Brush, History Brush, Blur, Sharpen, Smudge, Dodge, Burn, Sponge, Color Replacement, Mixer Brush: their paint.* command along the path, one step) plus simulatePressure (taper both ends); Stroke Path dialog from the Pen menu, the Paths panel menu and Alt-click on its Stroke button (#2978) |
|
||||
| TOOL-214-12 | Shapes: on-canvas corner radius handles, shape feather, selection to shape with tolerance | done | [#214](https://github.com/storytold/photocraft/issues/214) | On-canvas corner radius widgets on every selected live rectangle, triangle, polygon and star (LiveShape::Polygon corner_radius, shape.create/edit cornerRadius, vector shapes::round_corners) with Path Selection, the Rectangle/Triangle/Polygon tools and Move + Show Transform Controls: drag rounds every corner of every selected shape alike, Alt one corner of a rectangle, corner radius cursor and R: readout, one history step (corner_radius.rs, 2026-10-13); select.convertToShape with tolerance (vector_cmds.rs:1256); shape Density and Feather (Properties, layer.vectorMask.edit on a shape layer; the path as the fill's soft vector mask, Photoshop's 10 px feather ramp within 1 level; PSD mask parameters and .pcraft, #5846, 2026-10-15) |
|
||||
| TOOL-214-13 | Mask Properties: Density and Feather controls | done | [#214](https://github.com/storytold/photocraft/issues/214) | Properties panel shows Density (%) and Feather (px) sliders for a targeted pixel mask (layer.layerMask.edit) and a targeted vector mask (layer.vectorMask.edit), non-destructive and one undo step per drag, with Photoshop's Refine row (mask_props_ui.rs:34 pixel mask, :48 vector mask, :52 the sliders; mask_props_ui_tests.rs:39 pixel_mask_properties_follow_target_for_raster_and_adjustment_in_both_themes, :81 mask_slider_drags_preview_live_and_undo_as_separate_gestures, :147 vector_mask_properties_edit_density_and_feather) |
|
||||
| TOOL-214-14 | Vanishing Point window: draw and edit planes, paste, clone in perspective | partial | [#214](https://github.com/storytold/photocraft/issues/214) | filter.vanishingPoint (vp_cmds.rs:15); on-canvas plane editor (vp_ui.rs: Create/Edit Plane, edge nodes, valid/doubtful/invalid grid colours, Grid Size, clipboard pasted onto the plane on OK); clone stamp, marquee and tear-off planes in the window still missing |
|
||||
| TOOL-214-14 | Vanishing Point window: draw and edit planes, paste, clone in perspective | partial | [#214](https://github.com/storytold/photocraft/issues/214) | filter.vanishingPoint (vp_cmds.rs:15); on-canvas window (vp_ui.rs: Create/Edit Plane, edge nodes, Ctrl/Cmd-drag tear-off planes with depth and Alt-drag angle, valid/doubtful/invalid grid colours, Grid Size, clipboard pasted onto the plane, Stamp tool cloning in perspective with live preview, all applied on OK as one step); the window's Marquee tool and the Stamp's Heal modes are still missing |
|
||||
| TOOL-214-15 | Content-Aware Fill workspace: paint the sampling area, preview, rotate/scale/mirror, new layer | partial | [#214](https://github.com/storytold/photocraft/issues/214) | Engine sampling auto, rect, custom (edit_menu_cmds.rs:324); generic dialog |
|
||||
| TOOL-214-16 | Liquify: redo (Cmd+Shift+Z) | done | [#214](https://github.com/storytold/photocraft/issues/214) | liquify_ui.rs supports bounded redo through Cmd+Shift+Z and the control channel; new strokes clear redo |
|
||||
| TOOL-213-17 | Red Eye tool: click a pupil to neutralize the red reflection | done | [#213](https://github.com/storytold/photocraft/issues/213) | paint.redEye (redeye_cmds.rs) + Tool::RedEye in the J flyout; Pupil Size and Darken Amount; catchlights kept; a miss is an error |
|
||||
|
||||
@@ -206,7 +206,7 @@ id = "TOOL-214-14"
|
||||
target = "Vanishing Point window: draw and edit planes, paste, clone in perspective"
|
||||
status = "partial"
|
||||
issue = 214
|
||||
note = "filter.vanishingPoint (vp_cmds.rs:15); on-canvas plane editor (vp_ui.rs: Create/Edit Plane, edge nodes, valid/doubtful/invalid grid colours, Grid Size, clipboard pasted onto the plane on OK); clone stamp, marquee and tear-off planes in the window still missing"
|
||||
note = "filter.vanishingPoint (vp_cmds.rs:15); on-canvas window (vp_ui.rs: Create/Edit Plane, edge nodes, Ctrl/Cmd-drag tear-off planes with depth and Alt-drag angle, valid/doubtful/invalid grid colours, Grid Size, clipboard pasted onto the plane, Stamp tool cloning in perspective with live preview, all applied on OK as one step); the window's Marquee tool and the Stamp's Heal modes are still missing"
|
||||
|
||||
[[item]]
|
||||
id = "TOOL-214-15"
|
||||
|
||||
Reference in new issue
Block a user