DrawioUser.js 936 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * Copyright (c) 2006-2016, JGraph Ltd
  3. * Copyright (c) 2006-2016, Gaudenz Alder
  4. */
  5. /**
  6. * Constructs a new point for the optional x and y coordinates. If no
  7. * coordinates are given, then the default values for <x> and <y> are used.
  8. * @constructor
  9. * @class Implements a basic 2D point. Known subclassers = {@link mxRectangle}.
  10. * @param {number} x X-coordinate of the point.
  11. * @param {number} y Y-coordinate of the point.
  12. */
  13. DrawioUser = function(id, email, displayName, pictureUrl)
  14. {
  15. /**
  16. * Holds the x-coordinate of the point.
  17. * @type number
  18. * @default 0
  19. */
  20. this.id = id;
  21. /**
  22. * Holds the x-coordinate of the point.
  23. * @type number
  24. * @default 0
  25. */
  26. this.email = email;
  27. /**
  28. * Holds the x-coordinate of the point.
  29. * @type number
  30. * @default 0
  31. */
  32. this.displayName = displayName;
  33. /**
  34. * Holds the x-coordinate of the point.
  35. * @type number
  36. * @default 0
  37. */
  38. this.pictureUrl = pictureUrl;
  39. };