less copy protection, more size visualization
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

110 rindas
3.6 KiB

  1. function makeClothing() {
  2. const results = [];
  3. const dataBoots = [
  4. {
  5. name: "Military Boot",
  6. sides: {
  7. "Front": { height: math.unit(0.36637169122695923, "meters") },
  8. "Front Corner": { height: math.unit(0.36637169122695923, "meters") },
  9. "Side": { height: math.unit(0.36637169122695923, "meters") },
  10. "Back Corner": { height: math.unit(0.36637169122695923, "meters") },
  11. "Back": { height: math.unit(0.36637169122695923, "meters") },
  12. "Bottom": { height: math.unit(0.49710506200790405, "meters") },
  13. "Top": { height: math.unit(0.49710506200790405, "meters") }
  14. }
  15. }
  16. ]
  17. const dataShoes = [
  18. {
  19. name: "Vans",
  20. sides: {
  21. "Front": { height: math.unit(0.1756718009710312, "meters") },
  22. "Front Corner": { height: math.unit(0.1756718009710312, "meters") },
  23. "Side": { height: math.unit(0.1756718009710312, "meters") },
  24. "Back Corner": { height: math.unit(0.1756718009710312, "meters") },
  25. "Back": { height: math.unit(0.1756718009710312, "meters") },
  26. "Bottom": { height: math.unit(0.4387904107570648, "meters") },
  27. "Top": { height: math.unit(0.4387904107570648, "meters") }
  28. }
  29. }
  30. ]
  31. const dataSandals = [
  32. {
  33. name: "Flip Flop",
  34. sides: {
  35. "Front": { height: math.unit(0.06615997105836868, "meters") },
  36. "Front Corner": { height: math.unit(0.06615997105836868, "meters") },
  37. "Side": { height: math.unit(0.06615997105836868, "meters") },
  38. "Back Corner": { height: math.unit(0.06615997105836868, "meters") },
  39. "Back": { height: math.unit(0.06615997105836868, "meters") },
  40. "Bottom": { height: math.unit(0.5377234816551208, "meters") },
  41. "Top": { height: math.unit(0.5377234816551208, "meters") }
  42. }
  43. }
  44. ]
  45. const dataHeels = [
  46. {
  47. name: "Stiletto",
  48. sides: {
  49. "Front": { height: math.unit(0.29693031311035156, "meters") },
  50. "Front Corner": { height: math.unit(0.29693031311035156, "meters") },
  51. "Side": { height: math.unit(0.29693031311035156, "meters") },
  52. "Back Corner": { height: math.unit(0.29693031311035156, "meters") },
  53. "Back": { height: math.unit(0.29693031311035156, "meters") },
  54. "Bottom": { height: math.unit(0.559783935546875, "meters") },
  55. "Top": { height: math.unit(0.559783935546875, "meters") }
  56. }
  57. }
  58. ]
  59. results.push({
  60. name: "Boots",
  61. constructor: () => makeAutoVehicleGroup(
  62. dataBoots,
  63. "Boots",
  64. "clothing"
  65. )
  66. })
  67. results.push({
  68. name: "Shoes",
  69. constructor: () => makeAutoVehicleGroup(
  70. dataShoes,
  71. "Shoes",
  72. "clothing"
  73. )
  74. })
  75. results.push({
  76. name: "Sandals",
  77. constructor: () => makeAutoVehicleGroup(
  78. dataSandals,
  79. "Sandals",
  80. "clothing"
  81. )
  82. })
  83. results.push({
  84. name: "Heels",
  85. constructor: () => makeAutoVehicleGroup(
  86. dataHeels,
  87. "Heels",
  88. "clothing"
  89. )
  90. })
  91. results.sort((b1, b2) => {
  92. e1 = b1.constructor();
  93. e2 = b2.constructor();
  94. return e1.name.localeCompare(e2.name)
  95. });
  96. return results;
  97. }