JavaScript Browser Editor API
The JavaScript API of the browser editor is what the npm package @txtextcontrol/tx-sheet-control exports: the Spreadsheet editor, the workbook object model it owns and the functions, constants and enumerations 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 editor's workbook; the related object-model types are not an instruction to import extra packages.
Package: @txtextcontrol/tx-sheet-control.
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. |
| FontManager | Loads document fonts and exposes font choices, layout metrics and deterministic document rendering assets. |
| FontRegistry | Resolves document font faces and shapes glyph runs identically in browser and server rendering. |
| LicenseError | Public class for LicenseError. |
| MailMergeTemplate | Captures template state and produces isolated merged workbooks without browser UI. |
| 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. |
| SheetCollection | Stable sheet lookup and creation without changing the selected worksheet. |
| SheetControl | Coordinates the editor lifecycle and delegates document and interaction behavior to focused operations. |
| 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. |
| Spreadsheet | Coordinates the editor lifecycle and delegates document and interaction behavior to focused operations. |
| 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. |
Enumerations
| Enumeration | Description |
|---|---|
| StreamType | Public enumeration for StreamType. |
Functions
| Function | Description |
|---|---|
| columnName | Public function for columnName. |
| createDocumentLayout | Public function for createDocumentLayout. |
| createHttpDataProvider | Public function for createHttpDataProvider. |
| createPrintLayout | Public function for createPrintLayout. |
| getControl | Public function for getControl. |
| getLanguageResources | Public function for getLanguageResources. |
| getRegisteredLanguages | Public function for getRegisteredLanguages. |
| loadFontCatalog | Public function for loadFontCatalog. |
| paintScene | Public function for paintScene. |
| parseAddress | Public function for parseAddress. |
| registerLanguage | Public function for registerLanguage. |
| shapeGeometry | Public function for shapeGeometry. |
Constants
| Constant | Description |
|---|---|
| CHART_STYLES | Public constant for CHART_STYLES. |
| CHART_TYPES | Public constant for CHART_TYPES. |
| defaultFontCatalogURL | Public constant for defaultFontCatalogURL. |
| DEFAULT_STYLE | Public constant for DEFAULT_STYLE. |
| englishResources | Public constant for englishResources. |
| FORMULA_FUNCTIONS | Public constant for FORMULA_FUNCTIONS. |
| germanResources | Public constant for germanResources. |
| SHAPE_TYPES | Public constant for SHAPE_TYPES. |
| version | Public constant for version. |
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.