@logomarks/lookbook 0.0.0-stage → 0.1.2

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.
@@ -0,0 +1,134 @@
1
+ /**
2
+ * @module @logomarks/lookbook/looks/bloom
3
+ *
4
+ * The bloom set: Lookbook looks on the flower backgrounds (public/assets/img/logomarks/glass: bloom, dahlia, iris,
5
+ * lily, marigold and palm), after the owner's dance-event and festival posters (2026-11-08): a dark flower full bleed,
6
+ * the mark at its heart, big condensed capitals, small event meta. One CSS block each in wall-looks.css.
7
+ *
8
+ * - bloomposter: an event poster, wide. The name split either side of the mark, a date and a tagline under it, a small
9
+ * lockup in the corner.
10
+ * - bloomglow: the flower dimmed, the mark's outline drawing itself in the flower's own colour and glowing (animated).
11
+ * - bloomband: the mark tiled small across the top as a pattern that fades into the flower, the lockup centred.
12
+ */
13
+
14
+ import { escapeHtml } from '@arraypress/text';
15
+ import { withLength, def, use, mk, meta, art, around, pickOf } from './kit.js';
16
+
17
+ /** The bloom looks: dealt only to marks that suit an emblem on a flower (`bloomFits`). */
18
+ export const BLOOM_KINDS = new Set(['bloomposter', 'bloomglow', 'bloomband']);
19
+
20
+ const FIT_SUBJECTS = new Set(['abstract', 'nature', 'sky', 'symbol']);
21
+ const NO_STYLES = new Set(['letter', 'monogram', 'badge', 'iso', 'glitch', 'grid', 'animal', 'inflated']);
22
+ /** Whether a mark suits the bloom looks: abstract and round, like a festival emblem (the owner, 2026-11-08: "the more
23
+ * abstract shapes (and circular ones) probably look best"; a letter, a teacup or a grid between two words reads as a
24
+ * typo). An abstract, nature, sky or symbol subject, no letter, not a letter, badge, iso, glitch, grid, animal or
25
+ * inflated style, and tagged round or radial (about 230 marks). */
26
+ export function bloomFits(m) {
27
+ return (
28
+ !m.letter &&
29
+ FIT_SUBJECTS.has(m.subject?.[0] ?? '') &&
30
+ !NO_STYLES.has(m.style ?? '') &&
31
+ !!m.tags?.some((t) => t === 'round' || t === 'radial')
32
+ );
33
+ }
34
+
35
+ /** Every flower background. */
36
+ const FLOWERS = /\/(bloom|dahlia|iris|lily|marigold|palm)-\d+\.webp$/;
37
+ /** The single blooms and close crops: one flower to put the mark on (no palms, no marigold fields). */
38
+ const BLOOMS = /\/(bloom|dahlia|iris|lily)-\d+\.webp$/;
39
+
40
+ /** The glow colour that suits a flower background: its series, and for the neon blooms their own hue. */
41
+ export function bloomInk(src) {
42
+ const m = /\/(bloom|dahlia|iris|lily|marigold|palm)-(\d+)\.webp$/.exec(src);
43
+ if (!m) return '#ff6a3d';
44
+ const n = Number(m[2]);
45
+ if (m[1] === 'bloom') return n === 1 ? '#b98cff' : n <= 5 ? '#ff5fa2' : n <= 9 ? '#ff6a3d' : n <= 12 ? '#9fd8ff' : '#ff7a3d';
46
+ return { dahlia: '#ff5a4f', iris: '#8fb8ff', lily: '#bfe3ff', marigold: '#ffb347', palm: '#d8ff8a' }[m[1]] ?? '#ff6a3d';
47
+ }
48
+
49
+ /** Event dates, each with its ordinal. */
50
+ const DATES = [
51
+ ['Dec 31', 'st'],
52
+ ['Jan 01', 'st'],
53
+ ['Jun 21', 'st'],
54
+ ['Aug 14', 'th'],
55
+ ['Oct 03', 'rd'],
56
+ ['Mar 20', 'th'],
57
+ ];
58
+
59
+ /** The name split for either side of the mark: two halves of a two-word name, or the name and its trade's first word. */
60
+ export function splitName(name, line) {
61
+ const words = name.trim().split(/\s+/);
62
+ if (words.length > 1) {
63
+ const k = Math.ceil(words.length / 2);
64
+ return [words.slice(0, k).join(' '), words.slice(k).join(' ')];
65
+ }
66
+ const trade = line
67
+ .replace(/\b(Co\.?|Ltd\.?|Inc\.?|&|and|The)\b/gi, ' ')
68
+ .trim()
69
+ .split(/\s+/)[0];
70
+ return [name, trade || 'Club'];
71
+ }
72
+
73
+ const photo = (src, cls) => `<img class="${cls}" src="${src}" alt="" loading="lazy" decoding="async" />`;
74
+
75
+ /** bloomposter: a dark flower full bleed, NAME ◎ WORD across the middle in condensed capitals with the mark between,
76
+ * a date and the tagline under it, and a small stacked lockup in the corner. */
77
+ function bloomposter(c) {
78
+ const pick = pickOf(c);
79
+ const [left, right] = splitName(c.name, c.line);
80
+ const [date, ord] = pick(DATES);
81
+ // each side has about 34% of the width: Bebas Neue's capitals run about 0.42 em each, so a long word sets smaller
82
+ const longest = Math.max(left.length, right.length);
83
+ return {
84
+ style: `;--bpw:${Math.min(10, 78 / longest).toFixed(2)}cqw`,
85
+ attrs: '',
86
+ inner:
87
+ `<svg class="wx-def" aria-hidden="true"><defs>${def(c)}</defs></svg>` +
88
+ photo(c.glass(BLOOMS), 'wx-bpphoto') +
89
+ `<span class="wx-bprow"><b>${escapeHtml(left)}</b>` +
90
+ `<svg class="wx-bpmark" viewBox="0 0 512 512" aria-hidden="true">${mk(use(c, ''))}</svg>` +
91
+ `<b>${escapeHtml(right)}</b></span>` +
92
+ `<span class="wx-bpdate"><b>${date}<sup>${ord}</sup></b><i>${escapeHtml(c.tagline)}</i></span>` +
93
+ `<span class="wx-bpline">${escapeHtml(c.line)}</span>` +
94
+ `<span class="wx-bplock"><svg viewBox="0 0 512 512" aria-hidden="true">${use(c, '')}</svg><b>${escapeHtml(c.name)}</b></span>`,
95
+ };
96
+ }
97
+
98
+ /** bloomglow: the flower dimmed, the mark's outline drawing itself in the flower's colour, then glowing; the name in
99
+ * wide-tracked capitals under it. */
100
+ function bloomglow(c) {
101
+ const src = c.glass(BLOOMS);
102
+ return {
103
+ style: `;--ink:${bloomInk(src)}`,
104
+ attrs: '',
105
+ inner:
106
+ photo(src, 'wx-bgphoto') +
107
+ // the line is drawn inline, not with <use>: Chrome ignores pathLength on a path reached through <use>
108
+ art(
109
+ around(72),
110
+ `<defs>${def(c)}</defs>${mk(`${use(c, 'wx-bgfill')}<g class="wx-bgglow" data-m="len">${withLength(c.paths)}</g><g class="wx-bgline" data-m="len">${withLength(c.paths)}</g>`)}`,
111
+ ) +
112
+ meta('tl', escapeHtml(c.line)) +
113
+ `<span class="wx-foot is-centre"><b class="wc-name wx-bgname">${escapeHtml(c.name)}</b></span>`,
114
+ };
115
+ }
116
+
117
+ /** bloomband: a band of the mark tiled small across the top, fading down into the flower; the mark big and white in
118
+ * the middle, the name under it. */
119
+ function bloomband(c) {
120
+ const id = `${c.uid}-bp`;
121
+ return {
122
+ style: '',
123
+ attrs: '',
124
+ inner:
125
+ `<svg class="wx-def" aria-hidden="true"><defs>${def(c)}</defs></svg>` +
126
+ photo(c.glass(FLOWERS), 'wx-bbphoto') +
127
+ `<svg class="wx-bbpat" viewBox="0 0 400 500" preserveAspectRatio="xMidYMin slice" aria-hidden="true"><defs><pattern id="${id}" width="44" height="44" patternUnits="userSpaceOnUse"><g transform="translate(10 10) scale(0.0469)">${use(c, '')}</g></pattern></defs><rect width="400" height="500" fill="url(#${id})" /></svg>` +
128
+ art('0 0 512 512', mk(use(c, '')), 'wx-bbmark') +
129
+ `<span class="wx-foot is-centre"><b class="wc-name wx-bbname">${escapeHtml(c.name)}</b><i>${escapeHtml(c.tagline)}</i></span>`,
130
+ };
131
+ }
132
+
133
+ /** The bloom set's builders, by kind. */
134
+ export const BLOOM = { bloomposter, bloomglow, bloomband };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @module @logomarks/lookbook/looks/club
3
+ *
4
+ * The club set: Lookbook looks on the owner's nightclub photos (public/assets/img/logomarks/photos: club-N, the crowd in a
5
+ * big hall; club-dancer-N, a woman dancing in the crowd; club-crowd-N, club-goers framed as portraits), after his
6
+ * reference of a white serif mark centred over a red-washed club crowd (2026-11-10). Black and white under ONE strong ink,
7
+ * the mark white, small Swiss meta. One CSS block each in wall-looks.css (after "the club set").
8
+ *
9
+ * - clubwash: the crowd washed in one ink, the mark big and white over it (the reference). Still.
10
+ * - clubposter: a Swiss poster: a dancer or club-goer in a photo cell washed in the ink, the name in condensed capitals
11
+ * full width under it, the mark in the ink beside the meta. Still.
12
+ * - clubpulse: the crowd darker under the ink, the lights pulsing on the beat, the mark fading up over it (8 s).
13
+ */
14
+ import { type LookCtx, type LookOut } from './kit.js';
15
+ /** The club looks: dealt only to marks that suit a club night (`clubFits`). */
16
+ export declare const CLUB_KINDS: ReadonlySet<string>;
17
+ /** Every club photo: kept for the club looks, out of the older photo looks' general picks (`photoOf` in ../wall.js). */
18
+ export declare const CLUB_PHOTOS: RegExp;
19
+ /** Whether a mark suits a club night: a music subject (headphones, decks, a mic), or a club trade among its first three
20
+ * industries (the club emotes, the festival rosettes, the pillar and stem monograms, the headphone animals, the party
21
+ * faces, blackletter) with a subject that isn't a literal object; never iso (a drawn building or object). About 245
22
+ * marks. */
23
+ export declare function clubFits(m: { subject?: readonly string[]; style?: string; industries?: readonly string[] }): boolean;
24
+ /** clubwash: the crowd in black and white under one ink, the mark big and white in the middle, the name in wide-tracked
25
+ * capitals at the foot, the trade and a volume in the top corners. */
26
+ declare function clubwash(c: LookCtx): LookOut;
27
+ /** clubposter: a Swiss club poster. A hairline meta row; a dancer or club-goer in a photo cell, black and white under the
28
+ * ink; the name in condensed capitals the full width; a rule; the mark in the ink, and the tagline, night and address. */
29
+ declare function clubposter(c: LookCtx): LookOut;
30
+ /** clubpulse: the crowd dark under the ink, the stage lights pulsing on the beat (four a cycle), the mark fading up over
31
+ * the crowd, holding, and fading; the name in wide-tracked capitals under it. 8 s; the still is the mark up, lights low. */
32
+ declare function clubpulse(c: LookCtx): LookOut;
33
+ /** The club set's builders, by kind. */
34
+ export declare const CLUB: {
35
+ clubwash: typeof clubwash;
36
+ clubposter: typeof clubposter;
37
+ clubpulse: typeof clubpulse;
38
+ };
39
+ export {};
@@ -0,0 +1,140 @@
1
+ /**
2
+ * @module @logomarks/lookbook/looks/club
3
+ *
4
+ * The club set: Lookbook looks on the owner's nightclub photos (public/assets/img/logomarks/photos: club-N, the crowd in a
5
+ * big hall; club-dancer-N, a woman dancing in the crowd; club-crowd-N, club-goers framed as portraits), after his
6
+ * reference of a white serif mark centred over a red-washed club crowd (2026-11-10). Black and white under ONE strong ink,
7
+ * the mark white, small Swiss meta. One CSS block each in wall-looks.css (after "the club set").
8
+ *
9
+ * - clubwash: the crowd washed in one ink, the mark big and white over it (the reference). Still.
10
+ * - clubposter: a Swiss poster: a dancer or club-goer in a photo cell washed in the ink, the name in condensed capitals
11
+ * full width under it, the mark in the ink beside the meta. Still.
12
+ * - clubpulse: the crowd darker under the ink, the lights pulsing on the beat, the mark fading up over it (8 s).
13
+ */
14
+
15
+ import { escapeHtml } from '@arraypress/text';
16
+ import { def, use, mk, meta, art, pickOf } from './kit.js';
17
+
18
+ /** The club looks: dealt only to marks that suit a club night (`clubFits`). */
19
+ export const CLUB_KINDS = new Set(['clubwash', 'clubposter', 'clubpulse']);
20
+
21
+ /** Every club photo: kept for the club looks, out of the older photo looks' general picks (`photoOf` in ../wall.js). */
22
+ export const CLUB_PHOTOS = /\/club-[a-z-]*\d+\.webp$/;
23
+ /** The crowd in the hall (the Ambiance shots): wide, lights above, heads below, room for a mark in the middle. */
24
+ const CROWDS = /\/club-\d+\.webp$/;
25
+ /** One person in the crowd: the dancer and the club-goers' portraits (a face, so never under the mark). */
26
+ const PEOPLE = /\/club-(dancer|crowd)-\d+\.webp$/;
27
+
28
+ /** The trades of a club night: a mark with one of these among its first three industries can take a club look. */
29
+ const CLUB_TRADES = new Set(['dj', 'dance', 'music', 'events', 'bar', 'cocktail-bar']);
30
+ /** What a club mark may depict: no literal food, buildings, vehicles, objects or sport (a pint or a shopfront over a
31
+ * dance floor reads as the wrong trade). */
32
+ const CLUB_SUBJECTS = new Set(['music', 'symbol', 'abstract', 'nature', 'sky', 'letter', 'monogram', 'number', 'animal', 'person']);
33
+ /** Whether a mark suits a club night: a music subject (headphones, decks, a mic), or a club trade among its first three
34
+ * industries (the club emotes, the festival rosettes, the pillar and stem monograms, the headphone animals, the party
35
+ * faces, blackletter) with a subject that isn't a literal object; never iso (a drawn building or object). About 245
36
+ * marks. */
37
+ export function clubFits(m) {
38
+ if (m.style === 'iso') return false;
39
+ const subject = m.subject?.[0] ?? '';
40
+ if (subject === 'music') return true;
41
+ return CLUB_SUBJECTS.has(subject) && !!m.industries?.slice(0, 3).some((i) => CLUB_TRADES.has(i));
42
+ }
43
+
44
+ /** The washes: one strong ink, red most often (the reference), then hot pink, electric blue, violet and ember. */
45
+ const WASHES = ['#e8321e', '#e8321e', '#ff2e88', '#2b4bff', '#6c3cff', '#ff5a1f'];
46
+ /** Club nights: a day and its hours. */
47
+ const NIGHTS = ['Fri 23:00 — late', 'Sat 22:00 — 06:00', 'Thu 21:00 — 03:00', 'Sat 23:00 — late', 'Fri 22:00 — 05:00', 'Sun 18:00 — 00:00'];
48
+ const DATES = ['14.03', '21.06', '31.10', '12.12', '31.12', '03.08'];
49
+ /** A club card's own words (the owner, 2026-11-10: "do a special case for clubs"): the shared brand picker can give a club
50
+ * mark another trade's line ("Tattoo studio", "Atelier"), so the club looks set a club night's line, tagline and address
51
+ * ending instead. The made-up name stays the picker's. */
52
+ const CLUB_LINES = [
53
+ 'Nightclub',
54
+ 'Club night',
55
+ 'Sound system',
56
+ 'Records',
57
+ 'Collective',
58
+ 'Sessions',
59
+ 'Warehouse',
60
+ 'Late night',
61
+ 'Disco',
62
+ 'Rave',
63
+ ];
64
+ const CLUB_TAGLINES = [
65
+ 'Dance till the lights come up.',
66
+ 'All night long.',
67
+ 'Sound first.',
68
+ 'Louder together.',
69
+ 'The floor is yours.',
70
+ 'Lights low, bass high.',
71
+ 'See you on the floor.',
72
+ 'Made to be danced to.',
73
+ ];
74
+ const CLUB_TLDS = ['.club', '.fm', '.live', '.xyz'];
75
+
76
+ const photo = (src, cls) => `<img class="${cls}" src="${src}" alt="" loading="lazy" decoding="async" />`;
77
+ const vol = (c) => `Vol. ${String(1 + Math.floor(c.r() * 24)).padStart(2, '0')}`;
78
+
79
+ /** clubwash: the crowd in black and white under one ink, the mark big and white in the middle, the name in wide-tracked
80
+ * capitals at the foot, the trade and a volume in the top corners. */
81
+ function clubwash(c) {
82
+ const pick = pickOf(c);
83
+ const line = pick(CLUB_LINES);
84
+ return {
85
+ style: `;--ink:${pick(WASHES)}`,
86
+ attrs: '',
87
+ inner:
88
+ photo(c.photo(CROWDS), 'wx-cwphoto') +
89
+ `<span class="wx-cwwash" aria-hidden="true"></span>` +
90
+ art('0 0 512 512', `<defs>${def(c)}</defs>${mk(use(c, ''))}`, 'wx-cwmark') +
91
+ meta('tl', escapeHtml(line)) +
92
+ meta('tr', vol(c)) +
93
+ `<span class="wx-foot is-centre"><b class="wc-name wx-cwname">${escapeHtml(c.name)}</b><i>${pick(NIGHTS)}</i></span>`,
94
+ };
95
+ }
96
+
97
+ /** clubposter: a Swiss club poster. A hairline meta row; a dancer or club-goer in a photo cell, black and white under the
98
+ * ink; the name in condensed capitals the full width; a rule; the mark in the ink, and the tagline, night and address. */
99
+ function clubposter(c) {
100
+ const pick = pickOf(c);
101
+ const name = c.name.toUpperCase();
102
+ // Anton's capitals run about 0.5 em: the name fills the 92% measure, up to 21cqw
103
+ const size = Math.min(21, 92 / (Math.max(4, name.length) * 0.5));
104
+ const host = c.name.toLowerCase().replace(/[^a-z0-9]/g, '');
105
+ const line = pick(CLUB_LINES),
106
+ tagline = pick(CLUB_TAGLINES),
107
+ tld = pick(CLUB_TLDS);
108
+ return {
109
+ style: `;--ink:${pick(WASHES)};--cpw:${size.toFixed(2)}cqw`,
110
+ attrs: '',
111
+ inner:
112
+ `<svg class="wx-def" aria-hidden="true"><defs>${def(c)}</defs></svg>` +
113
+ `<span class="wx-cptop"><i>${escapeHtml(line)}</i><i>${vol(c)}</i><i>${pick(DATES)}</i></span>` +
114
+ `<span class="wx-cpcell">${photo(c.photo(PEOPLE), 'wx-cpphoto')}</span>` +
115
+ `<b class="wc-name wx-cpname">${escapeHtml(c.name)}</b>` +
116
+ `<span class="wx-cpfoot"><svg class="wx-cpmark" viewBox="0 0 512 512" aria-hidden="true">${mk(use(c, ''))}</svg>` +
117
+ `<span class="wx-cpmeta"><i>${escapeHtml(tagline)}</i><i>${pick(NIGHTS)}</i><i>www.${escapeHtml(host)}${escapeHtml(tld)}</i></span></span>`,
118
+ };
119
+ }
120
+
121
+ /** clubpulse: the crowd dark under the ink, the stage lights pulsing on the beat (four a cycle), the mark fading up over
122
+ * the crowd, holding, and fading; the name in wide-tracked capitals under it. 8 s; the still is the mark up, lights low. */
123
+ function clubpulse(c) {
124
+ const pick = pickOf(c);
125
+ return {
126
+ style: `;--ink:${pick(WASHES)}`,
127
+ attrs: '',
128
+ inner:
129
+ photo(c.photo(CROWDS), 'wx-cuphoto') +
130
+ `<span class="wx-cuwash" aria-hidden="true"></span>` +
131
+ `<span class="wx-culight" aria-hidden="true"></span>` +
132
+ art('0 0 512 512', `<defs>${def(c)}</defs>${mk(use(c, ''))}`, 'wx-cumark') +
133
+ meta('tl', 'Live') +
134
+ meta('tr', pick(NIGHTS).split(' — ')[0]) +
135
+ `<span class="wx-foot is-centre"><b class="wc-name wx-cuname">${escapeHtml(c.name)}</b></span>`,
136
+ };
137
+ }
138
+
139
+ /** The club set's builders, by kind. */
140
+ export const CLUB = { clubwash, clubposter, clubpulse };
@@ -0,0 +1,186 @@
1
+ /**
2
+ * @module @logomarks/lookbook/looks
3
+ *
4
+ * The Lookbook's drawn looks: cards whose artwork is the mark itself redrawn (traced, constructed, refracted, pixelated,
5
+ * screened, lit, flipped, contoured, debossed, heat-mapped, shadowed), not a mark laid on a picture. `card()`
6
+ * (../wall.js) picks the kind and calls `look()`; each kind's styles are a block in wall-looks.css.
7
+ *
8
+ * - Pure: HTML strings from the card's seeded random, so the page and its script make identical cards.
9
+ * - CSP: per-card values go in `style` attributes as custom properties (allowed); no `<style>`, no script. SVG filters,
10
+ * masks and patterns are inline elements with ids unique to the card (`wlk-…`; the expanded view renames its copy).
11
+ * - Motion is CSS only, on cards marked `data-anim`: the page adds `is-live` while one is near the screen (and the
12
+ * preview page always), and the animations run only then. Under reduced motion, in Plain mode and before a card is
13
+ * live, each card shows its final frame.
14
+ * - The mark is drawn once per card, in `<defs>` (`[data-m]`), and reused with `<use>`; `retarget()` swaps it for
15
+ * another mark in the expanded view.
16
+ */
17
+ import { markUrl, type LookCtx, type LookOut } from './kit.js';
18
+ /** What a look is given, and what it returns (./kit.js). */
19
+ export type { LookCtx, LookOut };
20
+ /** The mark as a CSS background image (./kit.js). */
21
+ export { markUrl };
22
+ /** The bloom looks, dealt only to abstract, round marks (./bloom.js). */
23
+ export { BLOOM_KINDS, bloomFits } from './bloom.js';
24
+ /** The club looks, dealt only to marks for a club night, on the club photos (./club.js). */
25
+ export { CLUB_KINDS, CLUB_PHOTOS, clubFits } from './club.js';
26
+ /** The drawn looks' kinds. */
27
+ export declare const LOOK_KINDS: readonly [
28
+ 'draw',
29
+ 'construct',
30
+ 'glassdrift',
31
+ 'pixelassemble',
32
+ 'breathe',
33
+ 'neon',
34
+ 'splitflap',
35
+ 'contour',
36
+ 'blueprint',
37
+ 'letterpress',
38
+ 'dotmatrix',
39
+ 'topo',
40
+ 'thermal',
41
+ 'longshadow',
42
+ 'acidmap',
43
+ 'megacrop',
44
+ 'outlinewall',
45
+ 'terminal',
46
+ 'pixelframe',
47
+ 'diffusion',
48
+ 'chrome',
49
+ 'puff',
50
+ 'datamosh',
51
+ 'holo',
52
+ 'eink',
53
+ 'cloud',
54
+ 'gridfill',
55
+ 'bloomposter',
56
+ 'bloomglow',
57
+ 'bloomband',
58
+ 'laser',
59
+ 'orbittext',
60
+ 'sunshadow',
61
+ 'patch',
62
+ 'slitscan',
63
+ 'ascii',
64
+ 'stencil',
65
+ 'acrylic',
66
+ 'clubwash',
67
+ 'clubposter',
68
+ 'clubpulse',
69
+ 'frost',
70
+ 'spectral',
71
+ 'editorial',
72
+ 'brandsheet',
73
+ 'overprint',
74
+ ];
75
+ /** A drawn look's kind. */
76
+ export type LookKind = (typeof LOOK_KINDS)[number];
77
+ /**
78
+ * Each animated look's loop, for its video download: one whole cycle of its CSS motion
79
+ * (`cycle`, seconds, the longest animation's period in wall-looks.css), played `speed` times faster, so every
80
+ * clip runs 3–6 s and loops without a seam. Keep in step with the CSS durations.
81
+ */
82
+ export declare const LOOK_LOOP: Partial<
83
+ Record<
84
+ LookKind,
85
+ {
86
+ cycle: number;
87
+ speed: number;
88
+ }
89
+ >
90
+ >;
91
+ /** How often each look is dealt, against the older looks' weights (`WEIGHTS`: photo 3, gradient 3, mono 2 … crop 1, 23
92
+ * in all): about 8.5 in 31.5 by weight, nearer 3 in 10 on a wall (neighbours avoid each other's looks, which favours the
93
+ * many light ones), so a wall is still mostly photos, colour and gradients. */
94
+ export declare const LOOK_WEIGHTS: Record<LookKind, number>;
95
+ /** Each look's card shape (width / height). */
96
+ export declare const LOOK_RATIO: Record<LookKind, string>;
97
+ /** Names for the expanded view's background label. */
98
+ export declare const LOOK_LABEL: Record<LookKind, string>;
99
+ /** The construction drawn round a mark: an 8 × 8 grid on its square, its box, centre lines, diagonals, and its
100
+ * inscribed and circumscribed circles (dashed, each shown through a solid ring that draws round: a dash can't also
101
+ * draw itself). Also the radii, for the card's corner. */
102
+ export declare function constructGuides(
103
+ paths: string,
104
+ uid: string,
105
+ ): {
106
+ svg: string;
107
+ rIn: number;
108
+ rOut: number;
109
+ };
110
+ /** The pixel mosaic's cells: square tiles, `n` across, each popping in at its own moment (seeded order). */
111
+ export declare function mosaicArt(
112
+ paths: string,
113
+ uid: string,
114
+ grey: boolean,
115
+ r: () => number,
116
+ ): {
117
+ svg: string;
118
+ cols: number;
119
+ rows: number;
120
+ count: number;
121
+ };
122
+ /** A drawing's centre lines and dimensions round a mark: extension lines, dimension lines with ticks, the measures. */
123
+ export declare function blueprintDims(paths: string): string;
124
+ /** The dot matrix's layers: every LED (dim, one pattern), and the lit ones (the mark's cells), `n` across. The lit LEDs
125
+ * are drawn row by row (a path of round dots a row and brightness: zero-length lines with round caps), so the panel can
126
+ * power on a row at a time with a few dozen elements, not hundreds; each LED is one of three brightnesses (seeded), and
127
+ * one is a tired LED, dimmer than the rest. */
128
+ export declare function ledArt(
129
+ paths: string,
130
+ uid: string,
131
+ n: number,
132
+ viewBox: string,
133
+ seed: number,
134
+ ): {
135
+ dim: string;
136
+ lit: string;
137
+ cols: number;
138
+ rows: number;
139
+ };
140
+ /** The thermal look's heat seeker: a reticle that hunts across the mark in short, overshooting jumps (four points, each
141
+ * warmer and nearer), homes onto the hottest spot, locks (its brackets snap in and pulse, LOCK shows), holds, and lets go
142
+ * back to where it started. The readout beside it ticks up as it closes in. Everything is drawn round the mark's own heat
143
+ * (`heatField`), so the lock lands where the picture is whitest; the timings are the CSS's (wall-looks.css, thermal). */
144
+ export declare function seekerArt(
145
+ paths: string,
146
+ uid: string,
147
+ seed: number,
148
+ lo: number,
149
+ hi: number,
150
+ ): {
151
+ svg: string;
152
+ vars: string;
153
+ };
154
+ /** The acid set's colours: lime, teal, near-black. */
155
+ export declare const ACID: {
156
+ readonly lime: '#c6f432';
157
+ readonly teal: '#0f8b8d';
158
+ readonly black: '#0b0f0c';
159
+ };
160
+ /**
161
+ * A name's width in ems, set in Michroma capitals (the terminal's name is sized to its measure from this; a count of
162
+ * letters cut MANSARD off at the card's edge).
163
+ *
164
+ * @param name The name.
165
+ */
166
+ export declare function wideEms(name: string): number;
167
+ /**
168
+ * Refits a name that's sized from its width (`data-fit`: the terminal's and the editorial's) after its text changes: a
169
+ * name typed in the Lookbook's toolbar.
170
+ *
171
+ * @param el The name's element.
172
+ */
173
+ export declare function refit(el: HTMLElement): void;
174
+ /** Whether a kind is one of the drawn looks. */
175
+ export declare const isLook: (k: string) => k is LookKind;
176
+ /** A drawn look's card: what goes inside it, on its style and as its attributes (`data-anim` on the animated ones). */
177
+ export declare function look(c: LookCtx): LookOut;
178
+ /**
179
+ * Another mark on a drawn card (the expanded view's "try another"): the mark's `<defs>` copy (and the topo clip and the
180
+ * traced line), the reeded glass's image, the construction and the blueprint's dimensions, and the pixel and LED cells
181
+ * are redrawn for it; everything else on the card stays.
182
+ *
183
+ * @param el The card.
184
+ * @param paths The new mark's paths' markup.
185
+ */
186
+ export declare function retarget(el: HTMLElement, paths: string): void;