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

51 行
1.2 KiB

  1. function makePlants() {
  2. const results = [];
  3. results.push(
  4. makeHeight(
  5. [
  6. ["sycamore-tree", 35, "meters"],
  7. ["pine-tree", 43, "meters"],
  8. ["palm-tree", 25, "meters"],
  9. ],
  10. "Trees",
  11. "",
  12. "plants"
  13. )
  14. );
  15. results.push(
  16. makeModel({
  17. name: "Grass",
  18. kind: "plants",
  19. forms: [
  20. {
  21. name: "Short Blades",
  22. views: [
  23. { name: "Front", height: 0.06, bottom: 0.015 },
  24. ],
  25. },
  26. {
  27. name: "Tall Blades",
  28. views: [
  29. { name: "Front", height: 0.12, bottom: 0.015 },
  30. ],
  31. },
  32. {
  33. name: "Lawn",
  34. views: [
  35. { name: "Front", height: 0.0825 },
  36. ],
  37. },
  38. ],
  39. })
  40. );
  41. /* ***INSERT HERE*** */
  42. results.sort((b1, b2) => {
  43. return b1.name.localeCompare(b2.name);
  44. });
  45. return results;
  46. }