runline 0.11.4 → 0.11.5
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.
|
@@ -292,6 +292,11 @@ export function registerTablesActions(rl) {
|
|
|
292
292
|
required: false,
|
|
293
293
|
description: "Column width in points.",
|
|
294
294
|
},
|
|
295
|
+
widthType: {
|
|
296
|
+
type: "string",
|
|
297
|
+
required: false,
|
|
298
|
+
description: "WIDTH_TYPE_UNSPECIFIED | EVENLY_DISTRIBUTED | FIXED_WIDTH. Defaults to FIXED_WIDTH when widthPt is provided.",
|
|
299
|
+
},
|
|
295
300
|
fields: {
|
|
296
301
|
type: "string",
|
|
297
302
|
required: false,
|
|
@@ -307,7 +312,12 @@ export function registerTablesActions(rl) {
|
|
|
307
312
|
const fields = [];
|
|
308
313
|
if (p.widthPt !== undefined) {
|
|
309
314
|
props.width = point(p.widthPt);
|
|
310
|
-
|
|
315
|
+
props.widthType = p.widthType ?? "FIXED_WIDTH";
|
|
316
|
+
fields.push("width", "widthType");
|
|
317
|
+
}
|
|
318
|
+
else if (p.widthType) {
|
|
319
|
+
props.widthType = p.widthType;
|
|
320
|
+
fields.push("widthType");
|
|
311
321
|
}
|
|
312
322
|
const mask = p.fields ?? fields.join(",");
|
|
313
323
|
if (!mask)
|