TypeScript Node.js Server API
The TypeScript declarations of the Node.js server come with the npm package @txtextcontrol/tx-sheet-control-server: the runtime classes, function, constant and enumeration, led by ServerSheetControl, and the interfaces and type aliases that describe the values of the API, such as ServerSheetControlOptions. Interfaces and type aliases are type-only declarations, not runtime constructors.
The entries describe the public package surface. Workbook handles are obtained from their owner; the related object-model types are not an instruction to import extra packages.
Package: @txtextcontrol/tx-sheet-control-server.
Classes
| Class | Description |
|---|---|
| Cell | A worksheet-bound scalar cell handle. Literal text, entered input and calculated values remain distinct. Cell features are returned as detached snapshots; mutations remain undoable. |
| CellComments | Editable cell conversation; current user identity belongs to the owning workbook runtime. |
| CellTypeRegistry | Per-document extensible renderer/editor registry. Saved cells retain only a renderer name and portable options. |
| ChartCollection | Public class for ChartCollection. |
| ChartHandle | A worksheet-bound chart handle. Data references are resolved by the workbook calculation engine. |
| Dashboard | A stable dashboard handle. All snapshots are detached; handles expire after document replacement or deletion. |
| DashboardAnalytics | Workbook-wide analytics; caches are private, column-oriented and invalidated by affected cells and formula changes. |
| DashboardCollection | Workbook dashboard views; collection edits share the workbook history and .txwb persistence. |
| DataConnections | Optional connection manager. Private state is inaccessible at runtime; no global namespace is installed. One provider per logical connection, multiple bindings per query. Re-registering cancels obsolete refreshes. Loading cancels requests and clears bindings; register bindings again for the new document. Dispose on host teardown. |
| Dimension | Public class for Dimension. |
| DimensionCollection | Public class for DimensionCollection. |
| DrawingCollection | Public class for DrawingCollection. |
| DrawingGroup | A group handle that transforms its members together in unscaled worksheet coordinates. |
| DrawingHandle | A drawing handle whose lifetime follows its worksheet and object token, rather than its display name. |
| FontRegistry | Resolves document font faces and shapes glyph runs identically in browser and server rendering. |
| LicenseError | Public class for LicenseError. |
| NamedRangeCollection | Case-insensitive names scoped to a workbook or one worksheet. Sheets take precedence over workbook names. |
| OperationCanceledError | Raised when a host cancels a mutation; the shared transaction rolls it back atomically. |
| Range | A worksheet-bound rectangular range for atomic bulk reads, writes, formatting and copy operations. Range operations retain protection, validation and shared transaction semantics. |
| ServerSheetControl | An isolated workbook, shared document API and file filters, without an editor or DOM. |
| SheetCollection | Stable sheet lookup and creation without changing the selected worksheet. |
| SheetPrint | Worksheet print settings with explicit units and validated page geometry. |
| SheetProtection | Worksheet-bound editing protection, using the same locked-cell styles as Excel import/export. |
| SheetValidation | Sheet-bound validation rules and inspection. Existing values remain unchanged when a rule is installed. |
| SheetView | Worksheet view settings never alter the underlying row heights, column widths or print area. |
| Table | A stable operational table handle. Mutations are worksheet-bound and undoable. |
| TableCollection | Named table lookup and creation. Table names are unique across the whole workbook. |
| Workbook | Licensed workbook model. Active-sheet methods use the selected worksheet; retained handles bind explicit sheets. |
| WorkbookCalculation | Per-document function registration, asynchronous settling, external documents and formula auditing. |
| WorkbookEvents | Per-document typed subscriptions. Callbacks are excluded from saved state and undo history. |
| WorkbookSearch | Sparse cross-sheet search and atomic replacement, independent of the selected worksheet and browser DOM. |
| Worksheet | A stable sheet identity. Access never activates a worksheet. Feature collections share the existing worksheet identity and lifecycle validation. |
Interfaces
| Interface | Description |
|---|---|
| ActiveView | The sole active workbook viewport. A worksheet remains selected while a dashboard is visible. |
| AnalyticsData | Detached tabular snapshot. Columns are unique stable field IDs; dates are ISO strings. At most 256 columns and 250,000 cells. Runtime snapshots are never saved to TXWB. |
| AnalyticsField | A profiled column. Table field IDs survive reordering; explicit ranges use unique header names. |
| AnalyticsFilter | A source-specific filter. Filters affect analytics only and never worksheet AutoFilter or cell values. |
| AnalyticsMeasure | One numerical result column; COUNT may omit field to count rows. |
| AnalyticsProfile | Detached profiling results; no worksheet or cache objects escape through this value. |
| AnalyticsQuery | Bounded, deterministic query. Joined columns use targetSourceId.fieldId. Sorting ties preserve source order. |
| AnalyticsQueryOptions | Async query cancellation and cooperative scheduling. No editor UI is required. |
| AnalyticsRelationship | Explicit many-to-one left join. The engine rejects duplicate/nonunique target keys instead of multiplying sums. |
| AnalyticsRelationshipSuggestion | A suggested join is never applied automatically. |
| AnalyticsResult | Detached grouped rows and the number of input rows that passed filters. |
| AnalyticsSource | A worksheet table/name/range binding, or a logical server connector query without a worksheet. |
| Anchor | A drawing anchor relative to an A1 cell; offsets are unscaled CSS pixels. |
| CalculationEvent | Calculation completion and remaining asynchronous work. |
| CellData | A detached cell read containing raw input, typed value, display text and optional resolved style. |
| CellInteractionEvent | Cell interaction independent of DOM event objects. |
| CellPicture | An embedded image bound to a cell; it participates in cell layout rather than floating-object selection. |
| CellRange | Normalized A1 endpoints and inclusive zero-based row/column bounds for a rectangular selection. |
| CellReadOptions | Locale-aware range-read options with a bounded cell count to protect large worksheets. |
| CellRenderContext | Platform-independent cell rendering context; dimensions are unscaled CSS pixels and font size is in points. |
| CellStyle | Resolved whole-cell formatting. Color nulls choose automatic colors and sizes use points. |
| CellTextRun | A literal text fragment with optional font overrides. Offsets use UTF-16 code units. |
| CellTextStyle | Per-character overrides inherit the cell's font when omitted. Sizes are points. |
| Chart | A worksheet-bound chart handle. Data references are resolved by the workbook calculation engine. |
| ChartAppearance | Chart-level colors and style selection applied independently of its data references. |
| ChartData | Worksheet references or inline values defining chart categories and series. |
| ChartElements | Optional chart titles, labels, legends, axes and gridline settings. |
| ChartObjectOptions | Chart creation settings with worksheet-bound anchors and unscaled CSS pixel dimensions. |
| ChartOptions | Validated chart type, data, appearance and worksheet placement used for insertion or updates. |
| ChartPosition | A worksheet cell anchor, offsets and unscaled CSS pixel dimensions for chart placement. |
| ChartSeries | One named chart series with value/category references and optional appearance overrides. |
| ChartSeriesData | Calculated series values resolved from chart references within their owning worksheet. Arrays retain cell order; empty cells are null. Reading a series does not change sheet selection. |
| ChartTypeDefinition | Gallery metadata connecting a supported chart type to its label, family and variants. |
| ConditionalRule | Native conditional rule payload. Additional validated fields depend on the rule type. |
| ConsolidateOptions | Same-sheet consolidation; at most 64 input ranges. Links retain formulas instead of fixed values. |
| ControlAreas | Public contracts; workbook JSON never contains DOM or downloaded font objects. |
| Coordinates | Zero-based worksheet coordinates. Row and column indices never depend on the selected sheet. |
| CsvLoadOptions | CSV input uses double-quote escaping and accepts CRLF, LF or CR record endings. |
| CsvSaveOptions | CSV export includes every selected row. hasHeaderRow does not remove or generate a CSV row. |
| CustomCellEditor | Browser custom editor lifecycle. The shared workbook remains the authority for committed values. |
| CustomCellType | Editor callbacks are browser-only; the same SVG renderer is used by the editor and independent PDF pipeline. |
| CustomFunctionContext | Registration context available to every custom calculation function. |
| CustomFunctionDefinition | Arbitrary host callback; asynchronous results are recalculated after resolving. |
| DashboardDefinition | A first-class workbook view, independent of worksheet cell coordinates. Snapshots are detached and editable. |
| DashboardGenerationOptions | Deterministic generation settings. Existing dashboards are changed only with an explicit target and strategy. |
| DashboardPlacement | Widget placement uses dashboard grid units: x is 0..11, y is nonnegative, width is 1..12. |
| DashboardRenderResult | Detached widget rendering output. SVG charts reuse the spreadsheet painter and require no editor DOM. |
| DashboardWidget | Editable, persisted widget definition; IDs are unique within a dashboard. |
| DashboardWidgetAppearance | Portable widget presentation, shared by browser authoring and headless rendering. Sizes are points (8..72); colors are six-digit hex. Omitted fields inherit the dashboard defaults. |
| DataBinding | Destination rectangle is owned by the binding; every refresh clears unused trailing cells in that rectangle. For a table, bind its full header/data rectangle. Calculated columns should be outside the owned rectangle. |
| DataConnectionEvent | Lifecycle notifications contain logical IDs and counts, never credentials or underlying provider errors. |
| DataRefreshOptions | Optional per-refresh timeout and caller cancellation. Default timeout is 30 seconds. |
| DataRequest | Only logical IDs and application parameters cross this boundary; SQL and credentials stay server-side. |
| DataSnapshot | Detached rectangular page, bounded to 250,000 cells / 256 unique nonblank columns. |
| DataTransformPreview | Detached preview of a data transformation. Previewing never changes data/history. |
| DataWorkbook | Minimal structural workbook contract; compatible with browser, Angular and Node workbooks. |
| DocumentExportOptions | The same metadata setting is accepted by both export methods, with no control UI. |
| DocumentProperties | Export-only metadata shared by Excel and PDF. Omitted fields preserve original XLSX properties. Text is Unicode, limited to 4096 UTF-16 code units; keywords allow 128 entries of 1024 units. Created/modified use ISO 8601 timestamps with a timezone and are normalized to UTC. Properties never change the workbook, review author or history. |
| DrawingOptions | Shape creation settings; omitted fill, outline and size properties use document defaults. |
| EditingEvent | Editor input lifecycle including the raw input text. |
| EditorUi | Editor-only state and commands. These settings do not belong in server-side workbook data. |
| EmbeddedFont | Base64-encoded TrueType data with explicit face identity for deterministic server rendering. |
| FileLoadedEvent | Successful atomic replacement; conversion notices are detached from the live document. |
| FileOperationEvent | An opaque ID correlates events from one file operation, including overlapping requests. No file contents are exposed. |
| FileOperationFailedEvent | Terminal notification for a started operation that rejects. Success events are never emitted after this notification. |
| FileOperationStartingEvent | Synchronous preflight notification. Set cancel to stop before parsing or capturing the export snapshot. |
| FileProgressEvent | Processing stage, with real work counts when available. Missing total means indeterminate, never an estimated percentage. |
| FillOptions | Autofill options; automatic mode detects numeric, date and text-number patterns. |
| FontAsset | Owned TrueType bytes plus face identity and aliases; rendering never requires operating-system font lookup. |
| FontCatalog | A versioned deployed-font snapshot shared by browser and server rendering. |
| FontFaceDefinition | One catalog font face; variable fonts retain weight/stretch ranges and an optional TrueType document source. |
| FontFamilyDefinition | A selectable font family and its available faces; fallback is used while a display face loads. |
| FontLoadResult | Outcome of loading a specific catalog face. |
| FontManager | Loads document fonts and exposes font choices, layout metrics and deterministic document rendering assets. |
| FontManagerOptions | Font catalog, URL resolution and load timeout; injected browser objects support isolated hosting. |
| Format | Cell-format changes grouped by font, alignment, fill and number format. Unspecified settings are retained. |
| FormulaArray | A rectangular formula result used by dynamic array spilling; row-major values remain bounded. |
| FormulaCellReference | Cell identity used by formula auditing and incremental dependency invalidation. |
| FormulaDefinition | Formula-designer metadata describing syntax, arguments, examples and external-provider requirements. |
| FormulaRequest | Service/object functions receive cached host data synchronously. This callback stays outside workbook JSON and undo history. |
| HeaderFooterSettings | Excel-compatible text codes: &P page, &N count, &D date, &T time, &A sheet, &F file, &Z path, && literal ampersand. &L/&C/&R select sections. |
| JsonSaveOptions | JSON imports accept arrays of records or arrays of rows. Export defaults to records. |
| LicenseInfo | Detached, immutable component metadata; reading it never grants licensing authority. |
| LicensePayload | What TX Sheet Control reads from a license file, under the names of the API. The trial dates are present for trials only. |
| ListenerErrorEvent | Subscriber failures do not roll back successfully committed transactions. |
| LoadOptions | Reusable load settings. Input buffers are copied; cancellation/validation never partially replace a workbook. |
| LoadResult | Import notices returned after an atomic document replacement. |
| MailMergeBinding | Maps a data path to a template cell identified by worksheet ID and A1 address. |
| MailMergeDataSourceInfo | Reporting metadata extracted from transient authoring data, separate from persisted template bindings. |
| MailMergeField | Declarative bindings use stable worksheet IDs and original template coordinates. |
| MailMergeMetadata | Versioned template bindings and repeat blocks stored with workbook data. |
| MailMergeOptions | Merge policies for missing/null data, output ownership and formula-error handling. |
| MailMergeRepeatBlock | Describes a template range repeated for source-array records, including field bindings and growth direction. |
| MailMergeResult | A merged document plus diagnostics and the resulting repeated ranges; the original template remains reusable. |
| MailMergeSourceArray | Describes an available source array and the fields that can be bound inside its records. |
| MailMergeSourceField | JSON record catalog, held by the control separately from workbook data. |
| MailMergeTemplate | Captures template state and produces isolated merged workbooks without browser UI. |
| MultiSheetDocument | Version-two persisted workbook data with stable sheet IDs and an explicit active sheet. |
| MutationEvent | Mutation context; cancel is honored only for a before event. |
| NamedCellStyle | Detached named style definition including native include/protection/color metadata. |
| NativeLoadOptions | Native package validation budgets; byte limits apply before allocating expanded entry data. |
| NativeSaveOptions | Native export controls. Removing optional extensions is explicit and removes their owned entries. |
| PageScene | An ordered page display list with its dimensions; replay preserves clipping and transforms across renderers. |
| PageSetup | Normalized sheet print/view settings; custom paper dimensions use millimeters and margins use inches. |
| PasteOptions | Clipboard paste settings. Cut/move operations support all only; link requires the same live workbook. |
| PdfDocumentOptions | API-only document metadata, reader preferences, compression and security shared by every PDF export entry point. |
| PdfExportOptions | PDF uses the shared page scenes, vector graphics and embedded fonts. Paper size is independent of DPI. |
| PdfPermissions | Standard PDF reader permissions. Omitted permissions are allowed; restrictions require encryption. |
| PdfSecurityOptions | AES-256, standard security handler revision 6. Settings apply to this export only and never persist in a workbook. |
| PdfViewerPreferences | PDF 1.7 reader preferences. A viewer may choose whether to honor these presentation and printing hints. |
| PictureDrawing | An embedded image positioned above cells, retaining its image source and accessibility text. |
| PictureSource | Exactly one embedded picture source: bytes, data URL or base64 with an optional MIME type. |
| PrintHeaderFooter | Resolved header/footer sections for one page, after field expansion and first/even-page selection. |
| PrintHeaderFooterRun | Expanded header/footer text paired with its effective font and cell-style overrides. |
| PrintLayout | DOM-free page descriptions. Source rectangles use unscaled sheet CSS pixels; content/paper use 96 dpi physical pixels. Map source to content using scale, and clip at content. |
| PrintLayoutOptions | Print context and optional measured row heights used to produce deterministic page breaks. |
| PrintPage | One worksheet page with its cell range, content bounds, margins and resolved header/footer content. |
| PrintRect | Position and dimensions within a print-layout coordinate system, independent of editor zoom. |
| PrintSettings | Physical page and print settings. Explicit units avoid mixing pixels with paper measurements. |
| RemoveDuplicatesOptions | Comparison columns are absolute zero-based indices within the supplied range. |
| RemoveDuplicatesPreview | Duplicate removal plan; row indices are zero based. |
| RenderOptions | Validated worker print context, page selection, font assets and formula-error policy. |
| SaveOptions | Reusable file settings; server PDF options additionally accept explicit font bytes and formula-error policy. |
| SearchMatch | Detached search match with its sheet identity and matched source text. |
| SearchOptions | Search options shared by the browser and pure server; indices and result ordering are stable. |
| SelectionOptions | Navigation options controlling focus, selection extension and scrolling without stretching cell dimensions. |
| ServerPdfOptions | Server PDF export settings with a worksheet handle or stable worksheet identity. |
| ServerSheetControlOptions | Initial headless document limits, locale and formatting defaults; no browser is created. |
| ShapeDrawing | An editable preset shape with text, fill, outline, effects and worksheet placement. |
| ShapeGlow | Optional glow color, opacity and radius surrounding a shape. |
| ShapeGradient | A shape-fill gradient definition retained by native geometry and shared rendering. |
| ShapeShadow | Optional shadow color, opacity, offset and blur applied to a shape. |
| Size | Unscaled drawing dimensions in CSS pixels. Resizing the editor never stretches these values. |
| SortOptions | Sort keys use zero-based worksheet columns or column letters; defaults to ascending with headers. |
| Sparkline | A small chart bound to a destination cell and its worksheet data reference. |
| SparklineGroup | Sparklines sharing rendering, axis, color and marker settings. |
| SparklineOptions | Creation or update settings for sparkline ranges and their shared appearance. |
| Spreadsheet | Coordinates the editor lifecycle and delegates document and interaction behavior to focused operations. |
| SpreadsheetOptions | Initial document, control-area visibility, appearance and dimensions for a mounted editor. |
| TabularLoadOptions | Limits and worksheet settings for UTF-8 tabular imports. A successful load replaces the complete workbook. |
| TabularSaveOptions | Exports one worksheet's values, including calculated formula results, without changing the document. |
| TextToColumnsOptions | Delimited/fixed-width splitting is previewable; overwrite must be explicitly enabled for occupied destinations. |
| ValidationEvent | Non-stop validation can be explicitly accepted by an application; stop constraints cannot be overridden. |
| WorkbookChange | Notification source for a completed document change; batched edits emit one notification. |
| WorkbookCommand | Compatibility worker command for active-sheet operations; new document code uses worksheet-bound handles. |
| WorkbookEventMap | Typed document events; before events run before committing the attempted mutation. |
| WorkbookOptions | Initial document dimensions, growth policy, limits and optional synchronous formula provider. |
| WorkbookPdfOptions | PDF export settings and fonts supplied to the shared, DOM-independent document layout. |
| WorksheetData | Portable sparse worksheet data; blank, unformatted cells are not allocated. |
| WorksheetDocument | Version-one persisted worksheet data with workbook-level metadata. |
| XlsxExportOptions | Native Excel export settings. Original package preservation is enabled by default. |
| XlsxImportOptions | Input limits and projection choices used while validating and reading an XLSX package. |
| XlsxWarning | An import/export diagnostic identifying unsupported or preservation-sensitive workbook information. |
Type Aliases
| Type | Description |
|---|---|
| AnalyticsAggregation | Supported deterministic aggregate functions. COUNT counts nonblank values (or rows when field is omitted). |
| AnalyticsValue | Scalar data accepted by the analytics engine. Dates use ISO strings; cell serials retain workbook semantics. |
| CellAddress | Public type for CellAddress. |
| CellValue | Public type for CellValue. |
| ControlTheme | Public type for ControlTheme. |
| createDocumentLayout | Public type for createDocumentLayout. |
| DashboardWidgetType | Supported dashboard visualizations; definitions contain data and presentation, never executable content. |
| DataProvider | Host-supplied authenticated transport. The signal covers the entire query, not just response headers. |
| DataValue | Scalar connector values. Dates are transported as ISO strings; formulas are never evaluated as input. |
| DrawingPatch | Public type for DrawingPatch. |
| DrawingPosition | Public type for DrawingPosition. |
| FormulaProvider | Public type for FormulaProvider. |
| FormulaResult | Public type for FormulaResult. |
| FunctionValue | Values and arrays accepted at a custom calculation boundary. |
| LicenseErrorCode | Why a license was rejected, with the same codes in JavaScript, TypeScript and .NET. |
| LicenseProduct | Stable product entitlements, independent of package names and deployment environment. |
| LicenseType | Trial licenses last 30 days. Developer and OEM licenses are perpetual for the licensed major version. |
| LocalizationKey | Public type for LocalizationKey. |
| LocalizationResources | Public type for LocalizationResources. |
| PageSetupPatch | Public type for PageSetupPatch. |
| paintScene | Public type for paintScene. |
| PasteMode | Selects content and formatting independently; transpose swaps the copied rectangle's axes. |
| PictureOptions | Public type for PictureOptions. |
| PrintContext | Public type for PrintContext. |
| registerFontFamily | Public type for registerFontFamily. |
| resolveFontFace | Public type for resolveFontFace. |
| ShapeOptions | Public type for ShapeOptions. |
| SparklineType | Public type for SparklineType. |
| WorkbookDocument | Public type for WorkbookDocument. |
| WorksheetDrawing | Public type for WorksheetDrawing. |
Enumerations
| Enumeration | Description |
|---|---|
| StreamType | Public enumeration for StreamType. |
Functions
| Function | Description |
|---|---|
| createHttpDataProvider | Public function for createHttpDataProvider. |
Constants
| Constant | Description |
|---|---|
| defaultFontDirectory | Public constant for defaultFontDirectory. |
PivotSource — Worksheet source. Supply exactly one of range, tableId, or namedRange. Headers must be nonblank and unique.
PivotAxisField — An axis field and optional date, numeric, or manual grouping. Date grouping uses the workbook date system.
PivotValueField — A value field. Duplicate source fields are permitted with different unique captions.
PivotFilter — A report, label, aggregate-value, or Top/Bottom-N filter; filters are combined with AND.
PivotStyle — Portable pivot presentation. Colors are #RRGGBB; row/column banding is independent of the built-in style.
PivotTableOptions — Persisted PivotTable settings; output uses ordinary worksheet cells and is included in worksheet PDF exports.
PivotTableDefinition — Detached persisted identity, settings, and last materialized range.
PivotResult — Coordinates are zero-based relative to the PivotTable output, including its header rows.
PivotTable — An operational PivotTable. Handles are invalid after removal or document replacement; snapshots are detached.
PivotTableCollection — Workbook-wide or worksheet-scoped pivot collection. All indices are zero-based and returned settings are detached.
PivotAggregation — Supported pivot calculation values.
PivotShowAs — Supported pivot calculation values.
encodeBarcode — Encodes a standalone payload into detached module rows. It does not resolve workbook source references.
renderBarcodeSVG — Returns native SVG with a quiet zone. Default dimensions are 300×120 CSS pixels; each must be positive, finite and no greater than 12000.
renderBarcodePNG — Returns a data:image/png;base64 URL, including the quiet zone and optional linear caption.
barcodeCheckDigit — Returns the GS1 modulo-10 check digit for a nonempty numeric body. Invalid bodies reject with an error.
BarcodeOptions — Portable barcode settings. Source and literal value are mutually exclusive; omit both to read the owning or anchor cell.
BarcodeDrawingOptions — Floating barcode settings with ordinary drawing placement. Inherits every BarcodeOptions setting.
BarcodeSymbol — Detached binary symbol returned by encodeBarcode. Rows exclude the mandatory quiet zone.
BarcodeSymbology — Native barcode format names.
OpenDocumentSpreadsheetLoadOptions: ODS load settings.
OpenDocumentSpreadsheetSaveOptions: ODS save settings.