mxImage.js 670 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * Copyright (c) 2006-2015, JGraph Ltd
  3. * Copyright (c) 2006-2015, Gaudenz Alder
  4. */
  5. /**
  6. * Class: mxImage
  7. *
  8. * Encapsulates the URL, width and height of an image.
  9. *
  10. * Constructor: mxImage
  11. *
  12. * Constructs a new image.
  13. */
  14. function mxImage(src, width, height)
  15. {
  16. this.src = src;
  17. this.width = width;
  18. this.height = height;
  19. };
  20. /**
  21. * Variable: src
  22. *
  23. * String that specifies the URL of the image.
  24. */
  25. mxImage.prototype.src = null;
  26. /**
  27. * Variable: width
  28. *
  29. * Integer that specifies the width of the image.
  30. */
  31. mxImage.prototype.width = null;
  32. /**
  33. * Variable: height
  34. *
  35. * Integer that specifies the height of the image.
  36. */
  37. mxImage.prototype.height = null;