@jayf0x/fluidity-js 0.1.4 → 0.1.5

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 CHANGED
@@ -54,6 +54,7 @@ export function Cover() {
54
54
 
55
55
  ```tsx
56
56
  import { useRef } from 'react';
57
+
57
58
  import { FluidText } from '@jayf0x/fluidity-js';
58
59
 
59
60
  export function Interactive() {
@@ -81,16 +82,13 @@ More examples → [`demo/src/examples/`](./demo/src/examples/)
81
82
 
82
83
  ### FluidText
83
84
 
84
- | Prop | Type | Default |
85
- | ------------- | ------------------ | -------------- |
86
- | `text` | `string` | — |
87
- | `fontSize` | `number` | `100` |
88
- | `color` | `string` | `'#ffffff'` |
89
- | `fontFamily` | `string` | `'sans-serif'` |
90
- | `fontWeight` | `string \| number` | `900` |
91
- | `textQuality` | `number` | `2` |
92
-
93
- `textQuality` controls the oversample factor for text rendering. `2` (default) renders at 2× the simulation resolution before upload so edges are antialiased. Set to `1` for the exact simulation resolution; higher values are sharper but use more texture memory.
85
+ | Prop | Type | Default |
86
+ | ------------ | ------------------ | -------------- |
87
+ | `text` | `string` | — |
88
+ | `fontSize` | `number` | `100` |
89
+ | `color` | `string` | `'#ffffff'` |
90
+ | `fontFamily` | `string` | `'sans-serif'` |
91
+ | `fontWeight` | `string \| number` | `900` |
94
92
 
95
93
  ### FluidImage
96
94
 
@@ -167,11 +165,11 @@ More examples → [`demo/src/examples/`](./demo/src/examples/)
167
165
  ## Presets
168
166
 
169
167
  ```tsx
170
- <FluidText text="storm" preset="storm" />
171
- <FluidText text="calm" preset="calm" config={{ curl: 0.1 }} />
168
+ <FluidText text="Wicked" preset="neon" />
169
+ <FluidText text="Wicked" preset="calm" />
172
170
  ```
173
171
 
174
- Available: `calm` · `storm` · `wave` · `neon` · `smoke`
172
+ Available: `calm` · `sand` · `wave` · `neon` · `smoke`
175
173
 
176
174
  `preset` is reactive — changing it re-applies the preset config. Any `config` values you pass override the preset. `algorithm` prop also overrides the preset's algorithm.
177
175
 
package/dist/globals.d.ts CHANGED
@@ -18,7 +18,7 @@ interface FluidConfig {
18
18
  warpStrength: number;
19
19
  }
20
20
 
21
- type PresetKey = 'calm' | 'storm' | 'wave' | 'neon' | 'smoke';
21
+ type PresetKey = 'calm' | 'sand' | 'wave' | 'neon' | 'smoke';
22
22
 
23
23
  interface FluidHandle {
24
24
  reset(): void;