less copy protection, more size visualization
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

363 行
23 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: name }, views);
  17. }
  18. function makeSkyscraper(name, image) {
  19. views = {
  20. building: {
  21. attributes: {
  22. height: {
  23. name: "Height",
  24. power: 1,
  25. type: "length",
  26. base: math.unit(1, "meter")
  27. }
  28. },
  29. image: image,
  30. name: "building"
  31. },
  32. };
  33. const sizes = [];
  34. sizes.push({
  35. name: "Short",
  36. height: math.unit(15, "stories")
  37. });
  38. sizes.push({
  39. name: "Medium",
  40. height: math.unit(40, "stories"),
  41. default: true
  42. });
  43. sizes.push({
  44. name: "Supertall",
  45. height: math.unit(350, "meters")
  46. });
  47. sizes.push({
  48. name: "Megatall",
  49. height: math.unit(650, "meters")
  50. });
  51. const entity = makeEntity({ name: name }, views, sizes);
  52. return entity;
  53. }
  54. function makeBuildings() {
  55. const results = [];
  56. results.push({
  57. name: "Two-Story Home",
  58. constructor: () => makeBuilding(
  59. "Two-Story Home",
  60. math.unit(25, "feet"),
  61. { source: "./media/buildings/house.svg" }
  62. )
  63. });
  64. results.push({
  65. name: "Mobile Home",
  66. constructor: () => makeBuilding(
  67. "Mobile Home",
  68. math.unit(10, "feet"),
  69. { source: "./media/buildings/mobile-home.svg" }
  70. )
  71. });
  72. results.push({
  73. name: "Mailbox",
  74. constructor: () => makeBuilding(
  75. "Mailbox",
  76. math.unit(5.1, "feet"),
  77. { source: "./media/buildings/mailbox.svg" }
  78. )
  79. });
  80. results.push({
  81. name: "Bus Stop",
  82. constructor: () => makeBuilding(
  83. "Bus Stop",
  84. math.unit(8, "feet"),
  85. { source: "./media/buildings/bus-stop.svg" }
  86. )
  87. });
  88. results.push(
  89. {
  90. name: "Wide Skyscraper",
  91. constructor: () => makeSkyscraper(
  92. "Wide Skyscraper",
  93. { source: "./media/buildings/skyscrapers/wide.svg" }
  94. )
  95. }
  96. );
  97. results.push(
  98. {
  99. name: "Skyscraper",
  100. constructor: () => makeSkyscraper(
  101. "Skyscraper",
  102. { source: "./media/buildings/skyscrapers/medium.svg" }
  103. )
  104. }
  105. );
  106. results.push(
  107. {
  108. name: "Slender Skyscraper",
  109. constructor: () => makeSkyscraper(
  110. "Slender Skyscraper",
  111. { source: "./media/buildings/skyscrapers/slender.svg" }
  112. )
  113. }
  114. );
  115. results.push(
  116. {
  117. name: "Narrow Skyscraper",
  118. constructor: () => makeSkyscraper(
  119. "Narrow Skyscraper",
  120. { source: "./media/buildings/skyscrapers/narrow.svg" }
  121. )
  122. }
  123. );
  124. results.push(
  125. makeHeight(
  126. [
  127. ["four-lane-highway", 27.432, "meters"],
  128. ["sidewalk", 24, "feet"]
  129. ],
  130. "Roads",
  131. "",
  132. "buildings"
  133. )
  134. )
  135. results.push(
  136. makeHeight(
  137. [
  138. ["compact-parking-space", 16 + 4/12, "feet"],
  139. ["crosswalk", 26.25, "feet"],
  140. ["line", 26.25, "feet"],
  141. ["broken-line", 50, "feet"],
  142. ["dotted-line", 39, "feet"],
  143. ],
  144. "Road Markings",
  145. "",
  146. "buildings"
  147. )
  148. )
  149. results.push(
  150. makeHeight(
  151. [
  152. ["residential", 12, "feet"],
  153. ["freeway", 50, "feet"]
  154. ],
  155. "Street Lamps",
  156. "",
  157. "buildings"
  158. )
  159. )
  160. results.push(
  161. makeHeight(
  162. [
  163. ["badminton-court", 13.4, "meters"],
  164. ["basketball-court", 28, "meters"],
  165. ["bocce-court", 27.5, "meters"],
  166. ["bowling-lane", 23.8, "meters"],
  167. ["football-field", 160, "feet"],
  168. ["ice-hockey", 30, "meters"],
  169. ["netball-court", 30.5, "meters"],
  170. ["olympic-swimming-pool", 25, "meters"],
  171. ["snooker-table", 3.7, "meters"],
  172. ["squash-court", 9.8, "meters"],
  173. ["table-tennis", 2.79, "meters"],
  174. ["tennis-court", 23.8, "meters"],
  175. ["volleyball-court", 21.6, "meters"],
  176. ],
  177. "Sports Fields",
  178. "",
  179. "buildings"
  180. )
  181. )
  182. results.push(
  183. makeHeight(
  184. [
  185. ["small", 51.8, "meters"],
  186. ["medium", 108.1, "meters"],
  187. ["large", 141.7, "meters"],
  188. ["extra-large", 190.2, "meters"]
  189. ],
  190. "Wind Turbines",
  191. "",
  192. "buildings"
  193. )
  194. )
  195. results.push({
  196. name: "Gas Station",
  197. constructor: () => makeBuilding(
  198. "Gas Station",
  199. math.unit(6.78, "meters"),
  200. { source: "./media/buildings/gas-station.svg" }
  201. )
  202. });
  203. results.push({
  204. name: "Staircase",
  205. constructor: () => makeBuilding(
  206. "Staircase",
  207. math.unit(12.956, "feet"),
  208. { source: "./media/buildings/staircase.svg" }
  209. )
  210. });
  211. results.push(
  212. makeHeight(
  213. [
  214. ["residential", 83, "inches"],
  215. ["garage-door", 7.5, "feet"],
  216. ["double-garage-door", 7.5, "feet"],
  217. ["small-private-hangar", 10.5, "feet"],
  218. ],
  219. "Doorways",
  220. "",
  221. "buildings"
  222. )
  223. )
  224. results.push(
  225. makeHeight(
  226. [
  227. ["akashi-kaikyō-bridge", 283, "meters"],
  228. ["chaotianmen-bridge", 160, "meters"],
  229. ["forth-bridge", 100, "meters"],
  230. ["golden-gate-bridge", 230, "meters"],
  231. ["millau-viaduct", 421, "meters"],
  232. ["rialto-bridge", 17, "meters"],
  233. ["russky-bridge", 306, "meters"],
  234. ["sydney-harbour-bridge", 129, "meters"],
  235. ["tower-bridge", 65, "meters"],
  236. ["trajan's-bridge", 40, "meters"],
  237. ],
  238. "Bridges",
  239. "",
  240. "buildings"
  241. )
  242. )
  243. results.push(
  244. makeHeight(
  245. [
  246. ["channel-tunnel", 6.23, "meters"],
  247. ["crossrail", 5.08, "meters"],
  248. ["victoria-line", 3.24, "meters"],
  249. ],
  250. "Tunnels",
  251. "",
  252. "buildings"
  253. ),
  254. )
  255. const dataHouses = [
  256. {
  257. name: "Shotgun House",
  258. sides: {
  259. "Front": { height: math.unit(3.968526840209961, "meters") },
  260. "Angled": { height: math.unit(3.968526840209961, "meters") },
  261. "Side": { height: math.unit(3.968526840209961, "meters") },
  262. "Top": { height: math.unit(9.709759712219238, "meters") },
  263. }
  264. },
  265. {
  266. name: "Two-Story House",
  267. sides: {
  268. "Front": { height: math.unit(8.241991996765137, "meters") },
  269. "Angled": { height: math.unit(8.241991996765137, "meters") },
  270. "Side": { height: math.unit(8.241991996765137, "meters") },
  271. "Top": { height: math.unit(6.589994430541992, "meters") },
  272. }
  273. },
  274. {
  275. name: "Groverhaus",
  276. sides: {
  277. "Front": { height: math.unit(7.607376575469971, "meters") },
  278. "Angled": { height: math.unit(7.607376575469971, "meters") },
  279. "Side": { height: math.unit(7.607376575469971, "meters") },
  280. "Top": { height: math.unit(15.512463569641113, "meters") },
  281. }
  282. }
  283. ]
  284. const dataRooms = [
  285. {
  286. name: "Kitchen",
  287. sides: {
  288. "Front": { height: math.unit(2.621997833251953, "meters") },
  289. "Top": { height: math.unit(2.6049766540527344, "meters") }
  290. }
  291. }
  292. ]
  293. results.push({
  294. name: "Houses",
  295. constructor: () => makeAutoVehicleGroup(
  296. dataHouses,
  297. "Houses",
  298. "buildings"
  299. )
  300. })
  301. results.push({
  302. name: "Rooms",
  303. constructor: () => makeAutoVehicleGroup(
  304. dataRooms,
  305. "Rooms",
  306. "buildings"
  307. )
  308. })
  309. /* ***Billboards*** */ results.push(makeModel({"name": "Billboards", "kind": "buildings", "forms": [{"name": "Bulletin 14x48", "views": [{"name": "Front", "height": 4.267199993133545}]}, {"name": "Mounted Bulletin", "views": [{"name": "Front", "height": 14.325600624084473}, {"name": "Angled", "height": 14.325600624084473}, {"name": "Side", "height": 14.325600624084473}, {"name": "Back", "height": 14.325600624084473}, {"name": "Top", "height": 8.992412567138672}]}, {"name": "Bulletin 10.5x36", "views": [{"name": "Front", "height": 3.2004001140594482}]}, {"name": "Bulletin 10x40", "views": [{"name": "Front", "height": 3.0480000972747803}]}, {"name": "Poster", "views": [{"name": "Front", "height": 3.174999952316284}]}, {"name": "Junior Poster", "views": [{"name": "Front", "height": 1.8287999629974365}]}]}));
  310. /* ***Utility Poles*** */ results.push(makeModel({"name": "Utility Poles", "kind": "buildings", "forms": [{"name": "Utility Pole", "views": [{"name": "Front", "height": 10.825987815856934, "extra": 1.0017812424969987, "bottom": 0.001774919373365673}, {"name": "Angled", "height": 10.825987815856934, "extra": 1.0016084333733493, "bottom": 0.0016032758485862602}, {"name": "Side", "height": 10.825987815856934, "extra": 1.0016086734693879, "bottom": 0.001603514407218507}, {"name": "Top", "height": 0.7558963298797607, "extra": 1.008390140625, "bottom": 0.00825167519445341}]}]}));
  311. /* ***Transmission Towers*** */ results.push(makeModel({"name": "Transmission Towers", "kind": "buildings", "forms": [{"name": "Lattice Tower", "views": [{"name": "Front", "height": 46.617923736572266, "extra": 1.0011498212012875, "bottom": 0.0011471830904092298}, {"name": "Angled", "height": 46.617923736572266, "extra": 1.0010523109243699, "bottom": 0.0010501008591581864}, {"name": "Side", "height": 46.617923736572266, "extra": 1.001149673061723, "bottom": 0.0011470356297943348}, {"name": "Top", "height": 8.258213996887207, "extra": 1.0025463078703705, "bottom": 0.0025334062060477845}]}, {"name": "Concrete Tower", "views": [{"name": "Front", "height": 24.613733291625977, "extra": 1.0011611044417765, "bottom": 0.0011584143616551604}, {"name": "Angled", "height": 24.613733291625977, "extra": 1.0011987954902433, "bottom": 0.0011959281437125874}, {"name": "Side", "height": 24.613733291625977, "extra": 1.0012004801920769, "bottom": 0.0011976047904191617}, {"name": "Top", "height": 2.0, "extra": 1.0047247101394032, "bottom": 0.004680482295089333}]}]}));
  312. /* ***Fences*** */ results.push(makeModel({"name": "Fences", "kind": "buildings", "forms": [{"name": "Picket", "views": [{"name": "Front", "height": 1.198826789855957, "extra": 1.0032463354037267, "bottom": 0.003225393982374819}, {"name": "Angled", "height": 1.198826789855957, "extra": 1.0030113600426571, "bottom": 0.0029933320416477963}, {"name": "Corner", "height": 1.198826789855957, "extra": 1.0043504818571962, "bottom": 0.004312954992306321}, {"name": "Side", "height": 1.198826789855957, "extra": 1.0012004801920769, "bottom": 0.0011976047904191617}, {"name": "Top", "height": 0.12314067780971527, "extra": 1.0294348106917595, "bottom": 0.027798333333333345}]}, {"name": "Wrought Iron", "views": [{"name": "Front", "height": 0.9687931537628174, "extra": 1.0031269052863436, "bottom": 0.003107471746679822}, {"name": "Angled", "height": 0.9687931537628174, "extra": 1.0039823942771011, "bottom": 0.003950925987021264}, {"name": "Corner", "height": 0.9687931537628174, "extra": 1.0022842993630574, "bottom": 0.002273910777177546}, {"name": "Side", "height": 0.9687931537628174, "extra": 1.0009630172676205, "bottom": 0.0009611660286552252}, {"name": "Top", "height": 0.07901737093925476, "extra": 1.0543478819116272, "bottom": 0.049019653258358886}]}]}));
  313. /* ***Doors*** */ results.push(makeModel({"name": "Doors", "kind": "buildings", "forms": [{"name": "6 Panel Door", "views": [{"name": "Front", "height": 2.0320000648498535, "mass": 11.793399810791016}, {"name": "Angled", "height": 2.0320000648498535, "mass": 11.793399810791016}, {"name": "Side", "height": 2.0320000648498535, "mass": 11.793399810791016}, {"name": "Top", "height": 0.03492499887943268, "mass": 11.793399810791016}]}, {"name": "French Door", "views": [{"name": "Front", "height": 2.0320000648498535, "mass": 31.75149917602539}, {"name": "Angled", "height": 2.0320000648498535, "mass": 31.75149917602539}, {"name": "Side", "height": 2.0320000648498535, "mass": 31.75149917602539}, {"name": "Top", "height": 0.03492499887943268, "mass": 31.75149917602539}]}, {"name": "Fire Door", "views": [{"name": "Front", "height": 2.0320000648498535, "mass": 54.54545593261719}, {"name": "Angled", "height": 2.0320000648498535, "mass": 54.54545593261719}, {"name": "Side", "height": 2.0320000648498535, "mass": 54.54545593261719}, {"name": "Top", "height": 0.10518216341733932, "mass": 54.54545593261719}]}]}));
  314. /* ***Times Square NYE*** */ results.push(makeModel({"name": "Times Square NYE", "kind": "buildings", "forms": [{"name": "Ball", "views": [{"name": "Front", "height": 3.4989547729492188, "mass": 5397.72705078125, "extra": 1.0016937456872217, "bottom": 0.0016880275085964648}, {"name": "Angled", "height": 3.4989547729492188, "mass": 5397.72705078125, "extra": 1.0025409836065575, "bottom": 0.00252813570380047}, {"name": "Corner", "height": 3.4989547729492188, "mass": 5397.72705078125, "extra": 1.0018165582086815, "bottom": 0.00180998233215548}, {"name": "Side", "height": 3.4989547729492188, "mass": 5397.72705078125, "extra": 1.001850383633639, "bottom": 0.001843561043274757}, {"name": "Back", "height": 3.4989547729492188, "mass": 5397.72705078125, "extra": 1.0016623910180016, "bottom": 0.0016568822456753673}, {"name": "Top", "height": 3.657600164413452, "mass": 5397.72705078125, "extra": 1.001771054685155, "bottom": 0.001764803557935817}]}, {"name": "Tower", "views": [{"name": "Front", "height": 23.458213806152344, "extra": 1.0016112545018008, "bottom": 0.0016060788980911244}, {"name": "Angled", "height": 23.458213806152344, "extra": 1.0016112545018008, "bottom": 0.0016060788980911244}, {"name": "Corner", "height": 23.458213806152344, "extra": 1.0016112545018008, "bottom": 0.0016060788980911244}, {"name": "Side", "height": 23.458213806152344, "extra": 1.0016112545018008, "bottom": 0.0016060788980911244}, {"name": "Back", "height": 23.458213806152344, "extra": 1.0016112545018008, "bottom": 0.0016060788980911244}, {"name": "Top", "height": 1.5605759620666504, "extra": 1.0015567074184117, "bottom": 0.0015518757853168342}]}, {"name": "2022", "views": [{"name": "Front", "height": 2.1339330673217773, "extra": 1.003530708012506, "bottom": 0.0035059510336938327}, {"name": "Angled", "height": 2.1339330673217773, "extra": 1.0047998012242747, "bottom": 0.004754163148077668}, {"name": "Corner", "height": 2.1339330673217773, "extra": 1.0028325, "bottom": 0.002816544276672584}, {"name": "Side", "height": 2.1339330673217773, "extra": 1.001694837935174, "bottom": 0.0016891123916577266}, {"name": "Back", "height": 2.1339330673217773, "extra": 1.003530708012506, "bottom": 0.0035059510336938327}, {"name": "Top", "height": 0.4862631559371948, "extra": 1.0157526272448099, "bottom": 0.01527149491119562}]}]}));
  315. /* ***Sheds*** */ results.push(makeModel({"name": "Sheds", "kind": "buildings", "forms": [{"name": "Small Shed", "views": [{"name": "Front", "height": 3.479300022125244, "extra": 1.005440565201383, "bottom": 0.0053820029257200174}, {"name": "Angled", "height": 3.479300022125244, "extra": 1.0054253856774116, "bottom": 0.0053671479818332875}, {"name": "Corner", "height": 3.479300022125244, "extra": 1.0053985294117647, "bottom": 0.005340863791242229}, {"name": "Side", "height": 3.479300022125244, "extra": 1.0054021608643458, "bottom": 0.005344418052256532}, {"name": "Back", "height": 3.479300022125244, "extra": 1.005440565201383, "bottom": 0.0053820029257200174}, {"name": "Top", "height": 2.638400077819824, "extra": 1.0066026410564226, "bottom": 0.006516587677725118}]}, {"name": "Medium Shed", "views": [{"name": "Front", "height": 3.9618988037109375, "extra": 1.0048322228224984, "bottom": 0.004785969084423278}, {"name": "Angled", "height": 3.9618988037109375, "extra": 1.0047982893157263, "bottom": 0.004752679849837231}, {"name": "Corner", "height": 3.9618988037109375, "extra": 1.004316382460414, "bottom": 0.004279439068938889}, {"name": "Side", "height": 3.9618988037109375, "extra": 1.0048019207683074, "bottom": 0.0047562425683709865}, {"name": "Back", "height": 3.9618988037109375, "extra": 1.0048322228224984, "bottom": 0.004785969084423278}, {"name": "Top", "height": 3.0480000972747803, "extra": 1.006093637454982, "bottom": 0.006020266808357238}]}, {"name": "Large Shed", "views": [{"name": "Front", "height": 4.26669979095459, "extra": 1.0041839246053184, "bottom": 0.004149204686160603}, {"name": "Angled", "height": 4.26669979095459, "extra": 1.0043687027707808, "bottom": 0.004330862270776434}, {"name": "Corner", "height": 4.26669979095459, "extra": 1.0035310734463276, "bottom": 0.0035063113604488078}, {"name": "Side", "height": 4.26669979095459, "extra": 1.004201680672269, "bottom": 0.004166666666666667}, {"name": "Back", "height": 4.26669979095459, "extra": 1.0041839246053184, "bottom": 0.004149204686160603}, {"name": "Top", "height": 3.857600212097168, "extra": 1.0048019207683074, "bottom": 0.0047562425683709865}]}]}));
  316. /* ***Townhouses*** */ results.push(makeModel({"name": "Townhouses", "kind": "buildings", "trace_alpha": 0.0, "forms": [{"name": "Three Story Townhouse", "views": [{"name": "Front", "height": 7.595012664794922, "volume": 697.7749681878887, "extra": 1.0033003300330032, "bottom": 0.003278688524590164}, {"name": "Angled", "height": 7.595012664794922, "volume": 697.7749681878887, "extra": 1.0035971223021583, "bottom": 0.0035714285714285713}, {"name": "Corner", "height": 7.595012664794922, "volume": 697.7749681878887, "extra": 1.0035046728971964, "bottom": 0.0034802784222737818}, {"name": "Side", "height": 7.595012664794922, "volume": 697.7749681878887, "extra": 1.0034802784222738, "bottom": 0.0034562211981566822}, {"name": "Back Corner", "height": 7.595012664794922, "volume": 697.7749681878887, "extra": 1.0035046728971964, "bottom": 0.0034802784222737818}, {"name": "Back", "height": 7.595012664794922, "volume": 697.7749681878887, "extra": 1.0033003300330032, "bottom": 0.003278688524590164}, {"name": "Top", "height": 16.01599884033203, "volume": 697.7749681878887, "extra": 1.0015126512651265, "bottom": 0.001508088840142583}]}]}));
  317. /* ***Midrise Buildings*** */ results.push(makeModel({"name": "Midrise Buildings", "kind": "buildings", "trace_alpha": 0.0, "forms": [{"name": "Medium", "views": [{"name": "Front", "height": 42.69080352783203, "volume": 26752.172098824078, "extra": 1.0005500550055006, "bottom": 0.0005494505494505495}, {"name": "Angled", "height": 42.69080352783203, "volume": 26752.172098824078, "extra": 1.0005500550055006, "bottom": 0.0005494505494505495}, {"name": "Corner", "height": 42.69080352783203, "volume": 26752.172098824078, "extra": 1.0005500550055006, "bottom": 0.0005494505494505495}, {"name": "Side", "height": 42.69080352783203, "volume": 26752.172098824078, "extra": 1.0005500550055006, "bottom": 0.0005494505494505495}, {"name": "Top", "height": 27.632001876831055, "volume": 26752.172098824078, "extra": 1.0004578754578755, "bottom": 0.0004574565416285453}, {"name": "Back", "height": 42.69080352783203, "volume": 26752.172098824078, "extra": 1.0005500550055006, "bottom": 0.0005494505494505495}, {"name": "Front", "height": 42.69080352783203, "volume": 26752.172098824078, "extra": 1.0005500550055006, "bottom": 0.0005494505494505495}]}]}));
  318. /* ***Metal Buildings*** */ results.push(makeModel({"name": "Metal Buildings", "kind": "buildings", "trace_alpha": 0.0, "forms": [{"name": "40x80 Storage", "views": [{"name": "Front", "height": 5.368299961090088, "volume": 1440.3480344680756, "extra": 1.0025252525252526, "bottom": 0.002512562814070352}, {"name": "Angled", "height": 5.368299961090088, "volume": 1440.3480344680756, "extra": 1.0036785654691163, "bottom": 0.0036516994382022436}, {"name": "Corner", "height": 5.368299961090088, "volume": 1440.3480344680756, "extra": 1.0001344581913003, "bottom": 0.00013442204301074932}, {"name": "Side", "height": 5.368299961090088, "volume": 1440.3480344680756, "extra": 1.001920614596671, "bottom": 0.001913265306122449}, {"name": "Back Corner", "height": 5.368299961090088, "volume": 1440.3480344680756, "extra": 1.0001344581913003, "bottom": 0.00013442204301074932}, {"name": "Back", "height": 5.368299961090088, "volume": 1440.3480344680756, "extra": 1.0025252525252526, "bottom": 0.002512562814070352}, {"name": "Top", "height": 12.496800422668457, "volume": 1440.3480344680756, "extra": 1.001086956521739, "bottom": 0.0010845986984815619}]}, {"name": "30x46 Garage", "views": [{"name": "Front", "height": 4.758699893951416, "volume": 543.0568615865818, "extra": 1.002183406113537, "bottom": 0.002173913043478261}, {"name": "Angled", "height": 4.758699893951416, "volume": 543.0568615865818, "extra": 1.0028782894736843, "bottom": 0.0028618152085036794}, {"name": "Corner", "height": 4.758699893951416, "volume": 543.0568615865818, "extra": 1.003793793774319, "bottom": 0.0037652248014974398}, {"name": "Side", "height": 4.758699893951416, "volume": 543.0568615865818, "extra": 1.0028973509933774, "bottom": 0.002880658436213992}, {"name": "Back Corner", "height": 4.758699893951416, "volume": 543.0568615865818, "extra": 1.003793793774319, "bottom": 0.0037652248014974398}, {"name": "Back", "height": 4.758699893951416, "volume": 543.0568615865818, "extra": 1.002183406113537, "bottom": 0.002173913043478261}, {"name": "Top", "height": 14.325603485107422, "volume": 543.0568615865818, "extra": 1.000962596259626, "bottom": 0.0009607466373867692}]}, {"name": "28x70 Shed", "views": [{"name": "Front", "height": 4.758699893951416, "volume": 684.8870681407852, "extra": 1.0028118609406953, "bottom": 0.0027961362480935434}, {"name": "Angled", "height": 4.758699893951416, "volume": 684.8870681407852, "extra": 1.0023786869647955, "bottom": 0.0023674242424242425}, {"name": "Corner", "height": 4.758699893951416, "volume": 684.8870681407852, "extra": 1.0024875621890548, "bottom": 0.0024752475247524753}, {"name": "Side", "height": 4.758699893951416, "volume": 684.8870681407852, "extra": 1.0025, "bottom": 0.0024875621890547263}, {"name": "Back Corner", "height": 4.758699893951416, "volume": 684.8870681407852, "extra": 1.0024875621890548, "bottom": 0.0024752475247524753}, {"name": "Back", "height": 4.758699893951416, "volume": 684.8870681407852, "extra": 1.0028118609406953, "bottom": 0.0027961362480935434}, {"name": "Top", "height": 21.64080047607422, "volume": 684.8870681407852, "extra": 1.0005500550055006, "bottom": 0.0005494505494505495}]}]}));
  319. /* ***INSERT HERE*** */
  320. results.sort((b1, b2) => {
  321. e1 = b1.constructor();
  322. e2 = b2.constructor();
  323. return e1.name.localeCompare(e2.name)
  324. });
  325. return results;
  326. }