openpencil/packages/docs/pl/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

870 B
Raw Blame History

title description
useExport Ustawienia scale i format eksportu bieżącego selection.

useExport

useExport() udostępnia state i actions panelu eksportu zaznaczonych obiektów:

  • ustawienia eksportu;
  • IDs zaznaczonych obiektów;
  • nazwę pliku wynikowego;
  • dostępne scales i formats (identyfikatory formats i opisane formatOptions).

Użycie

import { useExport } from '@open-pencil/vue'

const exportState = useExport()

Przykład

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

Dodatkowy wariant eksportu

exportState.addSetting()

WEBP w skali 2×

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

Zobacz też