pele-animate 0.12.0 → 0.14.0

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.
Files changed (66) hide show
  1. package/README.md +28 -40
  2. package/THIRD-PARTY-NOTICES.md +28 -0
  3. package/docs/accessibility.md +20 -0
  4. package/docs/agents.md +63 -0
  5. package/docs/api.md +49 -0
  6. package/docs/compatibility.md +33 -0
  7. package/docs/contributing.md +24 -0
  8. package/docs/custom-icons.md +39 -0
  9. package/docs/diagram-types.md +43 -0
  10. package/docs/faq.md +30 -0
  11. package/docs/getting-started.md +66 -0
  12. package/docs/how-it-works.md +44 -0
  13. package/docs/icons.md +82 -0
  14. package/docs/migrating.md +58 -0
  15. package/docs/recipes.md +80 -0
  16. package/docs/security.md +19 -0
  17. package/docs/step-order.md +75 -0
  18. package/docs/theming.md +48 -0
  19. package/glyphs.js +10 -13
  20. package/package.json +12 -8
  21. package/preset-doverunner.js +23 -13
  22. package/skills/diagram-step-order/SKILL.md +43 -0
  23. package/skills/diagram-step-order/steps.js +15 -0
  24. package/skills/pele-animate/SKILL.md +131 -0
  25. package/skills/pele-animate/references/categories.md +42 -0
  26. package/skills/pele-animate/verify.js +14 -0
  27. package/tabler/animals.js +23 -0
  28. package/tabler/arrows.js +338 -0
  29. package/tabler/badges.js +27 -0
  30. package/tabler/buildings.js +100 -0
  31. package/tabler/charts.js +44 -0
  32. package/tabler/communication.js +126 -0
  33. package/tabler/computers.js +49 -0
  34. package/tabler/currencies.js +81 -0
  35. package/tabler/database.js +47 -0
  36. package/tabler/design.js +355 -0
  37. package/tabler/development.js +68 -0
  38. package/tabler/devices.js +368 -0
  39. package/tabler/document.js +214 -0
  40. package/tabler/e-commerce.js +160 -0
  41. package/tabler/electrical.js +24 -0
  42. package/tabler/extensions.js +18 -0
  43. package/tabler/food.js +101 -0
  44. package/tabler/games.js +53 -0
  45. package/tabler/gestures.js +22 -0
  46. package/tabler/health.js +92 -0
  47. package/tabler/laundry.js +45 -0
  48. package/tabler/logic.js +13 -0
  49. package/tabler/map.js +268 -0
  50. package/tabler/math.js +93 -0
  51. package/tabler/media.js +165 -0
  52. package/tabler/mood.js +57 -0
  53. package/tabler/nature.js +55 -0
  54. package/tabler/photography.js +57 -0
  55. package/tabler/shapes.js +192 -0
  56. package/tabler/sport.js +81 -0
  57. package/tabler/symbols.js +42 -0
  58. package/tabler/system.js +789 -0
  59. package/tabler/text.js +199 -0
  60. package/tabler/vehicles.js +95 -0
  61. package/tabler/version-control.js +21 -0
  62. package/tabler/weather.js +66 -0
  63. package/types/glyphs.d.ts +13 -0
  64. package/types/index.d.ts +33 -0
  65. package/types/preset-doverunner.d.ts +1 -0
  66. package/types/tabler-pack.d.ts +2 -0
@@ -0,0 +1,33 @@
1
+ export interface AnimateOptions {
2
+ /** Element that triggers the hover token animation. Default: the svg itself. */
3
+ hover?: Element;
4
+ /** The Mermaid source, read for `%% pa:` pins. */
5
+ source?: string;
6
+ }
7
+
8
+ export interface WatchOptions {
9
+ /** `false` keeps the old click-to-replay instead of step mode. Default `true`. */
10
+ controls?: boolean;
11
+ }
12
+
13
+ /** One step: the elements that appear and, for each, the parts that pop in. */
14
+ export type PaStep = Array<[element: Element, parts: Element[]]>;
15
+
16
+ declare global {
17
+ interface SVGSVGElement {
18
+ /** Set by `animate()`: one array per step. */
19
+ paSteps?: PaStep[];
20
+ }
21
+ }
22
+
23
+ /** Read the `%% pa:` pins: node id, or `'X>Y'` for an edge, to a 0-based step. */
24
+ export function parseOrder(source?: string): Map<string, number>;
25
+
26
+ /** Animate one rendered Pele svg (flowchart or sequence diagram). */
27
+ export function animate(svg: SVGSVGElement, options?: AnimateOptions): void;
28
+
29
+ /** Animate every svg Pele renders into `container`, re-applying after Pele re-lays-out on resize. */
30
+ export function watch(container: HTMLElement, source?: string, options?: WatchOptions): void;
31
+
32
+ /** Play the intro again. */
33
+ export function replay(svg: SVGSVGElement | null | undefined): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ /** The icons of one Tabler category: name to inner svg markup. Importing the module also registers them. */
2
+ export const pack: Record<string, string>;