mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 08:38:30 -07:00
Add node_modules
This commit is contained in:
1 parent
1df571f777
commit
c01615d999
530 files changed
+38186
No files matched your search
+43
@@ -0,0 +1,43 @@
|
||||
import HTMLElement from './html';
|
||||
import Node from './node';
|
||||
import NodeType from './type';
|
||||
/**
|
||||
* TextNode to contain a text element in DOM tree.
|
||||
* @param {string} value [description]
|
||||
*/
|
||||
export default class TextNode extends Node {
|
||||
clone(): TextNode;
|
||||
constructor(rawText: string, parentNode?: HTMLElement, range?: [number, number]);
|
||||
/**
|
||||
* Node Type declaration.
|
||||
* @type {Number}
|
||||
*/
|
||||
nodeType: NodeType;
|
||||
private _rawText;
|
||||
private _trimmedRawText?;
|
||||
private _trimmedText?;
|
||||
get rawText(): string;
|
||||
/**
|
||||
* Set rawText and invalidate trimmed caches
|
||||
*/
|
||||
set rawText(text: string);
|
||||
/**
|
||||
* Returns raw text with all whitespace trimmed except single leading/trailing non-breaking space
|
||||
*/
|
||||
get trimmedRawText(): string;
|
||||
/**
|
||||
* Returns text with all whitespace trimmed except single leading/trailing non-breaking space
|
||||
*/
|
||||
get trimmedText(): string;
|
||||
/**
|
||||
* Get unescaped text value of current node and its children.
|
||||
* @return {string} text content
|
||||
*/
|
||||
get text(): string;
|
||||
/**
|
||||
* Detect if the node contains only white space.
|
||||
* @return {boolean}
|
||||
*/
|
||||
get isWhitespace(): boolean;
|
||||
toString(): string;
|
||||
}
|
||||
Reference in new issue
Block a user