527b5168aa1a36bcced9b68b1132996b258de3e03b8dfa933bddac038148d45d1a3608b0e05f007ddc63cdff04640ad718dd5d6a45d9d9bf94168483927532 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. export default {
  2. /**
  3. * Should following options be automatically configured:
  4. * - `syncUrlsWithBaseTag`
  5. * - `locationChangeAngularEmitter`
  6. * - `moveGradientsOutsideSymbol`
  7. * @type {boolean}
  8. */
  9. autoConfigure: true,
  10. /**
  11. * Default mounting selector
  12. * @type {string}
  13. */
  14. mountTo: 'body',
  15. /**
  16. * Fix disappearing SVG elements when <base href> exists.
  17. * Executes when sprite mounted.
  18. * @see http://stackoverflow.com/a/18265336/796152
  19. * @see https://github.com/everdimension/angular-svg-base-fix
  20. * @see https://github.com/angular/angular.js/issues/8934#issuecomment-56568466
  21. * @type {boolean}
  22. */
  23. syncUrlsWithBaseTag: false,
  24. /**
  25. * Should sprite listen custom location change event
  26. * @type {boolean}
  27. */
  28. listenLocationChangeEvent: true,
  29. /**
  30. * Custom window event name which should be emitted to update sprite urls
  31. * @type {string}
  32. */
  33. locationChangeEvent: 'locationChange',
  34. /**
  35. * Emit location change event in Angular automatically
  36. * @type {boolean}
  37. */
  38. locationChangeAngularEmitter: false,
  39. /**
  40. * Selector to find symbols usages when updating sprite urls
  41. * @type {string}
  42. */
  43. usagesToUpdate: 'use[*|href]',
  44. /**
  45. * Fix Firefox bug when gradients and patterns don't work if they are within a symbol.
  46. * Executes when sprite is rendered, but not mounted.
  47. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=306674
  48. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=353575
  49. * @see https://bugzilla.mozilla.org/show_bug.cgi?id=1235364
  50. * @type {boolean}
  51. */
  52. moveGradientsOutsideSymbol: false
  53. };