版博士V2.0程序
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

Text.d.ts 953 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import CharacterData from '../character-data/CharacterData';
  2. import IText from './IText';
  3. /**
  4. * Text node.
  5. */
  6. export default class Text extends CharacterData implements IText {
  7. readonly nodeType = NodeTypeEnum.textNode;
  8. /**
  9. * Node name.
  10. *
  11. * @returns Node name.
  12. */
  13. get nodeName(): string;
  14. /**
  15. * Breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
  16. *
  17. * @see https://dom.spec.whatwg.org/#dom-text-splittext
  18. * @see https://dom.spec.whatwg.org/#dom-text-splittext
  19. * @param offset Offset.
  20. * @returns New text node.
  21. */
  22. splitText(offset: number): IText;
  23. /**
  24. * Converts to string.
  25. *
  26. * @returns String.
  27. */
  28. toString(): string;
  29. /**
  30. * Clones a node.
  31. *
  32. * @override
  33. * @param [deep=false] "true" to clone deep.
  34. * @returns Cloned node.
  35. */
  36. cloneNode(deep?: boolean): IText;
  37. }