@casmo/tree.js 0.3.0 → 0.4.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.
- package/README.md +186 -1
- package/dist/effects/effects.d.ts +51 -6
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/glow.d.ts +5 -0
- package/dist/effects/glow.d.ts.map +1 -1
- package/dist/effects/grade.d.ts +3 -0
- package/dist/effects/grade.d.ts.map +1 -1
- package/dist/effects/highlight.d.ts +35 -0
- package/dist/effects/highlight.d.ts.map +1 -0
- package/dist/effects/index.d.ts +5 -1
- package/dist/effects/index.d.ts.map +1 -1
- package/dist/effects/inner-lines.d.ts +39 -0
- package/dist/effects/inner-lines.d.ts.map +1 -0
- package/dist/effects/live.d.ts +12 -0
- package/dist/effects/live.d.ts.map +1 -0
- package/dist/effects/mask.d.ts +23 -11
- package/dist/effects/mask.d.ts.map +1 -1
- package/dist/effects/outline.d.ts +12 -0
- package/dist/effects/outline.d.ts.map +1 -1
- package/dist/effects/pass.d.ts +27 -0
- package/dist/effects/pass.d.ts.map +1 -0
- package/dist/effects/screen.d.ts +31 -0
- package/dist/effects/screen.d.ts.map +1 -0
- package/dist/effects/suggested.d.ts +5 -0
- package/dist/effects/suggested.d.ts.map +1 -1
- package/dist/effects/tree-id.d.ts +50 -0
- package/dist/effects/tree-id.d.ts.map +1 -0
- package/dist/effects.js +772 -57
- package/dist/effects.js.map +1 -1
- package/dist/forest/Forest.d.ts +2 -0
- package/dist/forest/Forest.d.ts.map +1 -1
- package/dist/{forest-ChEaWJrf.js → forest-lg61rhKM.js} +5 -1
- package/dist/{forest-ChEaWJrf.js.map → forest-lg61rhKM.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as treeScale, B as hexToLinear, C as loadTexture, D as groundTintAmount, E as textureReady, F as KEYFRAME_EPSILON, G as seasonShift, H as leafSeasonAttribute, I as evaluateSeason, J as woodSeasonAttribute, K as segmentWeight, L as fruitSeason, M as hashTreeData, N as crownDistance, O as clampGrowth, P as crownNormal, R as fruitSeasonAttribute, S as getTextureOptions, T as setTextureOptions, U as partSeasonAt, V as leafSeason, W as sampleTrack, X as createRandom, Y as wrapSeason, _ as createBarkMaterial, b as BARK_REPEAT, c as Tree, d as sceneWind, f as applySeasonToLeafMaterial, g as assertWebGPURenderer, h as UnsupportedRendererError, i as ForestVariant, j as hashGeometry, k as growPositions, l as WindResponse, m as createSeasonNodes, n as Forest, o as loadStyle, p as createFruitSeasonNodes, q as srgbToLinear, r as ForestTree, s as createTree, t as createForest, u as Wind, v as createLeafMaterial, w as resolveTextureUrl, x as DEFAULT_TEXTURE_BASE_PATH, y as isFlatShading, z as fruitTracks } from "./forest-
|
|
1
|
+
import { A as treeScale, B as hexToLinear, C as loadTexture, D as groundTintAmount, E as textureReady, F as KEYFRAME_EPSILON, G as seasonShift, H as leafSeasonAttribute, I as evaluateSeason, J as woodSeasonAttribute, K as segmentWeight, L as fruitSeason, M as hashTreeData, N as crownDistance, O as clampGrowth, P as crownNormal, R as fruitSeasonAttribute, S as getTextureOptions, T as setTextureOptions, U as partSeasonAt, V as leafSeason, W as sampleTrack, X as createRandom, Y as wrapSeason, _ as createBarkMaterial, b as BARK_REPEAT, c as Tree, d as sceneWind, f as applySeasonToLeafMaterial, g as assertWebGPURenderer, h as UnsupportedRendererError, i as ForestVariant, j as hashGeometry, k as growPositions, l as WindResponse, m as createSeasonNodes, n as Forest, o as loadStyle, p as createFruitSeasonNodes, q as srgbToLinear, r as ForestTree, s as createTree, t as createForest, u as Wind, v as createLeafMaterial, w as resolveTextureUrl, x as DEFAULT_TEXTURE_BASE_PATH, y as isFlatShading, z as fruitTracks } from "./forest-lg61rhKM.js";
|
|
2
2
|
import { C as CURRENT_SCHEMA_VERSION, E as MAX_BRANCH_LEVELS, S as BARK_TYPES, T as LEAF_TYPES, _ as DEFAULT_GROUND_TINT, a as SUGGESTED_MATERIAL_FEATURES, b as DEFAULT_TRANSLUCENCY, c as extendDefinition, d as TreeDefinitionError, f as DEFAULT_BRANCH_LEVEL, g as DEFAULT_FRUIT_COLOR, h as DEFAULT_FRUIT_AMOUNT, l as fetchDefinition, m as DEFAULT_FRUIT, n as styleLabel, o as materialFeaturesOf, p as DEFAULT_DEFINITION, r as styleOfShading, s as withMaterialFeatures, t as STYLE_NAMES, u as parseDefinition, v as DEFAULT_OCCLUSION, w as FRUIT_TYPES, x as coneCurve, y as DEFAULT_ROOTS } from "./names-BE9he6CS.js";
|
|
3
3
|
import { t as SEASON_PROFILES } from "./profiles-BAiyeFlh.js";
|
|
4
4
|
import { BufferAttribute, BufferGeometry, Color, DoubleSide, Group, Mesh, MeshStandardMaterial } from "three/webgpu";
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as clampGrowth, Y as wrapSeason, a as forestTreeKey, d as sceneWind, o as loadStyle, s as createTree, t as createForest } from "./forest-
|
|
1
|
+
import { O as clampGrowth, Y as wrapSeason, a as forestTreeKey, d as sceneWind, o as loadStyle, s as createTree, t as createForest } from "./forest-lg61rhKM.js";
|
|
2
2
|
import { use, useEffect, useLayoutEffect, useMemo, useState } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
// src/react/useTreeStyle.ts
|