mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
Artboard tool: edge buttons show a tooltip
Resting the pointer on an Artboard tool edge button now shows a tooltip after egui's usual delay: "Click to add an artboard on this side; Alt-click to duplicate this artboard with its art", or on a locked artboard, where an Alt-click does nothing, "Click to add an artboard on this side". The wording is VectorCraft's own. Tools can attach hover text to an overlay region with the new Overlay::HoverText (a disc in document units, drawn as nothing). The canvas puts a hover-only widget over each region, so the canvas keeps every click and drag, and shows the translated text while the pointer is inside the disc, no canvas drag is under way and no pointer button is down. A button hidden for lack of room, during a drag or with several artboards selected has no region, so no tooltip. Both strings have rows in every complete catalog, checked by a new i18n test, since the tl! scan does not read the tools crate.
This commit is contained in:
1 parent
4558196e16
commit
5401288918
36 files changed
+230
-4
No files matched your search
@@ -92,6 +92,10 @@ pub enum Overlay {
|
||||
Swatch { p: Point, color: [u8; 4], selected: bool },
|
||||
/// A hairline in a translucent colour (perspective gridlines), RGBA.
|
||||
GridLine { a: Point, b: Point, color: [u8; 4] },
|
||||
/// Hover text for the disc of `radius` (document units) around `center`: while the pointer
|
||||
/// rests there and nothing is being dragged, the UI shows `text`, an English UI string it
|
||||
/// translates, as a tooltip. Nothing is drawn for it.
|
||||
HoverText { center: Point, radius: f64, text: &'static str },
|
||||
}
|
||||
|
||||
/// What an IME's "delete the text around the cursor" counts: UTF-8 bytes (winit's raw
|
||||
|
||||
@@ -18,7 +18,7 @@ use vectorcraft_geom::{BezPath, Point, Rect, Shape};
|
||||
|
||||
use crate::{Overlay, Tool};
|
||||
|
||||
pub use artboard::ArtboardTool;
|
||||
pub use artboard::{ArtboardTool, EDGE_BUTTON_TIP, EDGE_BUTTON_TIP_LOCKED};
|
||||
pub use eyedropper::EyedropperTool;
|
||||
pub use free::{DistortMode, FreeTransformTool};
|
||||
pub use gradient::GradientTool;
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
//! no other artboard). Clicking one adds an empty artboard there (`artboard.new {beside, side}`);
|
||||
//! Alt-clicking duplicates the artboard with its art there (`artboard.duplicate {index, side}`),
|
||||
//! except on a locked artboard, where an Alt-click does nothing. Each is one undo step, and the new
|
||||
//! artboard becomes the active one.
|
||||
//! artboard becomes the active one. Resting the pointer on a button shows a tooltip that says what a
|
||||
//! click does there and, on an unlocked artboard, what an Alt-click does.
|
||||
|
||||
use serde_json::{Value, json};
|
||||
use vectorcraft_doc::ArtboardSide;
|
||||
@@ -298,6 +299,10 @@ fn bleed_offset(cx: &ToolContext, rect: Rect, handle: Handle) -> Vec2 {
|
||||
const EDGE_BUTTON_OFFSET: f64 = 18.0;
|
||||
/// The add button's radius in screen pixels: a press this near its center takes it.
|
||||
const EDGE_BUTTON_RADIUS: f64 = 7.0;
|
||||
/// The add button's tooltip ([`Overlay::HoverText`]), an English UI string the UI translates.
|
||||
pub const EDGE_BUTTON_TIP: &str = "Click to add an artboard on this side; Alt-click to duplicate this artboard with its art";
|
||||
/// The add button's tooltip on a locked artboard, where an Alt-click does nothing.
|
||||
pub const EDGE_BUTTON_TIP_LOCKED: &str = "Click to add an artboard on this side";
|
||||
|
||||
impl ArtboardTool {
|
||||
/// The add buttons on the active artboard's edges, each with its side and center: shown while
|
||||
@@ -657,9 +662,11 @@ impl Tool for ArtboardTool {
|
||||
if self.drag.is_some() {
|
||||
o.extend(self.guides.iter().cloned());
|
||||
}
|
||||
// The add buttons: a ring with a plus in it.
|
||||
// The add buttons: a ring with a plus in it, and a tooltip over the area a press takes.
|
||||
let (radius, arm) = (cx.tol(EDGE_BUTTON_RADIUS), cx.tol(3.5));
|
||||
let tip = if ab.locked { EDGE_BUTTON_TIP_LOCKED } else { EDGE_BUTTON_TIP };
|
||||
for (_, at) in self.edge_buttons(cx) {
|
||||
o.push(Overlay::HoverText { center: at, radius, text: tip });
|
||||
let ring: Vec<Point> = (0..24).map(|k| at + Vec2::from_angle(f64::from(k) * std::f64::consts::TAU / 24.0) * radius).collect();
|
||||
let mut path = polygon(&ring, true);
|
||||
for arm in [Vec2::new(arm, 0.0), Vec2::new(0.0, arm)] {
|
||||
|
||||
@@ -611,6 +611,44 @@ fn add_buttons_hide_with_several_artboards_selected_or_during_a_drag() {
|
||||
assert!(button_sides(&t, &c).is_empty(), "none while an artboard is dragged");
|
||||
}
|
||||
|
||||
/// The tooltips the add buttons carry: each one's center, radius and text.
|
||||
fn button_tips(t: &ArtboardTool, c: &ToolContext) -> Vec<(Point, f64, &'static str)> {
|
||||
t.overlays(c)
|
||||
.into_iter()
|
||||
.filter_map(|o| if let Overlay::HoverText { center, radius, text } = o { Some((center, radius, text)) } else { None })
|
||||
.collect()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn each_add_button_has_a_tooltip_over_the_area_a_press_takes() {
|
||||
let mut d = two_boards();
|
||||
let (s, p) = (Selection::default(), paint());
|
||||
let c = cx(&d, &s, &p);
|
||||
let t = ArtboardTool::default();
|
||||
let radius = c.tol(EDGE_BUTTON_RADIUS);
|
||||
let want: Vec<_> = t.edge_buttons(&c).into_iter().map(|(_, at)| (at, radius, EDGE_BUTTON_TIP)).collect();
|
||||
assert_eq!(want.len(), 3, "no button and no tooltip on the side without room");
|
||||
assert_eq!(button_tips(&t, &c), want);
|
||||
// The tooltip's disc is the one a press takes.
|
||||
for (at, r, _) in &want {
|
||||
assert!(t.edge_button_at(&c, *at + Vec2::new(r * 0.99, 0.0)).is_some());
|
||||
assert!(t.edge_button_at(&c, *at + Vec2::new(r * 1.01, 0.0)).is_none());
|
||||
}
|
||||
// None with several artboards selected or during a drag.
|
||||
let several = ArtboardTool { active: 1, others: vec![0], ..Default::default() };
|
||||
assert!(button_tips(&several, &c).is_empty());
|
||||
let mut dragging = ArtboardTool::default();
|
||||
dragging.pointer(&c, &ev(PointerKind::Down, 700.0, 100.0));
|
||||
dragging.pointer(&c, &ev(PointerKind::Drag, 720.0, 100.0));
|
||||
assert!(button_tips(&dragging, &c).is_empty(), "none while an artboard is dragged");
|
||||
// A locked artboard's buttons tell only what a click does: an Alt-click does nothing there.
|
||||
d.artboards[0].locked = true;
|
||||
let c = cx(&d, &s, &p);
|
||||
let tips = button_tips(&t, &c);
|
||||
assert_eq!(tips.len(), 3);
|
||||
assert!(tips.iter().all(|(_, _, text)| *text == EDGE_BUTTON_TIP_LOCKED), "{tips:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_add_button_adds_an_empty_artboard_and_alt_duplicates_on_that_side() {
|
||||
let d = two_boards();
|
||||
|
||||
@@ -61,7 +61,9 @@ use outline::KEY_OUTLINE;
|
||||
use outline::{OVERLAY_MAX_ANCHORS, c32, node_outline, walk_drawn};
|
||||
#[cfg(test)]
|
||||
use overlays::selected_anchor;
|
||||
use overlays::{HandleLook, blend_widgets_overlay, draw_inside_overlay, draw_overlays, hover_highlight, ime_geometry, selection_overlay};
|
||||
use overlays::{
|
||||
HandleLook, blend_widgets_overlay, draw_inside_overlay, draw_overlays, hover_highlight, ime_geometry, overlay_hover_text, selection_overlay,
|
||||
};
|
||||
pub use panes::Panes;
|
||||
pub(crate) use panes::{consolidate, pane, tile, tiled_area};
|
||||
use raster::{changed_pixels, pixel_region, upload};
|
||||
@@ -410,6 +412,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
|
||||
let overlays = selection_visuals(app, &painter, &xf, (hidden_chars, selection_marks, hover_still), revolve_edit, view_info);
|
||||
draw_overlays(&painter, &xf, &overlays, &t, HandleLook::of(&app.session.prefs));
|
||||
overlay_hover_text(ui, &xf, &overlays, ui.data(|d| d.get_temp::<Drag>(drag_id())).is_some());
|
||||
if !revolve_edit {
|
||||
shaper_widget_overlay(app, &painter, &xf);
|
||||
crate::panels::three_d::paint_graphic_handles(app, &painter, &xf);
|
||||
|
||||
@@ -437,6 +437,29 @@ pub(super) fn draw_overlays(p: &egui::Painter, xf: &Xf, overlays: &[Overlay], t:
|
||||
p.circle_stroke(c, 8.0, Stroke::new(2.0, t.accent));
|
||||
}
|
||||
}
|
||||
// Shown as a tooltip by `overlay_hover_text`; nothing is drawn.
|
||||
Overlay::HoverText { .. } => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The tooltips of the tool's [`Overlay::HoverText`] regions. Each region is a hover-only widget
|
||||
/// over the canvas, which keeps the clicks and drags; while the pointer rests inside a region's
|
||||
/// disc, egui shows its text, translated, after its usual tooltip delay. No tooltip shows during a
|
||||
/// canvas drag (`dragging`) or while a pointer button is down.
|
||||
pub(super) fn overlay_hover_text(ui: &egui::Ui, xf: &Xf, overlays: &[Overlay], dragging: bool) {
|
||||
let pressed = ui.input(|i| i.pointer.any_down());
|
||||
for (i, o) in overlays.iter().enumerate() {
|
||||
let Overlay::HoverText { center, radius, text } = o else { continue };
|
||||
let c = xf.to_screen(*center);
|
||||
let r = (*radius * xf.zoom) as f32;
|
||||
if !(r.is_finite() && r > 0.0 && c.is_finite()) {
|
||||
continue;
|
||||
}
|
||||
let id = egui::Id::unique("canvas-hover-text").with(i);
|
||||
let resp = ui.interact(egui::Rect::from_center_size(c, vec2(2.0 * r, 2.0 * r)), id, egui::Sense::hover());
|
||||
if !dragging && !pressed && resp.hover_pos().is_some_and(|p| p.distance(c) <= r) {
|
||||
resp.on_hover_text(crate::i18n::t(text));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -884,6 +884,90 @@ fn the_artboard_tool_names_its_active_artboard_once() {
|
||||
assert!((active[0].1 - other[0].1).abs() < 2.0, "on the artboard's top edge like the other name: {active:?} vs {other:?}");
|
||||
}
|
||||
|
||||
/// The texts one headless 800 × 600 canvas frame at `time` seconds draws, tooltips included.
|
||||
fn texts_at(app: &mut VectorcraftApp, ctx: &egui::Context, time: f64, events: Vec<egui::Event>) -> Vec<String> {
|
||||
fn collect(shape: &Shape, texts: &mut Vec<String>) {
|
||||
match shape {
|
||||
Shape::Text(t) => texts.push(t.galley.text().to_string()),
|
||||
Shape::Vec(shapes) => shapes.iter().for_each(|s| collect(s, texts)),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
let screen_rect = Some(egui::Rect::from_min_size(Pos2::ZERO, vec2(800.0, 600.0)));
|
||||
let mut out = ctx.run_ui(egui::RawInput { screen_rect, time: Some(time), events, ..Default::default() }, |ui| show(app, ui));
|
||||
out.textures_delta.clear();
|
||||
let mut texts = vec![];
|
||||
out.shapes.iter().for_each(|s| collect(&s.shape, &mut texts));
|
||||
texts
|
||||
}
|
||||
|
||||
/// The Artboard tool's add buttons: resting the pointer on one shows its tooltip after egui's
|
||||
/// tooltip delay, over the disc a press takes and not beside it. No tooltip shows while a drag
|
||||
/// is under way, or once the button is gone.
|
||||
#[test]
|
||||
fn an_artboard_add_button_shows_its_tooltip_while_the_pointer_rests_on_it() {
|
||||
use egui::Event;
|
||||
let tip = vectorcraft_tools::xform::EDGE_BUTTON_TIP;
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
app.session.execute("file.new", &json!({"width": 200, "height": 100})).unwrap();
|
||||
app.select_tool("artboard");
|
||||
let ctx = egui::Context::default();
|
||||
texts_at(&mut app, &ctx, 0.0, vec![]);
|
||||
let xf = Xf::new(app.canvas_rect.unwrap(), app.view().unwrap());
|
||||
// The bottom button: the one below the artboard.
|
||||
let regions: Vec<(Pos2, f32)> = app
|
||||
.session
|
||||
.overlays(app.view_info())
|
||||
.into_iter()
|
||||
.filter_map(|o| match o {
|
||||
Overlay::HoverText { center, radius, text } if text == tip => Some((xf.to_screen(center), (radius * xf.zoom) as f32)),
|
||||
_ => None,
|
||||
})
|
||||
.collect();
|
||||
assert_eq!(regions.len(), 4, "one tooltip for each add button");
|
||||
let (at, r) = regions.iter().copied().max_by(|a, b| a.0.y.total_cmp(&b.0.y)).unwrap();
|
||||
assert!((r - 7.0).abs() < 1e-3, "the disc a press takes: {r}");
|
||||
let shown = |texts: &[String]| texts.iter().any(|s| s == tip);
|
||||
// Resting inside the disc: nothing at first, the tooltip after the delay.
|
||||
assert!(!shown(&texts_at(&mut app, &ctx, 1.0, vec![Event::PointerMoved(at + vec2(r - 1.0, 0.0))])));
|
||||
assert!(!shown(&texts_at(&mut app, &ctx, 1.05, vec![])), "egui's tooltip delay first");
|
||||
let mut seen = false;
|
||||
for k in 1..=20 {
|
||||
seen |= shown(&texts_at(&mut app, &ctx, 1.05 + 0.1 * f64::from(k), vec![]));
|
||||
}
|
||||
assert!(seen, "the tooltip shows while the pointer rests on the button");
|
||||
// Just outside the disc, inside the square around it: no tooltip.
|
||||
let mut t = 4.0;
|
||||
texts_at(&mut app, &ctx, t, vec![Event::PointerMoved(at + vec2(r - 1.0, r - 1.0))]);
|
||||
for _ in 0..20 {
|
||||
t += 0.1;
|
||||
assert!(!shown(&texts_at(&mut app, &ctx, t, vec![])), "beside the button");
|
||||
}
|
||||
// A middle-button drag that starts on the button pans the view with the pointer, so the pointer
|
||||
// stays on the button: no tooltip while it lasts.
|
||||
let middle = |pos, pressed| Event::PointerButton { pos, button: egui::PointerButton::Middle, pressed, modifiers: Default::default() };
|
||||
texts_at(&mut app, &ctx, t, vec![Event::PointerMoved(at)]);
|
||||
t += 0.1;
|
||||
texts_at(&mut app, &ctx, t, vec![middle(at, true)]);
|
||||
let to = at + vec2(30.0, 0.0);
|
||||
for _ in 0..20 {
|
||||
t += 0.1;
|
||||
assert!(!shown(&texts_at(&mut app, &ctx, t, vec![Event::PointerMoved(to)])), "during a drag");
|
||||
}
|
||||
texts_at(&mut app, &ctx, t, vec![middle(to, false)]);
|
||||
// With an artboard below, there is no room for the bottom button, and its tooltip goes with it.
|
||||
let r0 = app.session.active().unwrap().doc.artboards[0].rect;
|
||||
app.session.execute("artboard.new", &json!({"beside": 0, "side": "bottom"})).unwrap();
|
||||
assert_eq!(app.session.active().unwrap().doc.artboards[0].rect, r0);
|
||||
let xf = Xf::new(app.canvas_rect.unwrap(), app.view().unwrap());
|
||||
let below = xf.to_screen(vectorcraft_geom::Point::new(r0.center().x, r0.y1)) + vec2(0.0, 18.0);
|
||||
texts_at(&mut app, &ctx, t, vec![Event::PointerMoved(below)]);
|
||||
for _ in 0..20 {
|
||||
t += 0.1;
|
||||
assert!(!shown(&texts_at(&mut app, &ctx, t, vec![])), "no tooltip where no button shows");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn shift_clicking_canvas_artboard_label_toggles_multi_selection() {
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
|
||||
@@ -922,6 +922,8 @@ font-technology Variable Променливи
|
||||
Duplicate Дублиране
|
||||
Duplicate and Offset 10 pt Дублиране и отместване с 10 pt
|
||||
Duplicate Artboard Дублиране на работна област
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Щракнете, за да добавите работна област от тази страна, Alt-щракване дублира тази работна област заедно с графиката ѝ
|
||||
Click to add an artboard on this side Щракнете, за да добавите работна област от тази страна
|
||||
Copy Artboard Копиране на работна област
|
||||
Cut Artboard Изрязване на работна област
|
||||
Rename Artboards Преименуване на работни области
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4102,6 +4102,8 @@ axis Both Obje
|
||||
Show Prikaži
|
||||
Copy Width Point Kopiraj tačku širine
|
||||
Duplicate Artboard Dupliciraj radnu ploču
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Kliknite da dodate radnu ploču na ovu stranu, Alt-klik duplicira ovu radnu ploču s njenim crtežom
|
||||
Click to add an artboard on this side Kliknite da dodate radnu ploču na ovu stranu
|
||||
Area / Path Type Tekst u području / na putanji
|
||||
Decrease Font Size Smanji veličinu fonta
|
||||
Decrease Font Size by Five Steps Smanji veličinu fonta za pet koraka
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -1363,6 +1363,8 @@ antiAlias Sharp Nítid
|
||||
Duplicate Duplica
|
||||
Duplicate and Offset 10 pt Duplica i desplaça 10 pt
|
||||
Duplicate Artboard Duplica el tauler
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Fes clic per afegir un tauler en aquest costat i Alt+clic per duplicar aquest tauler amb la il·lustració
|
||||
Click to add an artboard on this side Fes clic per afegir un tauler en aquest costat
|
||||
Duplicate Artboards Duplica els taulers
|
||||
Duplicate Brush Duplica el pinzell
|
||||
Duplicate Character Style Duplica l’estil de caràcter
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4158,6 +4158,8 @@ axis Both Obě
|
||||
Show Zobrazit
|
||||
Copy Width Point Kopírovat bod šířky
|
||||
Duplicate Artboard Duplikovat pracovní plochu
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Kliknutím přidáte pracovní plochu na tuto stranu, Alt+kliknutím duplikujete tuto pracovní plochu i s kresbou
|
||||
Click to add an artboard on this side Kliknutím přidáte pracovní plochu na tuto stranu
|
||||
Area / Path Type Text v oblasti / na cestě
|
||||
Decrease Font Size Zmenšit velikost písma
|
||||
Decrease Font Size by Five Steps Zmenšit velikost písma o pět kroků
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3875,6 +3875,8 @@ axis Both Begge
|
||||
Show Vis
|
||||
Copy Width Point Kopiér breddepunkt
|
||||
Duplicate Artboard Duplikér tegneflade
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Klik for at tilføje en kunstplade på denne side, Alt-klik for at duplikere kunstpladen med dens grafik
|
||||
Click to add an artboard on this side Klik for at tilføje en kunstplade på denne side
|
||||
Area / Path Type Arealtekst / kurvetekst
|
||||
Decrease Font Size Formindsk skriftstørrelse
|
||||
Increase Font Size Forøg skriftstørrelse
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -924,6 +924,8 @@ font-technology Variable Variabel
|
||||
Duplicate Duplizieren
|
||||
Duplicate and Offset 10 pt Duplizieren und um 10 pt versetzen
|
||||
Duplicate Artboard Zeichenfläche duplizieren
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Klicken fügt auf dieser Seite eine Zeichenfläche hinzu, Alt-Klick dupliziert diese Zeichenfläche mit ihrem Bildmaterial
|
||||
Click to add an artboard on this side Klicken fügt auf dieser Seite eine Zeichenfläche hinzu
|
||||
Copy Artboard Zeichenfläche kopieren
|
||||
Cut Artboard Zeichenfläche ausschneiden
|
||||
Rename Artboards Zeichenflächen umbenennen
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -894,6 +894,8 @@ font-technology Variable Μεταβλητές
|
||||
Duplicate Δημιουργία αντιγράφου
|
||||
Duplicate and Offset 10 pt Δημιουργία αντιγράφου με μετατόπιση 10 pt
|
||||
Duplicate Artboard Δημιουργία αντιγράφου πίνακα σχεδίασης
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Κλικ για προσθήκη πίνακα σχεδίασης σε αυτή την πλευρά, Alt-κλικ για αντίγραφο αυτού του πίνακα σχεδίασης μαζί με τα γραφικά του
|
||||
Click to add an artboard on this side Κλικ για προσθήκη πίνακα σχεδίασης σε αυτή την πλευρά
|
||||
Copy Artboard Αντιγραφή πίνακα σχεδίασης
|
||||
Cut Artboard Αποκοπή πίνακα σχεδίασης
|
||||
Rename Artboards Μετονομασία πινάκων σχεδίασης
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -937,6 +937,8 @@ font-technology Variable Variables
|
||||
Duplicate Duplicar
|
||||
Duplicate and Offset 10 pt Duplicar y desplazar 10 pt
|
||||
Duplicate Artboard Duplicar mesa de trabajo
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Clic para añadir una mesa de trabajo en este lado, Alt+clic para duplicar esta mesa de trabajo con su ilustración
|
||||
Click to add an artboard on this side Clic para añadir una mesa de trabajo en este lado
|
||||
Copy Artboard Copiar mesa de trabajo
|
||||
Cut Artboard Cortar mesa de trabajo
|
||||
Rename Artboards Cambiar nombre de mesas de trabajo
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4082,6 +4082,8 @@ axis Both Molemmat
|
||||
Show Näytä
|
||||
Copy Width Point Kopioi leveyspiste
|
||||
Duplicate Artboard Monista piirtoalusta
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Lisää piirtoalusta tälle puolelle napsauttamalla, monista piirtoalusta kuvituksineen Alt-napsautuksella
|
||||
Click to add an artboard on this side Lisää piirtoalusta tälle puolelle napsauttamalla
|
||||
Area / Path Type Alue- / polkuteksti
|
||||
Decrease Font Size Pienennä fonttikokoa
|
||||
Decrease Font Size by Five Steps Pienennä fonttikokoa viisi askelta
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -940,6 +940,8 @@ font-technology Variable Variables
|
||||
Duplicate Dupliquer
|
||||
Duplicate and Offset 10 pt Dupliquer et décaler de 10 pt
|
||||
Duplicate Artboard Dupliquer le plan de travail
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Cliquez pour ajouter un plan de travail de ce côté, Alt+clic pour dupliquer ce plan de travail avec son illustration
|
||||
Click to add an artboard on this side Cliquez pour ajouter un plan de travail de ce côté
|
||||
Copy Artboard Copier le plan de travail
|
||||
Cut Artboard Couper le plan de travail
|
||||
Rename Artboards Renommer les plans de travail
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -1523,6 +1523,8 @@ antiAlias Sharp शार्प
|
||||
Duplicate Anchors एंकर की प्रति बनाएँ
|
||||
Duplicate and Offset 10 pt डुप्लिकेट और ऑफ़सेट 10 pt
|
||||
Duplicate Artboard आर्टबोर्ड की प्रति बनाएँ
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art इस ओर आर्टबोर्ड जोड़ने के लिए क्लिक करें; इस आर्टबोर्ड की उसके आर्टवर्क सहित प्रति बनाने के लिए Alt-क्लिक करें
|
||||
Click to add an artboard on this side इस ओर आर्टबोर्ड जोड़ने के लिए क्लिक करें
|
||||
Duplicate Artboards आर्टबोर्ड्स की प्रति बनाएँ
|
||||
Duplicate Brush डुप्लिकेट ब्रश
|
||||
Duplicate Character Style कैरेक्टर स्टाइल की प्रति बनाएँ
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1218,6 +1218,8 @@ font-technology Variable Változó
|
||||
Duplicate Kettőzés
|
||||
Duplicate and Offset 10 pt Kettőzés és eltolás 10 pt-tal
|
||||
Duplicate Artboard Rajztábla kettőzése
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Kattintás: rajztábla hozzáadása ezen az oldalon, Alt+kattintás: a rajztábla kettőzése a grafikájával együtt
|
||||
Click to add an artboard on this side Kattintás: rajztábla hozzáadása ezen az oldalon
|
||||
Duplicate Artboards Rajztáblák kettőzése
|
||||
Duplicate Brush Ecset kettőzése
|
||||
Duplicate Character Style Karakterstílus kettőzése
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3875,6 +3875,8 @@ axis Both Keduanya
|
||||
Show Tampilkan
|
||||
Copy Width Point Salin titik lebar
|
||||
Duplicate Artboard Duplikatkan artboard
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Klik untuk menambahkan artboard di sisi ini, Alt+klik untuk menduplikatkan artboard ini beserta karya seninya
|
||||
Click to add an artboard on this side Klik untuk menambahkan artboard di sisi ini
|
||||
Area / Path Type Teks area / teks jalur
|
||||
Decrease Font Size Perkecil ukuran font
|
||||
Increase Font Size Perbesar ukuran font
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2429 and column 5.
|
@@ -945,6 +945,8 @@ font-technology Variable Variabili
|
||||
Duplicate Duplica
|
||||
Duplicate and Offset 10 pt Duplica e sposta di 10 pt
|
||||
Duplicate Artboard Duplica tavola da disegno
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Fai clic per aggiungere una tavola da disegno su questo lato, Alt+clic per duplicare questa tavola da disegno con la sua grafica
|
||||
Click to add an artboard on this side Fai clic per aggiungere una tavola da disegno su questo lato
|
||||
Copy Artboard Copia tavola da disegno
|
||||
Cut Artboard Taglia tavola da disegno
|
||||
Rename Artboards Rinomina tavole da disegno
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -1580,6 +1580,8 @@ antiAlias Sharp シャープ
|
||||
Drawing Mode 描画モード
|
||||
Duplicate 複製
|
||||
Duplicate Artboard アートボードを複製
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art クリックでこの辺にアートボードを追加、Alt+クリックでこのアートボードをアートワークごと複製
|
||||
Click to add an artboard on this side クリックでこの辺にアートボードを追加
|
||||
Copy Artboard アートボードをコピー
|
||||
Cut Artboard アートボードをカット
|
||||
Rename Artboards アートボード名を変更
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3696,6 +3696,8 @@ axis Both ორივე
|
||||
Show ჩვენება
|
||||
Copy Width Point სიგანის წერტილის კოპირება
|
||||
Duplicate Artboard სამუშაო დაფის დუბლირება
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art დაწკაპეთ ამ მხარეს სამუშაო დაფის დასამატებლად; Alt-დაწკაპეთ ამ სამუშაო დაფის ნახატთან ერთად დასადუბლირებლად
|
||||
Click to add an artboard on this side დაწკაპეთ ამ მხარეს სამუშაო დაფის დასამატებლად
|
||||
Area / Path Type არის / ტრაექტორიის ტექსტი
|
||||
Decrease Font Size შრიფტის შემცირება
|
||||
Increase Font Size შრიფტის გაზრდა
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1570,6 +1570,8 @@ antiAlias Sharp 날카롭게
|
||||
Drawing Mode 그리기 모드
|
||||
Duplicate 복제
|
||||
Duplicate Artboard 아트보드 복제
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art 클릭하여 이쪽에 아트보드 추가, Alt-클릭하여 이 아트보드를 아트워크와 함께 복제
|
||||
Click to add an artboard on this side 클릭하여 이쪽에 아트보드 추가
|
||||
Copy Artboard 아트보드 복사
|
||||
Cut Artboard 아트보드 잘라내기
|
||||
Rename Artboards 아트보드 이름 바꾸기
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4391,6 +4391,8 @@ axis Both Beide
|
||||
Show Tonen
|
||||
Copy Width Point Breedtepunt kopiëren
|
||||
Duplicate Artboard Tekengebied dupliceren
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Klik om aan deze kant een tekenbord toe te voegen, Alt-klik om dit tekenbord met zijn illustratie te dupliceren
|
||||
Click to add an artboard on this side Klik om aan deze kant een tekenbord toe te voegen
|
||||
Area / Path Type Gebieds- / padtekst
|
||||
Decrease Font Size Tekengrootte verkleinen
|
||||
Increase Font Size Tekengrootte vergroten
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4000,6 +4000,8 @@ axis Both Obie
|
||||
Show Pokaż
|
||||
Copy Width Point Kopiuj punkt szerokości
|
||||
Duplicate Artboard Powiel obszar kompozycji
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Kliknij, aby dodać obszar kompozycji po tej stronie, kliknij z Alt, aby powielić ten obszar kompozycji wraz z grafiką
|
||||
Click to add an artboard on this side Kliknij, aby dodać obszar kompozycji po tej stronie
|
||||
Area / Path Type Tekst akapitowy / na ścieżce
|
||||
Decrease Font Size Zmniejsz rozmiar czcionki
|
||||
Decrease Font Size by Five Steps Zmniejsz rozmiar czcionki o pięć kroków
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -840,6 +840,8 @@ antiAlias Sharp Nítido
|
||||
Duotone Gradients Gradientes Duotônicos
|
||||
Duplicate Duplicar
|
||||
Duplicate Artboard Duplicar Mesa de Trabalho
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Clique para adicionar uma prancheta deste lado, Alt-clique para duplicar esta prancheta com sua arte
|
||||
Click to add an artboard on this side Clique para adicionar uma prancheta deste lado
|
||||
Copy Artboard Copiar Mesa de Trabalho
|
||||
Cut Artboard Recortar Mesa de Trabalho
|
||||
Rename Artboards Renomear Mesas de Trabalho
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -935,6 +935,8 @@ font-technology Variable Вариативные
|
||||
Duplicate Дублировать
|
||||
Duplicate and Offset 10 pt Дублировать и сместить на 10 пт
|
||||
Duplicate Artboard Дублировать монтажную область
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Щёлкните, чтобы добавить монтажную область с этой стороны; щёлкните с Alt, чтобы дублировать эту монтажную область вместе с графикой
|
||||
Click to add an artboard on this side Щёлкните, чтобы добавить монтажную область с этой стороны
|
||||
Copy Artboard Копировать монтажную область
|
||||
Cut Artboard Вырезать монтажную область
|
||||
Rename Artboards Переименовать монтажные области
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -924,6 +924,8 @@ font-technology Variable Variabla
|
||||
Duplicate Duplicera
|
||||
Duplicate and Offset 10 pt Duplicera och förskjut 10 pt
|
||||
Duplicate Artboard Duplicera rityta
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Klicka för att lägga till en rityta på den här sidan, Alt-klicka för att duplicera ritytan med dess grafik
|
||||
Click to add an artboard on this side Klicka för att lägga till en rityta på den här sidan
|
||||
Copy Artboard Kopiera rityta
|
||||
Cut Artboard Klipp ut rityta
|
||||
Rename Artboards Byt namn på ritytor
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -332,6 +332,18 @@ fn marquee_selection_labels_are_in_complete_catalogs() {
|
||||
}
|
||||
}
|
||||
|
||||
/// The Artboard tool's add buttons take their tooltips from the tools crate, which the `tl!` scan
|
||||
/// does not read, so each complete catalog is checked for them here.
|
||||
#[test]
|
||||
fn artboard_add_button_tooltips_are_in_complete_catalogs() {
|
||||
use vectorcraft_tools::xform::{EDGE_BUTTON_TIP, EDGE_BUTTON_TIP_LOCKED};
|
||||
for lang in LANGUAGES.iter().filter(|lang| lang.complete_menus || COMPLETE_MESSAGES.contains(&lang.code)) {
|
||||
for label in [EDGE_BUTTON_TIP, EDGE_BUTTON_TIP_LOCKED] {
|
||||
assert!(lang.catalog().plain(label).is_some_and(|t| !t.is_empty() && t != label), "{} is missing {label}", lang.code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Preferences › Performance › Use Monitor Profile for Canvas and the note under it.
|
||||
#[test]
|
||||
fn monitor_profile_labels_are_in_complete_catalogs() {
|
||||
|
||||
@@ -916,6 +916,8 @@ font-technology Variable Değişken
|
||||
Duplicate Çoğalt
|
||||
Duplicate and Offset 10 pt Çoğalt ve Ofset 10 pt
|
||||
Duplicate Artboard Çalışma Yüzeyini Çoğalt
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Bu tarafa çalışma yüzeyi eklemek için tıklayın, bu çalışma yüzeyini çizimiyle birlikte çoğaltmak için Alt tuşunu basılı tutarak tıklayın
|
||||
Click to add an artboard on this side Bu tarafa çalışma yüzeyi eklemek için tıklayın
|
||||
Copy Artboard Çalışma Yüzeyini Kopyala
|
||||
Cut Artboard Çalışma Yüzeyini Kes
|
||||
Rename Artboards Çalışma Yüzeylerini Yeniden Adlandır
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 5 and column 25.
|
@@ -939,6 +939,8 @@ font-technology Variable Варіативні
|
||||
Duplicate Дублювати
|
||||
Duplicate and Offset 10 pt Дублювати та змістити на 10 пунктів
|
||||
Duplicate Artboard Дублювати монтажну область
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Клацніть, щоб додати монтажну область із цього боку; клацніть з Alt, щоб дублювати цю монтажну область разом із графікою
|
||||
Click to add an artboard on this side Клацніть, щоб додати монтажну область із цього боку
|
||||
Copy Artboard Копіювати монтажну область
|
||||
Cut Artboard Вирізати монтажну область
|
||||
Rename Artboards Перейменувати монтажні області
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -1109,6 +1109,8 @@ font-technology Variable Biến thiên
|
||||
Duplicate Nhân bản
|
||||
Duplicate and Offset 10 pt Nhân bản và dịch 10 pt
|
||||
Duplicate Artboard Nhân bản bảng vẽ
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art Bấm để thêm bảng vẽ ở phía này, Alt-bấm để nhân bản bảng vẽ này cùng tác phẩm của nó
|
||||
Click to add an artboard on this side Bấm để thêm bảng vẽ ở phía này
|
||||
Duplicate Artboards Nhân bản các bảng vẽ
|
||||
Duplicate Brush Nhân bản cọ
|
||||
Duplicate Character Style Nhân bản kiểu ký tự
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 204 and column 5.
|
@@ -879,6 +879,8 @@ antiAlias Sharp 锐利
|
||||
Duplicate 复制
|
||||
Duplicate and Offset 10 pt 复制并偏移 10 pt
|
||||
Duplicate Artboard 复制画板
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art 单击在此侧添加画板,Alt+单击复制此画板及其图稿
|
||||
Click to add an artboard on this side 单击在此侧添加画板
|
||||
Copy Artboard 拷贝画板
|
||||
Cut Artboard 剪切画板
|
||||
Rename Artboards 重命名画板
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -907,6 +907,8 @@ font-technology Variable 可變
|
||||
Duplicate 製作複本
|
||||
Duplicate and Offset 10 pt 製作複本並位移 10 pt
|
||||
Duplicate Artboard 製作工作區域複本
|
||||
Click to add an artboard on this side; Alt-click to duplicate this artboard with its art 按一下以在這一側新增工作區域,Alt 加按一下以製作此工作區域及其圖稿的複本
|
||||
Click to add an artboard on this side 按一下以在這一側新增工作區域
|
||||
Copy Artboard 複製工作區域
|
||||
Cut Artboard 剪下工作區域
|
||||
Rename Artboards 重新命名工作區域
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -732,6 +732,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- **Escape in the distort tools:** Escape during a Puppet Warp pin drag or turn, a Perspective Grid tool handle or plane widget drag, a Perspective Selection move, resize or plane widget drag, or a Liquify stroke cancels it: the art goes back to how the press found it, no undo step is added, and the tool stays chosen. Puppet Warp also selects again the pins selected before the press, and Escape during a Liquify Alt-drag puts the brush size back. Regression tests: `escape_cancels_*` in `crates/tools/src/distort/puppet.rs`, `perspective.rs` and `liquify.rs`, and `escape_cancels_a_puppet_warp_perspective_or_liquify_drag` in `tests/distortkeys.rs`.
|
||||
- **Shift with the Artboard tool:** a Shift-click adds an artboard to the selection or takes it out when the button comes up. A Shift-drag inside an artboard draws a new artboard there, and a Shift-drag on the pasteboard is a marquee that toggles the artboards it touches, as the [default keyboard shortcuts](https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) (a Shift-drag draws an artboard within an existing one) and [Using multiple artboards](https://web.archive.org/web/20210925094818/https://helpx.adobe.com/illustrator/using/using-multiple-artboards.html) (archived copy) describe. Shift no longer keeps an artboard move at 45° steps or a drawn artboard square. Escape during a marquee or while a new artboard is being drawn cancels it and keeps the Artboard tool. Pointer and key tests in `crates/tools/src/xform/artboard.rs` cover the four gestures and Escape.
|
||||
- **Artboard edge buttons:** with the Artboard tool and one artboard selected, a button with a plus shows just outside the middle of each edge where an artboard of the same size fits on that side; clicking it adds an empty artboard of that size there (`artboard.new {beside, side}`), and Alt-clicking duplicates the artboard with its art there (`artboard.duplicate {index, side}`), each in one undo step, with the new artboard active. An Alt-click on a locked artboard's button does nothing, as the tool doesn't copy a locked artboard. The 20 pt gap and the room rule (within the canvas, overlapping no other artboard) are VectorCraft's own. Pointer tests in `crates/tools/src/xform/artboard/tests.rs` and an engine test in `tests/panelcmds.rs` cover it. Public references: [Add artboards instantly](https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/add-edit-artboards/add-new-artboards.html) and [Duplicate artboards instantly](https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/add-edit-artboards/duplicate-artboards.html).
|
||||
- **Artboard edge button tooltips:** resting the pointer on an edge button shows a tooltip, after the interface's usual tooltip delay, that says a click adds an artboard on that side and, on an unlocked artboard, that an Alt-click duplicates the artboard with its art. The tooltip covers the same disc a press takes. No tooltip shows during a drag or where a button is hidden for lack of room. The wording is VectorCraft's own. Tools can attach such hover text to any overlay region (`Overlay::HoverText`). Tests in `crates/tools/src/xform/artboard/tests.rs`, `crates/ui-egui/src/canvas/tests.rs` and `crates/ui-egui/src/i18n/tests.rs` cover it.
|
||||
- **Artboard deletion keys:** Delete/Backspace delete selected boards in one Undo step, retaining the original first board in the current order when all are selected, as in the public [Delete artboards guide](https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/add-edit-artboards/delete-artboards.html). The last board and active drags stay protected; neither key clears selected artwork. Headless shortcut regressions in `tests/distortkeys.rs` cover reordered boards, artwork, saved state and Undo/Redo.
|
||||
- **Locked artboards:** a click in the Artboards panel's lock column locks or unlocks an artboard in one undo step (`artboard.setProps {index, locked}`), and the native format saves the lock. The Artboard tool doesn't move, copy, resize or delete a locked artboard, Rearrange and Fit to Artwork Bounds leave it as it is, and its name isn't edited on the canvas. The art on it (each object whose bounds overlap it, a group as one object) acts as locked art until it is unlocked: clicks, marquees, `select.set`, `select.all` and the tools pass over it, and commands that act on the selection leave it; art drawn or pasted onto it stays selected and editable until the selection leaves it out. Tests in `crates/doc/src/lib.rs`, `tests/panelcmds.rs`, `xform/artboard.rs`, `panels/artboards.rs` and `canvas.rs` cover them. Public references: [Lock artboards](https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/organize-manage-artboards/lock-artboards.html) and [Managing Artboards in Illustrator](https://creativepro.com/managing-artboards-in-illustrator/).
|
||||
- **Linux RPM packaging:** 64-bit runtime capabilities replace Fedora-specific required package names (#1275); glibc 2.35, libm and libgcc_s are declared alongside dynamically loaded xkbcommon and Vulkan/EGL. Generated x86_64/aarch64 metadata and isolated synthetic-provider resolution checked; real-distro install/start-up QA remains pending.
|
||||
|
||||
Reference in new issue
Block a user