internal
Internal/transitive entry point; application code normally does not import it directly. Import this entry point as @sheetwrite/core/codec.
Exported symbols
Classes 2
SheetwriteErrorThe error Sheetwrite throws or passes to callbacks.
XlsxResourceErrorStable resource-limit failure surfaced before an XLSX codec allocates unsafe data.
Functions 18
cellA1Plumbing for Sheetwrite's own codecs, such as @sheetwrite/xlsx.
colToA1Plumbing for Sheetwrite's own codecs, such as @sheetwrite/xlsx.
dateToSerialConvert a real UTC Date to the Excel 1900-system serial.
formatNumberDeterministic Excel-style number/date formatter.
isCellFontFamilyWhether value is a valid cell fontFamily.
isDynamicDateFilterWhether name is one of Excel's dynamic date filters, as an XLSX file may name it.
isSafeExternalHyperlinkValidate, but never activate or fetch, an external hyperlink target.
isSheetwriteErrorCheck whether a value is a Sheetwrite error.
labelToColPlumbing for Sheetwrite's own codecs, such as @sheetwrite/xlsx.
rangeA1Plumbing for Sheetwrite's own codecs, such as @sheetwrite/xlsx.
sheetNameKeyNFC and locale-independent Unicode lowercase key used for worksheet-name identity.
validateBuiltWorkbookSnapshotvalidateWorkbookSnapshot for a snapshot the caller built in this call from plain data that no other code has reached, such as the snapshot an XLSX reader assembles.
validateSheetNameValidate and canonicalize a SpreadsheetML worksheet name.
validateWorkbookSnapshotValidate and canonically order a schema-1 snapshot without hydrating runtime state.
validateWorkbookTableNameValidate and NFC-normalize an ECMA-compatible structured-reference name.
validWorkbookTableXmlElementValidate inert table-rule trees before they enter snapshots or XML output.
withXlsxFormulaEngineRun use with the engine's formula text operations, in one engine session.
workbookTableNameKeyLocale-independent key used for table and table-column collision checks.
Variables 12
DEFAULT_MAX_CHANGEExcel's convergence threshold for a new workbook.
DEFAULT_MAX_ITERATIONSExcel's iteration count for a new workbook.
DEFAULT_WORKBOOK_TABLE_RESOURCE_LIMITSIndependent metadata ceilings enforced before table arrays cross the WASM boundary.
DEFAULT_XLSX_RESOURCE_LIMITSDefault size limits for XLSX import and export.
MAX_CONDITIONAL_FORMAT_FORMULA_LENGTHMaximum serialized formula predicate source; parsing/evaluation stays bounded per visible cell.
MAX_CONDITIONAL_FORMAT_RULESMaximum ordered conditional-format rules admitted per worksheet and encoded in one u32 match mask.
MAX_EXTERNAL_SHEET_AREAMost cells one linked sheet can span.
MAX_HYPERLINK_DISPLAY_LENGTHOptional display text ceiling used by SpreadsheetML shared-string implementations.
MAX_HYPERLINKS_PER_SHEETRenderer/codec ceiling for one sheet's hyperlink metadata.
MAX_ITERATIONSLargest iteration count Excel accepts.
MAX_VALIDATION_FORMULA_LENGTHThe longest formula Excel takes in a data validation rule.
MAX_VALIDATION_RULESThe most data validation rules a sheet holds.