@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, "Created by [Mavrik wordmark] ai.validationcloud.io" on right.
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 L } from "skia-canvas";
2
- import { vcLogoDataUri as k, mavrikWordmarkDataUri as y } from "./footer-svg-assets.js";
3
- const d = 44, R = "#1a1d1f", i = "#a7a9ad", m = "#3f8cff", f = 20, I = 8, w = 140, p = 16, O = 85, _ = 14;
4
- function g(o) {
5
- const t = new L();
6
- return t.src = o, t;
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, t, a) {
9
- o.fillStyle = R, o.fillRect(0, a, t, d);
10
- const u = g(k(i)), v = g(y(i)), r = a + d / 2;
11
- o.drawImage(u, f, r - p / 2, w, p);
12
- const s = "ai.validationcloud.io", l = "Created by";
13
- o.font = "13px Poppins";
14
- const c = o.measureText(s);
15
- o.font = "600 14px Poppins";
16
- const G = o.measureText(l), e = t - f - c.width, T = e - I - O, H = T - I - G.width, n = r + 5;
17
- o.fillStyle = i, o.fillText(l, H, n), o.drawImage(v, T, r - _ / 2, O, _), o.font = "13px Poppins", o.fillStyle = m, o.fillText(s, e, n), o.strokeStyle = m, o.lineWidth = 1, o.beginPath(), o.moveTo(e, n + 2), o.lineTo(e + c.width, n + 2), o.stroke();
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
- d as FOOTER_HEIGHT,
20
+ p as FOOTER_HEIGHT,
21
21
  P as drawMavrikFooter
22
22
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@validationcloud/fractal-ui",
3
3
  "private": false,
4
- "version": "1.72.0",
4
+ "version": "1.73.0",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",
7
7
  "files": [