You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1、The npm version is not latest
2、On some platforms it is not possible to render RGB colors as decimals
So I want to release a new version of npm, For compatibility with some platforms,Fix common/b2_draw.ts MakeStyleString method
if (a < 1) {
return rgba(${Math.round(r)},${Math.round(g)},${Math.round(b)},${a});
} else {
return rgb(${Math.round(r)},${Math.round(g)},${Math.round(b)});
}
return rgb string value is integer
The text was updated successfully, but these errors were encountered:
1、The npm version is not latest
2、On some platforms it is not possible to render RGB colors as decimals
So I want to release a new version of npm, For compatibility with some platforms,Fix common/b2_draw.ts MakeStyleString method
if (a < 1) {
return
rgba(${Math.round(r)},${Math.round(g)},${Math.round(b)},${a})
;} else {
return
rgb(${Math.round(r)},${Math.round(g)},${Math.round(b)})
;}
return rgb string value is integer
The text was updated successfully, but these errors were encountered: