Skip to content

Commit

Permalink
feat: update mod.typ to adjust column width calculation and improve d…
Browse files Browse the repository at this point in the history
…ocumentation
  • Loading branch information
hongjr03 committed Jan 10, 2025
1 parent cd0ea9f commit 3ff6393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/preview/rexllent/0.2.0/mod.typ
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
// 设置列宽和行高
if dims.columns != none and dims.rows != none {
if parse-table-style {
table_args.insert("columns", dims.columns.map(c => eval(str(c) + "pt")))
table_args.insert("columns", dims.columns.map(c => eval(str(c * 0.1) + "in")))
} else {
table_args.insert("columns", dims.max_columns)
}
Expand Down Expand Up @@ -165,7 +165,7 @@
table(..table_args, ..args, ..cells)
}

///
///
///
/// - xlsx (bytes): Pass the xlsx file content by `read("path/to/file.xlsx", encoding: none)`.
/// - sheet-index (integer): The index of the sheet to be parsed.
Expand All @@ -175,7 +175,7 @@
/// - parse-fill (boolean): Whether to parse the cell fill color.
/// - parse-font (boolean): Whether to parse the cell font style.
/// - args (arguments): Other arguments for the table.
/// ->
/// ->
#let xlsx-parser(
xlsx,
sheet-index: 0,
Expand Down
Binary file modified packages/preview/rexllent/0.2.0/rexllent.wasm
Binary file not shown.

0 comments on commit 3ff6393

Please sign in to comment.