openpencil/packages/docs/de/programmable/sdk/api/composables/use-export.md
Danila Poyarkov 14325280d9 docs(i18n): translate all missing pages to 6 languages
- 78 SDK pages per language (components, composables, advanced API,
  guides, architecture, getting-started)
- vector-edit.md user guide page (5 languages)
- Update stale ru/programmable/cli/inspecting.md
- Fix YAML frontmatter quoting for colons in descriptions

474 files, 0 missing pages across de/es/fr/it/pl/ru.
VitePress build verified — all 546 SDK pages render.
2026-04-22 18:35:22 +03:00

919 B

title description
useExport Exporteinstellungen wie Maßstab und Format für die aktuelle Auswahl verwalten.

useExport

useExport() ist das Export-Panel-Composable für ausgewählte Knoten.

Es verwaltet:

  • Export-Einstellungszeilen
  • ausgewählte Knoten-IDs
  • Export-Name-Beschriftung
  • unterstützte Maßstäbe und Formate

Verwendung

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

const exportState = useExport()

Einfaches Beispiel

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

Praktische Beispiele

Eine weitere Export-Voreinstellung hinzufügen

exportState.addSetting()

Den ersten Export auf 2x WEBP ändern

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

Verwandte APIs