@lumiastream/ui 0.3.4 → 0.3.5
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.js +14 -3
- package/dist/se-import.js +14 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3927,7 +3927,7 @@ function mapSeTextCssToModuleCss(widget, defaults = {}) {
|
|
|
3927
3927
|
if (typeof v === "string" && v.length > 0) return v;
|
|
3928
3928
|
return fallback;
|
|
3929
3929
|
};
|
|
3930
|
-
|
|
3930
|
+
const out = {
|
|
3931
3931
|
lineHeight: asNumOrStr(
|
|
3932
3932
|
seTextCss["line-height"],
|
|
3933
3933
|
defaults.lineHeight ?? "normal"
|
|
@@ -3951,6 +3951,15 @@ function mapSeTextCssToModuleCss(widget, defaults = {}) {
|
|
|
3951
3951
|
),
|
|
3952
3952
|
background: defaults.background ?? "transparent"
|
|
3953
3953
|
};
|
|
3954
|
+
const ls = seTextCss["letter-spacing"];
|
|
3955
|
+
if (typeof ls === "number" || typeof ls === "string" && ls.length > 0) out.letterSpacing = ls;
|
|
3956
|
+
const ws = seTextCss["word-spacing"];
|
|
3957
|
+
if (typeof ws === "number" || typeof ws === "string" && ws.length > 0) out.wordSpacing = ws;
|
|
3958
|
+
const sw = seTextCss["-webkit-text-stroke-width"];
|
|
3959
|
+
if (typeof sw === "number" || typeof sw === "string" && sw.length > 0) out.WebkitTextStrokeWidth = sw;
|
|
3960
|
+
const sc = seTextCss["-webkit-text-stroke-color"];
|
|
3961
|
+
if (typeof sc === "string" && sc.length > 0) out.WebkitTextStrokeColor = sc;
|
|
3962
|
+
return out;
|
|
3954
3963
|
}
|
|
3955
3964
|
var READOUT_AUTO_FALLBACK_SIZE = { width: 400, height: 50 };
|
|
3956
3965
|
function buildUnit(widget, lumiaType, moduleExtras, ctx, sizeOverride) {
|
|
@@ -4004,9 +4013,11 @@ function seExtraTextCss(seCss, scrolling) {
|
|
|
4004
4013
|
if (typeof seCss["font-style"] === "string")
|
|
4005
4014
|
extra.fontStyle = seCss["font-style"];
|
|
4006
4015
|
if (seCss["-webkit-text-stroke-color"])
|
|
4007
|
-
extra
|
|
4016
|
+
extra.WebkitTextStrokeColor = seCss["-webkit-text-stroke-color"];
|
|
4008
4017
|
if (seCss["-webkit-text-stroke-width"] != null)
|
|
4009
|
-
extra
|
|
4018
|
+
extra.WebkitTextStrokeWidth = seCss["-webkit-text-stroke-width"];
|
|
4019
|
+
if (seCss["letter-spacing"] != null) extra.letterSpacing = seCss["letter-spacing"];
|
|
4020
|
+
if (seCss["word-spacing"] != null) extra.wordSpacing = seCss["word-spacing"];
|
|
4010
4021
|
if (scrolling?.enabled) {
|
|
4011
4022
|
extra.scroll = true;
|
|
4012
4023
|
const speed = Number(scrolling.speed);
|
package/dist/se-import.js
CHANGED
|
@@ -800,7 +800,7 @@ function mapSeTextCssToModuleCss(widget, defaults = {}) {
|
|
|
800
800
|
if (typeof v === "string" && v.length > 0) return v;
|
|
801
801
|
return fallback;
|
|
802
802
|
};
|
|
803
|
-
|
|
803
|
+
const out = {
|
|
804
804
|
lineHeight: asNumOrStr(
|
|
805
805
|
seTextCss["line-height"],
|
|
806
806
|
defaults.lineHeight ?? "normal"
|
|
@@ -824,6 +824,15 @@ function mapSeTextCssToModuleCss(widget, defaults = {}) {
|
|
|
824
824
|
),
|
|
825
825
|
background: defaults.background ?? "transparent"
|
|
826
826
|
};
|
|
827
|
+
const ls = seTextCss["letter-spacing"];
|
|
828
|
+
if (typeof ls === "number" || typeof ls === "string" && ls.length > 0) out.letterSpacing = ls;
|
|
829
|
+
const ws = seTextCss["word-spacing"];
|
|
830
|
+
if (typeof ws === "number" || typeof ws === "string" && ws.length > 0) out.wordSpacing = ws;
|
|
831
|
+
const sw = seTextCss["-webkit-text-stroke-width"];
|
|
832
|
+
if (typeof sw === "number" || typeof sw === "string" && sw.length > 0) out.WebkitTextStrokeWidth = sw;
|
|
833
|
+
const sc = seTextCss["-webkit-text-stroke-color"];
|
|
834
|
+
if (typeof sc === "string" && sc.length > 0) out.WebkitTextStrokeColor = sc;
|
|
835
|
+
return out;
|
|
827
836
|
}
|
|
828
837
|
var READOUT_AUTO_FALLBACK_SIZE = { width: 400, height: 50 };
|
|
829
838
|
function buildUnit(widget, lumiaType, moduleExtras, ctx, sizeOverride) {
|
|
@@ -877,9 +886,11 @@ function seExtraTextCss(seCss, scrolling) {
|
|
|
877
886
|
if (typeof seCss["font-style"] === "string")
|
|
878
887
|
extra.fontStyle = seCss["font-style"];
|
|
879
888
|
if (seCss["-webkit-text-stroke-color"])
|
|
880
|
-
extra
|
|
889
|
+
extra.WebkitTextStrokeColor = seCss["-webkit-text-stroke-color"];
|
|
881
890
|
if (seCss["-webkit-text-stroke-width"] != null)
|
|
882
|
-
extra
|
|
891
|
+
extra.WebkitTextStrokeWidth = seCss["-webkit-text-stroke-width"];
|
|
892
|
+
if (seCss["letter-spacing"] != null) extra.letterSpacing = seCss["letter-spacing"];
|
|
893
|
+
if (seCss["word-spacing"] != null) extra.wordSpacing = seCss["word-spacing"];
|
|
883
894
|
if (scrolling?.enabled) {
|
|
884
895
|
extra.scroll = true;
|
|
885
896
|
const speed = Number(scrolling.speed);
|