feat(studio): groups, a layers panel, marquee, nudge, multi-resize, align and paste style

Elements can be grouped on a page and picked, moved, resized, aligned and
restacked as one. A layers panel lists the page front to back with lock,
visibility, rename and drag to restack. The sheet gains marquee selection,
arrow-key nudge, one box that resizes a multi-selection with Shift holding
the proportions, and the design-tool shortcuts. The inspector lines a
selection up and spaces it out, and copies and pastes a style.

The assistant gets the same through the group, ungroup, name and hide
operations, and describe_book_page lists the groups. The format gains the
optional group, name and hidden fields and a spread's group names, so
BOOK_SCHEMA_REV goes to 2.
This commit is contained in:
Maurice
2026-10-23 19:31:14 +02:00
parent 8c0707f34c
commit d8213bfa42
102 changed files with 5374 additions and 259 deletions
+2
View File
@@ -61,6 +61,7 @@ import storage from './storage';
import studioFonts from './studioFonts';
import studioPaint from './studioPaint';
import studioStickers from './studioStickers';
import studioLayers from './studioLayers';
import system_notice from './system_notice';
import todo from './todo';
import tourCollection from './tourCollection';
@@ -150,5 +151,6 @@ const locale = {
...assistantVacay,
...assistantJourney,
...assistantPacking,
...studioLayers,
};
export default locale;
+36
View File
@@ -0,0 +1,36 @@
import type { TranslationStrings } from '../types';
/** The Studio's layers panel, groups, align and the style clipboard. */
const studioLayers: TranslationStrings = {
'journey.studio.layers': 'Capes',
'journey.studio.layers.empty':
'Encara no hi ha res en aquesta pàgina. El que hi afegeixis apareix aquí, de davant cap enrere.',
'journey.studio.layers.hint':
'De davant cap enrere. Arrossega una fila per reordenar-la, fes doble clic en un nom per canviar-lo.',
'journey.studio.layers.group': 'Grup',
'journey.studio.layers.groupAction': 'Agrupa',
'journey.studio.layers.ungroup': 'Desagrupa',
'journey.studio.layers.hide': 'Amaga',
'journey.studio.layers.show': 'Mostra',
'journey.studio.layers.rename': 'Canvia el nom',
'journey.studio.layers.expand': 'Mostra el contingut',
'journey.studio.layers.collapse': 'Plega',
'journey.studio.layers.align': 'Alinea',
'journey.studio.layers.alignLeft': 'Alinea les vores esquerres',
'journey.studio.layers.alignCenter': 'Centra horitzontalment',
'journey.studio.layers.alignRight': 'Alinea les vores dretes',
'journey.studio.layers.alignTop': 'Alinea les vores superiors',
'journey.studio.layers.alignMiddle': 'Centra verticalment',
'journey.studio.layers.alignBottom': 'Alinea les vores inferiors',
'journey.studio.layers.alignTo': 'Respecte a',
'journey.studio.layers.toSelection': 'Selecció',
'journey.studio.layers.toPage': 'Pàgina',
'journey.studio.layers.toSafe': 'Zona segura',
'journey.studio.layers.distributeH': 'Reparteix en horitzontal',
'journey.studio.layers.distributeV': 'Reparteix en vertical',
'journey.studio.layers.copyStyle': 'Copia l’estil',
'journey.studio.layers.pasteStyle': 'Enganxa l’estil',
'journey.studio.layers.groupHint': 'Fes doble clic en un element per treballar dins del grup.',
};
export default studioLayers;