openpencil/packages/docs/it/programmable/sdk/api/composables/use-export.md
Danila Poyarkov b9753aa016
docs: sync translations with documentation changes since v0.15.1 (#886)
Eleven translated pages changed in English since the last release without
matching updates: system requirements, the Lint tab, AI chat diff tools,
collaboration with agents, design JSX imports and export fidelity,
Storybook and live-app export, lint fixes, page navigation, and Checking
Designs. Bring de, es, fr, it, pl, and ru up to date, add the sections
the abridged translations lacked where a change landed, use each
language's UI labels, and point the export page at documents list.
2026-10-04 16:38:35 +00:00

738 B
Raw Blame History

title description
useExport Gestire scala e formato di esportazione della selezione corrente.

useExport

useExport() fornisce stato e azioni per impostazioni, oggetti selezionati, nome del file, scale, formati e anteprima, oltre all’esecuzione dell’esportazione.

Gestisce anche scale e formati supportati: gli ID in formats e le voci con etichetta in formatOptions.

Esempi

const {
  settings,
  nodeName,
  scales,
  formats,
  formatOptions,
  addSetting,
  updateScale,
  updateFormat,
} = useExport()

Per portare la prima esportazione a 2× in WEBP:

exportState.updateScale(0, 2)
exportState.updateFormat(0, 'webp')

Vedi anche