three-text 0.2.13 → 0.2.15
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 +4 -4
- package/dist/index.cjs +792 -677
- package/dist/index.d.ts +88 -76
- package/dist/index.js +792 -678
- package/dist/index.min.cjs +861 -2
- package/dist/index.min.js +860 -2
- package/dist/index.umd.js +792 -677
- package/dist/index.umd.min.js +862 -2
- package/dist/three/react.cjs +44 -20
- package/dist/three/react.d.ts +36 -24
- package/dist/three/react.js +45 -21
- package/dist/types/core/Text.d.ts +14 -7
- package/dist/types/core/cache/GlyphGeometryBuilder.d.ts +12 -5
- package/dist/types/core/cache/sharedCaches.d.ts +12 -0
- package/dist/types/core/font/TableDirectory.d.ts +7 -0
- package/dist/types/core/font/constants.d.ts +0 -1
- package/dist/types/core/geometry/Extruder.d.ts +3 -6
- package/dist/types/core/layout/LineBreak.d.ts +2 -0
- package/dist/types/core/shaping/DrawCallbacks.d.ts +2 -0
- package/dist/types/core/shaping/TextShaper.d.ts +4 -1
- package/dist/types/core/types.d.ts +26 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/three/ThreeText.d.ts +3 -3
- package/dist/types/utils/LRUCache.d.ts +2 -2
- package/dist/types/webgpu/index.d.ts +1 -2
- package/dist/webgpu/index.cjs +3 -4
- package/dist/webgpu/index.d.ts +1 -2
- package/dist/webgpu/index.js +3 -4
- package/package.json +1 -1
- package/dist/types/core/cache/GlyphCache.d.ts +0 -50
package/README.md
CHANGED
|
@@ -322,7 +322,7 @@ For text with tight tracking, connected scripts, or complex kerning pairs, indiv
|
|
|
322
322
|
|
|
323
323
|
#### Flat geometry mode
|
|
324
324
|
|
|
325
|
-
When `depth` is 0, the library generates single-sided geometry
|
|
325
|
+
When `depth` is 0, the library generates single-sided geometry with normals pointing toward the camera (positive Z direction), reducing triangles by approximately 50% compared to extruded geometry
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
## Configuration
|
|
@@ -900,9 +900,9 @@ const stats = text.getCacheStatistics();
|
|
|
900
900
|
console.log('Cache Statistics:', {
|
|
901
901
|
hitRate: stats.hitRate, // Cache hit percentage
|
|
902
902
|
memoryUsageMB: stats.memoryUsageMB, // Memory used in MB
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
903
|
+
size: stats.size, // Entries in cache
|
|
904
|
+
hits: stats.hits, // Cache hits
|
|
905
|
+
misses: stats.misses // Cache misses
|
|
906
906
|
});
|
|
907
907
|
```
|
|
908
908
|
|