@validationcloud/fractal-ui 1.72.0 → 1.73.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.
|
@@ -3,7 +3,7 @@ export declare const FOOTER_HEIGHT = 44;
|
|
|
3
3
|
/**
|
|
4
4
|
* Draws the branded Mavrik footer onto a canvas context.
|
|
5
5
|
*
|
|
6
|
-
* Layout: VC logo on left, "
|
|
6
|
+
* Layout: VC logo on left, "Powered by [Mavrik wordmark] ai.validationcloud.io" on right.
|
|
7
7
|
* Call with the context already scaled for DPR — all coordinates are in logical pixels.
|
|
8
8
|
*/
|
|
9
9
|
export declare function drawMavrikFooter(ctx: CanvasRenderingContext2D, width: number, yOffset: number): void;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Image as
|
|
2
|
-
import { vcLogoDataUri as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
return
|
|
1
|
+
import { Image as v } from "skia-canvas";
|
|
2
|
+
import { vcLogoDataUri as D, mavrikWordmarkDataUri as G } from "./footer-svg-assets.js";
|
|
3
|
+
const p = 44, H = "#1a1d1f", n = "#6f767e", k = "#2e313c", c = 20, d = 8, y = 140, I = 16, f = 72, _ = 12;
|
|
4
|
+
function O(o) {
|
|
5
|
+
const e = new v();
|
|
6
|
+
return e.src = o, e;
|
|
7
7
|
}
|
|
8
|
-
function P(o,
|
|
9
|
-
o.fillStyle =
|
|
10
|
-
const
|
|
11
|
-
o.drawImage(
|
|
12
|
-
const
|
|
13
|
-
o.font = "
|
|
14
|
-
const
|
|
15
|
-
o.font = "
|
|
16
|
-
const
|
|
17
|
-
o.fillStyle =
|
|
8
|
+
function P(o, e, i) {
|
|
9
|
+
o.fillStyle = H, o.fillRect(0, i, e, p), o.fillStyle = k, o.fillRect(0, i, e, 1);
|
|
10
|
+
const g = O(D(n)), u = O(G(n)), s = i + p / 2;
|
|
11
|
+
o.drawImage(g, c, s - I / 2, y, I);
|
|
12
|
+
const l = "ai.validationcloud.io", a = "Powered by";
|
|
13
|
+
o.font = "500 11px Poppins";
|
|
14
|
+
const T = o.measureText(l);
|
|
15
|
+
o.font = "500 11px Poppins";
|
|
16
|
+
const w = o.measureText(a), t = e - c - T.width, m = t - d - f, R = m - d - w.width, r = s + 4;
|
|
17
|
+
o.fillStyle = n, o.fillText(a, R, r), o.drawImage(u, m, s - _ / 2, f, _), o.font = "500 11px Poppins", o.fillStyle = n, o.fillText(l, t, r), o.strokeStyle = n, o.lineWidth = 1, o.beginPath(), o.moveTo(t, r + 2), o.lineTo(t + T.width, r + 2), o.stroke();
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
p as FOOTER_HEIGHT,
|
|
21
21
|
P as drawMavrikFooter
|
|
22
22
|
};
|