Commit 4a881b87 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete CColor (move to editorscommon.js)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51980 954022d7-b5bf-4e40-9824-e11837661b57
parent efdacde7
...@@ -243,31 +243,6 @@ CAscTexture.prototype.get_image = function() { return this.Image; } ...@@ -243,31 +243,6 @@ CAscTexture.prototype.get_image = function() { return this.Image; }
// --------------------------------------------------------------- // ---------------------------------------------------------------
function CColor (r,g,b){
this.r = (undefined == r) ? 0 : r;
this.g = (undefined == g) ? 0 : g;
this.b = (undefined == b) ? 0 : b;
}
CColor.prototype.get_r = function(){return this.r}
CColor.prototype.put_r = function(v){this.r = v; this.hex = undefined;}
CColor.prototype.get_g = function(){return this.g;}
CColor.prototype.put_g = function(v){this.g = v; this.hex = undefined;}
CColor.prototype.get_b = function(){return this.b;}
CColor.prototype.put_b = function(v){this.b = v; this.hex = undefined;}
CColor.prototype.get_hex = function()
{
if(!this.hex)
{
var r = this.r.toString(16);
var g = this.g.toString(16);
var b = this.b.toString(16);
this.hex = ( r.length == 1? "0" + r: r) +
( g.length == 1? "0" + g: g) +
( b.length == 1? "0" + b: b);
}
return this.hex;
}
// цвет. может быть трех типов: // цвет. может быть трех типов:
// COLOR_TYPE_SRGB : // value - не учитывается // COLOR_TYPE_SRGB : // value - не учитывается
// COLOR_TYPE_PRST : // value - имя стандартного цвета (map_prst_color) // COLOR_TYPE_PRST : // value - имя стандартного цвета (map_prst_color)
......
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