Commit f1346b5c authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix CreateColorByName

parent 4c17621b
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
* @returns {ApiColor} * @returns {ApiColor}
*/ */
Api.prototype.CreateColorByName = function (presetColor) { Api.prototype.CreateColorByName = function (presetColor) {
var rgb = map_prst_color[presetColor]; var rgb = AscFormat.mapPrstColor[presetColor];
return new ApiColor(AscCommonExcel.createRgbColor((rgb >> 16) & 0xFF, (rgb >> 8) & 0xFF, rgb & 0xFF)); return new ApiColor(AscCommonExcel.createRgbColor((rgb >> 16) & 0xFF, (rgb >> 8) & 0xFF, rgb & 0xFF));
}; };
......
...@@ -12724,6 +12724,7 @@ function CorrectUniColor(asc_color, unicolor, flag) ...@@ -12724,6 +12724,7 @@ function CorrectUniColor(asc_color, unicolor, flag)
window['AscFormat'].Ax_Counter = Ax_Counter; window['AscFormat'].Ax_Counter = Ax_Counter;
window['AscFormat'].TYPE_TRACK = TYPE_TRACK; window['AscFormat'].TYPE_TRACK = TYPE_TRACK;
window['AscFormat'].TYPE_KIND = TYPE_KIND; window['AscFormat'].TYPE_KIND = TYPE_KIND;
window['AscFormat'].mapPrstColor = map_prst_color;
window['AscFormat'].ar_arrow = ar_arrow; window['AscFormat'].ar_arrow = ar_arrow;
window['AscFormat'].ar_diamond = ar_diamond; window['AscFormat'].ar_diamond = ar_diamond;
window['AscFormat'].ar_none = ar_none; window['AscFormat'].ar_none = ar_none;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment