版博士V2.0程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

32 linhas
1.1 KiB

  1. import { IconifyIcon } from '@iconify/types';
  2. import { IconifyIconCustomisations } from '../customisations/defaults.js';
  3. /**
  4. * Interface for getSVGData() result
  5. */
  6. interface IconifyIconBuildResult {
  7. attributes: {
  8. width?: string;
  9. height?: string;
  10. viewBox: string;
  11. };
  12. body: string;
  13. }
  14. /**
  15. * Check if value should be unset. Allows multiple keywords
  16. */
  17. declare const isUnsetKeyword: (value: unknown) => boolean;
  18. /**
  19. * Get SVG attributes and content from icon + customisations
  20. *
  21. * Does not generate style to make it compatible with frameworks that use objects for style, such as React.
  22. * Instead, it generates 'inline' value. If true, rendering engine should add verticalAlign: -0.125em to icon.
  23. *
  24. * Customisations should be normalised by platform specific parser.
  25. * Result should be converted to <svg> by platform specific parser.
  26. * Use replaceIDs to generate unique IDs for body.
  27. */
  28. declare function iconToSVG(icon: IconifyIcon, customisations?: IconifyIconCustomisations): IconifyIconBuildResult;
  29. export { IconifyIconBuildResult, iconToSVG, isUnsetKeyword };