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.
863 B
863 B
| title | description |
|---|---|
| useExport | Scale und Format für den Export der aktuellen Selection verwalten. |
useExport
useExport() stellt State und Actions für ein Export-Panel bereit:
- Export settings;
- IDs der ausgewählten Objekte;
- Name der Output file;
- verfügbare Scales und Formats (
formats-IDs und beschrifteteformatOptions).
Verwendung
import { useExport } from '@open-pencil/vue'
const exportState = useExport()
Beispiel
const {
settings,
nodeName,
scales,
formats,
formatOptions,
addSetting,
updateScale,
updateFormat,
} = useExport()
Weiteres Export setting
exportState.addSetting()
WEBP mit Scale 2×
exportState.updateScale(0, 2)
exportState.updateFormat(0, 'webp')