@make-pictures/kits 0.0.0-stage → 2.0.1

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 (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -2
  3. package/dist/chunk-3SUIELJV.mjs +601 -0
  4. package/dist/chunk-4Z3G6FPZ.mjs +485 -0
  5. package/dist/chunk-AHA23PHC.mjs +678 -0
  6. package/dist/chunk-CW623YVB.mjs +1124 -0
  7. package/dist/chunk-NNA7XXQB.mjs +1059 -0
  8. package/dist/chunk-S4CHTWOS.mjs +1237 -0
  9. package/dist/chunk-WAA7P5FT.mjs +912 -0
  10. package/dist/data-storytelling/AnimatedBarRace.d.ts +37 -0
  11. package/dist/data-storytelling/MetricComparisonCard.d.ts +29 -0
  12. package/dist/data-storytelling/TimelineTrack.d.ts +29 -0
  13. package/dist/data-storytelling/index.cjs +1224 -0
  14. package/dist/data-storytelling/index.d.ts +3 -0
  15. package/dist/data-storytelling/index.mjs +10 -0
  16. package/dist/index.cjs +6010 -0
  17. package/dist/index.d.ts +7 -0
  18. package/dist/index.mjs +108 -0
  19. package/dist/isometric-3d/IsometricStudioEnvironment.d.ts +8 -0
  20. package/dist/isometric-3d/Stylized3DCharacter.d.ts +29 -0
  21. package/dist/isometric-3d/index.cjs +611 -0
  22. package/dist/isometric-3d/index.d.ts +2 -0
  23. package/dist/isometric-3d/index.mjs +8 -0
  24. package/dist/kinetic-typography/AnimatedMetricCounter.d.ts +36 -0
  25. package/dist/kinetic-typography/ImpactKeywordCard.d.ts +31 -0
  26. package/dist/kinetic-typography/WordByWordStage.d.ts +47 -0
  27. package/dist/kinetic-typography/index.cjs +665 -0
  28. package/dist/kinetic-typography/index.d.ts +3 -0
  29. package/dist/kinetic-typography/index.mjs +14 -0
  30. package/dist/motion-diagrams-2d/CameraRig.d.ts +34 -0
  31. package/dist/motion-diagrams-2d/CodePayloadToast.d.ts +14 -0
  32. package/dist/motion-diagrams-2d/DataFlowEdge.d.ts +24 -0
  33. package/dist/motion-diagrams-2d/NodeBox.d.ts +65 -0
  34. package/dist/motion-diagrams-2d/SystemNode.d.ts +21 -0
  35. package/dist/motion-diagrams-2d/index.cjs +1137 -0
  36. package/dist/motion-diagrams-2d/index.d.ts +5 -0
  37. package/dist/motion-diagrams-2d/index.mjs +28 -0
  38. package/dist/paper-diorama-3d/ImageCutout3D.d.ts +47 -0
  39. package/dist/paper-diorama-3d/PaperCutout3D.d.ts +62 -0
  40. package/dist/paper-diorama-3d/PaperPopUpBook3D.d.ts +51 -0
  41. package/dist/paper-diorama-3d/PaperStageLighting3D.d.ts +12 -0
  42. package/dist/paper-diorama-3d/index.cjs +1087 -0
  43. package/dist/paper-diorama-3d/index.d.ts +4 -0
  44. package/dist/paper-diorama-3d/index.mjs +34 -0
  45. package/dist/product-frames/BrowserFrame.d.ts +28 -0
  46. package/dist/product-frames/PhoneFrame.d.ts +23 -0
  47. package/dist/product-frames/ScreenSpotlightOverlay.d.ts +34 -0
  48. package/dist/product-frames/frameMedia.d.ts +24 -0
  49. package/dist/product-frames/index.cjs +507 -0
  50. package/dist/product-frames/index.d.ts +8 -0
  51. package/dist/product-frames/index.mjs +12 -0
  52. package/dist/vfx/CinematicLensOverlay.d.ts +29 -0
  53. package/dist/vfx/ParticleField.d.ts +18 -0
  54. package/dist/vfx/SceneTransition.d.ts +24 -0
  55. package/dist/vfx/StagePostProcessing3D.d.ts +44 -0
  56. package/dist/vfx/index.cjs +933 -0
  57. package/dist/vfx/index.d.ts +4 -0
  58. package/dist/vfx/index.mjs +14 -0
  59. package/package.json +95 -4
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ export interface CameraKeyframe {
3
+ /** Frame when the camera begins moving toward this target */
4
+ startFrame: number;
5
+ /** World X coordinate to center in the viewport */
6
+ x: number;
7
+ /** World Y coordinate to center in the viewport */
8
+ y: number;
9
+ /** Camera zoom factor (1.0 = 1:1 with 1920x1080) */
10
+ zoom: number;
11
+ /** Subtle 2D camera banking angle in degrees */
12
+ rotateZ?: number;
13
+ /** Optional spring stiffness override */
14
+ stiffness?: number;
15
+ /** Optional mid-flight zoom dip for long camera flights */
16
+ flightZoomDip?: number;
17
+ /** Optional mid-flight banking angle (deg) */
18
+ flightBankDeg?: number;
19
+ }
20
+ export interface CameraRigProps {
21
+ keyframes: CameraKeyframe[];
22
+ stageWidth?: number;
23
+ stageHeight?: number;
24
+ variant?: 'light' | 'dark';
25
+ children: React.ReactNode;
26
+ }
27
+ export declare function evaluateCameraState(frame: number, fps: number, keyframes: CameraKeyframe[]): {
28
+ x: number;
29
+ y: number;
30
+ zoom: number;
31
+ rotateZ: number;
32
+ velocity: number;
33
+ };
34
+ export declare const CameraRig: React.FC<CameraRigProps>;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface CodePayloadToastProps {
3
+ x: number;
4
+ y: number;
5
+ width?: number;
6
+ methodBadge: string;
7
+ endpoint: string;
8
+ latencyText?: string;
9
+ code: string;
10
+ accentColor?: string;
11
+ startFrame: number;
12
+ endFrame: number;
13
+ }
14
+ export declare const CodePayloadToast: React.FC<CodePayloadToastProps>;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export interface Point2D {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ export interface DataFlowEdgeProps {
7
+ id: string;
8
+ from: Point2D;
9
+ to: Point2D;
10
+ curveOffsetY?: number;
11
+ color?: string;
12
+ secondaryColor?: string;
13
+ drawStartFrame?: number;
14
+ flowStartFrame?: number;
15
+ flowEndFrame?: number;
16
+ packetCount?: number;
17
+ traverseFrames?: number;
18
+ direction?: 'forward' | 'reverse';
19
+ label?: string;
20
+ subLabel?: string;
21
+ labelOffsetY?: number;
22
+ }
23
+ export declare function evaluateCubicBezier(p0: Point2D, p1: Point2D, p2: Point2D, p3: Point2D, t: number): Point2D;
24
+ export declare const DataFlowEdge: React.FC<DataFlowEdgeProps>;
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ /**
3
+ * Single Source of Truth for node coordinates on the 2D canvas.
4
+ * Use `portTop`, `portBottom`, `portLeft`, and `portRight` to connect SVG edges
5
+ * mathematically to card borders without manual coordinate guessing.
6
+ */
7
+ export interface NodeBox {
8
+ cx: number;
9
+ cy: number;
10
+ w: number;
11
+ h: number;
12
+ }
13
+ export declare const portRight: (n: NodeBox, dy?: number) => {
14
+ x: number;
15
+ y: number;
16
+ };
17
+ export declare const portLeft: (n: NodeBox, dy?: number) => {
18
+ x: number;
19
+ y: number;
20
+ };
21
+ export declare const portTop: (n: NodeBox, dx?: number) => {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ export declare const portBottom: (n: NodeBox, dx?: number) => {
26
+ x: number;
27
+ y: number;
28
+ };
29
+ export interface WorldBoxProps {
30
+ node: NodeBox;
31
+ scale?: number;
32
+ opacity?: number;
33
+ zIndex?: number;
34
+ style?: React.CSSProperties;
35
+ children: React.ReactNode;
36
+ }
37
+ export declare const WorldBox: React.FC<WorldBoxProps>;
38
+ export interface FlowCurveProps {
39
+ from: {
40
+ x: number;
41
+ y: number;
42
+ };
43
+ to: {
44
+ x: number;
45
+ y: number;
46
+ };
47
+ /** Vertical arch offset for horizontal connections */
48
+ curveY?: number;
49
+ /** Horizontal detour arch offset for vertical connections (e.g. bypassing section headers) */
50
+ curveX?: number;
51
+ orientation?: 'horizontal' | 'vertical';
52
+ color?: string;
53
+ activeFromFrame: number;
54
+ /** Packet traversal time in frames @ 60 FPS (recommended: 92..120 frames) */
55
+ packetSpeedFrames?: number;
56
+ packetCount?: number;
57
+ strokeWidth?: number;
58
+ dashed?: boolean;
59
+ blocked?: boolean;
60
+ }
61
+ /**
62
+ * Animated SVG Bézier connection line with mathematical port terminals
63
+ * and smooth 60 FPS data packet flow.
64
+ */
65
+ export declare const FlowCurve: React.FC<FlowCurveProps>;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import type { LucideIcon } from 'lucide-react';
3
+ export interface SystemNodeProps {
4
+ id: string;
5
+ title: string;
6
+ subtitle: string;
7
+ badge: string;
8
+ statusText: string;
9
+ activeStatusText?: string;
10
+ icon: LucideIcon;
11
+ x: number;
12
+ y: number;
13
+ width?: number;
14
+ height?: number;
15
+ accentColor?: string;
16
+ enterFrame?: number;
17
+ activeRanges?: Array<[number, number]>;
18
+ metricsLabel?: string;
19
+ metricsValue?: string;
20
+ }
21
+ export declare const SystemNode: React.FC<SystemNodeProps>;