TX Sheet Control

JavaScript Node.js Server API

Topic

The JavaScript API of the Node.js server is what the npm package @txtextcontrol/tx-sheet-control-server exports: ServerSheetControl, which processes workbooks without a browser, the workbook object model it owns and the function, constant and enumeration that go with them. The tables below list every export by kind.

The entries describe the public package surface. Workbook handles are obtained from their owner, such as the control's workbook; the related object-model types are not an instruction to import extra packages.

Package: @txtextcontrol/tx-sheet-control-server.

Classes

ClassDescription
CellA worksheet-bound scalar cell handle. Literal text, entered input and calculated values remain distinct. Cell features are returned as detached snapshots; mutations remain undoable.
CellCommentsEditable cell conversation; current user identity belongs to the owning workbook runtime.
CellTypeRegistryPer-document extensible renderer/editor registry. Saved cells retain only a renderer name and portable options.
ChartCollectionPublic class for ChartCollection.
ChartHandleA worksheet-bound chart handle. Data references are resolved by the workbook calculation engine.
DashboardA stable dashboard handle. All snapshots are detached; handles expire after document replacement or deletion.
DashboardAnalyticsWorkbook-wide analytics; caches are private, column-oriented and invalidated by affected cells and formula changes.
DashboardCollectionWorkbook dashboard views; collection edits share the workbook history and .txwb persistence.
DataConnectionsOptional 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.
DimensionPublic class for Dimension.
DimensionCollectionPublic class for DimensionCollection.
DrawingCollectionPublic class for DrawingCollection.
DrawingGroupA group handle that transforms its members together in unscaled worksheet coordinates.
DrawingHandleA drawing handle whose lifetime follows its worksheet and object token, rather than its display name.
FontRegistryResolves document font faces and shapes glyph runs identically in browser and server rendering.
LicenseErrorPublic class for LicenseError.
NamedRangeCollectionCase-insensitive names scoped to a workbook or one worksheet. Sheets take precedence over workbook names.
OperationCanceledErrorRaised when a host cancels a mutation; the shared transaction rolls it back atomically.
RangeA worksheet-bound rectangular range for atomic bulk reads, writes, formatting and copy operations. Range operations retain protection, validation and shared transaction semantics.
ServerSheetControlAn isolated workbook, shared document API and file filters, without an editor or DOM.
SheetCollectionStable sheet lookup and creation without changing the selected worksheet.
SheetPrintWorksheet print settings with explicit units and validated page geometry.
SheetProtectionWorksheet-bound editing protection, using the same locked-cell styles as Excel import/export.
SheetValidationSheet-bound validation rules and inspection. Existing values remain unchanged when a rule is installed.
SheetViewWorksheet view settings never alter the underlying row heights, column widths or print area.
TableA stable operational table handle. Mutations are worksheet-bound and undoable.
TableCollectionNamed table lookup and creation. Table names are unique across the whole workbook.
WorkbookLicensed workbook model. Active-sheet methods use the selected worksheet; retained handles bind explicit sheets.
WorkbookCalculationPer-document function registration, asynchronous settling, external documents and formula auditing.
WorkbookEventsPer-document typed subscriptions. Callbacks are excluded from saved state and undo history.
WorkbookSearchSparse cross-sheet search and atomic replacement, independent of the selected worksheet and browser DOM.
WorksheetA stable sheet identity. Access never activates a worksheet. Feature collections share the existing worksheet identity and lifecycle validation.

Enumerations

EnumerationDescription
StreamTypePublic enumeration for StreamType.

Functions

FunctionDescription
createHttpDataProviderPublic function for createHttpDataProvider.

Constants

ConstantDescription
defaultFontDirectoryPublic constant for defaultFontDirectory.
  • 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.

  • 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.