@codingsteve01/ember 0.0.0-stage → 1.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.
@@ -0,0 +1,36 @@
1
+ /* ----- Stat tile: a number with its course and its usual value; the whole tile is a link ----- */
2
+ .stat {
3
+ display: grid;
4
+ gap: var(--gap-xs);
5
+ padding: var(--gap-md);
6
+ background: var(--bg-card);
7
+ border: 1px solid var(--border);
8
+ border-radius: var(--r-card);
9
+ color: inherit;
10
+ text-decoration: none;
11
+ }
12
+
13
+ a.stat:hover {
14
+ border-color: var(--border-strong);
15
+ }
16
+
17
+ .stat-label {
18
+ font-size: var(--fs-sm);
19
+ color: var(--text-muted);
20
+ }
21
+
22
+ .stat-value {
23
+ font-size: var(--fs-3xl);
24
+ font-weight: 500;
25
+ line-height: var(--lh-tight);
26
+ }
27
+
28
+ .stat-usual {
29
+ font-size: var(--fs-xs);
30
+ color: var(--text-light);
31
+ }
32
+
33
+ /* Red means act: only a tile that needs attention turns red. */
34
+ .stat.is-alert .stat-value {
35
+ color: var(--error);
36
+ }
@@ -0,0 +1,20 @@
1
+ /* ----- Empty and loading states ----- */
2
+ .empty {
3
+ padding: var(--gap-xl) var(--gap-md);
4
+ text-align: center;
5
+ color: var(--text-muted);
6
+ }
7
+
8
+ .skeleton {
9
+ border-radius: var(--r);
10
+ background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-sheen) 50%, var(--sk-base) 75%);
11
+ background-size: 200% 100%;
12
+ animation: ember-sheen 1.4s linear infinite;
13
+ min-height: 1em;
14
+ }
15
+
16
+ @keyframes ember-sheen {
17
+ to {
18
+ background-position: -200% 0;
19
+ }
20
+ }
@@ -0,0 +1,41 @@
1
+ /* ----- Tables ----- */
2
+ .table {
3
+ width: 100%;
4
+ border-collapse: collapse;
5
+ font-size: var(--fs-sm);
6
+ }
7
+
8
+ .table th {
9
+ text-align: left;
10
+ font-weight: 500;
11
+ color: var(--text-muted);
12
+ padding: var(--gap-sm) var(--gap);
13
+ border-bottom: 1px solid var(--border);
14
+ position: sticky;
15
+ top: var(--sticky-top, 0px); /* just below the top bar */
16
+ z-index: var(--z-sticky);
17
+ background: var(--bg-card);
18
+ }
19
+
20
+ .table td {
21
+ padding: var(--gap-sm) var(--gap);
22
+ border-bottom: 1px solid var(--border);
23
+ }
24
+
25
+ .table tbody tr:hover {
26
+ background: var(--bg-hover);
27
+ }
28
+
29
+ .table .num {
30
+ text-align: right;
31
+ font-variant-numeric: tabular-nums;
32
+ }
33
+
34
+ .table-wrap {
35
+ overflow-x: auto;
36
+ }
37
+
38
+ /* A wrapper that scrolls sideways is its own sticky frame: there the head sticks at its top, not below the bar. */
39
+ .table-wrap .table th {
40
+ top: 0;
41
+ }
@@ -0,0 +1,75 @@
1
+ /* ----- Top bar: back button and brand left, filters in the middle, sync, status and theme toggle right.
2
+ It stays in view: sticky below --topbar-top (js/sticky-offsets.js), above everything else that sticks. ----- */
3
+ .topbar {
4
+ position: sticky;
5
+ top: var(--topbar-top, 0px);
6
+ z-index: var(--z-topbar);
7
+ display: flex;
8
+ align-items: center;
9
+ gap: var(--gap-md);
10
+ height: var(--topbar-height);
11
+ padding: 0 var(--gap-lg);
12
+ background: var(--bg);
13
+ border-bottom: 1px solid var(--border);
14
+ }
15
+
16
+ .topbar-brand {
17
+ display: flex;
18
+ align-items: center;
19
+ gap: var(--gap-sm);
20
+ font-family: var(--font-serif);
21
+ font-size: var(--fs-xl);
22
+ font-weight: 500;
23
+ color: var(--text);
24
+ text-decoration: none;
25
+ }
26
+
27
+ /* The one accent dot of the brand. */
28
+ .topbar-brand::before {
29
+ content: '';
30
+ width: 9px;
31
+ height: 9px;
32
+ border-radius: 50%;
33
+ background: var(--accent);
34
+ }
35
+
36
+ .topbar-spacer {
37
+ flex: 1;
38
+ }
39
+
40
+ .topbar-actions {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: var(--gap-sm);
44
+ }
45
+
46
+ .topbar-status {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: var(--gap-xs);
50
+ color: var(--text-muted);
51
+ font-size: var(--fs-xs);
52
+ }
53
+
54
+ /* Status dot: grey when idle, accent while syncing, red only when something needs action. */
55
+ .status-dot {
56
+ width: 8px;
57
+ height: 8px;
58
+ border-radius: 50%;
59
+ background: var(--text-light);
60
+ }
61
+
62
+ .status-dot.is-busy {
63
+ background: var(--accent);
64
+ animation: ember-pulse 1.2s var(--ease) infinite;
65
+ }
66
+
67
+ .status-dot.is-error {
68
+ background: var(--error);
69
+ }
70
+
71
+ @keyframes ember-pulse {
72
+ 50% {
73
+ opacity: 0.35;
74
+ }
75
+ }
@@ -0,0 +1,56 @@
1
+ /* ----- Sparkline and split bar (js/viz.js) ----- */
2
+ .sparkline {
3
+ display: block;
4
+ overflow: visible;
5
+ }
6
+
7
+ .sparkline-line {
8
+ fill: none;
9
+ stroke: var(--spark, var(--d1));
10
+ stroke-width: 1.5;
11
+ vector-effect: non-scaling-stroke;
12
+ }
13
+
14
+ .sparkline-area {
15
+ fill: var(--spark, var(--d1));
16
+ opacity: 0.12;
17
+ }
18
+
19
+ .sparkline-dot {
20
+ fill: var(--spark, var(--d1));
21
+ }
22
+
23
+ .split {
24
+ display: grid;
25
+ gap: var(--gap-sm);
26
+ }
27
+
28
+ .split-bar {
29
+ display: flex;
30
+ height: 8px;
31
+ border-radius: var(--r-pill);
32
+ overflow: hidden;
33
+ background: var(--bg-hover);
34
+ }
35
+
36
+ .split-legend {
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ gap: var(--gap-xs) var(--gap-md);
40
+ font-size: var(--fs-xs);
41
+ color: var(--text-muted);
42
+ }
43
+
44
+ .split-key {
45
+ display: inline-flex;
46
+ align-items: center;
47
+ gap: var(--gap-xs);
48
+ color: inherit;
49
+ text-decoration: none;
50
+ }
51
+
52
+ .split-key i {
53
+ width: 10px;
54
+ height: 10px;
55
+ border-radius: 3px;
56
+ }
@@ -0,0 +1,14 @@
1
+ /* Ember components, one file each so a product can adopt them one at a time. */
2
+ @import url('./components/topbar.css');
3
+ @import url('./components/back.css');
4
+ @import url('./components/nav-flyout.css');
5
+ @import url('./components/page.css');
6
+ @import url('./components/breadcrumbs.css');
7
+ @import url('./components/controls.css');
8
+ @import url('./components/card.css');
9
+ @import url('./components/stat.css');
10
+ @import url('./components/viz.css');
11
+ @import url('./components/table.css');
12
+ @import url('./components/badge.css');
13
+ @import url('./components/states.css');
14
+ @import url('./components/chart.css');
package/css/ember.css ADDED
@@ -0,0 +1,4 @@
1
+ /* Ember in one import: tokens, base, components. */
2
+ @import url('./tokens.css');
3
+ @import url('./base.css');
4
+ @import url('./components.css');
package/css/tokens.css ADDED
@@ -0,0 +1,165 @@
1
+ /* ==========================================================================
2
+ Ember design tokens. The only file with literal colours, sizes and fonts.
3
+ Dark ("Ember", warm graphite) is the default; light ("Parchment") follows the OS
4
+ preference, and [data-theme] on <html> overrides both (js/theme.js).
5
+ The two light blocks must stay identical: CSS cannot share a declaration block between
6
+ a media query and a selector. test/tokens.test.mjs holds them together.
7
+ ========================================================================== */
8
+ :root {
9
+ /* Colours (dark) */
10
+ --bg: #1a1918;
11
+ --bg-card: #252422;
12
+ --bg-elev: #2a2927;
13
+ --bg-hover: #2e2d2a;
14
+ --bg-active: #383632;
15
+ --border: #33312d;
16
+ --border-strong: #423f3a;
17
+ --text: #ece9e2;
18
+ --text-muted: #a29e94;
19
+ --text-light: #76726a;
20
+ --accent: #d97757;
21
+ --accent-hover: #e48d70;
22
+ --accent-dim: rgba(217, 119, 87, 0.14);
23
+ --on-accent: #ffffff;
24
+ --error: #e5615a;
25
+ --error-dim: rgba(229, 97, 90, 0.14);
26
+ --warning: #dca54a;
27
+ --warning-dim: rgba(220, 165, 74, 0.14);
28
+ --success: #5db67c;
29
+ --success-dim: rgba(93, 182, 124, 0.14);
30
+ --info: #5b9cf2;
31
+ --info-dim: rgba(91, 156, 242, 0.14);
32
+ --d1: #d97757;
33
+ --d2: #6f9fd8;
34
+ --d3: #cfa64e;
35
+ --d4: #5fb3a1;
36
+ --d5: #a58bd6;
37
+ --d6: #7d796f;
38
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
39
+ --shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
40
+ --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
41
+
42
+ /* Layout */
43
+ --topbar-height: 56px;
44
+ --content-max: 1280px;
45
+ --chart-h: 260px;
46
+ --chart-h-sm: 180px;
47
+
48
+ /* Radii: controls 8, cards 12 */
49
+ --r-sm: 6px;
50
+ --r: 8px;
51
+ --r-card: 12px;
52
+ --r-pill: 999px;
53
+
54
+ /* Spacing (4-based) */
55
+ --gap-xs: 4px;
56
+ --gap-sm: 8px;
57
+ --gap: 12px;
58
+ --gap-md: 16px;
59
+ --gap-lg: 24px;
60
+ --gap-xl: 32px;
61
+
62
+ /* Typography: system fonts only, nothing is fetched from a third party */
63
+ --fs-2xs: 11px;
64
+ --fs-xs: 12px;
65
+ --fs-sm: 13px;
66
+ --fs-base: 14px;
67
+ --fs-lg: 16px;
68
+ --fs-xl: 18px;
69
+ --fs-2xl: 22px;
70
+ --fs-3xl: 28px;
71
+ --lh: 1.5;
72
+ --lh-tight: 1.25;
73
+ --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
74
+ --font-serif: 'Iowan Old Style', 'Charter', 'Sitka Text', Cambria, Georgia, serif;
75
+ --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;
76
+
77
+ /* Motion */
78
+ --t-fast: 0.08s;
79
+ --t: 0.14s;
80
+ --t-slow: 0.22s;
81
+ --ease: cubic-bezier(0.4, 0, 0.2, 1);
82
+
83
+ /* Derived */
84
+ --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
85
+ /* Layers: sticky table heads, the sticky top bar, overlays (menus, flyouts, dialogs). */
86
+ --z-sticky: 2;
87
+ --z-topbar: 30;
88
+ --z-overlay: 40;
89
+ --sk-base: var(--bg-hover);
90
+ --sk-sheen: var(--bg-active);
91
+
92
+ color-scheme: dark;
93
+ }
94
+
95
+ @media (prefers-color-scheme: light) {
96
+ :root:not([data-theme='dark']) {
97
+ --bg: #faf9f5;
98
+ --bg-card: #ffffff;
99
+ --bg-elev: #ffffff;
100
+ --bg-hover: #f2f0e9;
101
+ --bg-active: #e9e6dc;
102
+ --border: #e7e4da;
103
+ --border-strong: #d7d3c6;
104
+ --text: #1f1e1b;
105
+ --text-muted: #6b675e;
106
+ --text-light: #9a968b;
107
+ --accent: #c6613f;
108
+ --accent-hover: #ad5232;
109
+ --accent-dim: rgba(198, 97, 63, 0.1);
110
+ --on-accent: #ffffff;
111
+ --error: #c9372c;
112
+ --error-dim: rgba(201, 55, 44, 0.08);
113
+ --warning: #b7791f;
114
+ --warning-dim: rgba(183, 121, 31, 0.1);
115
+ --success: #2f8a57;
116
+ --success-dim: rgba(47, 138, 87, 0.08);
117
+ --info: #2f6fd6;
118
+ --info-dim: rgba(47, 111, 214, 0.08);
119
+ --d1: #c6613f;
120
+ --d2: #3d78c2;
121
+ --d3: #a87f22;
122
+ --d4: #2f8f7d;
123
+ --d5: #7d62b8;
124
+ --d6: #a09b8f;
125
+ --shadow-sm: 0 1px 2px rgba(31, 30, 27, 0.04);
126
+ --shadow: 0 4px 14px rgba(31, 30, 27, 0.06);
127
+ --shadow-lg: 0 16px 36px rgba(31, 30, 27, 0.1);
128
+ color-scheme: light;
129
+ }
130
+ }
131
+
132
+ :root[data-theme='light'] {
133
+ --bg: #faf9f5;
134
+ --bg-card: #ffffff;
135
+ --bg-elev: #ffffff;
136
+ --bg-hover: #f2f0e9;
137
+ --bg-active: #e9e6dc;
138
+ --border: #e7e4da;
139
+ --border-strong: #d7d3c6;
140
+ --text: #1f1e1b;
141
+ --text-muted: #6b675e;
142
+ --text-light: #9a968b;
143
+ --accent: #c6613f;
144
+ --accent-hover: #ad5232;
145
+ --accent-dim: rgba(198, 97, 63, 0.1);
146
+ --on-accent: #ffffff;
147
+ --error: #c9372c;
148
+ --error-dim: rgba(201, 55, 44, 0.08);
149
+ --warning: #b7791f;
150
+ --warning-dim: rgba(183, 121, 31, 0.1);
151
+ --success: #2f8a57;
152
+ --success-dim: rgba(47, 138, 87, 0.08);
153
+ --info: #2f6fd6;
154
+ --info-dim: rgba(47, 111, 214, 0.08);
155
+ --d1: #c6613f;
156
+ --d2: #3d78c2;
157
+ --d3: #a87f22;
158
+ --d4: #2f8f7d;
159
+ --d5: #7d62b8;
160
+ --d6: #a09b8f;
161
+ --shadow-sm: 0 1px 2px rgba(31, 30, 27, 0.04);
162
+ --shadow: 0 4px 14px rgba(31, 30, 27, 0.06);
163
+ --shadow-lg: 0 16px 36px rgba(31, 30, 27, 0.1);
164
+ color-scheme: light;
165
+ }
@@ -0,0 +1,9 @@
1
+ export function step(
2
+ trail: string[],
3
+ change: { from?: string; to: string; navigation?: boolean },
4
+ max?: number,
5
+ ): string[];
6
+ export function target(trail: string[], here: string): { rest: string[]; to: string | null };
7
+ export function initBackNav(options?: { button?: HTMLElement | null; navigation?: HTMLElement | null; win?: Window }): {
8
+ trail: () => string[];
9
+ };
package/js/back-nav.js ADDED
@@ -0,0 +1,52 @@
1
+ // The back button at the top left: it returns to exactly the page a drill-down came from (filters and scroll target
2
+ // in the address), level by level. A click in the navigation starts a new trail; the browser's own back button is
3
+ // neither needed nor touched. Works with hash routes (#/…), the address is the page.
4
+
5
+ /**
6
+ * The trail after one change of address. `from`/`to` are hashes; `navigation` marks a click in the navigation.
7
+ * Arriving at the trail's last page is a step back (the button, or the browser's own back): that page leaves the
8
+ * trail. Every other change remembers the page it left. The trail keeps at most `max` pages.
9
+ */
10
+ export function step(trail, { from, to, navigation = false }, max = 30) {
11
+ if (navigation) return [];
12
+ if (trail.length && trail.at(-1) === to) return trail.slice(0, -1);
13
+ if (!from || from === to) return trail;
14
+ return [...trail, from].slice(-max);
15
+ }
16
+
17
+ /** Where the button leads, skipping entries that are the page shown now (they would change nothing). */
18
+ export function target(trail, here) {
19
+ const rest = [...trail];
20
+ while (rest.length && rest.at(-1) === here) rest.pop();
21
+ return { rest, to: rest.at(-1) ?? null };
22
+ }
23
+
24
+ /**
25
+ * Wires the button (`.topbar-back`, hidden while there is no way back) and the navigation element whose links start a
26
+ * new trail. A filter written with history.replaceState changes the address without an event; the next change still
27
+ * reports that address as the one left, so the way back keeps the filter.
28
+ */
29
+ export function initBackNav({ button, navigation, win = window } = {}) {
30
+ let trail = [];
31
+ let fromNavigation = false;
32
+ const paint = () => {
33
+ if (button) button.hidden = trail.length === 0;
34
+ };
35
+ navigation?.addEventListener('click', e => {
36
+ const a = e.target.closest?.("a[href^='#/']");
37
+ if (a && a.getAttribute('href') !== win.location.hash) fromNavigation = true;
38
+ });
39
+ button?.addEventListener('click', () => {
40
+ const t = target(trail, win.location.hash);
41
+ trail = t.rest;
42
+ paint();
43
+ if (t.to) win.location.hash = t.to; // its hashchange takes it off the trail
44
+ });
45
+ win.addEventListener('hashchange', e => {
46
+ trail = step(trail, { from: new URL(e.oldURL).hash, to: win.location.hash, navigation: fromNavigation });
47
+ fromNavigation = false;
48
+ paint();
49
+ });
50
+ paint();
51
+ return { trail: () => [...trail] };
52
+ }
@@ -0,0 +1,3 @@
1
+ export function seriesColors(resolve?: (token: string) => string): string[];
2
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Chart.js stays an optional peer, typed loosely here
3
+ export function applyChartTheme(Chart?: any, resolve?: (token: string) => string): void;
@@ -0,0 +1,64 @@
1
+ // The Ember look for every Chart.js chart: quiet chrome, thin straight lines, square legend keys, no animation.
2
+ // Charts paint resolved colours, so call this at load and again on every theme switch, then redraw.
3
+ import { themeColor } from './theme-color.js';
4
+
5
+ /** Palette for series: the data tones d1 … d6, resolved. Categories, never meaning. */
6
+ export const seriesColors = (resolve = themeColor) => [1, 2, 3, 4, 5, 6].map(i => resolve(`--d${i}`));
7
+
8
+ export function applyChartTheme(Chart = globalThis.Chart, resolve = themeColor) {
9
+ if (!Chart) return;
10
+ const d = Chart.defaults;
11
+ const muted = resolve('--text-muted');
12
+ const grid = resolve('--border');
13
+
14
+ d.animation = false;
15
+ if (d.transitions?.active?.animation) d.transitions.active.animation.duration = 0; // no fade on hover either
16
+ d.responsive = true;
17
+ d.maintainAspectRatio = false;
18
+ d.font.family = resolve('--font-sans');
19
+ d.font.size = 12;
20
+ d.color = muted;
21
+ d.borderColor = grid;
22
+
23
+ d.elements.line.borderWidth = 1.5;
24
+ d.elements.line.tension = 0;
25
+ d.elements.point.radius = 0;
26
+ d.elements.point.hoverRadius = 4;
27
+ d.elements.point.hitRadius = 8;
28
+ d.elements.bar.borderWidth = 0;
29
+ d.elements.bar.borderRadius = 2;
30
+ d.elements.arc.borderWidth = 0;
31
+
32
+ // Horizontal guide lines only, no axis rule, no tick marks.
33
+ d.scale.grid.color = grid;
34
+ d.scale.grid.drawTicks = false;
35
+ d.scale.border.display = false;
36
+ d.scale.ticks.color = muted;
37
+ d.scale.ticks.padding = 8;
38
+ d.scale.ticks.maxRotation = 0;
39
+ d.scale.ticks.autoSkipPadding = 24;
40
+ d.set?.('scales.category', { grid: { display: false } });
41
+ d.set?.('scales.time', { grid: { display: false } });
42
+
43
+ // Legend under the chart, left-aligned, small rounded squares.
44
+ Object.assign(d.plugins.legend, { position: 'bottom', align: 'start' });
45
+ Object.assign(d.plugins.legend.labels, {
46
+ usePointStyle: true,
47
+ pointStyle: 'rectRounded',
48
+ boxWidth: 10,
49
+ boxHeight: 10,
50
+ padding: 18,
51
+ color: resolve('--text'),
52
+ });
53
+ Object.assign(d.plugins.tooltip, {
54
+ backgroundColor: resolve('--bg-elev'),
55
+ borderColor: resolve('--border-strong'),
56
+ borderWidth: 1,
57
+ titleColor: resolve('--text'),
58
+ bodyColor: muted,
59
+ padding: 10,
60
+ cornerRadius: 8,
61
+ boxPadding: 4,
62
+ usePointStyle: true,
63
+ });
64
+ }
package/js/crumbs.d.ts ADDED
@@ -0,0 +1 @@
1
+ export function crumbs(items: Array<[label: string, href?: string]>): string;
package/js/crumbs.js ADDED
@@ -0,0 +1,12 @@
1
+ // Breadcrumbs: the way back to the lists above, then where one stands. Under them the object itself is the page's h1.
2
+ import { esc } from './viz.js';
3
+
4
+ /** items: [label, href] for each level above; the last item [label] (no href) is the current page. */
5
+ export function crumbs(items) {
6
+ const parts = (items || []).map(([label, href]) =>
7
+ href
8
+ ? `<a class="crumb" href="${esc(href)}">${esc(label)}</a>`
9
+ : `<span class="crumb current" aria-current="page">${esc(label)}</span>`,
10
+ );
11
+ return `<nav class="breadcrumbs" aria-label="Breadcrumb">${parts.join('<span class="crumb-sep" aria-hidden="true">›</span>')}</nav>`;
12
+ }
@@ -0,0 +1,44 @@
1
+ export interface FlyoutItem {
2
+ label: string;
3
+ href: string;
4
+ current?: boolean;
5
+ /** Shown beside the label when above 0; red with `alert`. */
6
+ count?: number;
7
+ alert?: boolean;
8
+ /** Parts of this sub view (third level), in named groups beneath it. */
9
+ children?: { label?: string; items: FlyoutItem[] }[];
10
+ }
11
+ export interface FlyoutMenu {
12
+ title: string;
13
+ items: FlyoutItem[];
14
+ /** Shown when `items` is empty (loading, none yet); without it an empty menu does not open. */
15
+ empty?: string;
16
+ }
17
+ export function flyoutPlacement(options: {
18
+ anchor: { top: number };
19
+ edge: number;
20
+ height: number;
21
+ viewport: number;
22
+ gap?: number;
23
+ margin?: number;
24
+ }): { top: number; left: number };
25
+ export function flyoutHtml(menu: FlyoutMenu): string;
26
+ export function nextIndex(key: string, index: number, count: number): number | null;
27
+ export function initNavFlyout(options: {
28
+ nav: HTMLElement;
29
+ menu: (item: HTMLElement) => FlyoutMenu | null;
30
+ active: () => boolean;
31
+ itemSelector?: string;
32
+ edge?: () => number;
33
+ doc?: Document;
34
+ win?: Window;
35
+ openDelay?: number;
36
+ closeDelay?: number;
37
+ }): {
38
+ open: (item: HTMLElement) => void;
39
+ close: (options?: { focus?: boolean }) => void;
40
+ refresh: () => void;
41
+ destroy: () => void;
42
+ readonly anchor: HTMLElement | null;
43
+ element: HTMLElement;
44
+ };