mxGraphCodec.js 711 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2006-2015, JGraph Ltd
  3. * Copyright (c) 2006-2015, Gaudenz Alder
  4. */
  5. mxCodecRegistry.register(function()
  6. {
  7. /**
  8. * Class: mxGraphCodec
  9. *
  10. * Codec for <mxGraph>s. This class is created and registered
  11. * dynamically at load time and used implicitly via <mxCodec>
  12. * and the <mxCodecRegistry>.
  13. *
  14. * Transient Fields:
  15. *
  16. * - graphListeners
  17. * - eventListeners
  18. * - view
  19. * - container
  20. * - cellRenderer
  21. * - editor
  22. * - selection
  23. */
  24. return new mxObjectCodec(new mxGraph(),
  25. ['graphListeners', 'eventListeners', 'view', 'container',
  26. 'cellRenderer', 'editor', 'selection']);
  27. }());
  28. __mxOutput.mxGraphCodec = typeof mxGraphCodec !== 'undefined' ? mxGraphCodec : undefined;