@gnawbit/tabretake 0.4.1 → 0.5.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/CHANGELOG.md +103 -89
- package/README.md +82 -93
- package/README.zh-CN.md +72 -81
- package/SKILL.md +47 -67
- package/examples/site/style.css +81 -71
- package/examples/story.json +1 -2
- package/package.json +9 -1
- package/references/rendering.md +6 -1
- package/references/story.md +2 -1
- package/schemas/story.schema.json +632 -616
- package/scripts/capture.mjs +610 -0
- package/scripts/cli.mjs +26 -9
- package/scripts/demo.mjs +7 -1
- package/scripts/doctor.mjs +11 -3
- package/scripts/init.mjs +73 -25
- package/scripts/lib/browser.mjs +165 -13
- package/scripts/lib/captions.mjs +8 -3
- package/scripts/lib/options.mjs +71 -0
- package/scripts/lib/report.mjs +1 -0
- package/scripts/lib/system-browser.mjs +30 -0
- package/scripts/lib/themes.mjs +125 -0
- package/scripts/mark.mjs +503 -0
- package/scripts/plan.mjs +35 -35
- package/scripts/record.mjs +67 -40
- package/scripts/render.mjs +128 -55
- package/scripts/run.mjs +55 -0
package/examples/site/style.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--bg: #
|
|
3
|
-
--panel: #
|
|
4
|
-
--panel-2: #
|
|
5
|
-
--line: #
|
|
6
|
-
--text: #
|
|
7
|
-
--muted: #
|
|
8
|
-
--muted-2: #
|
|
9
|
-
--accent: #
|
|
10
|
-
--accent-2: #
|
|
11
|
-
--green: #
|
|
12
|
-
--amber: #
|
|
2
|
+
--bg: #f6f8fb;
|
|
3
|
+
--panel: #ffffff;
|
|
4
|
+
--panel-2: #f8fafc;
|
|
5
|
+
--line: #e2e8f0;
|
|
6
|
+
--text: #0f172a;
|
|
7
|
+
--muted: #475569;
|
|
8
|
+
--muted-2: #64748b;
|
|
9
|
+
--accent: #2563eb;
|
|
10
|
+
--accent-2: #1d4ed8;
|
|
11
|
+
--green: #059669;
|
|
12
|
+
--amber: #d97706;
|
|
13
13
|
--radius: 18px;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -25,8 +25,8 @@ body {
|
|
|
25
25
|
|
|
26
26
|
body {
|
|
27
27
|
background:
|
|
28
|
-
radial-gradient(900px
|
|
29
|
-
radial-gradient(700px
|
|
28
|
+
radial-gradient(900px 460px at 15% -10%, rgba(37, 99, 235, 0.06), transparent 60%),
|
|
29
|
+
radial-gradient(700px 400px at 95% 0%, rgba(5, 150, 105, 0.05), transparent 55%),
|
|
30
30
|
var(--bg);
|
|
31
31
|
color: var(--text);
|
|
32
32
|
font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
|
|
@@ -53,8 +53,8 @@ input {
|
|
|
53
53
|
padding: 18px;
|
|
54
54
|
border: 1px solid var(--line);
|
|
55
55
|
border-radius: 20px;
|
|
56
|
-
background:
|
|
57
|
-
box-shadow: 0
|
|
56
|
+
background: var(--panel);
|
|
57
|
+
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.brand {
|
|
@@ -71,8 +71,9 @@ input {
|
|
|
71
71
|
display: grid;
|
|
72
72
|
place-items: center;
|
|
73
73
|
font-weight: 800;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
color: #ffffff;
|
|
75
|
+
background: linear-gradient(135deg, var(--accent), #3b82f6);
|
|
76
|
+
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
.brand-name {
|
|
@@ -105,14 +106,15 @@ input {
|
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
.nav-item:hover {
|
|
108
|
-
background:
|
|
109
|
+
background: #f1f5f9;
|
|
109
110
|
color: var(--text);
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
.nav-item.active {
|
|
113
|
-
background:
|
|
114
|
-
color:
|
|
115
|
-
|
|
114
|
+
background: #eff6ff;
|
|
115
|
+
color: var(--accent-2);
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
.nav-icon {
|
|
@@ -125,8 +127,8 @@ input {
|
|
|
125
127
|
margin-top: auto;
|
|
126
128
|
padding: 13px;
|
|
127
129
|
border-radius: 14px;
|
|
128
|
-
background:
|
|
129
|
-
border: 1px solid
|
|
130
|
+
background: #f8fafc;
|
|
131
|
+
border: 1px solid var(--line);
|
|
130
132
|
}
|
|
131
133
|
|
|
132
134
|
.sidebar-card-title {
|
|
@@ -146,9 +148,10 @@ input {
|
|
|
146
148
|
padding: 8px;
|
|
147
149
|
border-radius: 9px;
|
|
148
150
|
border: 1px solid var(--line);
|
|
149
|
-
background:
|
|
151
|
+
background: #ffffff;
|
|
150
152
|
color: var(--text);
|
|
151
153
|
font-size: 11px;
|
|
154
|
+
font-weight: 500;
|
|
152
155
|
cursor: pointer;
|
|
153
156
|
}
|
|
154
157
|
|
|
@@ -169,8 +172,9 @@ input {
|
|
|
169
172
|
place-items: center;
|
|
170
173
|
font-size: 11px;
|
|
171
174
|
font-weight: 700;
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
color: #1e293b;
|
|
176
|
+
background: #e2e8f0;
|
|
177
|
+
border: 1px solid #cbd5e1;
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
.user-name {
|
|
@@ -214,7 +218,7 @@ input {
|
|
|
214
218
|
padding: 0 62px 0 38px;
|
|
215
219
|
border-radius: 12px;
|
|
216
220
|
border: 1px solid var(--line);
|
|
217
|
-
background:
|
|
221
|
+
background: #ffffff;
|
|
218
222
|
color: var(--text);
|
|
219
223
|
outline: none;
|
|
220
224
|
font-size: 12.5px;
|
|
@@ -225,8 +229,8 @@ input {
|
|
|
225
229
|
}
|
|
226
230
|
|
|
227
231
|
.search input:focus {
|
|
228
|
-
border-color: rgba(
|
|
229
|
-
box-shadow: 0 0 0 4px rgba(
|
|
232
|
+
border-color: rgba(37, 99, 235, 0.55);
|
|
233
|
+
box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
|
|
230
234
|
}
|
|
231
235
|
|
|
232
236
|
.search-icon {
|
|
@@ -242,6 +246,7 @@ input {
|
|
|
242
246
|
padding: 3px 7px;
|
|
243
247
|
border-radius: 6px;
|
|
244
248
|
border: 1px solid var(--line);
|
|
249
|
+
background: #f8fafc;
|
|
245
250
|
color: var(--muted-2);
|
|
246
251
|
font-size: 10px;
|
|
247
252
|
}
|
|
@@ -257,7 +262,7 @@ input {
|
|
|
257
262
|
height: 38px;
|
|
258
263
|
border-radius: 11px;
|
|
259
264
|
border: 1px solid var(--line);
|
|
260
|
-
background:
|
|
265
|
+
background: #ffffff;
|
|
261
266
|
color: var(--muted);
|
|
262
267
|
cursor: pointer;
|
|
263
268
|
font-size: 16px;
|
|
@@ -265,7 +270,7 @@ input {
|
|
|
265
270
|
|
|
266
271
|
.icon-button:hover {
|
|
267
272
|
color: var(--text);
|
|
268
|
-
border-color: #
|
|
273
|
+
border-color: #cbd5e1;
|
|
269
274
|
}
|
|
270
275
|
|
|
271
276
|
.primary-button {
|
|
@@ -277,18 +282,18 @@ input {
|
|
|
277
282
|
padding: 0 16px;
|
|
278
283
|
border: none;
|
|
279
284
|
border-radius: 11px;
|
|
280
|
-
background: linear-gradient(135deg, var(--accent), #
|
|
281
|
-
color: #
|
|
285
|
+
background: linear-gradient(135deg, var(--accent), #3b82f6);
|
|
286
|
+
color: #ffffff;
|
|
282
287
|
font-size: 12.5px;
|
|
283
288
|
font-weight: 650;
|
|
284
289
|
cursor: pointer;
|
|
285
|
-
box-shadow: 0
|
|
290
|
+
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
|
|
286
291
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
287
292
|
}
|
|
288
293
|
|
|
289
294
|
.primary-button:hover {
|
|
290
295
|
transform: translateY(-1px);
|
|
291
|
-
box-shadow: 0
|
|
296
|
+
box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
|
|
292
297
|
}
|
|
293
298
|
|
|
294
299
|
.plus {
|
|
@@ -331,7 +336,7 @@ input {
|
|
|
331
336
|
height: 7px;
|
|
332
337
|
border-radius: 50%;
|
|
333
338
|
background: var(--green);
|
|
334
|
-
box-shadow: 0 0 0 4px rgba(
|
|
339
|
+
box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
|
|
335
340
|
}
|
|
336
341
|
|
|
337
342
|
.stats {
|
|
@@ -344,8 +349,8 @@ input {
|
|
|
344
349
|
padding: 14px 16px;
|
|
345
350
|
border-radius: 16px;
|
|
346
351
|
border: 1px solid var(--line);
|
|
347
|
-
background:
|
|
348
|
-
box-shadow: 0
|
|
352
|
+
background: var(--panel);
|
|
353
|
+
box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
|
|
349
354
|
}
|
|
350
355
|
|
|
351
356
|
.stat-label {
|
|
@@ -375,13 +380,14 @@ input {
|
|
|
375
380
|
|
|
376
381
|
.stat-delta.up {
|
|
377
382
|
color: var(--green);
|
|
383
|
+
font-weight: 600;
|
|
378
384
|
}
|
|
379
385
|
|
|
380
386
|
.panel {
|
|
381
387
|
border: 1px solid var(--line);
|
|
382
388
|
border-radius: 18px;
|
|
383
|
-
background:
|
|
384
|
-
box-shadow: 0
|
|
389
|
+
background: var(--panel);
|
|
390
|
+
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
|
385
391
|
}
|
|
386
392
|
|
|
387
393
|
.panel-head {
|
|
@@ -414,7 +420,7 @@ input {
|
|
|
414
420
|
width: 7px;
|
|
415
421
|
height: 7px;
|
|
416
422
|
border-radius: 50%;
|
|
417
|
-
background: var(--accent
|
|
423
|
+
background: var(--accent);
|
|
418
424
|
}
|
|
419
425
|
|
|
420
426
|
.chart-panel {
|
|
@@ -440,13 +446,13 @@ input {
|
|
|
440
446
|
flex: 1;
|
|
441
447
|
min-width: 0;
|
|
442
448
|
border-radius: 6px 6px 3px 3px;
|
|
443
|
-
background: linear-gradient(180deg,
|
|
444
|
-
opacity: 0.
|
|
449
|
+
background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.25));
|
|
450
|
+
opacity: 0.92;
|
|
445
451
|
animation: grow 0.7s ease both;
|
|
446
452
|
}
|
|
447
453
|
|
|
448
454
|
.bar:nth-child(3n) {
|
|
449
|
-
background: linear-gradient(180deg, #
|
|
455
|
+
background: linear-gradient(180deg, #10b981, rgba(16, 185, 129, 0.24));
|
|
450
456
|
}
|
|
451
457
|
|
|
452
458
|
.chart-baseline {
|
|
@@ -465,7 +471,7 @@ input {
|
|
|
465
471
|
}
|
|
466
472
|
to {
|
|
467
473
|
transform: scaleY(1);
|
|
468
|
-
opacity: 0.
|
|
474
|
+
opacity: 0.92;
|
|
469
475
|
}
|
|
470
476
|
}
|
|
471
477
|
|
|
@@ -479,8 +485,9 @@ input {
|
|
|
479
485
|
.text-button {
|
|
480
486
|
border: none;
|
|
481
487
|
background: none;
|
|
482
|
-
color: var(--accent
|
|
488
|
+
color: var(--accent);
|
|
483
489
|
font-size: 11px;
|
|
490
|
+
font-weight: 600;
|
|
484
491
|
cursor: pointer;
|
|
485
492
|
padding: 0;
|
|
486
493
|
}
|
|
@@ -497,7 +504,7 @@ input {
|
|
|
497
504
|
padding: 13px;
|
|
498
505
|
border-radius: 14px;
|
|
499
506
|
border: 1px solid var(--line);
|
|
500
|
-
background:
|
|
507
|
+
background: var(--panel-2);
|
|
501
508
|
animation: cardIn 0.45s ease both;
|
|
502
509
|
}
|
|
503
510
|
|
|
@@ -523,18 +530,18 @@ input {
|
|
|
523
530
|
}
|
|
524
531
|
|
|
525
532
|
.project-icon.violet {
|
|
526
|
-
background:
|
|
527
|
-
color: #
|
|
533
|
+
background: #eff6ff;
|
|
534
|
+
color: #2563eb;
|
|
528
535
|
}
|
|
529
536
|
|
|
530
537
|
.project-icon.green {
|
|
531
|
-
background:
|
|
532
|
-
color: #
|
|
538
|
+
background: #ecfdf5;
|
|
539
|
+
color: #059669;
|
|
533
540
|
}
|
|
534
541
|
|
|
535
542
|
.project-icon.amber {
|
|
536
|
-
background:
|
|
537
|
-
color: #
|
|
543
|
+
background: #fffbeb;
|
|
544
|
+
color: #d97706;
|
|
538
545
|
}
|
|
539
546
|
|
|
540
547
|
.project-name {
|
|
@@ -555,7 +562,7 @@ input {
|
|
|
555
562
|
margin-top: 11px;
|
|
556
563
|
height: 5px;
|
|
557
564
|
border-radius: 999px;
|
|
558
|
-
background: #
|
|
565
|
+
background: #e2e8f0;
|
|
559
566
|
overflow: hidden;
|
|
560
567
|
}
|
|
561
568
|
|
|
@@ -563,7 +570,7 @@ input {
|
|
|
563
570
|
display: block;
|
|
564
571
|
height: 100%;
|
|
565
572
|
border-radius: inherit;
|
|
566
|
-
background: linear-gradient(90deg, var(--accent),
|
|
573
|
+
background: linear-gradient(90deg, var(--accent), #3b82f6);
|
|
567
574
|
}
|
|
568
575
|
|
|
569
576
|
.modal-backdrop {
|
|
@@ -571,7 +578,7 @@ input {
|
|
|
571
578
|
inset: 0;
|
|
572
579
|
display: grid;
|
|
573
580
|
place-items: center;
|
|
574
|
-
background: rgba(
|
|
581
|
+
background: rgba(15, 23, 42, 0.35);
|
|
575
582
|
backdrop-filter: blur(2px);
|
|
576
583
|
opacity: 0;
|
|
577
584
|
pointer-events: none;
|
|
@@ -588,9 +595,9 @@ input {
|
|
|
588
595
|
width: 430px;
|
|
589
596
|
padding: 20px;
|
|
590
597
|
border-radius: 20px;
|
|
591
|
-
border: 1px solid
|
|
592
|
-
background:
|
|
593
|
-
box-shadow: 0
|
|
598
|
+
border: 1px solid var(--line);
|
|
599
|
+
background: #ffffff;
|
|
600
|
+
box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
|
|
594
601
|
transform: translateY(10px) scale(0.98);
|
|
595
602
|
transition: transform 0.22s ease;
|
|
596
603
|
}
|
|
@@ -609,7 +616,7 @@ input {
|
|
|
609
616
|
font-size: 10px;
|
|
610
617
|
letter-spacing: 1.4px;
|
|
611
618
|
text-transform: uppercase;
|
|
612
|
-
color: var(--accent
|
|
619
|
+
color: var(--accent);
|
|
613
620
|
font-weight: 700;
|
|
614
621
|
}
|
|
615
622
|
|
|
@@ -637,15 +644,16 @@ input {
|
|
|
637
644
|
padding: 0 12px;
|
|
638
645
|
border-radius: 11px;
|
|
639
646
|
border: 1px solid var(--line);
|
|
640
|
-
background: #
|
|
647
|
+
background: #f8fafc;
|
|
641
648
|
color: var(--text);
|
|
642
649
|
outline: none;
|
|
643
650
|
font-size: 12.5px;
|
|
644
651
|
}
|
|
645
652
|
|
|
646
653
|
.field input:focus {
|
|
647
|
-
|
|
648
|
-
|
|
654
|
+
background: #ffffff;
|
|
655
|
+
border-color: rgba(37, 99, 235, 0.6);
|
|
656
|
+
box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
|
|
649
657
|
}
|
|
650
658
|
|
|
651
659
|
.template-row {
|
|
@@ -658,16 +666,17 @@ input {
|
|
|
658
666
|
height: 36px;
|
|
659
667
|
border-radius: 10px;
|
|
660
668
|
border: 1px solid var(--line);
|
|
661
|
-
background: #
|
|
669
|
+
background: #f8fafc;
|
|
662
670
|
color: var(--muted);
|
|
663
671
|
font-size: 11px;
|
|
664
672
|
cursor: pointer;
|
|
665
673
|
}
|
|
666
674
|
|
|
667
675
|
.template.active {
|
|
668
|
-
border-color: rgba(
|
|
669
|
-
background:
|
|
670
|
-
color:
|
|
676
|
+
border-color: rgba(37, 99, 235, 0.45);
|
|
677
|
+
background: #eff6ff;
|
|
678
|
+
color: var(--accent-2);
|
|
679
|
+
font-weight: 600;
|
|
671
680
|
}
|
|
672
681
|
|
|
673
682
|
.modal-foot {
|
|
@@ -688,11 +697,12 @@ input {
|
|
|
688
697
|
bottom: 26px;
|
|
689
698
|
padding: 11px 15px;
|
|
690
699
|
border-radius: 11px;
|
|
691
|
-
border: 1px solid rgba(
|
|
692
|
-
background:
|
|
693
|
-
color: #
|
|
700
|
+
border: 1px solid rgba(5, 150, 105, 0.3);
|
|
701
|
+
background: #ecfdf5;
|
|
702
|
+
color: #065f46;
|
|
694
703
|
font-size: 12px;
|
|
695
|
-
|
|
704
|
+
font-weight: 500;
|
|
705
|
+
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
|
|
696
706
|
opacity: 0;
|
|
697
707
|
transform: translateY(10px);
|
|
698
708
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
package/examples/story.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnawbit/tabretake",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Create repeatable web app demos, README GIFs and 9:16 videos from editable JSON steps or existing screen recordings. Local CLI and Agent Skill for Claude Code, Codex and Cursor.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,10 +28,18 @@
|
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"demo",
|
|
31
|
+
"product-demo",
|
|
32
|
+
"readme-gif",
|
|
33
|
+
"screen-recording",
|
|
34
|
+
"walkthrough",
|
|
35
|
+
"9-16",
|
|
36
|
+
"vertical-video",
|
|
31
37
|
"video",
|
|
32
38
|
"gif",
|
|
33
39
|
"playwright",
|
|
34
40
|
"ffmpeg",
|
|
41
|
+
"headless",
|
|
42
|
+
"cursor",
|
|
35
43
|
"agent-skill",
|
|
36
44
|
"claude-code",
|
|
37
45
|
"codex",
|
package/references/rendering.md
CHANGED
|
@@ -20,10 +20,13 @@ checks still apply, and missing fonts need visual inspection of captions.
|
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
+
tabretake mark --video recording.mp4 --out story-video.json
|
|
23
24
|
tabretake validate --config story-video.json --json
|
|
24
25
|
tabretake render --config story-video.json --video recording.mp4 --vertical --json
|
|
25
26
|
```
|
|
26
27
|
|
|
28
|
+
Use `tabretake mark` to click directly on the video frame in a local browser UI instead of estimating normalized `x`, `y` and `t` manually.
|
|
29
|
+
|
|
27
30
|
`video` in the config is relative to the config file; `--video` is relative to
|
|
28
31
|
the current working directory. Marks use **seconds**. Prefer normalized `x`, `y`
|
|
29
32
|
coordinates from 0 to 1; larger values are source pixels. `duration` delays the
|
|
@@ -60,7 +63,7 @@ Branding belongs at the top of a story/marks config, or inside a timeline's `con
|
|
|
60
63
|
|
|
61
64
|
```json
|
|
62
65
|
{
|
|
63
|
-
"brand": { "background": "#
|
|
66
|
+
"brand": { "preset": "daylight", "background": "#f4f6fb", "accent": "#2563eb" },
|
|
64
67
|
"vertical": {
|
|
65
68
|
"badge": "Your product",
|
|
66
69
|
"titleLines": ["Ship faster", "with less busywork"],
|
|
@@ -71,6 +74,8 @@ Branding belongs at the top of a story/marks config, or inside a timeline's `con
|
|
|
71
74
|
}
|
|
72
75
|
```
|
|
73
76
|
|
|
77
|
+
Built-in `brand.preset` (or `--preset`) themes: `midnight` (dark studio, default), `daylight` (light minimal), `paper` (warm cream), and `slate` (dark slate-emerald). Cursor click ripples automatically adopt `accent`; `brand.frame` supports `"auto"` (default), `"browser"`, `"phone"` (lightweight vertical device bezel), or `"none"`. Explicit `background` and `accent` override preset colors unless `--preset` is passed to `render`. Use `"scale": 2` (or `--scale 2` on `record`/`run`) for HiDPI 2x recording.
|
|
78
|
+
|
|
74
79
|
Use at most two title lines. Captions wrap and fit within the frame; excessively
|
|
75
80
|
long captions produce an error. Chinese text needs a CJK font such as Microsoft
|
|
76
81
|
YaHei, PingFang or Noto Sans CJK. Font warnings do not stop rendering, so inspect
|
package/references/story.md
CHANGED
|
@@ -36,6 +36,7 @@ An editable story:
|
|
|
36
36
|
| `click`, `hover` | locator, `pause`, `caption`, `zoom` |
|
|
37
37
|
| `focus` | locator, `pause`, `caption`, `zoom`; measure the target after scrolling into view |
|
|
38
38
|
| `type` | locator, `value`, `pause`, `caption`, `zoom` |
|
|
39
|
+
| `select` | locator, `value` or `text`, `pause`, `caption`, `zoom` |
|
|
39
40
|
| `drag` | locator, `dx`, `dy`, `steps`, `pause`, `caption`, `zoom` |
|
|
40
41
|
| `scroll` | `y`, `pause`, `caption`, `zoom` |
|
|
41
42
|
| `press` | `key`, `pause`, `caption`, `zoom` |
|
|
@@ -74,7 +75,7 @@ new timing; saved timelines keep their original timestamps.
|
|
|
74
75
|
Set `zoom: false` when the result is elsewhere on screen. Avoid
|
|
75
76
|
recording a blank initial load or ending on an unfinished dialog.
|
|
76
77
|
|
|
77
|
-
To improve blurry output, record
|
|
78
|
+
To improve blurry output when zooming, record with `"scale": 2` (or `--scale 2`) for HiDPI 2x capture, or use a larger viewport such as `1920x1080`. To capture an editable story by clicking through the app interactively, run `tabretake capture --url <url> --out story.json`.
|
|
78
79
|
If text does not fit, shorten the caption or split it across meaningful steps.
|
|
79
80
|
If a selector fails, inspect the reported step and refresh the page plan rather
|
|
80
81
|
than guessing at selectors or increasing every timeout.
|