You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
294 B

  1. define([
  2. ], function (
  3. ) {
  4. return {
  5. color: 0,
  6. size: 0,
  7. pos: {
  8. x: 0,
  9. y: 0
  10. },
  11. build: function (options) {
  12. var res = $.extend(true, {}, this, {
  13. id: options.id,
  14. pos: {
  15. x: options.x,
  16. y: options.y
  17. }
  18. });
  19. delete res.build;
  20. return res;
  21. }
  22. };
  23. });