Files
presentation-html/references/registry-animejs-energy.md

4.5 KiB
Raw Permalink Blame History

Energy · original Anime.js industry recipes

Overall gallery · Energy gallery

Editable original SVG, conceptual and not operational guidance. No external imagery, patient data or operational statistics. Every count, rate, capacity and timing is illustrative.

Renderer source · Catalog/configuration · Shared lifecycle and seeking

ID Question / audience Individual preview
energy-microgrid-storage Explain the distinct roles of generation, storage and flexible demand to a general energy audience. Open
energy-feeder-restoration Explain sectional isolation versus whole-feeder outage with an accessible single-line conceptual topology. Open

Microgrid: balance generation with storage

Narrative: Renewables → Serve load → Output dips → Discharge → Load rejoins → resolved overview.

Solar and wind feed a common bus; a renewable dip triggers storage dispatch before a flexible load rejoins.

Visual explanation: Cyan = renewable supply · Amber = storage dispatch · Green = restored flexible load. Stable labels preserve the exception and recovery explanation at the final state. Physical objects use local SVG groups; route drawing encodes direction, not decorative travel.

Anime.js v4 techniques: a paused finite createTimeline; explicit from/to SVG attributes, opacity and group translations; path dash-offset drawing using measured SVG lengths. Switch blades in the feeder scene interpolate compatible path coordinates. Constant-value tweens hold states; no callbacks, random values, listeners, autoplay or external resources.

Editable config: storageBars is an illustrative initial charge display, integer 1–3; the last occupied segment visibly discharges while bridging the gap. It is not energy accounting. duration (default 6000, positive finite milliseconds) scales every tween and phase together. Default beat times are 0, 1200, 2400, 3600, 4800 and 6000 ms. If changing duration, scale catalog seek targets and retest playback, intermediate/final views, bounds and reverse seeking. Geometry is intentionally edited in source rather than exposing misleading operational parameters.

Limits: All power, storage and time relationships are qualitative and illustrative; original topology omits protection and power electronics. Not electrical design, dispatch optimization, grid-code compliance or battery-sizing advice.

Feeder fault: isolate and restore service

Narrative: Normal supply → Fault appears → Open section → Close tie → Restore branch → resolved overview.

A faulted feeder section is opened at both ends; a normally open tie restores healthy downstream service.

Visual explanation: Red = isolated fault section · Green = alternate feed · Cyan = healthy normal feed. Stable labels preserve the exception and recovery explanation at the final state. Physical objects use local SVG groups; route drawing encodes direction, not decorative travel.

Anime.js v4 techniques: a paused finite createTimeline; explicit from/to SVG attributes, opacity and group translations; path dash-offset drawing using measured SVG lengths. Switch blades in the feeder scene interpolate compatible path coordinates. Constant-value tweens hold states; no callbacks, random values, listeners, autoplay or external resources.

Editable config: tieAvailable is 1 for alternate-feed restoration, or 0 for a deliberately unresolved downstream outage. The tie, recovery route and final status reflect this choice; beats retain their nominal times. duration (default 6000, positive finite milliseconds) scales every tween and phase together. Default beat times are 0, 1200, 2400, 3600, 4800 and 6000 ms. If changing duration, scale catalog seek targets and retest playback, intermediate/final views, bounds and reverse seeking. Geometry is intentionally edited in source rather than exposing misleading operational parameters.

Limits: Original conceptual topology. Switch states and all timings are illustrative; alternate source capacity and safe isolation are assumed, not calculated. Never use as switching instructions, protection coordination, load-flow analysis or an operator procedure.