(atext: AText)
| 1069 | * @returns {AText} |
| 1070 | */ |
| 1071 | export const cloneAText = (atext: AText): AText => { |
| 1072 | if (!atext) error('atext is null'); |
| 1073 | return { |
| 1074 | text: atext.text, |
| 1075 | attribs: atext.attribs, |
| 1076 | }; |
| 1077 | }; |
| 1078 | |
| 1079 | /** |
| 1080 | * Copies a AText structure from atext1 to atext2. |
no test coverage detected