mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-15 20:35:23 +03:00
chore: add comman dangle rule for multiline
This commit is contained in:
parent
ae2ef20ce2
commit
03690e087f
43 changed files with 203 additions and 202 deletions
|
@ -10,13 +10,13 @@ CSSUtil.prototype.colorTables = {
|
|||
redWhiteGreen: [
|
||||
{ percentage: -1, color: { r: 0xff, g: 0x00, b: 0x00, a: 1.0 } },
|
||||
{ percentage: 0, color: { r: 0xff, g: 0xff, b: 0xff, a: 1.0 } },
|
||||
{ percentage: 1, color: { r: 0x00, g: 0xff, b: 0x00, a: 1.0 } }
|
||||
{ percentage: 1, color: { r: 0x00, g: 0xff, b: 0x00, a: 1.0 } },
|
||||
],
|
||||
pidSlider: [
|
||||
{ percentage: -1, color: { r: 0xc5, g: 0xc5, b: 0xc5, a: 1.0 } },
|
||||
{ percentage: 0, color: { r: 0xff, g: 0xff, b: 0xff, a: 0.0 } },
|
||||
{ percentage: 1, color: { r: 0xff, g: 0x54, b: 0x0e, a: 1.0 } }
|
||||
]
|
||||
{ percentage: 1, color: { r: 0xff, g: 0x54, b: 0x0e, a: 1.0 } },
|
||||
],
|
||||
};
|
||||
|
||||
// Stack Overflow: https://stackoverflow.com/a/7128796/4107016
|
||||
|
@ -41,7 +41,7 @@ CSSUtil.prototype.getColorForPercentage = function(percentage, colorTable = null
|
|||
r: Math.floor(lower.color.r * percentageLower + upper.color.r * percentageUpper),
|
||||
g: Math.floor(lower.color.g * percentageLower + upper.color.g * percentageUpper),
|
||||
b: Math.floor(lower.color.b * percentageLower + upper.color.b * percentageUpper),
|
||||
a: lower.color.a * percentageLower + upper.color.a * percentageUpper
|
||||
a: lower.color.a * percentageLower + upper.color.a * percentageUpper,
|
||||
};
|
||||
return "rgba(" + [color.r, color.g, color.b, color.a].join(",") + ")";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue