less copy protection, more size visualization
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.
 
 
 

66 lines
1.6 KiB

  1. function makeBuilding(name, height, image) {
  2. views = {
  3. building: {
  4. attributes: {
  5. height: {
  6. name: "Height",
  7. power: 1,
  8. type: "length",
  9. base: height
  10. }
  11. },
  12. image: image,
  13. name: "building"
  14. },
  15. };
  16. return makeEntity(name, "Building", views);
  17. }
  18. function makeBuildings() {
  19. const results = [];
  20. results.push(makeBuilding(
  21. "Burj Khalifa",
  22. math.unit(829.8, "meter"),
  23. {source: "./media/buildings/burj-khalifa.svg"}
  24. ));
  25. results.push(makeBuilding(
  26. "Canton Tower",
  27. math.unit(604, "meter"),
  28. {source: "./media/buildings/canton-tower.svg"}
  29. ));
  30. results.push(makeBuilding(
  31. "CN Tower",
  32. math.unit(553.3, "meter"),
  33. {source: "./media/buildings/cn-tower.svg"}
  34. ));
  35. results.push(makeBuilding(
  36. "Taipei 101",
  37. math.unit(509.2, "meter"),
  38. {source: "./media/buildings/taipei-101.svg"}
  39. ));
  40. results.push(makeBuilding(
  41. "Empire State Building",
  42. math.unit(443.2, "meter"),
  43. {source: "./media/buildings/empire-state-building.svg"}
  44. ));
  45. results.push(makeBuilding(
  46. "Eiffel Tower",
  47. math.unit(324, "meter"),
  48. {source: "./media/buildings/eiffel-tower.svg"}
  49. ));
  50. results.push(makeBuilding(
  51. "Chrysler Building",
  52. math.unit(318.9, "meter"),
  53. {source: "./media/buildings/chrysler-building.svg"}
  54. ));
  55. return results;
  56. }