@surfaces-ui/components 0.5.0 → 0.7.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.
- package/NOTICE +50 -0
- package/dist/appComponents.d.ts +9 -0
- package/dist/appComponents.js +105 -1
- package/dist/appComponents.js.map +1 -1
- package/dist/brand/MovingMark.d.ts +15 -0
- package/dist/brand/MovingMark.js +52 -0
- package/dist/brand/MovingMark.js.map +1 -0
- package/dist/brand/SurfacesMark.d.ts +9 -0
- package/dist/brand/SurfacesMark.js +12 -0
- package/dist/brand/SurfacesMark.js.map +1 -0
- package/dist/brand/index.d.ts +3 -0
- package/dist/brand/index.js +3 -0
- package/dist/brand/index.js.map +1 -0
- package/dist/brand/markMotion.d.ts +29 -0
- package/dist/brand/markMotion.js +89 -0
- package/dist/brand/markMotion.js.map +1 -0
- package/dist/chart/Chart.d.ts +8 -4
- package/dist/chart/Chart.js +28 -9
- package/dist/chart/Chart.js.map +1 -1
- package/dist/chart/advice.d.ts +4 -2
- package/dist/chart/advice.js +14 -1
- package/dist/chart/advice.js.map +1 -1
- package/dist/chart/labels.d.ts +23 -0
- package/dist/chart/labels.js +82 -0
- package/dist/chart/labels.js.map +1 -0
- package/dist/chart/option.d.ts +17 -2
- package/dist/chart/option.js +146 -3
- package/dist/chart/option.js.map +1 -1
- package/dist/controls/ItemControls.d.ts +6 -2
- package/dist/controls/ItemControls.js +8 -3
- package/dist/controls/ItemControls.js.map +1 -1
- package/dist/controls/OutlineIcon.d.ts +9 -0
- package/dist/controls/OutlineIcon.js +12 -0
- package/dist/controls/OutlineIcon.js.map +1 -0
- package/dist/feedback/ErrorPage.d.ts +27 -0
- package/dist/feedback/ErrorPage.js +12 -0
- package/dist/feedback/ErrorPage.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/loading/ChartArt.d.ts +8 -0
- package/dist/loading/ChartArt.js +29 -0
- package/dist/loading/ChartArt.js.map +1 -0
- package/dist/loading/DraftCard.d.ts +10 -0
- package/dist/loading/DraftCard.js +38 -0
- package/dist/loading/DraftCard.js.map +1 -0
- package/dist/loading/Loading.d.ts +49 -0
- package/dist/loading/Loading.js +38 -0
- package/dist/loading/Loading.js.map +1 -0
- package/dist/locale/locale.d.ts +1 -0
- package/dist/locale/locale.js +1 -0
- package/dist/locale/locale.js.map +1 -1
- package/dist/result/QueryResult.js +2 -1
- package/dist/result/QueryResult.js.map +1 -1
- package/dist/schema/SchemaExplorer.d.ts +4 -0
- package/dist/schema/SchemaExplorer.js +46 -28
- package/dist/schema/SchemaExplorer.js.map +1 -1
- package/dist/styles.css +812 -67
- package/dist/styles.layer.css +812 -67
- package/dist/text/Markdown.js +21 -8
- package/dist/text/Markdown.js.map +1 -1
- package/dist/workspace/icons.js +2 -1
- package/dist/workspace/icons.js.map +1 -1
- package/package.json +11 -6
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
3
|
+
import { SurfacesMark } from "./SurfacesMark.js";
|
|
4
|
+
import { LOOP, START, TOPS, layerSvg, layersAt } from "./markMotion.js";
|
|
5
|
+
/** Each motion's frame, in the logo's units, with room for where its layers go; the logo lies in the same place in all. */
|
|
6
|
+
const FRAME = { spin: [-46, -92, 92, 138], stack: [-46, -84, 92, 138], fan: [-50, -38, 100, 76], wave: [-38, -46, 76, 84] };
|
|
7
|
+
const STILL = "(prefers-reduced-motion: reduce)";
|
|
8
|
+
/**
|
|
9
|
+
* The Surfaces UI mark in motion, for a product that shows it: hand it to `Loading` or `ErrorPage` as their picture.
|
|
10
|
+
* Decoration beside words, hidden from assistive technology. With `once` it goes through once and comes to rest.
|
|
11
|
+
* Where motion is reduced it is the mark, standing still.
|
|
12
|
+
*/
|
|
13
|
+
export function MovingMark({ motion, size = 132, once = false }) {
|
|
14
|
+
const id = useId().replace(/:/g, "");
|
|
15
|
+
// Still until the browser has said whether motion is wanted, which a server cannot know.
|
|
16
|
+
const [still, setStill] = useState(true);
|
|
17
|
+
const [done, setDone] = useState(false);
|
|
18
|
+
const layers = useRef(null);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const query = globalThis.matchMedia?.(STILL);
|
|
21
|
+
if (!query)
|
|
22
|
+
return;
|
|
23
|
+
const change = () => setStill(query.matches);
|
|
24
|
+
change();
|
|
25
|
+
query.addEventListener("change", change);
|
|
26
|
+
return () => query.removeEventListener("change", change);
|
|
27
|
+
}, []);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (still || done)
|
|
30
|
+
return;
|
|
31
|
+
let frame = 0;
|
|
32
|
+
let last;
|
|
33
|
+
let passed = 0;
|
|
34
|
+
const draw = (now) => {
|
|
35
|
+
// Not more than a tenth of a second at once, so a tab come back to carries on from where it was.
|
|
36
|
+
passed += last === undefined ? 0 : Math.min(0.1, (now - last) / 1000);
|
|
37
|
+
last = now;
|
|
38
|
+
if (once && passed >= LOOP[motion])
|
|
39
|
+
return setDone(true);
|
|
40
|
+
if (layers.current)
|
|
41
|
+
layers.current.innerHTML = layersAt(motion, (START[motion] + passed / LOOP[motion]) % 1).map((l) => layerSvg(l, id)).join("");
|
|
42
|
+
frame = requestAnimationFrame(draw);
|
|
43
|
+
};
|
|
44
|
+
frame = requestAnimationFrame(draw);
|
|
45
|
+
return () => cancelAnimationFrame(frame);
|
|
46
|
+
}, [still, done, once, motion, id]);
|
|
47
|
+
const [x, y, w, h] = FRAME[motion];
|
|
48
|
+
if (still || done)
|
|
49
|
+
return (_jsx("span", { className: "sf-moving-mark", "aria-hidden": "true", style: { inlineSize: size, blockSize: (size * h) / w, paddingBlockStart: ((-37.5 - y) / w) * size, paddingInlineStart: ((-37.5 - x) / w) * size }, children: _jsx(SurfacesMark, { size: (75 / w) * size }) }));
|
|
50
|
+
return (_jsxs("svg", { className: "sf-moving-mark", "data-moving": motion, width: size, height: (size * h) / w, viewBox: `${x} ${y} ${w} ${h}`, fill: "none", "aria-hidden": "true", focusable: "false", children: [_jsx("defs", { children: Object.entries(TOPS).map(([color, [side, middle]]) => (_jsxs("linearGradient", { id: `${id}-${color}`, x1: "0", y1: "0", x2: "1", y2: "0.4", children: [_jsx("stop", { stopColor: side }), _jsx("stop", { offset: "0.5", stopColor: middle }), _jsx("stop", { offset: "1", stopColor: side })] }, color))) }), _jsx("g", { ref: layers })] }));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=MovingMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovingMark.js","sourceRoot":"","sources":["../../src/brand/MovingMark.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAmB,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEzF,2HAA2H;AAC3H,MAAM,KAAK,GAAyD,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAClL,MAAM,KAAK,GAAG,kCAAkC,CAAC;AAWjD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,GAAG,EAAE,IAAI,GAAG,KAAK,EAAmB;IAC9E,MAAM,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O,CACL,eAAK,SAAS,EAAC,gBAAgB,iBAAc,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAC,MAAM,iBAAa,MAAM,EAAC,SAAS,EAAC,OAAO,aACxK,yBACG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CACrD,0BAA4B,EAAE,EAAE,GAAG,EAAE,IAAI,KAAK,EAAE,EAAE,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,KAAK,aAC7E,eAAM,SAAS,EAAE,IAAI,GAAI,EACzB,eAAM,MAAM,EAAC,KAAK,EAAC,SAAS,EAAE,MAAM,GAAI,EACxC,eAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,IAAI,GAAI,KAHjB,KAAK,CAIT,CAClB,CAAC,GACG,EAEP,YAAG,GAAG,EAAE,MAAM,GAAI,IACd,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useEffect, useId, useRef, useState } from \"react\";\nimport { SurfacesMark } from \"./SurfacesMark.js\";\nimport { LOOP, type MarkMotion, START, TOPS, layerSvg, layersAt } from \"./markMotion.js\";\n\n/** Each motion's frame, in the logo's units, with room for where its layers go; the logo lies in the same place in all. */\nconst FRAME: Record<MarkMotion, [number, number, number, number]> = { spin: [-46, -92, 92, 138], stack: [-46, -84, 92, 138], fan: [-50, -38, 100, 76], wave: [-38, -46, 76, 84] };\nconst STILL = \"(prefers-reduced-motion: reduce)\";\n\nexport interface MovingMarkProps {\n /** \"spin\": each layer spins on its point and lands on the last. \"stack\": one lands after another, without end. \"fan\": they slide apart and back. \"wave\": a ripple runs up them. */\n motion: MarkMotion;\n /** Its width in px. Default 132. */\n size?: number;\n /** Goes through once and comes to rest, for a page that stays up. */\n once?: boolean;\n}\n\n/**\n * The Surfaces UI mark in motion, for a product that shows it: hand it to `Loading` or `ErrorPage` as their picture.\n * Decoration beside words, hidden from assistive technology. With `once` it goes through once and comes to rest.\n * Where motion is reduced it is the mark, standing still.\n */\nexport function MovingMark({ motion, size = 132, once = false }: MovingMarkProps) {\n const id = useId().replace(/:/g, \"\");\n // Still until the browser has said whether motion is wanted, which a server cannot know.\n const [still, setStill] = useState(true);\n const [done, setDone] = useState(false);\n const layers = useRef<SVGGElement>(null);\n useEffect(() => {\n const query = globalThis.matchMedia?.(STILL);\n if (!query) return;\n const change = () => setStill(query.matches);\n change();\n query.addEventListener(\"change\", change);\n return () => query.removeEventListener(\"change\", change);\n }, []);\n useEffect(() => {\n if (still || done) return;\n let frame = 0;\n let last: number | undefined;\n let passed = 0;\n const draw = (now: number) => {\n // Not more than a tenth of a second at once, so a tab come back to carries on from where it was.\n passed += last === undefined ? 0 : Math.min(0.1, (now - last) / 1000);\n last = now;\n if (once && passed >= LOOP[motion]) return setDone(true);\n if (layers.current) layers.current.innerHTML = layersAt(motion, (START[motion] + passed / LOOP[motion]) % 1).map((l) => layerSvg(l, id)).join(\"\");\n frame = requestAnimationFrame(draw);\n };\n frame = requestAnimationFrame(draw);\n return () => cancelAnimationFrame(frame);\n }, [still, done, once, motion, id]);\n const [x, y, w, h] = FRAME[motion];\n if (still || done)\n return (\n // In the moving mark's place and at its scale, so coming to rest moves nothing.\n <span className=\"sf-moving-mark\" aria-hidden=\"true\" style={{ inlineSize: size, blockSize: (size * h) / w, paddingBlockStart: ((-37.5 - y) / w) * size, paddingInlineStart: ((-37.5 - x) / w) * size }}>\n <SurfacesMark size={(75 / w) * size} />\n </span>\n );\n return (\n <svg className=\"sf-moving-mark\" data-moving={motion} width={size} height={(size * h) / w} viewBox={`${x} ${y} ${w} ${h}`} fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <defs>\n {Object.entries(TOPS).map(([color, [side, middle]]) => (\n <linearGradient key={color} id={`${id}-${color}`} x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0.4\">\n <stop stopColor={side} />\n <stop offset=\"0.5\" stopColor={middle} />\n <stop offset=\"1\" stopColor={side} />\n </linearGradient>\n ))}\n </defs>\n {/* Drawn by hand on every frame, so a frame costs React nothing. Only numbers and the mark's own colours go in. */}\n <g ref={layers} />\n </svg>\n );\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Surfaces mark: the icon of Surfaces UI's playground (apps/playground/public/favicon.svg), drawn inline so its
|
|
3
|
+
* outlines follow the theme's text colour. Its fills are the mark's own colours. Decoration beside the name, so it
|
|
4
|
+
* is hidden from assistive technology.
|
|
5
|
+
*/
|
|
6
|
+
export declare function SurfacesMark({ size, className }: {
|
|
7
|
+
size?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* The Surfaces mark: the icon of Surfaces UI's playground (apps/playground/public/favicon.svg), drawn inline so its
|
|
5
|
+
* outlines follow the theme's text colour. Its fills are the mark's own colours. Decoration beside the name, so it
|
|
6
|
+
* is hidden from assistive technology.
|
|
7
|
+
*/
|
|
8
|
+
export function SurfacesMark({ size = 24, className }) {
|
|
9
|
+
const id = useId().replace(/:/g, "");
|
|
10
|
+
return (_jsxs("svg", { className: ["sf-mark", className].filter(Boolean).join(" "), width: size, height: size, viewBox: "21.5 5.5 75 75", fill: "none", "aria-hidden": "true", focusable: "false", children: [_jsx("path", { opacity: "0.82", d: "M59.0772 35.6248V38.725", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M59.1935 72.8738L23.2777 54.6679L59.0772 38.7251L95.024 54.7996L59.1935 72.8738Z", stroke: "currentColor", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.69", d: "M59.1393 72.8582L59.147 69.7425L23.2855 51.7458L23.2777 54.6678L59.1393 72.8582Z", fill: `url(#${id}-0)`, stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.78", d: "M59.2012 69.7579L95.0938 51.8232", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsxs("g", { opacity: "0.78", children: [_jsx("path", { d: "M95.0938 51.8232V54.7529L59.1935 72.8736L59.2012 69.7579", fill: `url(#${id}-1)` }), _jsx("path", { d: "M95.0938 51.8232V54.7529L59.1935 72.8736L59.2012 69.7579", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("path", { opacity: "0.78", d: "M95.0938 54.7529L59.1935 72.8736", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.78", d: "M59.2012 69.7579L95.0938 51.8232", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.69", d: "M95.0938 51.8233L59.2013 69.7579L23.2855 51.7458L59.0772 35.6248L95.0938 51.8233Z", fill: `url(#${id}-2)`, stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M93.3964 52.0482C93.4196 52.056 93.4041 51.994 93.3809 51.932C93.4119 51.932 93.3809 51.839 93.3576 51.8235C87.8935 49.3898 82.4139 46.9794 76.9421 44.569C76.8491 44.5303 76.7561 44.4837 76.6631 44.445C76.4616 44.352 76.2523 44.2667 76.0508 44.1737C70.7184 41.8253 65.3861 39.4692 60.0615 37.082C60.0615 37.082 60.0538 37.082 60.046 37.082C60.0383 37.082 60.0305 37.0743 60.0228 37.0665C59.9917 37.051 59.9607 37.0355 59.9297 37.02C59.9142 37.02 59.9142 37.0433 59.9142 37.0743C59.8987 37.0743 59.8832 37.0588 59.8677 37.051C59.8522 37.0433 59.8445 37.0743 59.8522 37.1208C59.8522 37.1208 59.8367 37.1208 59.829 37.113C59.8057 37.0975 59.798 37.1363 59.8135 37.1828C59.8135 37.2448 59.8522 37.361 59.891 37.3765C59.9065 37.3765 59.9142 37.3843 59.9297 37.392C59.9452 37.4153 59.953 37.4385 59.9685 37.4463C71.075 42.3601 82.1892 47.2584 93.2879 52.1877C93.3344 52.211 93.3034 52.1335 93.2956 52.1102C93.3344 52.1257 93.3809 52.149 93.4196 52.1645C93.4739 52.1877 93.4196 52.0715 93.4196 52.0715C93.4196 52.0637 93.4119 52.0482 93.4041 52.0327L93.3964 52.0482Z", fill: "white" }), _jsx("path", { opacity: "0.87", d: "M58.3797 37.1517C58.3797 37.1517 58.3642 37.1517 58.3564 37.1517C58.3874 37.1362 58.4107 37.1284 58.4417 37.1129C58.5037 37.0897 58.3564 37.0587 58.3642 37.0587C58.3409 37.0587 58.3099 37.0432 58.2789 37.0432C58.3177 37.0277 58.3564 37.0121 58.3952 36.9966C58.4339 36.9811 58.3642 36.9579 58.3642 36.9501C58.3332 36.9346 58.2324 36.9191 58.1937 36.9346C58.1704 36.9346 58.1549 36.9501 58.1317 36.9501C58.1162 36.9501 58.1084 36.9501 58.1084 36.9501C57.7597 37.0587 57.4264 37.2369 57.0931 37.3842C55.9305 37.9035 54.7757 38.4305 53.6209 38.9575C49.6836 40.7324 45.7464 42.5073 41.8169 44.2821C39.3755 45.3827 36.9341 46.4988 34.4927 47.6071C32.9503 48.3046 31.4157 49.0022 29.8734 49.692C28.0753 50.5058 26.2771 51.3041 24.4713 52.1024C24.4558 52.1024 24.4635 52.1256 24.479 52.1411C24.4558 52.1489 24.4403 52.1566 24.417 52.1644C24.4093 52.1644 24.417 52.1799 24.4325 52.1954C24.4248 52.1954 24.417 52.1954 24.4093 52.2031C24.386 52.2109 24.4093 52.2419 24.4558 52.2651C24.4635 52.2651 24.4713 52.2806 24.4868 52.2806C24.479 52.2806 24.4635 52.2884 24.4558 52.2961C24.4325 52.3039 24.448 52.3271 24.4713 52.3426C24.4868 52.3736 24.6108 52.4356 24.6495 52.4201C24.6728 52.4124 24.696 52.3969 24.7193 52.3891C24.758 52.4046 24.7968 52.4124 24.8123 52.4046C30.4314 49.8857 36.0273 47.3358 41.6386 44.8091C47.25 42.2747 52.8381 39.7093 58.4649 37.2137C58.5192 37.1904 58.3797 37.1594 58.3952 37.1594L58.3797 37.1517Z", fill: "white" }), _jsx("path", { opacity: "0.88", d: "M94.9775 51.5831C94.652 51.7459 94.3342 51.9086 94.0087 52.0714C93.1329 52.5054 92.2571 52.9472 91.389 53.3812C90.0947 54.0245 88.8081 54.6755 87.5138 55.3188C85.9404 56.1094 84.3671 56.8922 82.786 57.6827C81.0576 58.543 79.337 59.4033 77.6087 60.2714L72.3848 62.8833C70.765 63.6971 69.1374 64.5032 67.5175 65.317C66.1379 66.0068 64.7583 66.6966 63.3788 67.3864C62.3944 67.8824 61.4101 68.3707 60.4258 68.8667C60.0228 69.0682 59.612 69.2697 59.209 69.4712C58.9455 69.3395 58.682 69.2077 58.4184 69.076C57.5581 68.6419 56.6978 68.2079 55.8375 67.7816C54.5664 67.1461 53.2954 66.5028 52.0243 65.8673C50.4742 65.0845 48.9163 64.3094 47.3662 63.5266L42.2742 60.9689C40.5613 60.1086 38.8484 59.2483 37.1356 58.388C35.539 57.5897 33.9424 56.7837 32.3458 55.9854C30.9972 55.3111 29.6486 54.629 28.3 53.9548C27.3312 53.4665 26.3624 52.9782 25.3936 52.4977C24.9363 52.2651 24.479 52.0404 24.0217 51.8079C24.0062 51.8001 23.983 51.7924 23.9675 51.7769C23.7272 51.6606 23.3242 52.0791 23.6342 52.2341C23.952 52.3892 24.262 52.5519 24.5798 52.7069C25.4401 53.1409 26.3004 53.575 27.1607 54.0013C28.4318 54.6368 29.7029 55.2801 30.9739 55.9156C32.524 56.6984 34.0819 57.4735 35.632 58.2563C37.3293 59.1088 39.0267 59.9614 40.7241 60.8139C42.4369 61.6742 44.1498 62.5345 45.8626 63.3949C47.4592 64.1932 49.0558 64.9992 50.6524 65.7975C52.001 66.4718 53.3496 67.1538 54.6982 67.8281C55.667 68.3164 56.6358 68.8047 57.6046 69.2852C58.0542 69.51 58.5114 69.7425 58.961 69.9673V72.8892C58.961 73.021 59.0695 73.1295 59.2012 73.1295C59.333 73.1295 59.4415 73.021 59.4415 72.8892V69.9518C59.7593 69.789 60.0848 69.634 60.4026 69.4712C61.2784 69.0372 62.1542 68.5954 63.0222 68.1614C64.3166 67.5181 65.6031 66.8671 66.8975 66.2238C68.4708 65.4332 70.0442 64.6504 71.6253 63.8599C73.3536 62.9996 75.0742 62.1393 76.8026 61.2712L82.0264 58.6593C83.6463 57.8455 85.2739 57.0394 86.8938 56.2256C88.2733 55.5359 89.6529 54.8461 91.0325 54.1563C92.0168 53.6602 93.0011 53.1719 93.9855 52.6759L95.3805 51.9784C95.3805 51.9784 95.4193 51.9551 95.4425 51.9474C95.6131 51.8621 95.1558 51.4901 94.9853 51.5753L94.9775 51.5831Z", fill: "white" }), _jsx("path", { opacity: "0.14", d: "M94.404 47.5605L58.5037 65.4952L22.5879 47.4753L58.3874 31.3542L94.404 47.5605Z", fill: "#158052" }), _jsx("path", { opacity: "0.82", d: "M58.3951 24.2317L58.3874 27.3319", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M58.5114 61.4805L22.5956 43.2746L58.3874 27.3318L94.342 43.4063L58.5114 61.4805Z", stroke: "currentColor", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.69", d: "M58.4572 61.4651V58.3494L22.5956 40.345V43.2747L58.4572 61.4651Z", fill: `url(#${id}-3)`, stroke: "#602B56", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.78", d: "M58.5114 58.3648L94.4117 40.4302", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsxs("g", { opacity: "0.78", children: [_jsx("path", { d: "M94.4117 40.4302L94.404 43.3599L58.5114 61.4805V58.3648", fill: `url(#${id}-4)` }), _jsx("path", { d: "M94.4117 40.4302L94.404 43.3599L58.5114 61.4805V58.3648", stroke: "#602B56", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("path", { opacity: "0.78", d: "M94.404 43.3599L58.5114 61.4805", stroke: "#602B56", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.78", d: "M58.5114 58.3648L94.4117 40.4302", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.69", d: "M94.4117 40.4302L58.5114 58.3649L22.5956 40.345L58.3952 24.2317L94.4117 40.4302Z", fill: `url(#${id}-5)`, stroke: "#602B56", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.58", d: "M92.7066 40.6549C92.7298 40.6627 92.7143 40.6007 92.6911 40.5387C92.7221 40.5387 92.6911 40.4457 92.6678 40.4302C87.2037 37.9965 81.7241 35.5861 76.2523 33.1757C76.1593 33.1369 76.0662 33.0904 75.9732 33.0517C75.7717 32.9587 75.5625 32.8734 75.3609 32.7804C70.0286 30.432 64.6963 28.0759 59.3717 25.6887C59.3717 25.6887 59.3639 25.6887 59.3562 25.6887C59.3484 25.6887 59.3407 25.681 59.3329 25.6732C59.3019 25.6577 59.2709 25.6422 59.2399 25.6267C59.2244 25.6267 59.2244 25.65 59.2244 25.681C59.2089 25.681 59.1934 25.6655 59.1779 25.6577C59.1624 25.65 59.1547 25.681 59.1624 25.7275C59.1624 25.7275 59.1469 25.7275 59.1392 25.7197C59.1159 25.7042 59.1082 25.743 59.1237 25.7895C59.1237 25.8515 59.1624 25.9677 59.2012 25.9832C59.2167 25.9832 59.2244 25.991 59.2399 25.9987C59.2554 26.022 59.2632 26.0452 59.2787 26.053C70.3851 30.9668 81.4993 35.8651 92.5981 40.7944C92.6446 40.8177 92.6135 40.7402 92.6058 40.7169C92.6445 40.7324 92.6911 40.7557 92.7298 40.7712C92.7841 40.7944 92.7298 40.6782 92.7298 40.6782C92.7298 40.6704 92.7221 40.6549 92.7143 40.6394L92.7066 40.6549Z", fill: "white" }), _jsx("path", { opacity: "0.31", d: "M57.6976 25.7505C57.6976 25.7505 57.6821 25.7505 57.6744 25.7505C57.7054 25.735 57.7286 25.7273 57.7596 25.7118C57.8216 25.6885 57.6744 25.6575 57.6821 25.6575C57.6589 25.6575 57.6279 25.642 57.5969 25.642C57.6356 25.6265 57.6744 25.611 57.7131 25.5955C57.7519 25.58 57.6821 25.5568 57.6821 25.549C57.6511 25.5335 57.5504 25.518 57.5116 25.5335C57.4884 25.5335 57.4729 25.549 57.4496 25.549C57.4341 25.549 57.4264 25.549 57.4264 25.549C57.0776 25.6575 56.7443 25.8358 56.411 25.983C55.2485 26.5023 54.0936 27.0294 52.9388 27.5564C49.0016 29.3313 45.0643 31.1061 41.1348 32.881C38.6934 33.9816 36.252 35.0976 33.8106 36.206C32.2682 36.9035 30.7337 37.601 29.1913 38.2908C27.3932 39.1046 25.5951 39.9029 23.7892 40.7012C23.7737 40.7012 23.7815 40.7245 23.797 40.74C23.7737 40.7477 23.7582 40.7555 23.735 40.7632C23.7272 40.7632 23.735 40.7787 23.7505 40.7942C23.7427 40.7942 23.735 40.7942 23.7272 40.802C23.7039 40.8097 23.7272 40.8407 23.7737 40.864C23.7815 40.864 23.7892 40.8795 23.8047 40.8795C23.797 40.8795 23.7815 40.8872 23.7737 40.895C23.7505 40.9027 23.766 40.926 23.7892 40.9415C23.8047 40.9725 23.9287 41.0345 23.9675 41.019C23.9907 41.0113 24.014 40.9958 24.0372 40.988C24.076 41.0035 24.1147 41.0113 24.1302 41.0035C29.7493 38.4846 35.3452 35.9347 40.9566 33.408C46.5679 30.8736 52.156 28.3082 57.7829 25.8125C57.8371 25.7893 57.6976 25.7583 57.7131 25.7583L57.6976 25.7505Z", fill: "white" }), _jsx("path", { opacity: "0.55", d: "M94.2955 40.1822C93.9699 40.345 93.6522 40.5077 93.3266 40.6705C92.4508 41.1045 91.575 41.5463 90.707 41.9803C89.4126 42.6236 88.1261 43.2747 86.8317 43.918C85.2584 44.7085 83.685 45.4913 82.1039 46.2819C80.3756 47.1422 78.655 48.0025 76.9266 48.8705L71.7028 51.4824C70.0829 52.2962 68.4553 53.1023 66.8354 53.9161C65.4559 54.6059 64.0763 55.2957 62.6967 55.9855C61.7124 56.4815 60.7281 56.9698 59.7437 57.4658C59.3407 57.6673 58.9299 57.8689 58.5269 58.0704C58.2634 57.9386 57.9999 57.8068 57.7364 57.6751C56.8761 57.2411 56.0158 56.807 55.1555 56.3808C53.8844 55.7452 52.6133 55.1019 51.3422 54.4664C49.7921 53.6836 48.2343 52.9085 46.6842 52.1257L41.5921 49.5681C39.8792 48.7078 38.1664 47.8475 36.4535 46.9872C34.8569 46.1889 33.2603 45.3828 31.6637 44.5845C30.3151 43.9102 28.9665 43.2282 27.6179 42.5539C26.6491 42.0656 25.6803 41.5773 24.7115 41.0968C24.2542 40.8643 23.7969 40.6395 23.3397 40.407C23.3242 40.3992 23.3009 40.3915 23.2854 40.376C23.0452 40.2597 22.6421 40.6783 22.9521 40.8333C23.2699 40.9883 23.5799 41.151 23.8977 41.306C24.758 41.7401 25.6183 42.1741 26.4786 42.6004C27.7497 43.2359 29.0208 43.8792 30.2919 44.5148L34.9499 46.8554C36.6473 47.708 38.3446 48.5605 40.042 49.4131C41.7548 50.2734 43.4677 51.1337 45.1806 51.994C46.7772 52.7923 48.3738 53.5983 49.9704 54.3966C51.319 55.0709 52.6675 55.753 54.0161 56.4273C54.9849 56.9155 55.9538 57.4038 56.9226 57.8844C57.3721 58.1091 57.8294 58.3416 58.2789 58.5664V61.4883C58.2789 61.6201 58.3874 61.7286 58.5192 61.7286C58.6509 61.7286 58.7594 61.6201 58.7594 61.4883V58.5509C59.0772 58.3881 59.4027 58.2331 59.7205 58.0704C60.5963 57.6363 61.4721 57.1946 62.3402 56.7605C63.6345 56.1172 64.9211 55.4662 66.2154 54.8229C67.7888 54.0324 69.3621 53.2496 70.9432 52.459C72.6716 51.5987 74.3922 50.7384 76.1205 49.8703L81.3444 47.2584C82.9642 46.4446 84.5918 45.6386 86.2117 44.8248C87.5913 44.135 88.9709 43.4452 90.3505 42.7554C91.3348 42.2594 92.3191 41.7711 93.3034 41.275L94.6985 40.5775C94.6985 40.5775 94.7372 40.5542 94.7605 40.5465C94.931 40.4612 94.4737 40.0892 94.3032 40.1745L94.2955 40.1822Z", fill: "white" }), _jsx("path", { opacity: "0.82", d: "M58.403 12.8306V15.9385", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M58.5192 50.0874L22.6034 31.8815L58.4029 15.9387L94.3497 32.0132L58.5192 50.0874Z", stroke: "currentColor", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.69", d: "M58.4649 50.064L58.4727 46.9561L22.6034 28.9517V31.8813L58.4649 50.064Z", fill: "#6D95D2", stroke: "#396991", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.78", d: "M58.5192 46.9715L94.4195 29.0369", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsxs("g", { opacity: "0.78", children: [_jsx("path", { d: "M94.4195 29.0369V31.9666L58.5192 50.0872V46.9715", fill: `url(#${id}-6)` }), _jsx("path", { d: "M94.4195 29.0369V31.9666L58.5192 50.0872V46.9715", stroke: "#602B56", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("path", { opacity: "0.78", d: "M94.4195 31.9666L58.5192 50.0872", stroke: "#396991", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.78", d: "M58.5192 46.9715L94.4195 29.0369", stroke: "#158052", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.77", d: "M94.4195 29.0369L58.5192 46.9715L22.6034 28.9516L58.4029 12.8306L94.4195 29.0369Z", fill: "#3A9DEF", stroke: "#396991", strokeWidth: "0.488281", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { opacity: "0.58", d: "M92.7221 29.2619C92.7454 29.2696 92.7299 29.2076 92.7066 29.1456C92.7376 29.1456 92.7066 29.0526 92.6834 29.0371C87.2193 26.6034 81.7397 24.193 76.2678 21.7826C76.1748 21.7439 76.0818 21.6974 75.9888 21.6586C75.7873 21.5656 75.578 21.4804 75.3765 21.3873C70.0442 19.0389 64.7118 16.6828 59.3872 14.2956C59.3872 14.2956 59.3795 14.2956 59.3717 14.2956C59.364 14.2956 59.3562 14.2879 59.3485 14.2801C59.3175 14.2646 59.2865 14.2491 59.2555 14.2336C59.24 14.2336 59.24 14.2569 59.24 14.2879C59.2245 14.2879 59.209 14.2724 59.1935 14.2646C59.178 14.2569 59.1702 14.2879 59.178 14.3344C59.178 14.3344 59.1625 14.3344 59.1547 14.3266C59.1315 14.3111 59.1237 14.3499 59.1392 14.3964C59.1392 14.4584 59.178 14.5747 59.2167 14.5902C59.2322 14.5902 59.24 14.5979 59.2555 14.6057C59.271 14.6289 59.2787 14.6522 59.2942 14.6599C70.4007 19.5737 81.5149 24.472 92.6136 29.4014C92.6601 29.4246 92.6291 29.3471 92.6214 29.3239C92.6601 29.3394 92.7066 29.3626 92.7454 29.3781C92.7996 29.4014 92.7454 29.2851 92.7454 29.2851C92.7454 29.2774 92.7376 29.2619 92.7299 29.2464L92.7221 29.2619Z", fill: "white" }), _jsx("path", { opacity: "0.31", d: "M57.7054 14.3575C57.7054 14.3575 57.6899 14.3575 57.6821 14.3575C57.7131 14.342 57.7364 14.3342 57.7674 14.3187C57.8294 14.2955 57.6821 14.2645 57.6899 14.2645C57.6666 14.2645 57.6356 14.249 57.6046 14.249C57.6434 14.2335 57.6821 14.218 57.7209 14.2025C57.7596 14.187 57.6899 14.1637 57.6899 14.156C57.6589 14.1405 57.5581 14.125 57.5194 14.1405C57.4961 14.1405 57.4806 14.156 57.4573 14.156C57.4418 14.156 57.4341 14.156 57.4341 14.156C57.0853 14.2645 56.7521 14.4427 56.4188 14.59C55.2562 15.1093 54.1014 15.6363 52.9466 16.1633C49.0093 17.9382 45.0721 19.7131 41.1426 21.4879C38.7012 22.5885 36.2597 23.7046 33.8183 24.8129C32.276 25.5104 30.7414 26.208 29.199 26.8978C27.4009 27.7116 25.6028 28.5099 23.797 29.3082C23.7815 29.3082 23.7892 29.3314 23.8047 29.3469C23.7815 29.3547 23.7659 29.3624 23.7427 29.3702C23.7349 29.3702 23.7427 29.3857 23.7582 29.4012C23.7505 29.4012 23.7427 29.4012 23.735 29.4089C23.7117 29.4167 23.735 29.4477 23.7815 29.4709C23.7892 29.4709 23.797 29.4864 23.8125 29.4864C23.8047 29.4864 23.7892 29.4942 23.7815 29.5019C23.7582 29.5097 23.7737 29.5329 23.797 29.5484C23.8125 29.5794 23.9365 29.6414 23.9752 29.6259C23.9985 29.6182 24.0217 29.6027 24.045 29.5949C24.0837 29.6104 24.1225 29.6182 24.138 29.6104C29.7571 27.0915 35.3529 24.5416 40.9643 22.015C46.5757 19.4805 52.1638 16.9151 57.7906 14.4195C57.8449 14.3962 57.7054 14.3652 57.7209 14.3652L57.7054 14.3575Z", fill: "white" }), _jsx("path", { opacity: "0.66", d: "M94.3032 28.7889C93.9777 28.9517 93.6599 29.1144 93.3344 29.2772C92.4586 29.7112 91.5828 30.153 90.7147 30.587C89.4204 31.2303 88.1338 31.8814 86.8395 32.5247C85.2661 33.3152 83.6928 34.098 82.1117 34.8886C80.3833 35.7489 78.6627 36.6092 76.9343 37.4772L71.7105 40.0891C70.0907 40.9029 68.4631 41.709 66.8432 42.5228C65.4636 43.2126 64.084 43.9024 62.7044 44.5922C61.7201 45.0882 60.7358 45.5765 59.7515 46.0725C59.3485 46.274 58.9377 46.4755 58.5347 46.677C58.2712 46.5453 58.0076 46.4135 57.7441 46.2818C56.8838 45.8478 56.0235 45.4137 55.1632 44.9874C53.8921 44.3519 52.621 43.7086 51.35 43.0731C49.7999 42.2903 48.242 41.5152 46.6919 40.7324L41.5998 38.1748C39.887 37.3145 38.1741 36.4542 36.4613 35.5938C34.8647 34.7955 33.2681 33.9895 31.6715 33.1912C30.3229 32.5169 28.9743 31.8349 27.6257 31.1606C26.6569 30.6723 25.6881 30.184 24.7193 29.7035C24.262 29.471 23.8047 29.2462 23.3474 29.0137C23.3319 29.0059 23.3087 28.9982 23.2932 28.9827C23.0529 28.8664 22.6499 29.2849 22.9599 29.44C23.2777 29.595 23.5877 29.7577 23.9055 29.9127C24.7658 30.3468 25.6261 30.7808 26.4864 31.2071C27.7574 31.8426 29.0285 32.4859 30.2996 33.1214L34.9577 35.4621C36.655 36.3146 38.3524 37.1672 40.0497 38.0197C41.7626 38.8801 43.4755 39.7404 45.1883 40.6007C46.7849 41.399 48.3815 42.205 49.9781 43.0033C51.3267 43.6776 52.6753 44.3597 54.0239 45.0339C54.9927 45.5222 55.9615 46.0105 56.9303 46.491C57.3798 46.7158 57.8371 46.9483 58.2866 47.1731V50.095C58.2866 50.2268 58.3952 50.3353 58.5269 50.3353C58.6587 50.3353 58.7672 50.2268 58.7672 50.095V47.1576C59.085 46.9948 59.4105 46.8398 59.7282 46.677C60.604 46.243 61.4799 45.8012 62.3479 45.3672C63.6422 44.7239 64.9288 44.0729 66.2232 43.4296C67.7965 42.639 69.3699 41.8562 70.951 41.0657C72.6793 40.2054 74.3999 39.3451 76.1283 38.477L81.3521 35.8651C82.972 35.0513 84.5996 34.2453 86.2194 33.4315C87.599 32.7417 88.9786 32.0519 90.3582 31.3621C91.3425 30.866 92.3268 30.3778 93.3111 29.8817L94.7062 29.1842C94.7062 29.1842 94.745 29.1609 94.7682 29.1532C94.9387 29.0679 94.4815 28.6959 94.311 28.7812L94.3032 28.7889Z", fill: "white" }), _jsxs("defs", { children: [_jsxs("linearGradient", { id: `${id}-0`, x1: "23.6606", y1: "54.0234", x2: "72.1433", y2: "76.8832", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0.3", stopColor: "#6FBB95", stopOpacity: "0.82" }), _jsx("stop", { offset: "1", stopColor: "#A3EC97", stopOpacity: "0.82" })] }), _jsxs("linearGradient", { id: `${id}-1`, x1: "54.2895", y1: "72.9612", x2: "86.8315", y2: "57.8529", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0.05", stopColor: "#AAF397" }), _jsx("stop", { offset: "0.14", stopColor: "#9EE796", stopOpacity: "0.96" }), _jsx("stop", { offset: "0.33", stopColor: "#89D495", stopOpacity: "0.9" }), _jsx("stop", { offset: "0.51", stopColor: "#7AC695", stopOpacity: "0.86" }), _jsx("stop", { offset: "0.69", stopColor: "#72BD95", stopOpacity: "0.83" }), _jsx("stop", { offset: "0.84", stopColor: "#6FBB95", stopOpacity: "0.82" })] }), _jsxs("linearGradient", { id: `${id}-2`, x1: "64.9674", y1: "40.1085", x2: "48.0104", y2: "74.3586", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0.08", stopColor: "#AAF397" }), _jsx("stop", { offset: "0.23", stopColor: "#8AD595", stopOpacity: "0.9" }), _jsx("stop", { offset: "0.34", stopColor: "#76C295", stopOpacity: "0.84" }), _jsx("stop", { offset: "0.4", stopColor: "#6FBB95", stopOpacity: "0.82" }), _jsx("stop", { offset: "0.74", stopColor: "#AAF397", stopOpacity: "0.82" }), _jsx("stop", { offset: "1", stopColor: "#99CC66", stopOpacity: "0.82" })] }), _jsxs("linearGradient", { id: `${id}-3`, x1: "22.973", y1: "42.6297", x2: "71.4556", y2: "65.4894", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0.3", stopColor: "#602B56", stopOpacity: "0.82" }), _jsx("stop", { offset: "1", stopColor: "#B14F9D", stopOpacity: "0.82" })] }), _jsxs("linearGradient", { id: `${id}-4`, x1: "53.6019", y1: "61.5676", x2: "86.1439", y2: "46.4515", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0.05", stopColor: "#B14F9D" }), _jsx("stop", { offset: "0.18", stopColor: "#9B4589", stopOpacity: "0.95" }), _jsx("stop", { offset: "0.36", stopColor: "#813973", stopOpacity: "0.89" }), _jsx("stop", { offset: "0.53", stopColor: "#6E3163", stopOpacity: "0.85" }), _jsx("stop", { offset: "0.69", stopColor: "#632C59", stopOpacity: "0.83" }), _jsx("stop", { offset: "0.84", stopColor: "#602B56", stopOpacity: "0.82" })] }), _jsxs("linearGradient", { id: `${id}-5`, x1: "32.1604", y1: "39.1422", x2: "106.94", y2: "45.2606", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { stopColor: "#B14F9D" }), _jsx("stop", { offset: "0.54", stopColor: "#6B3463" }), _jsx("stop", { offset: "0.96", stopColor: "#B14F9D" })] }), _jsxs("linearGradient", { id: `${id}-6`, x1: "53.6118", y1: "50.1742", x2: "86.1539", y2: "35.0582", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0.05", stopColor: "#6D95D2" }), _jsx("stop", { offset: "0.07", stopColor: "#6B94D0", stopOpacity: "0.99" }), _jsx("stop", { offset: "0.28", stopColor: "#5E8ABD", stopOpacity: "0.92" }), _jsx("stop", { offset: "0.48", stopColor: "#5583AF", stopOpacity: "0.86" }), _jsx("stop", { offset: "0.67", stopColor: "#4F7FA7", stopOpacity: "0.83" }), _jsx("stop", { offset: "0.84", stopColor: "#4E7EA5", stopOpacity: "0.82" })] })] })] }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=SurfacesMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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AAC,SAAS,EAAC,SAAS,GAAE,IACxB,EACjB,0BAAgB,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,aAAa,EAAC,gBAAgB,aACjH,eAAM,MAAM,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,GAAE,EACzC,eAAM,MAAM,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,MAAM,GAAE,EAC5D,eAAM,MAAM,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,MAAM,GAAE,EAC5D,eAAM,MAAM,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,MAAM,GAAE,EAC5D,eAAM,MAAM,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,MAAM,GAAE,EAC5D,eAAM,MAAM,EAAC,MAAM,EAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,MAAM,GAAE,IAC3C,IACV,IACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { useId } from \"react\";\n\n/**\n * The Surfaces mark: the icon of Surfaces UI's playground (apps/playground/public/favicon.svg), drawn inline so its\n * outlines follow the theme's text colour. Its fills are the mark's own colours. Decoration beside the name, so it\n * is hidden from assistive technology.\n */\nexport function SurfacesMark({ size = 24, className }: { size?: number; className?: string }) {\n const id = useId().replace(/:/g, \"\");\n return (\n <svg className={[\"sf-mark\", className].filter(Boolean).join(\" \")} width={size} height={size} viewBox=\"21.5 5.5 75 75\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path opacity=\"0.82\" d=\"M59.0772 35.6248V38.725\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M59.1935 72.8738L23.2777 54.6679L59.0772 38.7251L95.024 54.7996L59.1935 72.8738Z\" stroke=\"currentColor\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.69\" d=\"M59.1393 72.8582L59.147 69.7425L23.2855 51.7458L23.2777 54.6678L59.1393 72.8582Z\" fill={`url(#${id}-0)`} stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.78\" d=\"M59.2012 69.7579L95.0938 51.8232\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <g opacity=\"0.78\">\n <path d=\"M95.0938 51.8232V54.7529L59.1935 72.8736L59.2012 69.7579\" fill={`url(#${id}-1)`}/>\n <path d=\"M95.0938 51.8232V54.7529L59.1935 72.8736L59.2012 69.7579\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </g>\n <path opacity=\"0.78\" d=\"M95.0938 54.7529L59.1935 72.8736\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.78\" d=\"M59.2012 69.7579L95.0938 51.8232\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.69\" d=\"M95.0938 51.8233L59.2013 69.7579L23.2855 51.7458L59.0772 35.6248L95.0938 51.8233Z\" fill={`url(#${id}-2)`} stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M93.3964 52.0482C93.4196 52.056 93.4041 51.994 93.3809 51.932C93.4119 51.932 93.3809 51.839 93.3576 51.8235C87.8935 49.3898 82.4139 46.9794 76.9421 44.569C76.8491 44.5303 76.7561 44.4837 76.6631 44.445C76.4616 44.352 76.2523 44.2667 76.0508 44.1737C70.7184 41.8253 65.3861 39.4692 60.0615 37.082C60.0615 37.082 60.0538 37.082 60.046 37.082C60.0383 37.082 60.0305 37.0743 60.0228 37.0665C59.9917 37.051 59.9607 37.0355 59.9297 37.02C59.9142 37.02 59.9142 37.0433 59.9142 37.0743C59.8987 37.0743 59.8832 37.0588 59.8677 37.051C59.8522 37.0433 59.8445 37.0743 59.8522 37.1208C59.8522 37.1208 59.8367 37.1208 59.829 37.113C59.8057 37.0975 59.798 37.1363 59.8135 37.1828C59.8135 37.2448 59.8522 37.361 59.891 37.3765C59.9065 37.3765 59.9142 37.3843 59.9297 37.392C59.9452 37.4153 59.953 37.4385 59.9685 37.4463C71.075 42.3601 82.1892 47.2584 93.2879 52.1877C93.3344 52.211 93.3034 52.1335 93.2956 52.1102C93.3344 52.1257 93.3809 52.149 93.4196 52.1645C93.4739 52.1877 93.4196 52.0715 93.4196 52.0715C93.4196 52.0637 93.4119 52.0482 93.4041 52.0327L93.3964 52.0482Z\" fill=\"white\"/>\n <path opacity=\"0.87\" d=\"M58.3797 37.1517C58.3797 37.1517 58.3642 37.1517 58.3564 37.1517C58.3874 37.1362 58.4107 37.1284 58.4417 37.1129C58.5037 37.0897 58.3564 37.0587 58.3642 37.0587C58.3409 37.0587 58.3099 37.0432 58.2789 37.0432C58.3177 37.0277 58.3564 37.0121 58.3952 36.9966C58.4339 36.9811 58.3642 36.9579 58.3642 36.9501C58.3332 36.9346 58.2324 36.9191 58.1937 36.9346C58.1704 36.9346 58.1549 36.9501 58.1317 36.9501C58.1162 36.9501 58.1084 36.9501 58.1084 36.9501C57.7597 37.0587 57.4264 37.2369 57.0931 37.3842C55.9305 37.9035 54.7757 38.4305 53.6209 38.9575C49.6836 40.7324 45.7464 42.5073 41.8169 44.2821C39.3755 45.3827 36.9341 46.4988 34.4927 47.6071C32.9503 48.3046 31.4157 49.0022 29.8734 49.692C28.0753 50.5058 26.2771 51.3041 24.4713 52.1024C24.4558 52.1024 24.4635 52.1256 24.479 52.1411C24.4558 52.1489 24.4403 52.1566 24.417 52.1644C24.4093 52.1644 24.417 52.1799 24.4325 52.1954C24.4248 52.1954 24.417 52.1954 24.4093 52.2031C24.386 52.2109 24.4093 52.2419 24.4558 52.2651C24.4635 52.2651 24.4713 52.2806 24.4868 52.2806C24.479 52.2806 24.4635 52.2884 24.4558 52.2961C24.4325 52.3039 24.448 52.3271 24.4713 52.3426C24.4868 52.3736 24.6108 52.4356 24.6495 52.4201C24.6728 52.4124 24.696 52.3969 24.7193 52.3891C24.758 52.4046 24.7968 52.4124 24.8123 52.4046C30.4314 49.8857 36.0273 47.3358 41.6386 44.8091C47.25 42.2747 52.8381 39.7093 58.4649 37.2137C58.5192 37.1904 58.3797 37.1594 58.3952 37.1594L58.3797 37.1517Z\" fill=\"white\"/>\n <path opacity=\"0.88\" d=\"M94.9775 51.5831C94.652 51.7459 94.3342 51.9086 94.0087 52.0714C93.1329 52.5054 92.2571 52.9472 91.389 53.3812C90.0947 54.0245 88.8081 54.6755 87.5138 55.3188C85.9404 56.1094 84.3671 56.8922 82.786 57.6827C81.0576 58.543 79.337 59.4033 77.6087 60.2714L72.3848 62.8833C70.765 63.6971 69.1374 64.5032 67.5175 65.317C66.1379 66.0068 64.7583 66.6966 63.3788 67.3864C62.3944 67.8824 61.4101 68.3707 60.4258 68.8667C60.0228 69.0682 59.612 69.2697 59.209 69.4712C58.9455 69.3395 58.682 69.2077 58.4184 69.076C57.5581 68.6419 56.6978 68.2079 55.8375 67.7816C54.5664 67.1461 53.2954 66.5028 52.0243 65.8673C50.4742 65.0845 48.9163 64.3094 47.3662 63.5266L42.2742 60.9689C40.5613 60.1086 38.8484 59.2483 37.1356 58.388C35.539 57.5897 33.9424 56.7837 32.3458 55.9854C30.9972 55.3111 29.6486 54.629 28.3 53.9548C27.3312 53.4665 26.3624 52.9782 25.3936 52.4977C24.9363 52.2651 24.479 52.0404 24.0217 51.8079C24.0062 51.8001 23.983 51.7924 23.9675 51.7769C23.7272 51.6606 23.3242 52.0791 23.6342 52.2341C23.952 52.3892 24.262 52.5519 24.5798 52.7069C25.4401 53.1409 26.3004 53.575 27.1607 54.0013C28.4318 54.6368 29.7029 55.2801 30.9739 55.9156C32.524 56.6984 34.0819 57.4735 35.632 58.2563C37.3293 59.1088 39.0267 59.9614 40.7241 60.8139C42.4369 61.6742 44.1498 62.5345 45.8626 63.3949C47.4592 64.1932 49.0558 64.9992 50.6524 65.7975C52.001 66.4718 53.3496 67.1538 54.6982 67.8281C55.667 68.3164 56.6358 68.8047 57.6046 69.2852C58.0542 69.51 58.5114 69.7425 58.961 69.9673V72.8892C58.961 73.021 59.0695 73.1295 59.2012 73.1295C59.333 73.1295 59.4415 73.021 59.4415 72.8892V69.9518C59.7593 69.789 60.0848 69.634 60.4026 69.4712C61.2784 69.0372 62.1542 68.5954 63.0222 68.1614C64.3166 67.5181 65.6031 66.8671 66.8975 66.2238C68.4708 65.4332 70.0442 64.6504 71.6253 63.8599C73.3536 62.9996 75.0742 62.1393 76.8026 61.2712L82.0264 58.6593C83.6463 57.8455 85.2739 57.0394 86.8938 56.2256C88.2733 55.5359 89.6529 54.8461 91.0325 54.1563C92.0168 53.6602 93.0011 53.1719 93.9855 52.6759L95.3805 51.9784C95.3805 51.9784 95.4193 51.9551 95.4425 51.9474C95.6131 51.8621 95.1558 51.4901 94.9853 51.5753L94.9775 51.5831Z\" fill=\"white\"/>\n <path opacity=\"0.14\" d=\"M94.404 47.5605L58.5037 65.4952L22.5879 47.4753L58.3874 31.3542L94.404 47.5605Z\" fill=\"#158052\"/>\n <path opacity=\"0.82\" d=\"M58.3951 24.2317L58.3874 27.3319\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M58.5114 61.4805L22.5956 43.2746L58.3874 27.3318L94.342 43.4063L58.5114 61.4805Z\" stroke=\"currentColor\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.69\" d=\"M58.4572 61.4651V58.3494L22.5956 40.345V43.2747L58.4572 61.4651Z\" fill={`url(#${id}-3)`} stroke=\"#602B56\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.78\" d=\"M58.5114 58.3648L94.4117 40.4302\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <g opacity=\"0.78\">\n <path d=\"M94.4117 40.4302L94.404 43.3599L58.5114 61.4805V58.3648\" fill={`url(#${id}-4)`}/>\n <path d=\"M94.4117 40.4302L94.404 43.3599L58.5114 61.4805V58.3648\" stroke=\"#602B56\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </g>\n <path opacity=\"0.78\" d=\"M94.404 43.3599L58.5114 61.4805\" stroke=\"#602B56\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.78\" d=\"M58.5114 58.3648L94.4117 40.4302\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.69\" d=\"M94.4117 40.4302L58.5114 58.3649L22.5956 40.345L58.3952 24.2317L94.4117 40.4302Z\" fill={`url(#${id}-5)`} stroke=\"#602B56\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.58\" d=\"M92.7066 40.6549C92.7298 40.6627 92.7143 40.6007 92.6911 40.5387C92.7221 40.5387 92.6911 40.4457 92.6678 40.4302C87.2037 37.9965 81.7241 35.5861 76.2523 33.1757C76.1593 33.1369 76.0662 33.0904 75.9732 33.0517C75.7717 32.9587 75.5625 32.8734 75.3609 32.7804C70.0286 30.432 64.6963 28.0759 59.3717 25.6887C59.3717 25.6887 59.3639 25.6887 59.3562 25.6887C59.3484 25.6887 59.3407 25.681 59.3329 25.6732C59.3019 25.6577 59.2709 25.6422 59.2399 25.6267C59.2244 25.6267 59.2244 25.65 59.2244 25.681C59.2089 25.681 59.1934 25.6655 59.1779 25.6577C59.1624 25.65 59.1547 25.681 59.1624 25.7275C59.1624 25.7275 59.1469 25.7275 59.1392 25.7197C59.1159 25.7042 59.1082 25.743 59.1237 25.7895C59.1237 25.8515 59.1624 25.9677 59.2012 25.9832C59.2167 25.9832 59.2244 25.991 59.2399 25.9987C59.2554 26.022 59.2632 26.0452 59.2787 26.053C70.3851 30.9668 81.4993 35.8651 92.5981 40.7944C92.6446 40.8177 92.6135 40.7402 92.6058 40.7169C92.6445 40.7324 92.6911 40.7557 92.7298 40.7712C92.7841 40.7944 92.7298 40.6782 92.7298 40.6782C92.7298 40.6704 92.7221 40.6549 92.7143 40.6394L92.7066 40.6549Z\" fill=\"white\"/>\n <path opacity=\"0.31\" d=\"M57.6976 25.7505C57.6976 25.7505 57.6821 25.7505 57.6744 25.7505C57.7054 25.735 57.7286 25.7273 57.7596 25.7118C57.8216 25.6885 57.6744 25.6575 57.6821 25.6575C57.6589 25.6575 57.6279 25.642 57.5969 25.642C57.6356 25.6265 57.6744 25.611 57.7131 25.5955C57.7519 25.58 57.6821 25.5568 57.6821 25.549C57.6511 25.5335 57.5504 25.518 57.5116 25.5335C57.4884 25.5335 57.4729 25.549 57.4496 25.549C57.4341 25.549 57.4264 25.549 57.4264 25.549C57.0776 25.6575 56.7443 25.8358 56.411 25.983C55.2485 26.5023 54.0936 27.0294 52.9388 27.5564C49.0016 29.3313 45.0643 31.1061 41.1348 32.881C38.6934 33.9816 36.252 35.0976 33.8106 36.206C32.2682 36.9035 30.7337 37.601 29.1913 38.2908C27.3932 39.1046 25.5951 39.9029 23.7892 40.7012C23.7737 40.7012 23.7815 40.7245 23.797 40.74C23.7737 40.7477 23.7582 40.7555 23.735 40.7632C23.7272 40.7632 23.735 40.7787 23.7505 40.7942C23.7427 40.7942 23.735 40.7942 23.7272 40.802C23.7039 40.8097 23.7272 40.8407 23.7737 40.864C23.7815 40.864 23.7892 40.8795 23.8047 40.8795C23.797 40.8795 23.7815 40.8872 23.7737 40.895C23.7505 40.9027 23.766 40.926 23.7892 40.9415C23.8047 40.9725 23.9287 41.0345 23.9675 41.019C23.9907 41.0113 24.014 40.9958 24.0372 40.988C24.076 41.0035 24.1147 41.0113 24.1302 41.0035C29.7493 38.4846 35.3452 35.9347 40.9566 33.408C46.5679 30.8736 52.156 28.3082 57.7829 25.8125C57.8371 25.7893 57.6976 25.7583 57.7131 25.7583L57.6976 25.7505Z\" fill=\"white\"/>\n <path opacity=\"0.55\" d=\"M94.2955 40.1822C93.9699 40.345 93.6522 40.5077 93.3266 40.6705C92.4508 41.1045 91.575 41.5463 90.707 41.9803C89.4126 42.6236 88.1261 43.2747 86.8317 43.918C85.2584 44.7085 83.685 45.4913 82.1039 46.2819C80.3756 47.1422 78.655 48.0025 76.9266 48.8705L71.7028 51.4824C70.0829 52.2962 68.4553 53.1023 66.8354 53.9161C65.4559 54.6059 64.0763 55.2957 62.6967 55.9855C61.7124 56.4815 60.7281 56.9698 59.7437 57.4658C59.3407 57.6673 58.9299 57.8689 58.5269 58.0704C58.2634 57.9386 57.9999 57.8068 57.7364 57.6751C56.8761 57.2411 56.0158 56.807 55.1555 56.3808C53.8844 55.7452 52.6133 55.1019 51.3422 54.4664C49.7921 53.6836 48.2343 52.9085 46.6842 52.1257L41.5921 49.5681C39.8792 48.7078 38.1664 47.8475 36.4535 46.9872C34.8569 46.1889 33.2603 45.3828 31.6637 44.5845C30.3151 43.9102 28.9665 43.2282 27.6179 42.5539C26.6491 42.0656 25.6803 41.5773 24.7115 41.0968C24.2542 40.8643 23.7969 40.6395 23.3397 40.407C23.3242 40.3992 23.3009 40.3915 23.2854 40.376C23.0452 40.2597 22.6421 40.6783 22.9521 40.8333C23.2699 40.9883 23.5799 41.151 23.8977 41.306C24.758 41.7401 25.6183 42.1741 26.4786 42.6004C27.7497 43.2359 29.0208 43.8792 30.2919 44.5148L34.9499 46.8554C36.6473 47.708 38.3446 48.5605 40.042 49.4131C41.7548 50.2734 43.4677 51.1337 45.1806 51.994C46.7772 52.7923 48.3738 53.5983 49.9704 54.3966C51.319 55.0709 52.6675 55.753 54.0161 56.4273C54.9849 56.9155 55.9538 57.4038 56.9226 57.8844C57.3721 58.1091 57.8294 58.3416 58.2789 58.5664V61.4883C58.2789 61.6201 58.3874 61.7286 58.5192 61.7286C58.6509 61.7286 58.7594 61.6201 58.7594 61.4883V58.5509C59.0772 58.3881 59.4027 58.2331 59.7205 58.0704C60.5963 57.6363 61.4721 57.1946 62.3402 56.7605C63.6345 56.1172 64.9211 55.4662 66.2154 54.8229C67.7888 54.0324 69.3621 53.2496 70.9432 52.459C72.6716 51.5987 74.3922 50.7384 76.1205 49.8703L81.3444 47.2584C82.9642 46.4446 84.5918 45.6386 86.2117 44.8248C87.5913 44.135 88.9709 43.4452 90.3505 42.7554C91.3348 42.2594 92.3191 41.7711 93.3034 41.275L94.6985 40.5775C94.6985 40.5775 94.7372 40.5542 94.7605 40.5465C94.931 40.4612 94.4737 40.0892 94.3032 40.1745L94.2955 40.1822Z\" fill=\"white\"/>\n <path opacity=\"0.82\" d=\"M58.403 12.8306V15.9385\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M58.5192 50.0874L22.6034 31.8815L58.4029 15.9387L94.3497 32.0132L58.5192 50.0874Z\" stroke=\"currentColor\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.69\" d=\"M58.4649 50.064L58.4727 46.9561L22.6034 28.9517V31.8813L58.4649 50.064Z\" fill=\"#6D95D2\" stroke=\"#396991\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.78\" d=\"M58.5192 46.9715L94.4195 29.0369\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <g opacity=\"0.78\">\n <path d=\"M94.4195 29.0369V31.9666L58.5192 50.0872V46.9715\" fill={`url(#${id}-6)`}/>\n <path d=\"M94.4195 29.0369V31.9666L58.5192 50.0872V46.9715\" stroke=\"#602B56\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </g>\n <path opacity=\"0.78\" d=\"M94.4195 31.9666L58.5192 50.0872\" stroke=\"#396991\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.78\" d=\"M58.5192 46.9715L94.4195 29.0369\" stroke=\"#158052\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.77\" d=\"M94.4195 29.0369L58.5192 46.9715L22.6034 28.9516L58.4029 12.8306L94.4195 29.0369Z\" fill=\"#3A9DEF\" stroke=\"#396991\" strokeWidth=\"0.488281\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path opacity=\"0.58\" d=\"M92.7221 29.2619C92.7454 29.2696 92.7299 29.2076 92.7066 29.1456C92.7376 29.1456 92.7066 29.0526 92.6834 29.0371C87.2193 26.6034 81.7397 24.193 76.2678 21.7826C76.1748 21.7439 76.0818 21.6974 75.9888 21.6586C75.7873 21.5656 75.578 21.4804 75.3765 21.3873C70.0442 19.0389 64.7118 16.6828 59.3872 14.2956C59.3872 14.2956 59.3795 14.2956 59.3717 14.2956C59.364 14.2956 59.3562 14.2879 59.3485 14.2801C59.3175 14.2646 59.2865 14.2491 59.2555 14.2336C59.24 14.2336 59.24 14.2569 59.24 14.2879C59.2245 14.2879 59.209 14.2724 59.1935 14.2646C59.178 14.2569 59.1702 14.2879 59.178 14.3344C59.178 14.3344 59.1625 14.3344 59.1547 14.3266C59.1315 14.3111 59.1237 14.3499 59.1392 14.3964C59.1392 14.4584 59.178 14.5747 59.2167 14.5902C59.2322 14.5902 59.24 14.5979 59.2555 14.6057C59.271 14.6289 59.2787 14.6522 59.2942 14.6599C70.4007 19.5737 81.5149 24.472 92.6136 29.4014C92.6601 29.4246 92.6291 29.3471 92.6214 29.3239C92.6601 29.3394 92.7066 29.3626 92.7454 29.3781C92.7996 29.4014 92.7454 29.2851 92.7454 29.2851C92.7454 29.2774 92.7376 29.2619 92.7299 29.2464L92.7221 29.2619Z\" fill=\"white\"/>\n <path opacity=\"0.31\" d=\"M57.7054 14.3575C57.7054 14.3575 57.6899 14.3575 57.6821 14.3575C57.7131 14.342 57.7364 14.3342 57.7674 14.3187C57.8294 14.2955 57.6821 14.2645 57.6899 14.2645C57.6666 14.2645 57.6356 14.249 57.6046 14.249C57.6434 14.2335 57.6821 14.218 57.7209 14.2025C57.7596 14.187 57.6899 14.1637 57.6899 14.156C57.6589 14.1405 57.5581 14.125 57.5194 14.1405C57.4961 14.1405 57.4806 14.156 57.4573 14.156C57.4418 14.156 57.4341 14.156 57.4341 14.156C57.0853 14.2645 56.7521 14.4427 56.4188 14.59C55.2562 15.1093 54.1014 15.6363 52.9466 16.1633C49.0093 17.9382 45.0721 19.7131 41.1426 21.4879C38.7012 22.5885 36.2597 23.7046 33.8183 24.8129C32.276 25.5104 30.7414 26.208 29.199 26.8978C27.4009 27.7116 25.6028 28.5099 23.797 29.3082C23.7815 29.3082 23.7892 29.3314 23.8047 29.3469C23.7815 29.3547 23.7659 29.3624 23.7427 29.3702C23.7349 29.3702 23.7427 29.3857 23.7582 29.4012C23.7505 29.4012 23.7427 29.4012 23.735 29.4089C23.7117 29.4167 23.735 29.4477 23.7815 29.4709C23.7892 29.4709 23.797 29.4864 23.8125 29.4864C23.8047 29.4864 23.7892 29.4942 23.7815 29.5019C23.7582 29.5097 23.7737 29.5329 23.797 29.5484C23.8125 29.5794 23.9365 29.6414 23.9752 29.6259C23.9985 29.6182 24.0217 29.6027 24.045 29.5949C24.0837 29.6104 24.1225 29.6182 24.138 29.6104C29.7571 27.0915 35.3529 24.5416 40.9643 22.015C46.5757 19.4805 52.1638 16.9151 57.7906 14.4195C57.8449 14.3962 57.7054 14.3652 57.7209 14.3652L57.7054 14.3575Z\" fill=\"white\"/>\n <path opacity=\"0.66\" d=\"M94.3032 28.7889C93.9777 28.9517 93.6599 29.1144 93.3344 29.2772C92.4586 29.7112 91.5828 30.153 90.7147 30.587C89.4204 31.2303 88.1338 31.8814 86.8395 32.5247C85.2661 33.3152 83.6928 34.098 82.1117 34.8886C80.3833 35.7489 78.6627 36.6092 76.9343 37.4772L71.7105 40.0891C70.0907 40.9029 68.4631 41.709 66.8432 42.5228C65.4636 43.2126 64.084 43.9024 62.7044 44.5922C61.7201 45.0882 60.7358 45.5765 59.7515 46.0725C59.3485 46.274 58.9377 46.4755 58.5347 46.677C58.2712 46.5453 58.0076 46.4135 57.7441 46.2818C56.8838 45.8478 56.0235 45.4137 55.1632 44.9874C53.8921 44.3519 52.621 43.7086 51.35 43.0731C49.7999 42.2903 48.242 41.5152 46.6919 40.7324L41.5998 38.1748C39.887 37.3145 38.1741 36.4542 36.4613 35.5938C34.8647 34.7955 33.2681 33.9895 31.6715 33.1912C30.3229 32.5169 28.9743 31.8349 27.6257 31.1606C26.6569 30.6723 25.6881 30.184 24.7193 29.7035C24.262 29.471 23.8047 29.2462 23.3474 29.0137C23.3319 29.0059 23.3087 28.9982 23.2932 28.9827C23.0529 28.8664 22.6499 29.2849 22.9599 29.44C23.2777 29.595 23.5877 29.7577 23.9055 29.9127C24.7658 30.3468 25.6261 30.7808 26.4864 31.2071C27.7574 31.8426 29.0285 32.4859 30.2996 33.1214L34.9577 35.4621C36.655 36.3146 38.3524 37.1672 40.0497 38.0197C41.7626 38.8801 43.4755 39.7404 45.1883 40.6007C46.7849 41.399 48.3815 42.205 49.9781 43.0033C51.3267 43.6776 52.6753 44.3597 54.0239 45.0339C54.9927 45.5222 55.9615 46.0105 56.9303 46.491C57.3798 46.7158 57.8371 46.9483 58.2866 47.1731V50.095C58.2866 50.2268 58.3952 50.3353 58.5269 50.3353C58.6587 50.3353 58.7672 50.2268 58.7672 50.095V47.1576C59.085 46.9948 59.4105 46.8398 59.7282 46.677C60.604 46.243 61.4799 45.8012 62.3479 45.3672C63.6422 44.7239 64.9288 44.0729 66.2232 43.4296C67.7965 42.639 69.3699 41.8562 70.951 41.0657C72.6793 40.2054 74.3999 39.3451 76.1283 38.477L81.3521 35.8651C82.972 35.0513 84.5996 34.2453 86.2194 33.4315C87.599 32.7417 88.9786 32.0519 90.3582 31.3621C91.3425 30.866 92.3268 30.3778 93.3111 29.8817L94.7062 29.1842C94.7062 29.1842 94.745 29.1609 94.7682 29.1532C94.9387 29.0679 94.4815 28.6959 94.311 28.7812L94.3032 28.7889Z\" fill=\"white\"/>\n <defs>\n <linearGradient id={`${id}-0`} x1=\"23.6606\" y1=\"54.0234\" x2=\"72.1433\" y2=\"76.8832\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.3\" stopColor=\"#6FBB95\" stopOpacity=\"0.82\"/>\n <stop offset=\"1\" stopColor=\"#A3EC97\" stopOpacity=\"0.82\"/>\n </linearGradient>\n <linearGradient id={`${id}-1`} x1=\"54.2895\" y1=\"72.9612\" x2=\"86.8315\" y2=\"57.8529\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.05\" stopColor=\"#AAF397\"/>\n <stop offset=\"0.14\" stopColor=\"#9EE796\" stopOpacity=\"0.96\"/>\n <stop offset=\"0.33\" stopColor=\"#89D495\" stopOpacity=\"0.9\"/>\n <stop offset=\"0.51\" stopColor=\"#7AC695\" stopOpacity=\"0.86\"/>\n <stop offset=\"0.69\" stopColor=\"#72BD95\" stopOpacity=\"0.83\"/>\n <stop offset=\"0.84\" stopColor=\"#6FBB95\" stopOpacity=\"0.82\"/>\n </linearGradient>\n <linearGradient id={`${id}-2`} x1=\"64.9674\" y1=\"40.1085\" x2=\"48.0104\" y2=\"74.3586\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.08\" stopColor=\"#AAF397\"/>\n <stop offset=\"0.23\" stopColor=\"#8AD595\" stopOpacity=\"0.9\"/>\n <stop offset=\"0.34\" stopColor=\"#76C295\" stopOpacity=\"0.84\"/>\n <stop offset=\"0.4\" stopColor=\"#6FBB95\" stopOpacity=\"0.82\"/>\n <stop offset=\"0.74\" stopColor=\"#AAF397\" stopOpacity=\"0.82\"/>\n <stop offset=\"1\" stopColor=\"#99CC66\" stopOpacity=\"0.82\"/>\n </linearGradient>\n <linearGradient id={`${id}-3`} x1=\"22.973\" y1=\"42.6297\" x2=\"71.4556\" y2=\"65.4894\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.3\" stopColor=\"#602B56\" stopOpacity=\"0.82\"/>\n <stop offset=\"1\" stopColor=\"#B14F9D\" stopOpacity=\"0.82\"/>\n </linearGradient>\n <linearGradient id={`${id}-4`} x1=\"53.6019\" y1=\"61.5676\" x2=\"86.1439\" y2=\"46.4515\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.05\" stopColor=\"#B14F9D\"/>\n <stop offset=\"0.18\" stopColor=\"#9B4589\" stopOpacity=\"0.95\"/>\n <stop offset=\"0.36\" stopColor=\"#813973\" stopOpacity=\"0.89\"/>\n <stop offset=\"0.53\" stopColor=\"#6E3163\" stopOpacity=\"0.85\"/>\n <stop offset=\"0.69\" stopColor=\"#632C59\" stopOpacity=\"0.83\"/>\n <stop offset=\"0.84\" stopColor=\"#602B56\" stopOpacity=\"0.82\"/>\n </linearGradient>\n <linearGradient id={`${id}-5`} x1=\"32.1604\" y1=\"39.1422\" x2=\"106.94\" y2=\"45.2606\" gradientUnits=\"userSpaceOnUse\">\n <stop stopColor=\"#B14F9D\"/>\n <stop offset=\"0.54\" stopColor=\"#6B3463\"/>\n <stop offset=\"0.96\" stopColor=\"#B14F9D\"/>\n </linearGradient>\n <linearGradient id={`${id}-6`} x1=\"53.6118\" y1=\"50.1742\" x2=\"86.1539\" y2=\"35.0582\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0.05\" stopColor=\"#6D95D2\"/>\n <stop offset=\"0.07\" stopColor=\"#6B94D0\" stopOpacity=\"0.99\"/>\n <stop offset=\"0.28\" stopColor=\"#5E8ABD\" stopOpacity=\"0.92\"/>\n <stop offset=\"0.48\" stopColor=\"#5583AF\" stopOpacity=\"0.86\"/>\n <stop offset=\"0.67\" stopColor=\"#4F7FA7\" stopOpacity=\"0.83\"/>\n <stop offset=\"0.84\" stopColor=\"#4E7EA5\" stopOpacity=\"0.82\"/>\n </linearGradient>\n </defs>\n </svg>\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/brand/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwB,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["export { MovingMark, type MovingMarkProps } from \"./MovingMark.js\";\nexport { SurfacesMark } from \"./SurfacesMark.js\";\nexport type { MarkMotion } from \"./markMotion.js\";\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Surfaces mark in motion. The layers are plates in three dimensions, at the logo's own proportions and angle.
|
|
3
|
+
* Spin: each spins on its point and lands on the last, they space out, and it runs backwards. Stack: one lands, the
|
|
4
|
+
* stack sinks, the next lands, without end. Fan: they slide apart one way, close, and then the other. Wave: a ripple
|
|
5
|
+
* runs up through them.
|
|
6
|
+
*/
|
|
7
|
+
export type MarkMotion = "spin" | "stack" | "fan" | "wave";
|
|
8
|
+
export type Layer = {
|
|
9
|
+
color: "green" | "purple" | "blue";
|
|
10
|
+
x?: number;
|
|
11
|
+
y: number;
|
|
12
|
+
tilt: number;
|
|
13
|
+
spin: number;
|
|
14
|
+
opacity: number;
|
|
15
|
+
};
|
|
16
|
+
/** How long each takes once through, in seconds. */
|
|
17
|
+
export declare const LOOP: Record<MarkMotion, number>;
|
|
18
|
+
/** Where in its loop each begins: with the layers as the logo has them. */
|
|
19
|
+
export declare const START: Record<MarkMotion, number>;
|
|
20
|
+
/** Every layer at a point of the loop (0 to 1), the lowest first, so one that rests on another is drawn over it. */
|
|
21
|
+
export declare const layersAt: (motion: MarkMotion, u: number) => Layer[];
|
|
22
|
+
/** A flat face's colours, from one side to the other. */
|
|
23
|
+
export declare const TOPS: {
|
|
24
|
+
readonly green: readonly ["#AAF397", "#6FBB95"];
|
|
25
|
+
readonly purple: readonly ["#B14F9D", "#6B3463"];
|
|
26
|
+
readonly blue: readonly ["#3A9DEF", "#3A9DEF"];
|
|
27
|
+
};
|
|
28
|
+
/** One layer as SVG, its far faces first. `id` names its gradients. */
|
|
29
|
+
export declare function layerSvg(layer: Layer, id: string): string;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/** Half the plate's diagonal, its thickness and the space from one to the next, in the logo's units. */
|
|
2
|
+
const R = 36;
|
|
3
|
+
const T = 3.4;
|
|
4
|
+
const GAP = 12.9;
|
|
5
|
+
const LEVELS = [-GAP, 0, GAP];
|
|
6
|
+
const COLORS = ["green", "purple", "blue"];
|
|
7
|
+
/** How far up the logo is seen from. */
|
|
8
|
+
const FROM = (28.4 * Math.PI) / 180;
|
|
9
|
+
const UP = Math.cos(FROM);
|
|
10
|
+
const IN = Math.sin(FROM);
|
|
11
|
+
/** How long each takes once through, in seconds. */
|
|
12
|
+
export const LOOP = { spin: 13, stack: 6, fan: 4.4, wave: 1.8 };
|
|
13
|
+
/** Where in its loop each begins: with the layers as the logo has them. */
|
|
14
|
+
export const START = { spin: 0.42, stack: 0, fan: 0, wave: 0 };
|
|
15
|
+
const ease = (x) => {
|
|
16
|
+
const k = Math.max(0, Math.min(1, x));
|
|
17
|
+
return k * k * (3 - 2 * k);
|
|
18
|
+
};
|
|
19
|
+
const between = (t, a, b) => ease((t - a) / (b - a));
|
|
20
|
+
function spin(u) {
|
|
21
|
+
const t = u < 0.5 ? u * 2 : 2 - u * 2;
|
|
22
|
+
const apart = 10 * between(t, 0.86, 0.98);
|
|
23
|
+
const layers = [];
|
|
24
|
+
COLORS.forEach((color, i) => {
|
|
25
|
+
const from = i ? 0.06 + i * 0.26 : 0;
|
|
26
|
+
const landed = 0.06 + (i + 1) * 0.26 - (i ? 0 : 0.04);
|
|
27
|
+
const opacity = i ? between(t, from - 0.02, from + 0.07) : 1;
|
|
28
|
+
if (opacity <= 0)
|
|
29
|
+
return;
|
|
30
|
+
const tilt = 1 - between(t, landed - 0.12, landed);
|
|
31
|
+
const a = (tilt * Math.PI) / 2;
|
|
32
|
+
const falling = i ? 16 * (1 - ease((t - from) / 0.1)) : 0;
|
|
33
|
+
// Its lowest corner stays on what is under it, however far it is tipped up.
|
|
34
|
+
layers.push({ color, y: LEVELS[i] - T / 2 + (T / 2) * Math.cos(a) + R * Math.sin(a) + falling + apart * (i - 1), tilt, spin: -ease((landed - t) / (landed - from)) * Math.PI * 4, opacity });
|
|
35
|
+
});
|
|
36
|
+
return layers;
|
|
37
|
+
}
|
|
38
|
+
const flat = (color, y, opacity = 1, x = 0) => ({ color, x, y, tilt: 0, spin: 0, opacity });
|
|
39
|
+
function stack(u) {
|
|
40
|
+
const beat = Math.floor(u * 3) % 3;
|
|
41
|
+
const t = u * 3 - Math.floor(u * 3);
|
|
42
|
+
const color = (i) => COLORS[(i + beat) % 3];
|
|
43
|
+
const sunk = between(t, 0.45, 0.95) * GAP;
|
|
44
|
+
const down = Math.min(1, t / 0.62);
|
|
45
|
+
// Falls, and lands with one small bounce.
|
|
46
|
+
const fallen = down < 0.72 ? (down / 0.72) ** 2 : 1 - 0.07 * Math.sin(((down - 0.72) / 0.28) * Math.PI);
|
|
47
|
+
return [flat(color(0), -GAP - sunk, 1 - between(t, 0.45, 0.9)), flat(color(1), -sunk), flat(color(2), GAP - sunk), flat(color(3), 2 * GAP + 30 * (1 - fallen) - sunk, between(t, 0, 0.22))].filter((l) => l.opacity > 0);
|
|
48
|
+
}
|
|
49
|
+
const fan = (u) => COLORS.map((color, i) => flat(color, LEVELS[i], 1, 11 * (i - 1) * (between(u, 0, 0.2) - between(u, 0.28, 0.5) - between(u, 0.5, 0.7) + between(u, 0.78, 1))));
|
|
50
|
+
const wave = (u) => COLORS.map((color, i) => {
|
|
51
|
+
const t = (((u - i * 0.09) % 1) + 1) % 1;
|
|
52
|
+
return flat(color, LEVELS[i] + 7 * (between(t, 0, 0.25) - between(t, 0.25, 0.5)));
|
|
53
|
+
});
|
|
54
|
+
const MOTIONS = { spin, stack, fan, wave };
|
|
55
|
+
/** Every layer at a point of the loop (0 to 1), the lowest first, so one that rests on another is drawn over it. */
|
|
56
|
+
export const layersAt = (motion, u) => MOTIONS[motion](u);
|
|
57
|
+
const FACES = [[0, 1, 2, 3], [7, 6, 5, 4], [0, 4, 5, 1], [1, 5, 6, 2], [2, 6, 7, 3], [3, 7, 4, 0]];
|
|
58
|
+
const PAINT = { green: ["#6FBB95", "#8AD595", "#158052"], purple: ["#602B56", "#8D3F7D", "#602B56"], blue: ["#6D95D2", "#4E7EA5", "#396991"] };
|
|
59
|
+
/** A flat face's colours, from one side to the other. */
|
|
60
|
+
export const TOPS = { green: ["#AAF397", "#6FBB95"], purple: ["#B14F9D", "#6B3463"], blue: ["#3A9DEF", "#3A9DEF"] };
|
|
61
|
+
const onScreen = ([x, y, z]) => [x, z * IN - y * UP];
|
|
62
|
+
const nearness = ([, y, z]) => z * UP + y * IN;
|
|
63
|
+
const path = (points) => `M${points.map(([x, y]) => `${x.toFixed(2)} ${y.toFixed(2)}`).join("L")}Z`;
|
|
64
|
+
/** One layer as SVG, its far faces first. `id` names its gradients. */
|
|
65
|
+
export function layerSvg(layer, id) {
|
|
66
|
+
const a = (layer.tilt * Math.PI) / 2;
|
|
67
|
+
const [ca, sa, cs, ss] = [Math.cos(a), Math.sin(a), Math.cos(layer.spin), Math.sin(layer.spin)];
|
|
68
|
+
const corners = [];
|
|
69
|
+
for (const h of [T / 2, -T / 2])
|
|
70
|
+
for (const [px, pz] of [[0, R], [R, 0], [0, -R], [-R, 0]]) {
|
|
71
|
+
const z = h * sa + pz * ca;
|
|
72
|
+
corners.push([px * cs + z * ss + (layer.x ?? 0), h * ca - pz * sa + layer.y, z * cs - px * ss]);
|
|
73
|
+
}
|
|
74
|
+
const faces = FACES.map((face, i) => {
|
|
75
|
+
const points = face.map((k) => corners[k]);
|
|
76
|
+
const middle = points.reduce((m, p) => [m[0] + p[0] / 4, m[1] + p[1] / 4, m[2] + p[2] / 4], [0, 0, 0]);
|
|
77
|
+
return { flat: i < 2, points: points.map(onScreen), middle, front: nearness([middle[0] - (layer.x ?? 0), middle[1] - layer.y, middle[2]]) > 0 };
|
|
78
|
+
}).sort((p, q) => nearness(p.middle) - nearness(q.middle));
|
|
79
|
+
const [left, right, edge] = PAINT[layer.color];
|
|
80
|
+
const drawn = faces.map(({ flat, points, middle, front }) => {
|
|
81
|
+
const face = `<path d="${path(points)}" fill="${flat ? `url(#${id}-${layer.color})` : middle[0] < (layer.x ?? 0) ? left : right}" fill-opacity="${front ? (flat ? 0.78 : 0.85) : 0.22}" stroke="${edge}" stroke-width="0.6" stroke-linejoin="round"/>`;
|
|
82
|
+
if (!flat || !front)
|
|
83
|
+
return face;
|
|
84
|
+
const [mx, my] = onScreen(middle);
|
|
85
|
+
return `${face}<path d="${path(points.map(([x, y]) => [mx + (x - mx) * 0.955, my + (y - my) * 0.955]))}" fill="none" stroke="currentColor" stroke-opacity="0.4" stroke-width="0.5"/>`;
|
|
86
|
+
});
|
|
87
|
+
return `<g opacity="${layer.opacity.toFixed(3)}">${drawn.join("")}</g>`;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=markMotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markMotion.js","sourceRoot":"","sources":["../../src/brand/markMotion.ts"],"names":[],"mappings":"AAUA,wGAAwG;AACxG,MAAM,CAAC,GAAG,EAAE,CAAC;AACb,MAAM,CAAC,GAAG,GAAG,CAAC;AACd,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9B,MAAM,MAAM,GAA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IAAI,gDAAgD,CAAC;QACvP,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC;QACjC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClC,OAAO,GAAG,IAAI,YAAY,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK,EAAE,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAU,CAAC,CAAC,+EAA+E,CAAC;IACjM,CAAC,CAAC,CAAC;IACH,OAAO,eAAe,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;AAC1E,CAAC","sourcesContent":["/**\n * The Surfaces mark in motion. The layers are plates in three dimensions, at the logo's own proportions and angle.\n * Spin: each spins on its point and lands on the last, they space out, and it runs backwards. Stack: one lands, the\n * stack sinks, the next lands, without end. Fan: they slide apart one way, close, and then the other. Wave: a ripple\n * runs up through them.\n */\nexport type MarkMotion = \"spin\" | \"stack\" | \"fan\" | \"wave\";\nexport type Layer = { color: \"green\" | \"purple\" | \"blue\"; x?: number; y: number; tilt: number; spin: number; opacity: number };\ntype Point = [number, number, number];\n\n/** Half the plate's diagonal, its thickness and the space from one to the next, in the logo's units. */\nconst R = 36;\nconst T = 3.4;\nconst GAP = 12.9;\nconst LEVELS = [-GAP, 0, GAP];\nconst COLORS = [\"green\", \"purple\", \"blue\"] as const;\n/** How far up the logo is seen from. */\nconst FROM = (28.4 * Math.PI) / 180;\nconst UP = Math.cos(FROM);\nconst IN = Math.sin(FROM);\n\n/** How long each takes once through, in seconds. */\nexport const LOOP: Record<MarkMotion, number> = { spin: 13, stack: 6, fan: 4.4, wave: 1.8 };\n/** Where in its loop each begins: with the layers as the logo has them. */\nexport const START: Record<MarkMotion, number> = { spin: 0.42, stack: 0, fan: 0, wave: 0 };\n\nconst ease = (x: number) => {\n const k = Math.max(0, Math.min(1, x));\n return k * k * (3 - 2 * k);\n};\nconst between = (t: number, a: number, b: number) => ease((t - a) / (b - a));\n\nfunction spin(u: number): Layer[] {\n const t = u < 0.5 ? u * 2 : 2 - u * 2;\n const apart = 10 * between(t, 0.86, 0.98);\n const layers: Layer[] = [];\n COLORS.forEach((color, i) => {\n const from = i ? 0.06 + i * 0.26 : 0;\n const landed = 0.06 + (i + 1) * 0.26 - (i ? 0 : 0.04);\n const opacity = i ? between(t, from - 0.02, from + 0.07) : 1;\n if (opacity <= 0) return;\n const tilt = 1 - between(t, landed - 0.12, landed);\n const a = (tilt * Math.PI) / 2;\n const falling = i ? 16 * (1 - ease((t - from) / 0.1)) : 0;\n // Its lowest corner stays on what is under it, however far it is tipped up.\n layers.push({ color, y: LEVELS[i]! - T / 2 + (T / 2) * Math.cos(a) + R * Math.sin(a) + falling + apart * (i - 1), tilt, spin: -ease((landed - t) / (landed - from)) * Math.PI * 4, opacity });\n });\n return layers;\n}\n\nconst flat = (color: Layer[\"color\"], y: number, opacity = 1, x = 0): Layer => ({ color, x, y, tilt: 0, spin: 0, opacity });\n\nfunction stack(u: number): Layer[] {\n const beat = Math.floor(u * 3) % 3;\n const t = u * 3 - Math.floor(u * 3);\n const color = (i: number) => COLORS[(i + beat) % 3]!;\n const sunk = between(t, 0.45, 0.95) * GAP;\n const down = Math.min(1, t / 0.62);\n // Falls, and lands with one small bounce.\n const fallen = down < 0.72 ? (down / 0.72) ** 2 : 1 - 0.07 * Math.sin(((down - 0.72) / 0.28) * Math.PI);\n return [flat(color(0), -GAP - sunk, 1 - between(t, 0.45, 0.9)), flat(color(1), -sunk), flat(color(2), GAP - sunk), flat(color(3), 2 * GAP + 30 * (1 - fallen) - sunk, between(t, 0, 0.22))].filter((l) => l.opacity > 0);\n}\n\nconst fan = (u: number) => COLORS.map((color, i) => flat(color, LEVELS[i]!, 1, 11 * (i - 1) * (between(u, 0, 0.2) - between(u, 0.28, 0.5) - between(u, 0.5, 0.7) + between(u, 0.78, 1))));\n\nconst wave = (u: number) =>\n COLORS.map((color, i) => {\n const t = (((u - i * 0.09) % 1) + 1) % 1;\n return flat(color, LEVELS[i]! + 7 * (between(t, 0, 0.25) - between(t, 0.25, 0.5)));\n });\n\nconst MOTIONS = { spin, stack, fan, wave };\n\n/** Every layer at a point of the loop (0 to 1), the lowest first, so one that rests on another is drawn over it. */\nexport const layersAt = (motion: MarkMotion, u: number): Layer[] => MOTIONS[motion](u);\n\nconst FACES = [[0, 1, 2, 3], [7, 6, 5, 4], [0, 4, 5, 1], [1, 5, 6, 2], [2, 6, 7, 3], [3, 7, 4, 0]];\nconst PAINT = { green: [\"#6FBB95\", \"#8AD595\", \"#158052\"], purple: [\"#602B56\", \"#8D3F7D\", \"#602B56\"], blue: [\"#6D95D2\", \"#4E7EA5\", \"#396991\"] } as const;\n/** A flat face's colours, from one side to the other. */\nexport const TOPS = { green: [\"#AAF397\", \"#6FBB95\"], purple: [\"#B14F9D\", \"#6B3463\"], blue: [\"#3A9DEF\", \"#3A9DEF\"] } as const;\n\nconst onScreen = ([x, y, z]: Point) => [x, z * IN - y * UP] as const;\nconst nearness = ([, y, z]: Point) => z * UP + y * IN;\nconst path = (points: (readonly [number, number])[]) => `M${points.map(([x, y]) => `${x.toFixed(2)} ${y.toFixed(2)}`).join(\"L\")}Z`;\n\n/** One layer as SVG, its far faces first. `id` names its gradients. */\nexport function layerSvg(layer: Layer, id: string): string {\n const a = (layer.tilt * Math.PI) / 2;\n const [ca, sa, cs, ss] = [Math.cos(a), Math.sin(a), Math.cos(layer.spin), Math.sin(layer.spin)];\n const corners: Point[] = [];\n for (const h of [T / 2, -T / 2])\n for (const [px, pz] of [[0, R], [R, 0], [0, -R], [-R, 0]] as const) {\n const z = h * sa + pz * ca;\n corners.push([px * cs + z * ss + (layer.x ?? 0), h * ca - pz * sa + layer.y, z * cs - px * ss]);\n }\n const faces = FACES.map((face, i) => {\n const points = face.map((k) => corners[k]!);\n const middle = points.reduce<Point>((m, p) => [m[0] + p[0] / 4, m[1] + p[1] / 4, m[2] + p[2] / 4], [0, 0, 0]);\n return { flat: i < 2, points: points.map(onScreen), middle, front: nearness([middle[0] - (layer.x ?? 0), middle[1] - layer.y, middle[2]]) > 0 };\n }).sort((p, q) => nearness(p.middle) - nearness(q.middle));\n const [left, right, edge] = PAINT[layer.color];\n const drawn = faces.map(({ flat, points, middle, front }) => {\n const face = `<path d=\"${path(points)}\" fill=\"${flat ? `url(#${id}-${layer.color})` : middle[0] < (layer.x ?? 0) ? left : right}\" fill-opacity=\"${front ? (flat ? 0.78 : 0.85) : 0.22}\" stroke=\"${edge}\" stroke-width=\"0.6\" stroke-linejoin=\"round\"/>`;\n if (!flat || !front) return face;\n const [mx, my] = onScreen(middle);\n return `${face}<path d=\"${path(points.map(([x, y]) => [mx + (x - mx) * 0.955, my + (y - my) * 0.955] as const))}\" fill=\"none\" stroke=\"currentColor\" stroke-opacity=\"0.4\" stroke-width=\"0.5\"/>`;\n });\n return `<g opacity=\"${layer.opacity.toFixed(3)}\">${drawn.join(\"\")}</g>`;\n}\n"]}
|
package/dist/chart/Chart.d.ts
CHANGED
|
@@ -50,9 +50,13 @@ export interface ChartProps extends DataMessages {
|
|
|
50
50
|
sourceId: string;
|
|
51
51
|
/** The base SQL. Grouping and aggregation are applied around it by the backend. */
|
|
52
52
|
sql: string;
|
|
53
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* How series are drawn unless a measure sets its own `type`. Most charts are a basic type (`BASIC_CHART_TYPES`);
|
|
55
|
+
* the others (`OTHER_CHART_TYPES`: heatmap, funnel, treemap, sankey) draw the first measure for what a basic one
|
|
56
|
+
* cannot show.
|
|
57
|
+
*/
|
|
54
58
|
type: ChartType;
|
|
55
|
-
/** Column for the x axis,
|
|
59
|
+
/** Column for the x axis, the slices of a pie, the columns of a heatmap, the stages of a funnel, the parts of a treemap, or where a sankey's flows start. */
|
|
56
60
|
x: string;
|
|
57
61
|
/** Group a date or time x column into buckets of this size, so a time series has one point per bucket. */
|
|
58
62
|
xGrain?: ChartGrain;
|
|
@@ -62,7 +66,7 @@ export interface ChartProps extends DataMessages {
|
|
|
62
66
|
xBins?: number;
|
|
63
67
|
/** One entry per series. */
|
|
64
68
|
y: ChartMeasure[];
|
|
65
|
-
/** Split each measure into one series per distinct value of this column. */
|
|
69
|
+
/** Split each measure into one series per distinct value of this column; the rows of a heatmap, the groups of a treemap, or where a sankey's flows go. */
|
|
66
70
|
splitBy?: string;
|
|
67
71
|
/**
|
|
68
72
|
* The theme colour slot for particular values of `splitBy`, by value, e.g.
|
|
@@ -135,7 +139,7 @@ export type ChartQueryInput = Pick<ChartProps, "sql" | "type" | "x" | "xGrain" |
|
|
|
135
139
|
limit: number;
|
|
136
140
|
};
|
|
137
141
|
/** The shape of a loaded chart, in the terms `chartAdvice` checks. Nothing drawn gives no advice. */
|
|
138
|
-
export declare function drawnShape(input: Pick<ChartProps, "type" | "x" | "y" | "stacked" | "legend"> & Pick<ChartOptionInput, "fields" | "rows"> & {
|
|
142
|
+
export declare function drawnShape(input: Pick<ChartProps, "type" | "x" | "y" | "stacked" | "legend" | "splitBy"> & Pick<ChartOptionInput, "fields" | "rows"> & {
|
|
139
143
|
seriesCount: number;
|
|
140
144
|
binned: boolean;
|
|
141
145
|
histogram?: boolean;
|
package/dist/chart/Chart.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { collect, parseMeasureExpression, writeMeasure } from "@surfaces-ui/data";
|
|
3
3
|
import { AggregateFunction, SortDirection, TimeGrain } from "@surfaces-ui/proto";
|
|
4
4
|
import { defaultTheme, echartsTheme, resolveColors } from "@surfaces-ui/tokens";
|
|
5
|
-
import { BarChart, LineChart, PieChart, ScatterChart } from "echarts/charts";
|
|
6
|
-
import { AriaComponent, DataZoomComponent, DatasetComponent, GridComponent, LegendComponent, TooltipComponent, } from "echarts/components";
|
|
5
|
+
import { BarChart, FunnelChart, HeatmapChart, LineChart, PieChart, SankeyChart, ScatterChart, TreemapChart } from "echarts/charts";
|
|
6
|
+
import { AriaComponent, DataZoomComponent, DatasetComponent, GridComponent, LegendComponent, TooltipComponent, VisualMapComponent, } from "echarts/components";
|
|
7
7
|
import * as echarts from "echarts/core";
|
|
8
8
|
import { CanvasRenderer } from "echarts/renderers";
|
|
9
9
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -15,12 +15,19 @@ import { messageOf } from "../data/useRowWindow.js";
|
|
|
15
15
|
import { useOptionalTheme } from "../theme/ThemeProvider.js";
|
|
16
16
|
import { chartAdvice } from "./advice.js";
|
|
17
17
|
import { wheelScrollsThePage } from "./wheel.js";
|
|
18
|
-
import { buildChartOption, isOrdered, niceBinWidth, rowsWithoutX } from "./option.js";
|
|
18
|
+
import { buildChartOption, isOrdered, isWholeChart, niceBinWidth, rowsWithoutX } from "./option.js";
|
|
19
|
+
import { fitCategoryLabels } from "./labels.js";
|
|
19
20
|
echarts.use([
|
|
20
21
|
BarChart,
|
|
21
22
|
LineChart,
|
|
22
23
|
PieChart,
|
|
23
24
|
ScatterChart,
|
|
25
|
+
// The other chart types: each draws one measure without axes (a heatmap keeps two category axes).
|
|
26
|
+
HeatmapChart,
|
|
27
|
+
FunnelChart,
|
|
28
|
+
TreemapChart,
|
|
29
|
+
SankeyChart,
|
|
30
|
+
VisualMapComponent,
|
|
24
31
|
AriaComponent,
|
|
25
32
|
DataZoomComponent,
|
|
26
33
|
DatasetComponent,
|
|
@@ -84,12 +91,13 @@ export function drawnShape(input) {
|
|
|
84
91
|
return {
|
|
85
92
|
type: input.type,
|
|
86
93
|
categories: new Set(input.rows.map((row) => row[input.x])).size,
|
|
87
|
-
series: input.type
|
|
94
|
+
series: isWholeChart(input.type) ? 1 : input.seriesCount,
|
|
88
95
|
stacked: input.stacked,
|
|
89
96
|
rightAxis: input.y.some((m) => m.axis === "right"),
|
|
90
97
|
orderedX: input.binned || isOrdered(input.fields.find((f) => f.name === input.x)),
|
|
91
98
|
...(input.histogram ? { binned: true } : {}),
|
|
92
99
|
...(input.legend ? { legend: input.legend } : {}),
|
|
100
|
+
...(input.type === "sankey" || input.type === "heatmap" ? { split: Boolean(input.splitBy) } : {}),
|
|
93
101
|
};
|
|
94
102
|
}
|
|
95
103
|
/** How a chart's categories are ordered when not told: bars by size, everything else along x. */
|
|
@@ -140,7 +148,9 @@ export function buildChartQuery(input) {
|
|
|
140
148
|
]),
|
|
141
149
|
derived: aggregated.filter((o) => o.measure.expression).map((o) => ({ alias: o.column, expression: termExpression(o.measure.expression, o.column) })),
|
|
142
150
|
// By size, the engine keeps the largest when the limit cuts the result; a split chart is put in order from its totals afterwards.
|
|
143
|
-
sorts:
|
|
151
|
+
sorts:
|
|
152
|
+
// A part of a whole, a stage or a flow: the largest are kept when the limit cuts the result. A heatmap goes along x.
|
|
153
|
+
(isWholeChart(type) && type !== "heatmap") || (chartSort(input) === "value" && !splitBy)
|
|
144
154
|
? [{ column: aggregated[0].column, direction: SortDirection.DESC }]
|
|
145
155
|
: [{ column: x, direction: SortDirection.ASC }],
|
|
146
156
|
page: { limit },
|
|
@@ -219,7 +229,8 @@ export function Chart(props) {
|
|
|
219
229
|
const mode = theme?.resolvedMode ?? "light";
|
|
220
230
|
const themeDocument = theme?.theme ?? defaultTheme;
|
|
221
231
|
const { stacked, legend, xTitle, yTitle, yRightTitle, yFormat, splitSlots, horizontal } = props;
|
|
222
|
-
const
|
|
232
|
+
const colors = useMemo(() => resolveColors(themeDocument[mode], themeDocument.charts?.[mode]), [themeDocument, mode]);
|
|
233
|
+
const palette = colors.series;
|
|
223
234
|
const slotsKey = JSON.stringify(splitSlots ?? null);
|
|
224
235
|
const option = useMemo(() => {
|
|
225
236
|
if (!state.loaded)
|
|
@@ -241,13 +252,14 @@ export function Chart(props) {
|
|
|
241
252
|
yRightTitle,
|
|
242
253
|
yFormat,
|
|
243
254
|
horizontal,
|
|
255
|
+
ramp: colors.sequential,
|
|
244
256
|
});
|
|
245
257
|
// People who ask for less motion get none: the chart appears in place.
|
|
246
258
|
const still = typeof matchMedia === "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
247
259
|
const withAria = { aria: { enabled: true }, ...(still ? { animation: false } : {}), ...base };
|
|
248
260
|
return props.option ? props.option(withAria) : withAria;
|
|
249
261
|
}, [state.loaded, type, x, splitBy, outputs, props.option, stacked, legend, xTitle, yTitle, yRightTitle, yFormat, horizontal, palette, slotsKey]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
250
|
-
const seriesCount = type
|
|
262
|
+
const seriesCount = !isWholeChart(type) && Array.isArray(option?.series) ? option.series.length : 0;
|
|
251
263
|
useEffect(() => {
|
|
252
264
|
if (!element.current || !option)
|
|
253
265
|
return;
|
|
@@ -260,7 +272,14 @@ export function Chart(props) {
|
|
|
260
272
|
const amount = row && typeof row.value === "number" ? row.value : typeof event.value === "number" ? event.value : null;
|
|
261
273
|
onPointClick.current?.({ x: at, series: event.seriesName ?? "", value: amount });
|
|
262
274
|
});
|
|
263
|
-
|
|
275
|
+
// Category labels wrap to their bands, whose width is known only once the chart is laid out.
|
|
276
|
+
fitCategoryLabels(chart);
|
|
277
|
+
const observer = typeof ResizeObserver === "undefined"
|
|
278
|
+
? undefined
|
|
279
|
+
: new ResizeObserver(() => {
|
|
280
|
+
chart.resize();
|
|
281
|
+
fitCategoryLabels(chart);
|
|
282
|
+
});
|
|
264
283
|
observer?.observe(element.current);
|
|
265
284
|
const unwheel = wheelScrollsThePage(element.current);
|
|
266
285
|
return () => {
|
|
@@ -270,7 +289,7 @@ export function Chart(props) {
|
|
|
270
289
|
};
|
|
271
290
|
}, [option, themeDocument, mode]);
|
|
272
291
|
// Advice is worked out from what was actually drawn, so it follows filters and the data.
|
|
273
|
-
const advice = props.advice === false || !state.loaded ? [] : chartAdvice(drawnShape({ type, x, y, stacked, legend, seriesCount, binned: Boolean(xGrain || xBinWidth || xBins), histogram: Boolean(xBinWidth || xBins), fields: state.loaded.fields, rows: state.loaded.rows }));
|
|
292
|
+
const advice = props.advice === false || !state.loaded ? [] : chartAdvice(drawnShape({ type, x, y, stacked, legend, splitBy, seriesCount, binned: Boolean(xGrain || xBinWidth || xBins), histogram: Boolean(xBinWidth || xBins), fields: state.loaded.fields, rows: state.loaded.rows }));
|
|
274
293
|
// Rows a time or number axis cannot place are left out, and the chart says so with what they hold.
|
|
275
294
|
const unplaced = state.loaded ? rowsWithoutX({ type, x, series: outputs.map((o) => ({ column: o.column, label: o.label, type: o.measure.type })), fields: state.loaded.fields, rows: state.loaded.rows }) : [];
|
|
276
295
|
const unplacedDetail = unplaced.length === 1
|