Commit 3d724308 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

1. Поправила gaps для операторов: когда операторы идут подряд (например =+ и...

1. Поправила gaps для операторов: когда операторы идут подряд (например =+ и =-) и добавила gaps для <, >
2. Свойство mathPr (naryLim и intLim default)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53967 954022d7-b5bf-4e40-9824-e11837661b57
parent cf79dcae
This diff is collapsed.
......@@ -20,17 +20,12 @@ function CNary()
this.grow = false;
this.supHide = false;
this.subHide = false;
this.limLoc = NARY_UndOvr;
//this.limLoc = NARY_UndOvr;
CSubMathBase.call(this);
}
extend(CNary, CSubMathBase);
CNary.prototype.init = function(props)
{
if(props.limLoc == NARY_UndOvr)
this.limLoc = NARY_UndOvr;
else if(props.limLoc == NARY_SubSup)
this.limLoc = NARY_SubSup;
if(props.supHide === true || props.supHide === 1)
this.supHide = true;
......@@ -51,6 +46,21 @@ CNary.prototype.init = function(props)
bChr = true;
}
if(props.limLoc == NARY_UndOvr)
this.limLoc = NARY_UndOvr;
else if(props.limLoc == NARY_SubSup)
this.limLoc = NARY_SubSup;
else
{
var bIntegral = signCode > 0x222A && signCode < 0x2231;
if(bIntegral)
this.limLoc = this.Composition.props.intLim;
else
this.limLoc = this.Composition.props.naryLim;
}
if(signCode == 0x222B || props.signType == NARY_INTEGRAL)
{
this.code = 0x222B;
......
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