0.1.2General data object for storing cell information.
Builds the description of a table cell.
(Function)
A function to be called with the cell data.
Must be called whenever a new sheet begins.
CellBuilder:
This CellBuilder.
Registers the given Cell for the Cell's span of rows and columns and calls the callback function with the Cell's data.
(Cell)
The Cell object.
CellBuilder:
This CellBuilder.
Gets the registered master Cell for the given cell and calls the callback function with the Cell's data.
(Cell)
The Cell object.
CellBuilder:
This CellBuilder.
Parses the content.xml file of an ODS document.
(StyleResolver)
Resolver used to look up styles.
(CellBuilder)
Invoked for every parsed table cell.
Parses a content.xml document.
(string)
XML document.
ContentParser:
This ContentParser.
Central class for reading ODS files.
Read an ODS file from a buffer.
((Buffer | Uint8Array))
The byte buffer with file content.
(Function)
The callback function called for each cell.
Builds the rich text representation of a table cell.
Clears the current content.
RichTextBuilder:
This RichTextBuilder.
Prevents the next append() call from being merged with the previous segment.
RichTextBuilder:
This RichTextBuilder.
Appends a text segment.
RichTextBuilder:
This RichTextBuilder.
Appends one or more space characters.
RichTextBuilder:
This RichTextBuilder.
Appends one or more tabulator characters.
RichTextBuilder:
This RichTextBuilder.
Appends one or more line break characters.
RichTextBuilder:
This RichTextBuilder.
Builds the final rich text data structures for the builder's current content and return an object with the plain text, an array of rich text segments, each consisting of the text data and the corresponding style data, and an array of style data per character. This array contains as many elements as characters are contained in the plain text. Each element index points to the effective style for the corresponding character. Characters in this context are real visible characters (unicode code points or graphemes) that may consist of several UTF16 code units. If you know that your strings contain such characters, don't use plainText.length or plainText.at(), since those only handle UTF16 code units and will lead to wrong indexes. Use one of the methods below, instead, to access single characters.
object:
The final rich text data.
{
plainText: 'Hello World',
richText: [{text: 'Hello ', style: style1}, {text: 'World', style: style2}],
styleAt: [style1, style1, style1, style1, style1, style1, style2, style2, style2, style2, style2]
}
const char = plainText.codePointAt();
const chars = [...plainText];
for(const char of plainText) {};
const segmenter = new Intl.Segmenter(undefined, {granularity: "grapheme"});
const chars = [...segmenter.segment(plainText)];
General data object for storing style information.
Resolves styles by their names.
Parses the styles.xml file of an ODS document.
Parses an XML document string.
(string)
XML document string.
StylesParser:
This StylesParser.
Resolves all Style inheritances.
StylesParser:
This StylesParser.
Maintains the current XML element hierarchy while parsing an XML document.