Files
presentation-html/references/registry-animejs-retail.md
T

49 lines
5.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Retail · original conceptual scenes
[Overall gallery](../dist/animejs-gallery-0.6.0/index.html) · [Industry gallery](../dist/animejs-gallery-0.6.0/retail/index.html)
[Editable renderer](../assets/animejs/industries/retail.js) · [Catalog/configuration](../assets/animejs/catalogs/retail.json) · [Shared lifecycle and deterministic choreography](choreography.md)
These original SVG models explain process relationships, not operational facts. No external assets, statistics, product-release criteria, legal rules or certified engineering models are embedded.
| ID | Audience / question | Narrative phases |
|---|---|---|
| `retail-inventory-reservation` | Process owners: Two demand channels compete for one pickable unit; the second order gets an honest alternative. | Count stock → Web reserves → Store competes → Offer alternate → Fulfil promise |
| `retail-return-disposition` | Process owners: Refund and inventory disposition are separate branches; damaged goods stay out of sellable stock. | Receive return → Inspect condition → Route disposition → Refund record → Restock accepted |
## Omnichannel: reserve before promising
[Open individual scene](../dist/animejs-gallery-0.6.0/examples/retail-inventory-reservation.html)
Use with commerce product and store operations teams to expose the race between web and store demand and prevent a second promise on one unit.
**Mechanism:** Two demand channels compete for one pickable unit; the second order gets an honest alternative. Domain geometry stays editable; muted paths establish the topology before colored traces reveal decisions. Red/amber exceptions remain labeled in the settled state. The sequence is cumulative evidence, not an instantaneous live system snapshot.
**Scene-specific motion:** A reservation lock appears; the one physical unit moves from shelf to dispatch while the competing request ends at a stockout stop.
**Anime.js techniques:** one paused v4 `createTimeline`, explicit from/to SVG stroke-dashoffset tracing, opacity emphasis and (for budget allocations) width interpolation. A finite constant-value hold gives the scene its exact duration. No callbacks, randomness or renderer event listeners.
**Editable scene config:** `parcelSize` — Illustrative packaged unit size; clamped 22–44 SVG units. Moves the reserved physical unit into dispatch.
**Editable timing config:** `phaseMs` (default 1200 milliseconds; use positive finite values, recommended 600–2400) sets all five phase intervals and total duration (`5 × phaseMs`). Beat targets in the catalog match only the default; regenerate targets and retest seeking after timing changes. Geometry and labels are source-editable rather than falsely parameterized.
**Limits:** Original conceptual model. All timings, quantities, rates and capacities are illustrative. Geometry shows relationships, not physical scale. No clinical, compliance or engineering certification claims. Do not use as a live control display, regulatory assurance, numerical model or a substitute for locally approved procedures. Color is reinforced with labels, named destinations and exception geometry. Host owns reduced-motion settlement, play/pause, teardown and remount; see shared lifecycle guidance.
## Returns: inspect before restocking
[Open individual scene](../dist/animejs-gallery-0.6.0/examples/retail-return-disposition.html)
Use with returns, finance and inventory teams to separate refund eligibility from physical restock eligibility and retain the rejected-goods branch.
**Mechanism:** Refund and inventory disposition are separate branches; damaged goods stay out of sellable stock. Domain geometry stays editable; muted paths establish the topology before colored traces reveal decisions. Red/amber exceptions remain labeled in the settled state. The sequence is cumulative evidence, not an instantaneous live system snapshot.
**Scene-specific motion:** Actual v4 svg.morphTo opens a carton flap; accepted inspection units move to the shelf, distinct from refund recording.
**Anime.js techniques:** one paused v4 `createTimeline`, explicit from/to SVG stroke-dashoffset tracing, opacity emphasis and (for budget allocations) width interpolation. A finite constant-value hold gives the scene its exact duration. No callbacks, randomness or renderer event listeners.
**Editable scene config:** `restockUnits` — Illustrative accepted units; integer 1–3. Controls the inspected units transferred to the shelf.
**Editable timing config:** `phaseMs` (default 1200 milliseconds; use positive finite values, recommended 600–2400) sets all five phase intervals and total duration (`5 × phaseMs`). Beat targets in the catalog match only the default; regenerate targets and retest seeking after timing changes. Geometry and labels are source-editable rather than falsely parameterized.
**Limits:** Original conceptual model. All timings, quantities, rates and capacities are illustrative. Geometry shows relationships, not physical scale. No clinical, compliance or engineering certification claims. Do not use as a live control display, regulatory assurance, numerical model or a substitute for locally approved procedures. Color is reinforced with labels, named destinations and exception geometry. Host owns reduced-motion settlement, play/pause, teardown and remount; see shared lifecycle guidance.