@casmo/tree.js 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +312 -16
  2. package/dist/apply-Cio2t7CZ.js +285 -0
  3. package/dist/apply-Cio2t7CZ.js.map +1 -0
  4. package/dist/bake/index.d.ts +44 -5
  5. package/dist/bake/index.d.ts.map +1 -1
  6. package/dist/definition/crown-shape.d.ts +9 -0
  7. package/dist/definition/crown-shape.d.ts.map +1 -0
  8. package/dist/definition/defaults.d.ts +15 -1
  9. package/dist/definition/defaults.d.ts.map +1 -1
  10. package/dist/definition/index.d.ts +4 -3
  11. package/dist/definition/index.d.ts.map +1 -1
  12. package/dist/definition/migrations.d.ts +0 -8
  13. package/dist/definition/migrations.d.ts.map +1 -1
  14. package/dist/definition/schema.d.ts.map +1 -1
  15. package/dist/definition/types.d.ts +181 -6
  16. package/dist/definition/types.d.ts.map +1 -1
  17. package/dist/effects/mask.d.ts +3 -3
  18. package/dist/effects/mask.d.ts.map +1 -1
  19. package/dist/effects.js +3 -3
  20. package/dist/effects.js.map +1 -1
  21. package/dist/forest/Forest.d.ts +37 -2
  22. package/dist/forest/Forest.d.ts.map +1 -1
  23. package/dist/forest/nodes.d.ts +6 -1
  24. package/dist/forest/nodes.d.ts.map +1 -1
  25. package/dist/{forest-OX9WvAwh.js → forest-ChEaWJrf.js} +1763 -684
  26. package/dist/forest-ChEaWJrf.js.map +1 -0
  27. package/dist/generator/branches.d.ts +2 -2
  28. package/dist/generator/branches.d.ts.map +1 -1
  29. package/dist/generator/crown.d.ts +28 -0
  30. package/dist/generator/crown.d.ts.map +1 -0
  31. package/dist/generator/fruit.d.ts +28 -0
  32. package/dist/generator/fruit.d.ts.map +1 -0
  33. package/dist/generator/growth.d.ts +1 -1
  34. package/dist/generator/growth.d.ts.map +1 -1
  35. package/dist/generator/index.d.ts +5 -4
  36. package/dist/generator/index.d.ts.map +1 -1
  37. package/dist/generator/leaf-shapes.d.ts +33 -1
  38. package/dist/generator/leaf-shapes.d.ts.map +1 -1
  39. package/dist/generator/mesh.d.ts +10 -2
  40. package/dist/generator/mesh.d.ts.map +1 -1
  41. package/dist/generator/occlusion.d.ts +8 -0
  42. package/dist/generator/occlusion.d.ts.map +1 -0
  43. package/dist/generator/roots.d.ts +16 -0
  44. package/dist/generator/roots.d.ts.map +1 -0
  45. package/dist/generator/trunk.d.ts +16 -2
  46. package/dist/generator/trunk.d.ts.map +1 -1
  47. package/dist/generator/types.d.ts +61 -6
  48. package/dist/generator/types.d.ts.map +1 -1
  49. package/dist/growth/index.d.ts +1 -1
  50. package/dist/growth/index.d.ts.map +1 -1
  51. package/dist/growth/tsl.d.ts +2 -0
  52. package/dist/growth/tsl.d.ts.map +1 -1
  53. package/dist/index.d.ts +6 -3
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +274 -24
  56. package/dist/index.js.map +1 -1
  57. package/dist/materials/crown-nodes.d.ts +20 -0
  58. package/dist/materials/crown-nodes.d.ts.map +1 -0
  59. package/dist/materials/crown-normals.d.ts +17 -0
  60. package/dist/materials/crown-normals.d.ts.map +1 -0
  61. package/dist/materials/ground-tint.d.ts +13 -0
  62. package/dist/materials/ground-tint.d.ts.map +1 -0
  63. package/dist/materials/index.d.ts +13 -1
  64. package/dist/materials/index.d.ts.map +1 -1
  65. package/dist/materials/leaf-translucency-model.d.ts +14 -0
  66. package/dist/materials/leaf-translucency-model.d.ts.map +1 -0
  67. package/dist/materials/leaf-translucency.d.ts +73 -0
  68. package/dist/materials/leaf-translucency.d.ts.map +1 -0
  69. package/dist/materials/material-features.d.ts +43 -0
  70. package/dist/materials/material-features.d.ts.map +1 -0
  71. package/dist/materials/occlusion.d.ts +10 -0
  72. package/dist/materials/occlusion.d.ts.map +1 -0
  73. package/dist/materials/toon.d.ts +18 -1
  74. package/dist/materials/toon.d.ts.map +1 -1
  75. package/dist/names-BE9he6CS.js +713 -0
  76. package/dist/names-BE9he6CS.js.map +1 -0
  77. package/dist/react/Tree.d.ts +5 -2
  78. package/dist/react/Tree.d.ts.map +1 -1
  79. package/dist/react.js +10 -6
  80. package/dist/react.js.map +1 -1
  81. package/dist/season/nodes.d.ts +16 -0
  82. package/dist/season/nodes.d.ts.map +1 -1
  83. package/dist/season/profile.d.ts +26 -0
  84. package/dist/season/profile.d.ts.map +1 -1
  85. package/dist/species/almond.js +223 -0
  86. package/dist/species/almond.js.map +1 -0
  87. package/dist/species/almond.json +210 -0
  88. package/dist/species/apple.js +230 -0
  89. package/dist/species/apple.js.map +1 -0
  90. package/dist/species/apple.json +220 -0
  91. package/dist/species/ash.js +187 -0
  92. package/dist/species/ash.js.map +1 -0
  93. package/dist/species/ash.json +177 -0
  94. package/dist/species/beech.js +174 -0
  95. package/dist/species/beech.js.map +1 -0
  96. package/dist/species/beech.json +167 -0
  97. package/dist/species/birch.js +170 -0
  98. package/dist/species/birch.js.map +1 -0
  99. package/dist/species/birch.json +163 -0
  100. package/dist/species/catalog.d.ts +61 -0
  101. package/dist/species/catalog.d.ts.map +1 -0
  102. package/dist/species/cedar.js +169 -0
  103. package/dist/species/cedar.js.map +1 -0
  104. package/dist/species/cedar.json +168 -0
  105. package/dist/species/cherry.js +237 -0
  106. package/dist/species/cherry.js.map +1 -0
  107. package/dist/species/cherry.json +224 -0
  108. package/dist/species/chestnut.js +230 -0
  109. package/dist/species/chestnut.js.map +1 -0
  110. package/dist/species/chestnut.json +220 -0
  111. package/dist/species/douglas-fir.js +174 -0
  112. package/dist/species/douglas-fir.js.map +1 -0
  113. package/dist/species/douglas-fir.json +170 -0
  114. package/dist/species/elm.js +173 -0
  115. package/dist/species/elm.js.map +1 -0
  116. package/dist/species/elm.json +163 -0
  117. package/dist/species/hemlock.js +175 -0
  118. package/dist/species/hemlock.js.map +1 -0
  119. package/dist/species/hemlock.json +171 -0
  120. package/dist/species/hickory.js +200 -0
  121. package/dist/species/hickory.js.map +1 -0
  122. package/dist/species/hickory.json +192 -0
  123. package/dist/species/index.d.ts +10 -0
  124. package/dist/species/index.d.ts.map +1 -0
  125. package/dist/species/juniper.js +158 -0
  126. package/dist/species/juniper.js.map +1 -0
  127. package/dist/species/juniper.json +154 -0
  128. package/dist/species/loaders.d.ts +7 -0
  129. package/dist/species/loaders.d.ts.map +1 -0
  130. package/dist/species/mahogany.js +201 -0
  131. package/dist/species/mahogany.js.map +1 -0
  132. package/dist/species/mahogany.json +196 -0
  133. package/dist/species/maple.js +177 -0
  134. package/dist/species/maple.js.map +1 -0
  135. package/dist/species/maple.json +171 -0
  136. package/dist/species/oak.js +220 -0
  137. package/dist/species/oak.js.map +1 -0
  138. package/dist/species/oak.json +212 -0
  139. package/dist/species/olive.js +189 -0
  140. package/dist/species/olive.js.map +1 -0
  141. package/dist/species/olive.json +181 -0
  142. package/dist/species/peach.js +223 -0
  143. package/dist/species/peach.js.map +1 -0
  144. package/dist/species/peach.json +210 -0
  145. package/dist/species/pear.js +213 -0
  146. package/dist/species/pear.js.map +1 -0
  147. package/dist/species/pear.json +200 -0
  148. package/dist/species/pine.js +163 -0
  149. package/dist/species/pine.js.map +1 -0
  150. package/dist/species/pine.json +162 -0
  151. package/dist/species/plum.js +237 -0
  152. package/dist/species/plum.js.map +1 -0
  153. package/dist/species/plum.json +224 -0
  154. package/dist/species/red-oak.js +220 -0
  155. package/dist/species/red-oak.js.map +1 -0
  156. package/dist/species/red-oak.json +212 -0
  157. package/dist/species/redwood.js +174 -0
  158. package/dist/species/redwood.js.map +1 -0
  159. package/dist/species/redwood.json +170 -0
  160. package/dist/species/sequoia.js +167 -0
  161. package/dist/species/sequoia.js.map +1 -0
  162. package/dist/species/sequoia.json +166 -0
  163. package/dist/species/spruce.js +170 -0
  164. package/dist/species/spruce.js.map +1 -0
  165. package/dist/species/spruce.json +166 -0
  166. package/dist/species/teak.js +166 -0
  167. package/dist/species/teak.js.map +1 -0
  168. package/dist/species/teak.json +157 -0
  169. package/dist/species/types.d.ts +65 -0
  170. package/dist/species/types.d.ts.map +1 -0
  171. package/dist/species/walnut.js +220 -0
  172. package/dist/species/walnut.js.map +1 -0
  173. package/dist/species/walnut.json +212 -0
  174. package/dist/species/white-oak.js +213 -0
  175. package/dist/species/white-oak.js.map +1 -0
  176. package/dist/species/white-oak.json +208 -0
  177. package/dist/species.js +160 -0
  178. package/dist/species.js.map +1 -0
  179. package/dist/styles/apply.d.ts +12 -0
  180. package/dist/styles/apply.d.ts.map +1 -0
  181. package/dist/styles/low-poly/index.d.ts +1 -1
  182. package/dist/styles/low-poly/index.d.ts.map +1 -1
  183. package/dist/styles/low-poly.js +13 -10
  184. package/dist/styles/low-poly.js.map +1 -1
  185. package/dist/styles/material-features.d.ts +27 -0
  186. package/dist/styles/material-features.d.ts.map +1 -0
  187. package/dist/styles/names.d.ts +28 -0
  188. package/dist/styles/names.d.ts.map +1 -0
  189. package/dist/styles/realistic/index.d.ts +3 -8
  190. package/dist/styles/realistic/index.d.ts.map +1 -1
  191. package/dist/styles/realistic/textures.d.ts +20 -0
  192. package/dist/styles/realistic/textures.d.ts.map +1 -0
  193. package/dist/styles/realistic.js +14 -18
  194. package/dist/styles/realistic.js.map +1 -1
  195. package/dist/styles/registry.d.ts +2 -13
  196. package/dist/styles/registry.d.ts.map +1 -1
  197. package/dist/styles/stylized/index.d.ts +1 -1
  198. package/dist/styles/stylized/index.d.ts.map +1 -1
  199. package/dist/styles/stylized.js +13 -10
  200. package/dist/styles/stylized.js.map +1 -1
  201. package/dist/styles/types.d.ts +16 -2
  202. package/dist/styles/types.d.ts.map +1 -1
  203. package/dist/textures/realistic/bark-fibrous-normal.png +0 -0
  204. package/dist/textures/realistic/bark-fibrous.png +0 -0
  205. package/dist/textures/realistic/bark-papery-normal.png +0 -0
  206. package/dist/textures/realistic/bark-papery.png +0 -0
  207. package/dist/textures/realistic/bark-plated-normal.png +0 -0
  208. package/dist/textures/realistic/bark-plated.png +0 -0
  209. package/dist/textures/realistic/bark-smooth-normal.png +0 -0
  210. package/dist/textures/realistic/bark-smooth.png +0 -0
  211. package/dist/textures/realistic/leaf-compound.png +0 -0
  212. package/dist/textures/realistic/leaf-lobed.png +0 -0
  213. package/dist/textures/realistic/leaf-palmate.png +0 -0
  214. package/dist/textures/realistic/scale.png +0 -0
  215. package/dist/tree/Tree.d.ts +34 -5
  216. package/dist/tree/Tree.d.ts.map +1 -1
  217. package/package.json +9 -2
  218. package/dist/forest-OX9WvAwh.js.map +0 -1
  219. package/dist/types-BZjHhNz7.js +0 -20
  220. package/dist/types-BZjHhNz7.js.map +0 -1
@@ -0,0 +1,171 @@
1
+ {
2
+ "id": "hemlock",
3
+ "name": "Hemlock",
4
+ "form": "conifer",
5
+ "trunk": {
6
+ "length": 8,
7
+ "radius": 0.26,
8
+ "taper": 0.12,
9
+ "lengthVariation": 0.12,
10
+ "bend": 0.05,
11
+ "gravity": -0.45,
12
+ "flare": 0.15
13
+ },
14
+ "branches": [
15
+ {
16
+ "angleVariation": 0.15,
17
+ "spiral": 137.5,
18
+ "lengthVariation": 0.15,
19
+ "taper": 0.3,
20
+ "bend": 0.1,
21
+ "gravity": -0.18,
22
+ "lengthProfile": [
23
+ {
24
+ "t": 0.08,
25
+ "value": 0.9
26
+ },
27
+ {
28
+ "t": 0.25,
29
+ "value": 1.0
30
+ },
31
+ {
32
+ "t": 0.93,
33
+ "value": 0.15
34
+ },
35
+ {
36
+ "t": 1.0,
37
+ "value": 0.1
38
+ }
39
+ ],
40
+ "angleProfile": [
41
+ {
42
+ "t": 0.08,
43
+ "value": 1.05
44
+ },
45
+ {
46
+ "t": 0.7,
47
+ "value": 0.95
48
+ },
49
+ {
50
+ "t": 1.0,
51
+ "value": 0.65
52
+ }
53
+ ],
54
+ "count": 20,
55
+ "start": 0.08,
56
+ "end": 0.93,
57
+ "angle": 86,
58
+ "length": 0.38,
59
+ "radius": 0.28
60
+ },
61
+ {
62
+ "angleVariation": 0.15,
63
+ "spiral": 180,
64
+ "lengthVariation": 0.15,
65
+ "taper": 0.3,
66
+ "bend": 0.12,
67
+ "gravity": -0.4,
68
+ "count": 3,
69
+ "start": 0.25,
70
+ "end": 1,
71
+ "angle": 55,
72
+ "length": 0.45,
73
+ "radius": 0.5
74
+ }
75
+ ],
76
+ "foliage": {
77
+ "type": "needle",
78
+ "density": 0.18,
79
+ "size": 0.9,
80
+ "sizeVariation": 0.2,
81
+ "start": 0,
82
+ "angle": 30
83
+ },
84
+ "bark": {
85
+ "type": "furrowed",
86
+ "color": "#93796a"
87
+ },
88
+ "fruit": {
89
+ "type": "cone",
90
+ "count": 0.2,
91
+ "size": 0.1,
92
+ "sizeVariation": 0.2,
93
+ "hang": 0.9
94
+ },
95
+ "roots": {
96
+ "count": 3,
97
+ "length": 0.1,
98
+ "lengthVariation": 0.3,
99
+ "radius": 0.22,
100
+ "angle": 20,
101
+ "bend": 0.25
102
+ },
103
+ "season": {
104
+ "leafColor": [
105
+ {
106
+ "t": 0,
107
+ "value": "#6b9a4a"
108
+ },
109
+ {
110
+ "t": 0.25,
111
+ "value": "#55863e"
112
+ },
113
+ {
114
+ "t": 0.55,
115
+ "value": "#55863e"
116
+ },
117
+ {
118
+ "t": 0.75,
119
+ "value": "#3a6334"
120
+ },
121
+ {
122
+ "t": 0.92,
123
+ "value": "#3a6334"
124
+ },
125
+ {
126
+ "t": 1,
127
+ "value": "#6b9a4a"
128
+ }
129
+ ],
130
+ "leafCoverage": [
131
+ {
132
+ "t": 0,
133
+ "value": 1
134
+ }
135
+ ],
136
+ "blossom": [
137
+ {
138
+ "t": 0,
139
+ "value": 0
140
+ }
141
+ ],
142
+ "blossomColor": "#c9b46a",
143
+ "fruit": [
144
+ {
145
+ "t": 0,
146
+ "value": 1
147
+ }
148
+ ],
149
+ "fruitColor": [
150
+ {
151
+ "t": 0.15,
152
+ "value": "#8aa048"
153
+ },
154
+ {
155
+ "t": 0.55,
156
+ "value": "#7d5a36"
157
+ }
158
+ ]
159
+ },
160
+ "wind": {
161
+ "trunk": 0.1,
162
+ "branches": 0.4,
163
+ "leaves": 0.5,
164
+ "frequency": 0.8
165
+ },
166
+ "variation": {
167
+ "color": 0.08,
168
+ "growth": 0.1,
169
+ "season": 0.05
170
+ }
171
+ }
@@ -0,0 +1,200 @@
1
+ // src/species/data/hickory.json
2
+ var id = "hickory";
3
+ var name = "Hickory";
4
+ var form = "broadleaf";
5
+ var trunk = {
6
+ "length": 7,
7
+ "radius": .36,
8
+ "taper": .32,
9
+ "lengthVariation": .1,
10
+ "bend": .1,
11
+ "flare": .4
12
+ };
13
+ var branches = [{
14
+ "angleVariation": .15,
15
+ "spiral": 137.5,
16
+ "lengthVariation": .15,
17
+ "taper": .4,
18
+ "bend": .12,
19
+ "gravity": .12,
20
+ "lengthProfile": [
21
+ {
22
+ "t": .42,
23
+ "value": .9
24
+ },
25
+ {
26
+ "t": .6,
27
+ "value": 1
28
+ },
29
+ {
30
+ "t": .85,
31
+ "value": .9
32
+ },
33
+ {
34
+ "t": 1,
35
+ "value": .6
36
+ }
37
+ ],
38
+ "count": 11,
39
+ "start": .42,
40
+ "end": .97,
41
+ "angle": 30,
42
+ "length": .3,
43
+ "radius": .6
44
+ }, {
45
+ "angleVariation": .15,
46
+ "spiral": 137.5,
47
+ "lengthVariation": .15,
48
+ "taper": .45,
49
+ "bend": .12,
50
+ "gravity": .15,
51
+ "count": 4,
52
+ "start": .3,
53
+ "end": 1,
54
+ "angle": 38,
55
+ "length": .6,
56
+ "radius": .6
57
+ }];
58
+ var foliage = {
59
+ "type": "compound",
60
+ "density": .5,
61
+ "size": .55,
62
+ "sizeVariation": .25,
63
+ "start": .15,
64
+ "angle": 50
65
+ };
66
+ var bark = {
67
+ "type": "fibrous",
68
+ "color": "#958b7c"
69
+ };
70
+ var fruit = {
71
+ "type": "nut",
72
+ "count": .3,
73
+ "size": .1,
74
+ "sizeVariation": .2,
75
+ "hang": .3
76
+ };
77
+ var roots = {
78
+ "count": 5,
79
+ "length": .2,
80
+ "lengthVariation": .3,
81
+ "radius": .3,
82
+ "angle": 14,
83
+ "bend": .3
84
+ };
85
+ var season = {
86
+ "leafColor": [
87
+ {
88
+ "t": 0,
89
+ "value": "#a5c45a"
90
+ },
91
+ {
92
+ "t": .2,
93
+ "value": "#456f2c"
94
+ },
95
+ {
96
+ "t": .52,
97
+ "value": "#456f2c"
98
+ },
99
+ {
100
+ "t": .6,
101
+ "value": "#d8ae32"
102
+ },
103
+ {
104
+ "t": .7,
105
+ "value": "#b07e2a"
106
+ },
107
+ {
108
+ "t": .97,
109
+ "value": "#b07e2a"
110
+ },
111
+ {
112
+ "t": 1,
113
+ "value": "#a5c45a"
114
+ }
115
+ ],
116
+ "leafCoverage": [
117
+ {
118
+ "t": 0,
119
+ "value": .3
120
+ },
121
+ {
122
+ "t": .1,
123
+ "value": 1
124
+ },
125
+ {
126
+ "t": .62,
127
+ "value": 1
128
+ },
129
+ {
130
+ "t": .78,
131
+ "value": 0
132
+ },
133
+ {
134
+ "t": .96,
135
+ "value": 0
136
+ },
137
+ {
138
+ "t": 1,
139
+ "value": .3
140
+ }
141
+ ],
142
+ "blossom": [{
143
+ "t": 0,
144
+ "value": 0
145
+ }],
146
+ "blossomColor": "#d8d48a",
147
+ "fruit": [
148
+ {
149
+ "t": .25,
150
+ "value": 0
151
+ },
152
+ {
153
+ "t": .4,
154
+ "value": 1
155
+ },
156
+ {
157
+ "t": .62,
158
+ "value": 1
159
+ },
160
+ {
161
+ "t": .7,
162
+ "value": 0
163
+ }
164
+ ],
165
+ "fruitColor": [{
166
+ "t": .35,
167
+ "value": "#7d9a3a"
168
+ }, {
169
+ "t": .55,
170
+ "value": "#8a5a2b"
171
+ }]
172
+ };
173
+ var wind = {
174
+ "trunk": .08,
175
+ "branches": .3,
176
+ "leaves": .6,
177
+ "frequency": .9
178
+ };
179
+ var variation = {
180
+ "color": .1,
181
+ "growth": .1,
182
+ "season": .05
183
+ };
184
+ var hickory_default = {
185
+ id,
186
+ name,
187
+ form,
188
+ trunk,
189
+ branches,
190
+ foliage,
191
+ bark,
192
+ fruit,
193
+ roots,
194
+ season,
195
+ wind,
196
+ variation
197
+ };
198
+ export { bark, branches, hickory_default as default, foliage, form, fruit, id, name, roots, season, trunk, variation, wind };
199
+
200
+ //# sourceMappingURL=hickory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hickory.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,192 @@
1
+ {
2
+ "id": "hickory",
3
+ "name": "Hickory",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 7,
7
+ "radius": 0.36,
8
+ "taper": 0.32,
9
+ "lengthVariation": 0.1,
10
+ "bend": 0.1,
11
+ "flare": 0.4
12
+ },
13
+ "branches": [
14
+ {
15
+ "angleVariation": 0.15,
16
+ "spiral": 137.5,
17
+ "lengthVariation": 0.15,
18
+ "taper": 0.4,
19
+ "bend": 0.12,
20
+ "gravity": 0.12,
21
+ "lengthProfile": [
22
+ {
23
+ "t": 0.42,
24
+ "value": 0.9
25
+ },
26
+ {
27
+ "t": 0.6,
28
+ "value": 1.0
29
+ },
30
+ {
31
+ "t": 0.85,
32
+ "value": 0.9
33
+ },
34
+ {
35
+ "t": 1.0,
36
+ "value": 0.6
37
+ }
38
+ ],
39
+ "count": 11,
40
+ "start": 0.42,
41
+ "end": 0.97,
42
+ "angle": 30,
43
+ "length": 0.3,
44
+ "radius": 0.6
45
+ },
46
+ {
47
+ "angleVariation": 0.15,
48
+ "spiral": 137.5,
49
+ "lengthVariation": 0.15,
50
+ "taper": 0.45,
51
+ "bend": 0.12,
52
+ "gravity": 0.15,
53
+ "count": 4,
54
+ "start": 0.3,
55
+ "end": 1,
56
+ "angle": 38,
57
+ "length": 0.6,
58
+ "radius": 0.6
59
+ }
60
+ ],
61
+ "foliage": {
62
+ "type": "compound",
63
+ "density": 0.5,
64
+ "size": 0.55,
65
+ "sizeVariation": 0.25,
66
+ "start": 0.15,
67
+ "angle": 50
68
+ },
69
+ "bark": {
70
+ "type": "fibrous",
71
+ "color": "#958b7c"
72
+ },
73
+ "fruit": {
74
+ "type": "nut",
75
+ "count": 0.3,
76
+ "size": 0.1,
77
+ "sizeVariation": 0.2,
78
+ "hang": 0.3
79
+ },
80
+ "roots": {
81
+ "count": 5,
82
+ "length": 0.2,
83
+ "lengthVariation": 0.3,
84
+ "radius": 0.3,
85
+ "angle": 14,
86
+ "bend": 0.3
87
+ },
88
+ "season": {
89
+ "leafColor": [
90
+ {
91
+ "t": 0,
92
+ "value": "#a5c45a"
93
+ },
94
+ {
95
+ "t": 0.2,
96
+ "value": "#456f2c"
97
+ },
98
+ {
99
+ "t": 0.52,
100
+ "value": "#456f2c"
101
+ },
102
+ {
103
+ "t": 0.6,
104
+ "value": "#d8ae32"
105
+ },
106
+ {
107
+ "t": 0.7,
108
+ "value": "#b07e2a"
109
+ },
110
+ {
111
+ "t": 0.97,
112
+ "value": "#b07e2a"
113
+ },
114
+ {
115
+ "t": 1,
116
+ "value": "#a5c45a"
117
+ }
118
+ ],
119
+ "leafCoverage": [
120
+ {
121
+ "t": 0,
122
+ "value": 0.3
123
+ },
124
+ {
125
+ "t": 0.1,
126
+ "value": 1
127
+ },
128
+ {
129
+ "t": 0.62,
130
+ "value": 1
131
+ },
132
+ {
133
+ "t": 0.78,
134
+ "value": 0
135
+ },
136
+ {
137
+ "t": 0.96,
138
+ "value": 0
139
+ },
140
+ {
141
+ "t": 1,
142
+ "value": 0.3
143
+ }
144
+ ],
145
+ "blossom": [
146
+ {
147
+ "t": 0,
148
+ "value": 0
149
+ }
150
+ ],
151
+ "blossomColor": "#d8d48a",
152
+ "fruit": [
153
+ {
154
+ "t": 0.25,
155
+ "value": 0
156
+ },
157
+ {
158
+ "t": 0.4,
159
+ "value": 1
160
+ },
161
+ {
162
+ "t": 0.62,
163
+ "value": 1
164
+ },
165
+ {
166
+ "t": 0.7,
167
+ "value": 0
168
+ }
169
+ ],
170
+ "fruitColor": [
171
+ {
172
+ "t": 0.35,
173
+ "value": "#7d9a3a"
174
+ },
175
+ {
176
+ "t": 0.55,
177
+ "value": "#8a5a2b"
178
+ }
179
+ ]
180
+ },
181
+ "wind": {
182
+ "trunk": 0.08,
183
+ "branches": 0.3,
184
+ "leaves": 0.6,
185
+ "frequency": 0.9
186
+ },
187
+ "variation": {
188
+ "color": 0.1,
189
+ "growth": 0.1,
190
+ "season": 0.05
191
+ }
192
+ }
@@ -0,0 +1,10 @@
1
+ import { type SpeciesName } from './loaders';
2
+ import type { SpeciesDefinition } from './types';
3
+ export * from './catalog';
4
+ export type { SpeciesName };
5
+ export type * from './types';
6
+ /** Ids of all Species in the collection (kebab-case), sorted. Pure, so an app importing one Species drops the loaders. */
7
+ export declare const SPECIES_NAMES: SpeciesName[];
8
+ /** Downloads a Species (dynamic import) and resolves to it. Rejects for an unknown id. */
9
+ export declare function loadSpecies(id: SpeciesName): Promise<SpeciesDefinition>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/species/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,cAAc,WAAW,CAAC;AAC1B,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,mBAAmB,SAAS,CAAC;AAE7B,0HAA0H;AAC1H,eAAO,MAAM,aAAa,EAAmD,WAAW,EAAE,CAAC;AAE3F,0FAA0F;AAC1F,wBAAsB,WAAW,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAI7E"}