mysticsymbolic.github.io/lib
Atul Varma ebd8ad0493
Add useRememberedState(). (#212)
This adds a new `useRememberedState()` React hook that effectively allows us to have user interface elements that "remember" their most recent value, even if the UI itself was unmounted at some point.  (It only works for the lifetime of the page, however, so it doesn't remember values across page reloads; this is intentional, as I didn't want to have to worry about serialization or schema migration.)

The hook is now used in the randomizer widget and for some of the creature page widgets, to ensure that their settings are preserved more often than not.
2021-08-15 15:44:54 -04:00
..
__snapshots__ Add support for gradients (#127) 2021-05-27 16:09:05 -04:00
pages Add useRememberedState(). (#212) 2021-08-15 15:44:54 -04:00
animated-gif.ts
animation.ts
attach.test.tsx
attach.tsx
auto-sizing-svg.tsx Use eslint. (#133) 2021-05-28 10:17:45 -04:00
base64.test.ts Always permalink to Mandalas. (#99) 2021-04-24 08:46:32 -04:00
base64.ts Always permalink to Mandalas. (#99) 2021-04-24 08:46:32 -04:00
bounding-box.test.ts
bounding-box.ts
browser-main.tsx Use eslint. (#133) 2021-05-28 10:17:45 -04:00
checkbox.tsx
color-util.test.ts Factor out parseHexColor(). 2021-06-27 09:19:18 -04:00
color-util.ts Add some hills to the waves page. (#177) 2021-07-04 16:34:17 -04:00
color-widget.css Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
color-widget.tsx Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
colors.ts Add a 'wildcard' (neutral) attachment point type. (#200) 2021-07-05 06:30:05 -04:00
creature-symbol-factory.tsx
creature-symbol.tsx Add never_flip_attachments to TOML metadata. (#203) 2021-07-05 19:35:39 -04:00
distribution.test.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
distribution.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
esbuild-shims.js Use esbuild instead of Parcel. (#131) 2021-05-28 07:34:17 -04:00
export-svg.css Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
export-svg.tsx Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
hover-debug-helper.css Hover helper tooltips aren't obscured by cursor. 2021-07-18 16:52:18 -04:00
hover-debug-helper.tsx Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
mandala-circle.tsx
numeric-slider.css Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
numeric-slider.tsx Always permalink to Mandalas. (#99) 2021-04-24 08:46:32 -04:00
page-with-shareable-state.tsx Use eslint. (#133) 2021-05-28 10:17:45 -04:00
page.css Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
page.tsx Split up CSS into multiple files and use CSS imports (#206) 2021-07-11 15:59:37 -04:00
palette-algorithm-widget.tsx Allow user to choose from multiple palette algorithms. (#97) 2021-04-17 07:33:27 -04:00
path.ts
point.test.tsx
point.ts
random-colors.test.ts Factor out color-util.ts. (#130) 2021-05-28 06:13:19 -04:00
random-colors.ts Enable gradients, set colors to randhue. Fixes #209. 2021-07-17 14:03:04 -04:00
random.test.ts
random.ts Baseline color rules working (#111) 2021-04-30 07:15:38 -04:00
randomizer-widget.tsx Add useRememberedState(). (#212) 2021-08-15 15:44:54 -04:00
serialization.test.ts Store creature state in querystring (#210) 2021-07-24 14:00:42 -04:00
serialization.ts Store creature state in querystring (#210) 2021-07-24 14:00:42 -04:00
specs.ts Add a 'wildcard' (neutral) attachment point type. (#200) 2021-07-05 06:30:05 -04:00
svg-composition-context.tsx randHue color algorithm (#194) 2021-07-03 09:34:30 -04:00
svg-symbol-metadata.test.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
svg-symbol-metadata.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
svg-symbol.tsx Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
svg-transform.tsx
svg-vocabulary.ts Add 'always include this symbol' dropdown. (#115) 2021-05-12 21:55:18 -04:00
symbol-context-widget.tsx Add a 'disable gradients' toggle. (#148) 2021-06-06 17:49:49 -04:00
test-util.ts
unique-id.test.tsx Add support for gradients (#127) 2021-05-27 16:09:05 -04:00
unique-id.tsx Add a 'disable gradients' toggle. (#148) 2021-06-06 17:49:49 -04:00
use-debounced-effect.ts Add a 'disable gradients' toggle. (#148) 2021-06-06 17:49:49 -04:00
use-remembered-state.ts Add useRememberedState(). (#212) 2021-08-15 15:44:54 -04:00
util.test.tsx Add support for gradients (#127) 2021-05-27 16:09:05 -04:00
util.ts Add some hills to the waves page. (#177) 2021-07-04 16:34:17 -04:00
visible-specs.tsx
vocabulary-builder.test.ts Add support for gradients (#127) 2021-05-27 16:09:05 -04:00
vocabulary-builder.ts Add support for linear gradients (#135) 2021-05-28 12:41:25 -04:00
vocabulary-widget.tsx
vocabulary.test.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
vocabulary.ts