Skip to content

Commit b587b94

Browse files
LXIFLlorenç
andauthored
Andri/wave background in flow (dfinity#3211)
* anchor_management * tentative device registration * add most of the rest * fix get_anchor_info * add updating lookup table * refactor and cleanup * clippy * rename metric * update type and tests * cwippy * quippy * add some integration tests * did * fix test * fix tests * fix tests * gwippy * fix tests * ckouieppie * fix test * clippy * update lookup function * fix typo * fix did * fix did * add did type alias * add one more integration test * update integration test * rename function * make id optional in reg mode enter endpoint * update frontend to work with backend * update integration tests * update integration tests * implement basic wavegrid * scope files * update static animation * adjuts * add stuff * add controls * make tempo-dependent, add double-wave * update color * adjust, add scalar * add perlin wave * add text * refactor and make more usable * ts fixes * another option in dropdown * get started on flaircanvas, write interface description * basic implementation * add more options and cool things * coolify * enough for today * minor adjustments * minor cleanupt * tentatively finish ringmask mode (needs a bit of refactoring) * add perlin opacity and scale * add maskwave controls * add custom color * prevent moving color when moving opacity * build into flow * add to signup as well * remove from button click * remove iterated files * minor fixes and merge main * cleanup * generate * cleanup * remove demo page * add preloading * lint * add to authorize flow * Changes proposed by Misha * add feature flag, style animation according to design guidance * remove flair from mobile * remove from authenticating * remove custom color * temporarily deactivate tests * Reenable tests and remove problematic lines * Fix test * Revert to lowercase * merge changes * add feature flag check for delay * revert button names * fix e2e * fix tests --------- Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
1 parent 15e7fce commit b587b94

11 files changed

Lines changed: 2103 additions & 7 deletions

File tree

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
import * as easingFunctions from "svelte/easing";
2+
3+
export interface FlairAnimationOptions {
4+
location:
5+
| "top"
6+
| "left"
7+
| "right"
8+
| "bottom"
9+
| "topLeft"
10+
| "topRight"
11+
| "bottomLeft"
12+
| "bottomRight"
13+
| "center"
14+
| { x: number; y: number };
15+
target: ("motion" | "scale" | "opacity")[];
16+
motionType:
17+
| "omni"
18+
| "xy"
19+
| "yx"
20+
| "up"
21+
| "down"
22+
| "left"
23+
| "right"
24+
| "cw"
25+
| "ccw"
26+
| "perlin";
27+
speed: "slow" | "medium" | "fast" | number;
28+
intensity: "light" | "medium" | "strong" | number;
29+
size: "large" | "medium" | "small" | number;
30+
nImpulses: "single" | "double";
31+
impulseEasing?: keyof typeof easingFunctions;
32+
}
33+
34+
export interface FlairCanvasProps {
35+
bgType?: "dots" | "grid" | "noisedots";
36+
spacing?: "large" | "medium" | "small" | number;
37+
aspect?: "square" | "wide" | "ultrawide" | number;
38+
visibility?: "always" | "moving" | "maskwave";
39+
dotSize?: "large" | "medium" | "small" | number;
40+
vignette?: "center" | "top" | "left" | "right" | "bottom" | "none";
41+
hoverAction?: "intense" | "minimal" | "none";
42+
springOrTween?:
43+
| {
44+
type: "spring";
45+
stiffness: "low" | "medium" | "high" | number;
46+
dampening: "low" | "medium" | "high" | number;
47+
}
48+
| {
49+
type: "tween";
50+
duration: "short" | "medium" | "long" | number;
51+
easing: keyof typeof easingFunctions;
52+
};
53+
noiseTimeScale?: "fast" | "medium" | "slow" | number;
54+
enableRandomOpacity?: boolean;
55+
opacityNoiseScale?: "large" | "medium" | "small" | number;
56+
opacityNoiseMultiplier?: "large" | "medium" | "small" | number;
57+
enableRandomPointSize?: boolean;
58+
pointSizeNoiseScale?: "large" | "medium" | "small" | number;
59+
pointSizeNoiseMultiplier?: "large" | "medium" | "small" | number;
60+
maskWaveRampIn?: number;
61+
maskWaveRampOut?: number;
62+
maskWaveThickness?: "large" | "medium" | "small" | number;
63+
maskWaveMinValue?: number;
64+
maskWaveSpeedMultiplier?: number;
65+
backgroundClasses?: string;
66+
foregroundClasses?: string;
67+
customColor?: string;
68+
customColorMode?: "all" | "moving";
69+
triggerAnimation?: (opts: FlairAnimationOptions) => void;
70+
}
71+
72+
export interface NodeMotion {
73+
motion: Spring<{ x: number; y: number }> | Tween<{ x: number; y: number }>;
74+
prev: { x: number; y: number };
75+
speed: number;
76+
}

0 commit comments

Comments
 (0)