@kaitify/core 0.0.1 → 0.0.2-beta.1
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/lib/kaitify-core.es.js
CHANGED
|
@@ -1909,9 +1909,12 @@ class KNode {
|
|
|
1909
1909
|
if (options.styles[key] === true) {
|
|
1910
1910
|
return this.styles.hasOwnProperty(key);
|
|
1911
1911
|
}
|
|
1912
|
+
if (this.styles[key] === void 0) {
|
|
1913
|
+
return options.styles[key] === "";
|
|
1914
|
+
}
|
|
1912
1915
|
return this.styles[key] == options.styles[key];
|
|
1913
1916
|
}
|
|
1914
|
-
return
|
|
1917
|
+
return options.styles[key] === "";
|
|
1915
1918
|
});
|
|
1916
1919
|
if (!hasStyles) {
|
|
1917
1920
|
return false;
|
|
@@ -3509,9 +3512,12 @@ const isTextNodeStyle = (node, styleName, styleValue) => {
|
|
|
3509
3512
|
const arr = color.hex2rgb(ownValue);
|
|
3510
3513
|
ownValue = `rgb(${arr[0]},${arr[1]},${arr[2]})`;
|
|
3511
3514
|
}
|
|
3515
|
+
if (ownValue === void 0) {
|
|
3516
|
+
return styleValue === "";
|
|
3517
|
+
}
|
|
3512
3518
|
return ownValue == styleValue;
|
|
3513
3519
|
}
|
|
3514
|
-
return
|
|
3520
|
+
return styleValue === "";
|
|
3515
3521
|
};
|
|
3516
3522
|
const TextExtension = () => Extension.create({
|
|
3517
3523
|
name: "text",
|