guy 8 years ago
parent
commit
7e2140f8d2
  1. 12
      bi/core.js
  2. 12
      docs/core.js
  3. 12
      src/core/func/function.js

12
bi/core.js

@ -17238,9 +17238,9 @@ $(function () {
return tempValue; return tempValue;
}, },
rgba2rgb: function (rgbColour, BGcolur) { rgba2rgb: function (rgbColour, BGcolor) {
if (BI.isNull(BGcolur)) { if (BI.isNull(BGcolor)) {
BGcolur = 1; BGcolor = 1;
} }
if (rgbColour.substr(0, 4) != "rgba") { if (rgbColour.substr(0, 4) != "rgba") {
return ""; return "";
@ -17254,9 +17254,9 @@ $(function () {
var B = BI.parseFloat(rgbValues[2]); var B = BI.parseFloat(rgbValues[2]);
var A = BI.parseFloat(rgbValues[3]); var A = BI.parseFloat(rgbValues[3]);
return "rgb(" + Math.floor(255 * (BGcolur * (1 - A )) + R * A) + "," + return "rgb(" + Math.floor(255 * (BGcolor * (1 - A )) + R * A) + "," +
Math.floor(255 * (BGcolur * (1 - A )) + G * A) + "," + Math.floor(255 * (BGcolor * (1 - A )) + G * A) + "," +
Math.floor(255 * (BGcolur * (1 - A )) + B * A) + ")"; Math.floor(255 * (BGcolor * (1 - A )) + B * A) + ")";
}, },
getTextSizeWidth: function (text, fontSize) { getTextSizeWidth: function (text, fontSize) {

12
docs/core.js

@ -22764,9 +22764,9 @@ $(function () {
return tempValue; return tempValue;
}, },
rgba2rgb: function (rgbColour, BGcolur) { rgba2rgb: function (rgbColour, BGcolor) {
if (BI.isNull(BGcolur)) { if (BI.isNull(BGcolor)) {
BGcolur = 1; BGcolor = 1;
} }
if (rgbColour.substr(0, 4) != "rgba") { if (rgbColour.substr(0, 4) != "rgba") {
return ""; return "";
@ -22780,9 +22780,9 @@ $(function () {
var B = BI.parseFloat(rgbValues[2]); var B = BI.parseFloat(rgbValues[2]);
var A = BI.parseFloat(rgbValues[3]); var A = BI.parseFloat(rgbValues[3]);
return "rgb(" + Math.floor(255 * (BGcolur * (1 - A )) + R * A) + "," + return "rgb(" + Math.floor(255 * (BGcolor * (1 - A )) + R * A) + "," +
Math.floor(255 * (BGcolur * (1 - A )) + G * A) + "," + Math.floor(255 * (BGcolor * (1 - A )) + G * A) + "," +
Math.floor(255 * (BGcolur * (1 - A )) + B * A) + ")"; Math.floor(255 * (BGcolor * (1 - A )) + B * A) + ")";
}, },
getTextSizeWidth: function (text, fontSize) { getTextSizeWidth: function (text, fontSize) {

12
src/core/func/function.js

@ -225,9 +225,9 @@ $(function () {
return tempValue; return tempValue;
}, },
rgba2rgb: function (rgbColour, BGcolur) { rgba2rgb: function (rgbColour, BGcolor) {
if (BI.isNull(BGcolur)) { if (BI.isNull(BGcolor)) {
BGcolur = 1; BGcolor = 1;
} }
if (rgbColour.substr(0, 4) != "rgba") { if (rgbColour.substr(0, 4) != "rgba") {
return ""; return "";
@ -241,9 +241,9 @@ $(function () {
var B = BI.parseFloat(rgbValues[2]); var B = BI.parseFloat(rgbValues[2]);
var A = BI.parseFloat(rgbValues[3]); var A = BI.parseFloat(rgbValues[3]);
return "rgb(" + Math.floor(255 * (BGcolur * (1 - A )) + R * A) + "," + return "rgb(" + Math.floor(255 * (BGcolor * (1 - A )) + R * A) + "," +
Math.floor(255 * (BGcolur * (1 - A )) + G * A) + "," + Math.floor(255 * (BGcolor * (1 - A )) + G * A) + "," +
Math.floor(255 * (BGcolur * (1 - A )) + B * A) + ")"; Math.floor(255 * (BGcolor * (1 - A )) + B * A) + ")";
}, },
getTextSizeWidth: function (text, fontSize) { getTextSizeWidth: function (text, fontSize) {

Loading…
Cancel
Save