Align: keep the tests and panel docs #1073's branch dropped, and translate the new button

The branch was cut from an older main, so its commit also removed four engine tests (stroke and
paint rejection, malformed anchor selection, bad anchors in path commands), the newer
window.panel.float/dock parameter docs and the un-collapse on showing a floating panel. This puts
them back and adds the Horizontal & Vertical Align Center label to the complete catalogs.
This commit is contained in:
bflatastic 2026-10-12 00:48:15 +07:00
parent a672bd70dd
commit e1beafb359
12 changed files with 14 additions and 2 deletions

View File

@ -133,6 +133,7 @@
Horizontal Align Right Vodorovně zarovnat doprava
Vertical Align Top Svisle zarovnat nahoru
Vertical Align Center Svisle zarovnat na střed
Horizontal & Vertical Align Center Vodorovně a svisle zarovnat na střed
Vertical Align Bottom Svisle zarovnat dolů
Group Seskupit
Ungroup Oddělit

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -3037,6 +3037,7 @@ effect Points Punkte
Vertical % Vertikal %
Vertical Align Bottom Vertikal unten ausrichten
Vertical Align Center Vertikal zentriert ausrichten
Horizontal & Vertical Align Center Horizontal und vertikal zentriert ausrichten
Vertical Align Top Vertikal oben ausrichten
Vertical Area Type Tool Vertikaler-Flächentext-Werkzeug
Vertical Distribute Bottom Vertikal unten verteilen

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -3137,6 +3137,7 @@
Vertical % % vertical
Vertical Align Bottom Alinear abajo verticalmente
Vertical Align Center Alinear centros verticalmente
Horizontal & Vertical Align Center Alinear centros horizontal y verticalmente
Vertical Align Top Alinear arriba verticalmente
Vertical Area Type Tool Herramienta Texto de área vertical
Vertical Distribute Bottom Distribuir abajo verticalmente

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -3134,6 +3134,7 @@
Vertical % % vertical
Vertical Align Bottom Alignement vertical en bas
Vertical Align Center Alignement vertical au centre
Horizontal & Vertical Align Center Alignement centré horizontal et vertical
Vertical Align Top Alignement vertical en haut
Vertical Area Type Tool Outil Texte captif vertical
Vertical Distribute Bottom Répartition verticale en bas

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -3137,6 +3137,7 @@
Vertical % % verticale
Vertical Align Bottom Allinea verticalmente in basso
Vertical Align Center Allinea verticalmente al centro
Horizontal & Vertical Align Center Allinea centri orizzontalmente e verticalmente
Vertical Align Top Allinea verticalmente in alto
Vertical Area Type Tool Strumento Testo in area verticale
Vertical Distribute Bottom Distribuisci verticalmente i bordi inferiori

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -173,6 +173,7 @@
Horizontal Align Right 水平方向右に整列
Vertical Align Top 垂直方向上に整列
Vertical Align Center 垂直方向中央に整列
Horizontal & Vertical Align Center 水平方向および垂直方向中央に整列
Vertical Align Bottom 垂直方向下に整列
Group グループ
Ungroup グループ解除

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -2566,6 +2566,7 @@
Vertical Vertical
Vertical Align Bottom Alinhar Inferior Verticalmente
Vertical Align Center Alinhar Centro Verticalmente
Horizontal & Vertical Align Center Alinhar Centro Horizontal e Verticalmente
Vertical Align Top Alinhar Superior Verticalmente
Vertical Area Type Tool Ferramenta Texto Vertical de Área
Vertical Distribute Space Distribuir Espaço Verticalmente

Can't render this file because it contains an unexpected character in line 6 and column 47.

View File

@ -3133,6 +3133,7 @@
Vertical % По вертикали, %
Vertical Align Bottom Выровнять по нижнему краю по вертикали
Vertical Align Center Выровнять по центру по вертикали
Horizontal & Vertical Align Center Выровнять по центру по горизонтали и вертикали
Vertical Align Top Выровнять по верхнему краю по вертикали
Vertical Area Type Tool Инструмент «Вертикальный текст в области»
Vertical Distribute Bottom Распределить по нижнему краю по вертикали

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -3130,6 +3130,7 @@ effect Points Точки
Vertical % По вертикалі, %
Vertical Align Bottom Вирівняти по нижньому краю по вертикалі
Vertical Align Center Вирівняти по центру по вертикалі
Horizontal & Vertical Align Center Вирівняти по центру по горизонталі й вертикалі
Vertical Align Top Вирівняти по верхньому краю по вертикалі
Vertical Area Type Tool Інструмент «Вертикальний текст в області»
Vertical Distribute Bottom Розподілити по нижньому краю по вертикалі

Can't render this file because it has a wrong number of fields in line 13.

View File

@ -3028,6 +3028,7 @@
Vertical % 垂直 %
Vertical Align Bottom 垂直底对齐
Vertical Align Center 垂直居中对齐
Horizontal & Vertical Align Center 水平和垂直居中对齐
Vertical Align Top 垂直顶对齐
Vertical Area Type Tool 直排区域文字工具
Vertical Distribute Bottom 垂直分布下缘

Can't render this file because it contains an unexpected character in line 2 and column 73.

View File

@ -3121,6 +3121,7 @@
Vertical % 垂直 %
Vertical Align Bottom 垂直靠下對齊
Vertical Align Center 垂直置中對齊
Horizontal & Vertical Align Center 水平和垂直置中對齊
Vertical Align Top 垂直靠上對齊
Vertical Area Type Tool 垂直區域文字工具
Vertical Distribute Bottom 垂直均分下緣

Can't render this file because it contains an unexpected character in line 6 and column 47.

View File

@ -308,13 +308,13 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"window.panel.float",
"Float Panel",
"",
"{panel: id or \"tools\", x?, y?, onto?: id, group?: bool} float a panel out of the dock (or out of its floating group) as its own floating group with its top-left corner at x, y in window points (default: cascaded), as dragging its tab out of the dock does; `onto` stacks it with the floating group holding that panel instead; `group` takes its whole group (its floating group, or the Properties | Layers | Libraries tabs left in the dock); a panel alone in its group is moved. \"tools\" floats the Tools panel. Returns {panel, floating, group, pos}",
"{panel: id or \"tools\", x?, y?, onto?: id, below?: id, above?: id, group?: bool, collapsed?: bool} float a panel out of the dock (or out of its floating group) as its own floating group with its top-left corner at x, y in window points (default: cascaded), as dragging its tab out of the dock does; `onto` stacks it as a tab with the floating group holding that panel instead; `below` / `above` puts its group in a set with that group, right below or above it, as dropping it on that group's lower or upper half does (the set's groups stack top to bottom and move together); `group` takes its whole group (its floating group, or the Properties | Layers | Libraries tabs left in the dock); a panel alone in its group is moved (out of its set, given x, y); `collapsed` shows its group's tabs only, as a double-click on a tab does; a docked group floats its dock column. \"tools\" floats the Tools panel. Returns {panel, floating, group, set, pos, collapsed, column}",
),
(
"window.panel.dock",
"Dock Panel",
"",
"{panel: id or \"tools\", group?: bool} put a floating panel (with `group`, its whole group) back in the dock, as dropping it on the dock or its group's × does: Properties, Layers and Libraries in the tabbed group, the other panels in the icon column; \"tools\" docks the Tools panel at the window's left edge",
"{panel: id or \"tools\", group?: bool, column?: true or n} put a floating panel (with `group`, its whole group) back in the dock, as dropping it on the dock or its group's × does: Properties, Layers and Libraries in the tabbed group, the other panels in the icon column; with `column`, dock its group and the rest of its set as a dock column instead, as dropping it on the left edge of the icon column or of a dock column does: `true` at the dock's left, n at that place (1: next to the icon column, counting left); \"tools\" docks the Tools panel at the window's left edge. Returns {panel, floating, column}",
),
(
"window.collapseDock",
@ -1181,6 +1181,7 @@ pub fn run_ui_command(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option<R
&& let Some(g) = crate::floating::group_of(&app.ui, p).and_then(|i| app.ui.floating_panels.get_mut(i))
{
g.active = g.panels.iter().position(|q| q == p).unwrap_or(g.active);
g.collapsed = false;
let out = json!({ "floating": g.panels });
app.ui.dock = true;
return Some(Ok(out));