element.ts 527 B

1234567891011121314151617181920212223242526
  1. import { lang } from '@/i18n/lang'
  2. export const getElementTypeZh = (): { [key: string]: string } => ({
  3. text: lang.ssElText,
  4. image: lang.ssElImage,
  5. shape: lang.ssElShape,
  6. line: lang.ssElLine,
  7. chart: lang.ssElChart,
  8. table: lang.ssElTable,
  9. video: lang.ssElVideo,
  10. audio: lang.ssElAudio,
  11. latex: lang.ssElLatex,
  12. frame: lang.ssElFrame,
  13. })
  14. export const MIN_SIZE: { [key: string]: number } = {
  15. text: 40,
  16. image: 20,
  17. shape: 20,
  18. chart: 200,
  19. table: 30,
  20. video: 250,
  21. audio: 20,
  22. latex: 20,
  23. frame: 200,
  24. }