claude-exode-mcp 7.5.8 → 7.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/fonts/featured/anybody.json.gz +0 -0
  2. package/fonts/featured/big-shoulders.json.gz +0 -0
  3. package/fonts/featured/fraunces.json.gz +0 -0
  4. package/fonts/featured/index.json +247 -0
  5. package/fonts/featured/recursive.json.gz +0 -0
  6. package/fonts/featured/roboto-flex.json.gz +0 -0
  7. package/index.d.ts +1 -1
  8. package/index.js +9 -4
  9. package/package.json +6 -2
  10. package/render-runtime/exode-runtime.js +31 -26
  11. package/skills/creative-motion/references/gotchas.md +8 -0
  12. package/src/buildKit.d.ts.map +1 -1
  13. package/src/buildKit.js +10 -1
  14. package/src/buildKit.js.map +1 -1
  15. package/src/buildKit.ts +10 -1
  16. package/src/fontCatalog.d.ts +23 -0
  17. package/src/fontCatalog.d.ts.map +1 -0
  18. package/src/fontCatalog.js +81 -0
  19. package/src/fontCatalog.js.map +1 -0
  20. package/src/fontCatalog.ts +72 -0
  21. package/src/fonts/embedFonts.d.ts +5 -0
  22. package/src/fonts/embedFonts.d.ts.map +1 -0
  23. package/src/fonts/embedFonts.js +125 -0
  24. package/src/fonts/embedFonts.js.map +1 -0
  25. package/src/fonts/embedFonts.ts +122 -0
  26. package/src/fonts/exodeFonts.d.ts +130 -0
  27. package/src/fonts/exodeFonts.d.ts.map +1 -0
  28. package/src/fonts/exodeFonts.js +882 -0
  29. package/src/fonts/exodeFonts.js.map +1 -0
  30. package/src/fonts/exodeFonts.ts +902 -0
  31. package/src/fonts/extractFont.d.ts +50 -0
  32. package/src/fonts/extractFont.d.ts.map +1 -0
  33. package/src/fonts/extractFont.js +362 -0
  34. package/src/fonts/extractFont.js.map +1 -0
  35. package/src/fonts/extractFont.ts +362 -0
  36. package/src/fonts/sansGenerator.d.ts +172 -0
  37. package/src/fonts/sansGenerator.d.ts.map +1 -0
  38. package/src/fonts/sansGenerator.js +799 -0
  39. package/src/fonts/sansGenerator.js.map +1 -0
  40. package/src/fonts/sansGenerator.ts +821 -0
  41. package/src/handlers/artboardHandlers.d.ts.map +1 -1
  42. package/src/handlers/artboardHandlers.js +15 -0
  43. package/src/handlers/artboardHandlers.js.map +1 -1
  44. package/src/handlers/artboardHandlers.ts +11 -0
  45. package/src/handlers/fontHandlers.d.ts +137 -0
  46. package/src/handlers/fontHandlers.d.ts.map +1 -0
  47. package/src/handlers/fontHandlers.js +137 -0
  48. package/src/handlers/fontHandlers.js.map +1 -0
  49. package/src/handlers/fontHandlers.ts +133 -0
  50. package/src/render/videoRenderer.d.ts.map +1 -1
  51. package/src/render/videoRenderer.js +3 -1
  52. package/src/render/videoRenderer.js.map +1 -1
  53. package/src/render/videoRenderer.ts +3 -1
  54. package/src/utils.d.ts.map +1 -1
  55. package/src/utils.js +6 -0
  56. package/src/utils.js.map +1 -1
  57. package/src/utils.ts +3 -0
@@ -0,0 +1,125 @@
1
+ // @ts-nocheck
2
+ // GENERATED by scripts/sync-exode-fonts.mjs from editor/src/utils/fonts/embedFonts.ts. Edit there, then re-run.
3
+ // Which fonts a Screen should embed: a trimmed copy of each Exode font its text uses,
4
+ // keeping only the axes and characters that text needs. Shared by the editor and the MCPs.
5
+ import { getExodeFont, splitFamilyAxes, trimExodeFont } from './exodeFonts.js';
6
+ const keyOf = (family) => splitFamilyAxes(family).family.trim().toLowerCase();
7
+ const ASCII = (() => {
8
+ let s = '';
9
+ for (let cp = 0x20; cp <= 0x7e; cp++)
10
+ s += String.fromCodePoint(cp);
11
+ return s;
12
+ })();
13
+ const isTextObject = (o) => o?.geometry?.type === 'Text' || o?.type === 'Text';
14
+ /** Which axes and characters each Exode font needs on one Screen. */
15
+ function collectUsage(screen) {
16
+ const out = new Map();
17
+ const objects = screen?.objects || [];
18
+ const byId = new Map();
19
+ objects.forEach(o => byId.set(o.id, o));
20
+ const touch = (family, obj) => {
21
+ if (!family)
22
+ return null;
23
+ const font = getExodeFont(family);
24
+ if (!font)
25
+ return null;
26
+ const key = keyOf(font.family);
27
+ let u = out.get(key);
28
+ if (!u) {
29
+ u = { axes: new Set(), chars: new Set(Array.from(ASCII)) };
30
+ out.set(key, u);
31
+ }
32
+ // Axes the editor applies on its own: weight from the weight menu, optical size
33
+ // from the font size, slant/italic from italic text. Embed them so files draw the same.
34
+ ['wght', 'opsz'].forEach(t => { if (t in font.stops)
35
+ u.axes.add(t); });
36
+ const geo = obj?.geometry || {};
37
+ const italic = geo.fontStyle === 'italic' || String(geo.fontWeight || '').toLowerCase().includes('italic');
38
+ if (italic)
39
+ ['slnt', 'ital'].forEach(t => { if (t in font.stops)
40
+ u.axes.add(t); });
41
+ Object.keys(geo.fontAxes || {}).forEach(t => { if (t in font.stops)
42
+ u.axes.add(t); });
43
+ return u;
44
+ };
45
+ objects.forEach(o => {
46
+ if (!isTextObject(o))
47
+ return;
48
+ const geo = o.geometry || {};
49
+ const u = touch(geo.fontFamily, o);
50
+ const addText = (usage, text) => { if (usage && text)
51
+ Array.from(String(text)).forEach(ch => usage.chars.add(ch)); };
52
+ addText(u, geo.text);
53
+ (geo.segments || []).forEach((seg) => addText(touch(seg.fontFamily || geo.fontFamily, o), seg.text));
54
+ (o.logicProperties || []).forEach((lp) => {
55
+ const m = /^geometry\.fontAxes\.(\w+)$/.exec(lp?.name || '');
56
+ if (m && u)
57
+ u.axes.add(m[1]);
58
+ });
59
+ });
60
+ (screen?.animations || []).forEach((anim) => (anim.tracks || []).forEach((track) => {
61
+ const obj = byId.get(track.object_id);
62
+ if (!obj || !isTextObject(obj))
63
+ return;
64
+ const m = /^geometry\.fontAxes\.(\w+)$/.exec(track.property || '');
65
+ const u = touch(obj.geometry?.fontFamily, obj);
66
+ if (m && u)
67
+ u.axes.add(m[1]);
68
+ if (track.property === 'geometry.fontFamily') {
69
+ (track.keyframes || []).forEach((kf) => {
70
+ const ku = typeof kf.value === 'string' ? touch(kf.value, obj) : null;
71
+ if (ku)
72
+ Array.from(String(obj.geometry?.text || '')).forEach(ch => ku.chars.add(ch));
73
+ });
74
+ }
75
+ if (track.property === 'geometry.text' && u)
76
+ (track.keyframes || []).forEach((kf) => Array.from(String(kf.value ?? '')).forEach(ch => u.chars.add(ch)));
77
+ }));
78
+ return out;
79
+ }
80
+ function subsetGlyphs(asset, chars) {
81
+ const glyphs = {};
82
+ chars.forEach(ch => { if (asset.glyphs[ch])
83
+ glyphs[ch] = asset.glyphs[ch]; });
84
+ let kern;
85
+ if (asset.kern) {
86
+ kern = {};
87
+ for (const pair of Object.keys(asset.kern)) {
88
+ const [a, b] = Array.from(pair);
89
+ if (glyphs[a] && glyphs[b])
90
+ kern[pair] = asset.kern[pair];
91
+ }
92
+ }
93
+ return { ...asset, glyphs, kern };
94
+ }
95
+ const signatureOf = (asset) => `${asset.id}:${asset.version ?? 0}:${asset.rev ?? ''}:${Object.keys(asset.stops).sort().join(',')}:${Object.keys(asset.glyphs).sort().join('')}`;
96
+ /** The fonts a Screen should embed, or null when its current list is already right. */
97
+ /** fullFor(familyKey) returns the untrimmed font, when one is at hand. */
98
+ export function computeEmbeddedFonts(screen, fullFor) {
99
+ const usage = collectUsage(screen);
100
+ const current = Array.isArray(screen?.fonts) ? screen.fonts : [];
101
+ const next = [];
102
+ usage.forEach((u, key) => {
103
+ const existing = current.find(f => keyOf(f.family) === key);
104
+ const full = fullFor(key);
105
+ if (!full) {
106
+ // No full copy at hand (file opened without its source): keep what the file has.
107
+ if (existing)
108
+ next.push(existing);
109
+ return;
110
+ }
111
+ const haveAxes = existing ? Object.keys(existing.stops) : [];
112
+ const haveChars = existing ? new Set(Object.keys(existing.glyphs)) : new Set();
113
+ const axesOk = existing && Array.from(u.axes).every(t => haveAxes.includes(t)) && haveAxes.every(t => u.axes.has(t));
114
+ const charsOk = existing && Array.from(u.chars).every(ch => haveChars.has(ch) || !full.glyphs[ch]);
115
+ const sameSource = existing && existing.id === full.id && (existing.version ?? 0) === (full.version ?? 0) && (existing.rev ?? '') === (full.rev ?? '');
116
+ if (existing && axesOk && charsOk && sameSource) {
117
+ next.push(existing);
118
+ return;
119
+ }
120
+ next.push(subsetGlyphs(trimExodeFont(full, Array.from(u.axes)), u.chars));
121
+ });
122
+ const sig = (list) => list.map(signatureOf).sort().join('|');
123
+ return sig(next) === sig(current) ? null : next;
124
+ }
125
+ //# sourceMappingURL=embedFonts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embedFonts.js","sourceRoot":"","sources":["embedFonts.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,gHAAgH;AAChH,sFAAsF;AACtF,2FAA2F;AAE3F,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAuB,MAAM,iBAAiB,CAAC;AAEpG,MAAM,KAAK,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AAEtF,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC;IACX,KAAK,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,IAAI,EAAE,EAAE,EAAE;QAAE,CAAC,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IACpE,OAAO,CAAC,CAAC;AACb,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,YAAY,GAAG,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,KAAK,MAAM,IAAI,CAAC,EAAE,IAAI,KAAK,MAAM,CAAC;AAOpF,qEAAqE;AACrE,SAAS,YAAY,CAAC,MAAW;IAC7B,MAAM,GAAG,GAAG,IAAI,GAAG,EAAiB,CAAC;IACrC,MAAM,OAAO,GAAU,MAAM,EAAE,OAAO,IAAI,EAAE,CAAC;IAC7C,MAAM,IAAI,GAAG,IAAI,GAAG,EAAe,CAAC;IACpC,OAAO,CAAC,OAAO,CAAC,CAAC,C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UAAU,EAAE,CAAC;YAC9C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpB,OAAO;QACX,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;IACH,MAAM,GAAG,GAAG,CAAC,IAAsB,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/E,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACpD,CAAC"}
@@ -0,0 +1,122 @@
1
+ // @ts-nocheck
2
+ // GENERATED by scripts/sync-exode-fonts.mjs from editor/src/utils/fonts/embedFonts.ts. Edit there, then re-run.
3
+ // Which fonts a Screen should embed: a trimmed copy of each Exode font its text uses,
4
+ // keeping only the axes and characters that text needs. Shared by the editor and the MCPs.
5
+
6
+ import { getExodeFont, splitFamilyAxes, trimExodeFont, type ExodeFontAsset } from './exodeFonts.js';
7
+
8
+ const keyOf = (family: string) => splitFamilyAxes(family).family.trim().toLowerCase();
9
+
10
+ const ASCII = (() => {
11
+ let s = '';
12
+ for (let cp = 0x20; cp <= 0x7e; cp++) s += String.fromCodePoint(cp);
13
+ return s;
14
+ })();
15
+
16
+ const isTextObject = (o: any) => o?.geometry?.type === 'Text' || o?.type === 'Text';
17
+
18
+ interface Usage {
19
+ axes: Set<string>;
20
+ chars: Set<string>;
21
+ }
22
+
23
+ /** Which axes and characters each Exode font needs on one Screen. */
24
+ function collectUsage(screen: any): Map<string, Usage> {
25
+ const out = new Map<string, Usage>();
26
+ const objects: any[] = screen?.objects || [];
27
+ const byId = new Map<string, any>();
28
+ objects.forEach(o => byId.set(o.id, o));
29
+ const touch = (family: string | undefined, obj: any): Usage | null => {
30
+ if (!family) return null;
31
+ const font = getExodeFont(family);
32
+ if (!font) return null;
33
+ const key = keyOf(font.family);
34
+ let u = out.get(key);
35
+ if (!u) {
36
+ u = { axes: new Set(), chars: new Set(Array.from(ASCII)) };
37
+ out.set(key, u);
38
+ }
39
+ // Axes the editor applies on its own: weight from the weight menu, optical size
40
+ // from the font size, slant/italic from italic text. Embed them so files draw the same.
41
+ ['wght', 'opsz'].forEach(t => { if (t in font.stops) u!.axes.add(t); });
42
+ const geo = obj?.geometry || {};
43
+ const italic = geo.fontStyle === 'italic' || String(geo.fontWeight || '').toLowerCase().includes('italic');
44
+ if (italic) ['slnt', 'ital'].forEach(t => { if (t in font.stops) u!.axes.add(t); });
45
+ Object.keys(geo.fontAxes || {}).forEach(t => { if (t in font.stops) u!.axes.add(t); });
46
+ return u;
47
+ };
48
+ objects.forEach(o => {
49
+ if (!isTextObject(o)) return;
50
+ const geo = o.geometry || {};
51
+ const u = touch(geo.fontFamily, o);
52
+ const addText = (usage: Usage | null, text: any) => { if (usage && text) Array.from(String(text)).forEach(ch => usage.chars.add(ch)); };
53
+ addText(u, geo.text);
54
+ (geo.segments || []).forEach((seg: any) => addText(touch(seg.fontFamily || geo.fontFamily, o), seg.text));
55
+ (o.logicProperties || []).forEach((lp: any) => {
56
+ const m = /^geometry\.fontAxes\.(\w+)$/.exec(lp?.name || '');
57
+ if (m && u) u.axes.add(m[1]);
58
+ });
59
+ });
60
+ (screen?.animations || []).forEach((anim: any) => (anim.tracks || []).forEach((track: any) => {
61
+ const obj = byId.get(track.object_id);
62
+ if (!obj || !isTextObject(obj)) return;
63
+ const m = /^geometry\.fontAxes\.(\w+)$/.exec(track.property || '');
64
+ const u = touch(obj.geometry?.fontFamily, obj);
65
+ if (m && u) u.axes.add(m[1]);
66
+ if (track.property === 'geometry.fontFamily') {
67
+ (track.keyframes || []).forEach((kf: any) => {
68
+ const ku = typeof kf.value === 'string' ? touch(kf.value, obj) : null;
69
+ if (ku) Array.from(String(obj.geometry?.text || '')).forEach(ch => ku.chars.add(ch));
70
+ });
71
+ }
72
+ if (track.property === 'geometry.text' && u) (track.keyframes || []).forEach((kf: any) => Array.from(String(kf.value ?? '')).forEach(ch => u.chars.add(ch)));
73
+ }));
74
+ return out;
75
+ }
76
+
77
+ function subsetGlyphs(asset: ExodeFontAsset, chars: Set<string>): ExodeFontAsset {
78
+ const glyphs: ExodeFontAsset['glyphs'] = {};
79
+ chars.forEach(ch => { if (asset.glyphs[ch]) glyphs[ch] = asset.glyphs[ch]; });
80
+ let kern: Record<string, number> | undefined;
81
+ if (asset.kern) {
82
+ kern = {};
83
+ for (const pair of Object.keys(asset.kern)) {
84
+ const [a, b] = Array.from(pair);
85
+ if (glyphs[a] && glyphs[b]) kern[pair] = asset.kern[pair];
86
+ }
87
+ }
88
+ return { ...asset, glyphs, kern };
89
+ }
90
+
91
+ const signatureOf = (asset: ExodeFontAsset) =>
92
+ `${asset.id}:${asset.version ?? 0}:${asset.rev ?? ''}:${Object.keys(asset.stops).sort().join(',')}:${Object.keys(asset.glyphs).sort().join('')}`;
93
+
94
+ /** The fonts a Screen should embed, or null when its current list is already right. */
95
+ /** fullFor(familyKey) returns the untrimmed font, when one is at hand. */
96
+ export function computeEmbeddedFonts(screen: any, fullFor: (familyKey: string) => ExodeFontAsset | null | undefined): ExodeFontAsset[] | null {
97
+ const usage = collectUsage(screen);
98
+ const current: ExodeFontAsset[] = Array.isArray(screen?.fonts) ? screen.fonts : [];
99
+ const next: ExodeFontAsset[] = [];
100
+ usage.forEach((u, key) => {
101
+ const existing = current.find(f => keyOf(f.family) === key);
102
+ const full = fullFor(key);
103
+ if (!full) {
104
+ // No full copy at hand (file opened without its source): keep what the file has.
105
+ if (existing) next.push(existing);
106
+ return;
107
+ }
108
+ const haveAxes = existing ? Object.keys(existing.stops) : [];
109
+ const haveChars = existing ? new Set(Object.keys(existing.glyphs)) : new Set<string>();
110
+ const axesOk = existing && Array.from(u.axes).every(t => haveAxes.includes(t)) && haveAxes.every(t => u.axes.has(t));
111
+ const charsOk = existing && Array.from(u.chars).every(ch => haveChars.has(ch) || !full.glyphs[ch]);
112
+ const sameSource = existing && existing.id === full.id && (existing.version ?? 0) === (full.version ?? 0) && (existing.rev ?? '') === (full.rev ?? '');
113
+ if (existing && axesOk && charsOk && sameSource) {
114
+ next.push(existing);
115
+ return;
116
+ }
117
+ next.push(subsetGlyphs(trimExodeFont(full, Array.from(u.axes)), u.chars));
118
+ });
119
+ const sig = (list: ExodeFontAsset[]) => list.map(signatureOf).sort().join('|');
120
+ return sig(next) === sig(current) ? null : next;
121
+ }
122
+
@@ -0,0 +1,130 @@
1
+ export interface ExodeFontAxis {
2
+ tag: string;
3
+ name: string;
4
+ min: number;
5
+ default: number;
6
+ max: number;
7
+ }
8
+ export interface ExodeFontGlyph {
9
+ /** One letter per path command: M L Q C Z. */
10
+ c: string;
11
+ /** Default-instance coordinates (font units), zigzag varints of the change from the previous x / y. */
12
+ p: string;
13
+ /** Default advance width (font units). */
14
+ a: number;
15
+ /** Per exposed axis, one entry per stop: zigzag varints of every coordinate change then the advance change ('' = no change). */
16
+ v?: Record<string, string[]>;
17
+ /** Per interacting axis group ("wdth|wght", "opsz|wght|SOFT"), the change left after the single axes and smaller groups, on the grid of the group's stops (row-major). */
18
+ x?: Record<string, string[]>;
19
+ }
20
+ export interface ExodeFontAsset {
21
+ format: 'exode-font@1';
22
+ id: string;
23
+ family: string;
24
+ source?: 'featured' | 'library' | 'upload' | 'creator';
25
+ libraryId?: string;
26
+ version?: number;
27
+ /** Content revision: changes whenever the outlines change (Font Studio edits), so embedded copies refresh. */
28
+ rev?: string;
29
+ /** Font Studio fonts keep their recipe so any file using them can reopen them in Studio. */
30
+ studio?: {
31
+ params: Record<string, number>;
32
+ axes: string[];
33
+ edits?: Record<string, {
34
+ d: number[];
35
+ adv?: number;
36
+ }>;
37
+ };
38
+ license?: string;
39
+ designer?: string;
40
+ upm: number;
41
+ ascender: number;
42
+ descender: number;
43
+ lineGap: number;
44
+ capHeight: number;
45
+ xHeight: number;
46
+ /** Every axis the source font has. */
47
+ axes: ExodeFontAxis[];
48
+ /** Exposed axes → sorted stop values (the default is always one of them). */
49
+ stops: Record<string, number[]>;
50
+ /** Axis groups that change the outline together beyond the sum of their parts ("wdth|wght"). */
51
+ pairs?: string[];
52
+ /** Keyed by character. */
53
+ glyphs: Record<string, ExodeFontGlyph>;
54
+ /** Pair kerning at the default instance, keyed by the two characters. */
55
+ kern?: Record<string, number>;
56
+ }
57
+ export declare function encodeInts(values: number[]): string;
58
+ export declare function decodeInts(s: string): number[];
59
+ /** Coordinates are stored as the change from the previous x (or y): small numbers, short varints. */
60
+ export declare function encodeCoords(coords: number[]): string;
61
+ export declare function decodeCoords(s: string): number[];
62
+ /** Number of coordinate pairs each path command uses. */
63
+ export declare const COMMAND_POINTS: Record<string, number>;
64
+ /** Register (or replace) a font. Returns true when the registry changed. */
65
+ export declare function registerExodeFont(asset: ExodeFontAsset): boolean;
66
+ export declare function registerExodeFonts(assets: ExodeFontAsset[] | undefined | null): boolean;
67
+ /** Register every font embedded in a file: the active screen plus any other screens it carries. */
68
+ export declare function registerFontsFromFile(data: any): boolean;
69
+ export declare function unregisterExodeFont(family: string): void;
70
+ export declare function getExodeFont(family: string | undefined | null): ExodeFontAsset | null;
71
+ export declare function isExodeFont(family: string | undefined | null): boolean;
72
+ export declare function listExodeFonts(): ExodeFontAsset[];
73
+ export declare function getExodeFontRegistryVersion(): number;
74
+ export declare function onExodeFontsChanged(listener: () => void): () => void;
75
+ export declare function splitFamilyAxes(family: string): {
76
+ family: string;
77
+ axes: Record<string, number>;
78
+ fx?: FontFx;
79
+ };
80
+ /**
81
+ * The family string to draw a text object with. Plain families come back unchanged;
82
+ * Exode fonts get their axis values appended so canvas callers carry them along.
83
+ */
84
+ export declare function familyWithAxes(family: string, axes?: Record<string, any> | null, fx?: FontFx | null): string;
85
+ export interface FontFx {
86
+ /** 3D extrusion: depth (% of the font size), angle (deg, 0 = right, 90 = down), side colour, how much the side darkens toward the back (0–1). */
87
+ d3?: {
88
+ on?: boolean;
89
+ depth: number;
90
+ angle: number;
91
+ color: string;
92
+ shade?: number;
93
+ };
94
+ /** Liquid: wobble amount and drips (% of size), phase (turns) and auto speed (turns per second, runtime). */
95
+ liquid?: {
96
+ on?: boolean;
97
+ amount: number;
98
+ drip: number;
99
+ phase?: number;
100
+ speed?: number;
101
+ };
102
+ /** Shape warp: arc bends the line round a circle, wave ripples it, bulge swells its middle. amount −100…100. */
103
+ shape?: {
104
+ on?: boolean;
105
+ kind: 'arc' | 'wave' | 'bulge';
106
+ amount: number;
107
+ length?: number;
108
+ phase?: number;
109
+ };
110
+ }
111
+ /** "3d:40:45:333333:0.5;lq:30:20:0:0;sh:arc:40:100:0" (no commas: some callers split font lists on them). */
112
+ export declare function fxToString(fx: FontFx): string;
113
+ export declare function parseFx(str: string): FontFx | undefined;
114
+ /** Route canvas text calls for Exode fonts through glyph paths. Safe to call more than once. */
115
+ export declare function installExodeFontHooks(): void;
116
+ /** SVG path data for a string at the given axis values (previews, export to vector). */
117
+ export declare function textToSvgPath(family: string, text: string, size: number, axes?: Record<string, number>): {
118
+ d: string;
119
+ width: number;
120
+ };
121
+ /** Blended outline and advance of one glyph at the given axis values (tests, export). */
122
+ export declare function glyphAt(asset: ExodeFontAsset, ch: string, values: Record<string, number>): {
123
+ coords: number[];
124
+ adv: number;
125
+ } | null;
126
+ /** Blended coordinates of one glyph at the given axis values. */
127
+ export declare function glyphCoordsAt(asset: ExodeFontAsset, ch: string, values: Record<string, number>): number[] | null;
128
+ /** A copy of a font with only the listed axes kept (what a .exode file embeds). */
129
+ export declare function trimExodeFont(asset: ExodeFontAsset, keepAxes: string[]): ExodeFontAsset;
130
+ //# sourceMappingURL=exodeFonts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exodeFonts.d.ts","sourceRo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