Wykres commitów

13 Commity (f49fa7170d089091ebb3af29e57517d02881e972)

Autor SHA1 Wiadomość Data
Atul Varma e48b5f9bae
Factor out a SvgCompositionContext. (#72)
This fixes #67 by making the background color selection/randomization code more DRY via the addition of a new `SvgCompositionContext` and a `CompositionContextWidget`.

It also documents the `SvgSymbolContext` type, and moves the "randomize colors" button closer to the actual colors.
2021-04-02 16:33:07 -04:00
Atul Varma 63e9101d42
Make mandala UI layout a bit less terrible (#65)
The key phrase here is **less terrible**, as opposed to **good**.

Right now if the mandala gets too big for the page, it will just overflow and the remainder won't be visible (not even via scrolling).  This is intentional, though, as per @ninapaley's suggestion:

> I'm hoping you can change the way the image keeps resizing its canvas, and keeps justifying left.
> Maybe have an oversize canvas with the ring pinned to the center, and all the adjustment sliders
> on the right? Then they won't disappear if the canvas is too big. Also! I have an idea for an
> animated cycle that would require the symbols to eventually outgrow the canvas area and disappear.

I'm not super happy with this CSS, it doesn't feel terribly maintainable.  Ah well, maybe we can improve it later.
2021-03-29 13:03:54 -04:00
Atul Varma c76bcc2d5a Factor out checkbox.tsx. 2021-03-28 07:38:32 -04:00
Atul Varma 7cb4c3242d get rid of ValidateDOMNesting warnings 2021-03-27 08:34:22 -04:00
Atul Varma a19a560b8f Auto-generate id attributes by default. 2021-03-27 08:11:07 -04:00
Atul Varma fbca3b65ba Factor out numeric-slider.tsx. 2021-03-27 07:24:15 -04:00
Atul Varma c7d1092cda Factor out ColorWidget component. 2021-03-27 07:14:42 -04:00
Atul Varma ecf98deedb Add support for invert_nested (#17). 2021-03-05 19:38:25 -05:00
Atul Varma 1824d7249b Add stroke/fill swap button. 2021-02-28 20:11:50 -05:00
Atul Varma 5c903c0794 Allow stroke width to go to 0. Fixes #14. 2021-02-20 11:41:41 -05:00
Atul Varma 6f71305dd2
Add configurable bg color to creature page. (#19)
This fixes #12 by adding a background color picker to the creature page.

The default background color is `#cccccc`, which I _think_ is mid-gray.
2021-02-20 11:38:04 -05:00
Atul Varma e89d613b38 Add a stroke width slider. 2021-02-18 22:13:01 -05:00
Atul Varma b81f11fe76 Factor out SymbolContextWidget, use it on creature page. 2021-02-17 08:07:04 -05:00