@tixyel/streamelements 6.4.6 → 6.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5439,8 +5439,8 @@ var y;
|
|
|
5439
5439
|
if (U.nodeType === Node.TEXT_NODE) {
|
|
5440
5440
|
const P = (U.textContent || "").split("").map((j, M) => {
|
|
5441
5441
|
const H = document.createElement("span");
|
|
5442
|
-
return H.classList.add("char"), H.dataset.index = String(C), H.dataset.exclusivityIndex = String(M), H.style.setProperty("--char-index", String(C)), H.style.setProperty("--exclusivity-index", String(M)),
|
|
5443
|
-
` || j === " "
|
|
5442
|
+
return H.classList.add("char"), H.dataset.index = String(C), H.dataset.exclusivityIndex = String(M), H.style.setProperty("--char-index", String(C)), H.style.setProperty("--exclusivity-index", String(M)), j === " " || j === `
|
|
5443
|
+
` || j === " " ? H.style.whiteSpace = "pre-wrap" : C++, H.textContent = j, H;
|
|
5444
5444
|
}), _ = document.createDocumentFragment();
|
|
5445
5445
|
return P.forEach((j) => _.appendChild(j)), _;
|
|
5446
5446
|
} else if (U.nodeType === Node.ELEMENT_NODE) {
|