@patterkit/ops 0.3.3 → 0.3.4
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/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1360,6 +1360,7 @@ async function runReportXlsx(data) {
|
|
|
1360
1360
|
const totalRow = scenes.addRow(sceneRow("TOTAL", totals));
|
|
1361
1361
|
totalRow.font = { bold: true };
|
|
1362
1362
|
scenes.getRow(1).font = { bold: true };
|
|
1363
|
+
scenes.views = [{ state: "frozen", ySplit: 1 }];
|
|
1363
1364
|
const chars = wb.addWorksheet("Characters");
|
|
1364
1365
|
chars.columns = [
|
|
1365
1366
|
{ header: "Character", key: "character", width: 20 },
|
|
@@ -1378,6 +1379,7 @@ async function runReportXlsx(data) {
|
|
|
1378
1379
|
});
|
|
1379
1380
|
}
|
|
1380
1381
|
chars.getRow(1).font = { bold: true };
|
|
1382
|
+
chars.views = [{ state: "frozen", ySplit: 1 }];
|
|
1381
1383
|
if (data.locales.length > 0) {
|
|
1382
1384
|
const loc = wb.addWorksheet("Localisation");
|
|
1383
1385
|
loc.columns = [
|
|
@@ -1389,6 +1391,7 @@ async function runReportXlsx(data) {
|
|
|
1389
1391
|
];
|
|
1390
1392
|
for (const l of data.locales) loc.addRow(l);
|
|
1391
1393
|
loc.getRow(1).font = { bold: true };
|
|
1394
|
+
loc.views = [{ state: "frozen", ySplit: 1 }];
|
|
1392
1395
|
}
|
|
1393
1396
|
if (data.estimating && data.coverage.estimated > 0) {
|
|
1394
1397
|
const plan = wb.addWorksheet("Estimates");
|
|
@@ -1401,6 +1404,7 @@ async function runReportXlsx(data) {
|
|
|
1401
1404
|
const coverageRow = plan.addRow({ name: `coverage: ${data.coverage.estimated}/${data.coverage.totalScenes} scenes estimated` });
|
|
1402
1405
|
coverageRow.font = { italic: true };
|
|
1403
1406
|
plan.getRow(1).font = { bold: true };
|
|
1407
|
+
plan.views = [{ state: "frozen", ySplit: 1 }];
|
|
1404
1408
|
}
|
|
1405
1409
|
return Buffer.from(await wb.xlsx.writeBuffer());
|
|
1406
1410
|
}
|
|
@@ -1735,6 +1739,7 @@ async function catalogToXlsx(catalog) {
|
|
|
1735
1739
|
{ header: "Gender", key: "gender", width: 12 }
|
|
1736
1740
|
];
|
|
1737
1741
|
ws.getRow(1).font = { bold: true };
|
|
1742
|
+
ws.views = [{ state: "frozen", ySplit: 1 }];
|
|
1738
1743
|
for (const e of entries) {
|
|
1739
1744
|
ws.addRow({
|
|
1740
1745
|
id: e.id,
|
|
@@ -1865,6 +1870,7 @@ async function voiceScriptToXlsx(data) {
|
|
|
1865
1870
|
{ header: "Status", key: "status", width: 12 }
|
|
1866
1871
|
];
|
|
1867
1872
|
ws.getRow(1).font = { bold: true };
|
|
1873
|
+
ws.views = [{ state: "frozen", ySplit: 1 }];
|
|
1868
1874
|
for (const l of data.lines) {
|
|
1869
1875
|
const row = ws.addRow({
|
|
1870
1876
|
scope: l.scope,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patterkit/ops",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "The shared operations layer: every project operation (load, validate, export, format, play, ...) as a pure function, consumed by the patter CLI and Patterpad alike.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|