Commit 0bc20c63 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

1. Прокинула свойства для элементов : fraction, degree, degreeSubSup radical,...

1. Прокинула свойства для элементов : fraction, degree, degreeSubSup radical, N-ary, accent, delimiters (для чтения)
2. Исправила баг при удалении: когда удаляли контент из начала контента, неправильно выставлялся курсор (перед RunPrp), текст из-за этого не отображался
3. Исправила баг при добавлении мат. элемента, не добавлялись RunPrp для текста 
4. Для n-арных операторов добавила возможность вместо n-арного оператора отрисовать любую букву
5. Поправила баг с расстоянием для n-арных операторов с один оператором (они не отрисовывались)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52120 954022d7-b5bf-4e40-9824-e11837661b57
parent 565b85fc
......@@ -597,6 +597,10 @@ CSign.prototype.relate = function(parent)
{
this.Parent = parent;
}
CSign.prototype.getCodeAccent = function()
{
return this.sign.value;
}
function old_CAccent()
{
......@@ -845,7 +849,8 @@ CAccent.prototype.draw = function()
function CAccent()
{
this. type = null;
this.code = null; // храним код буквы и тип здесь
this. type = null; // т.к в класах, которые вызываем, не учитываем случаи, когда элементы (стрелки/скобки) переворачиваются
this.loc = LOCATION_TOP;
CCharacter.call(this);
}
......@@ -880,6 +885,7 @@ CAccent.prototype.init = function(props)
if(code === 0x302 || type === ACCENT_CIRCUMFLEX)
{
this.type = ACCENT_CIRCUMFLEX;
this.code = 0x302;
accent = new CCircumflex();
accent.setTurn(TURN_0);
......@@ -887,6 +893,7 @@ CAccent.prototype.init = function(props)
else if(code === 0x30C || type === ACCENT_COMB_CARON)
{
this.type = ACCENT_COMB_CARON;
this.code = 0x30C;
accent = new CCircumflex();
accent.setTurn(TURN_MIRROR_0);
......@@ -894,24 +901,28 @@ CAccent.prototype.init = function(props)
else if(code === 0x332 || type === ACCENT_LINE)
{
this.type = ACCENT_LINE;
this.code = 0x332;
accent = new CLine();
}
else if(code === 0x333 || type === ACCENT_DOUBLE_LINE)
{
this.type = ACCENT_DOUBLE_LINE;
this.code = 0x333;
accent = new CDoubleLine();
}
else if(code === 0x303 || type === ACCENT_TILDE)
{
this.type = ACCENT_TILDE;
this.code = 0x303;
accent = new CTilde();
}
else if(code === 0x306 || type === ACCENT_BREVE)
{
this.type = ACCENT_BREVE;
this.code = 0x306;
accent = new CBreve();
accent.setTurn(TURN_MIRROR_0);
......@@ -919,6 +930,7 @@ CAccent.prototype.init = function(props)
else if(code == 0x311 || type == ACCENT_INVERT_BREVE)
{
this.type = ACCENT_INVERT_BREVE;
this.code = 0x311;
accent = new CBreve();
accent.setTurn(TURN_0);
......@@ -926,141 +938,152 @@ CAccent.prototype.init = function(props)
else if(code === 0x20D6 || type === ACCENT_ARROW_LEFT)
{
this.type = ACCENT_ARROW_LEFT;
this.code = 0x20D6;
glyph = new CCombiningArrow();
props =
var prp =
{
location: LOCATION_TOP,
turn: TURN_0
};
glyph.init(props);
glyph.init(prp);
accent = new COperator(glyph);
}
else if(code === 0x20D7 || type === ACCENT_ARROW_RIGHT)
{
this.type = ACCENT_ARROW_RIGHT;
this.code = 0x20D7;
glyph = new CCombiningArrow();
props =
var prp =
{
location: LOCATION_TOP,
turn: TURN_180
};
glyph.init(props);
glyph.init(prp);
accent = new COperator(glyph);
}
else if(code === 0x20E1 || type === ACCENT_ARROW_LR)
{
this.type = ACCENT_ARROW_LR;
this.code = 0x20E1;
glyph = new CCombining_LR_Arrow();
props =
var prp =
{
location: LOCATION_TOP,
turn: TURN_0
};
glyph.init(props);
glyph.init(prp);
accent = new COperator(glyph);
}
else if(code === 0x20D0 || type === ACCENT_HALF_ARROW_LEFT)
{
this.type = ACCENT_HALF_ARROW_LEFT;
this.code = 0x20D0;
glyph = new CCombiningHalfArrow();
props =
var prp =
{
location: LOCATION_TOP,
turn: TURN_0
};
glyph.init(props);
glyph.init(prp);
accent = new COperator(glyph);
}
else if(code === 0x20D1 || type === ACCENT_HALF_ARROW_RIGHT)
{
this.type = ACCENT_HALF_ARROW_RIGHT;
this.code = 0x20D1;
glyph = new CCombiningHalfArrow();
props =
var prp =
{
location: LOCATION_TOP,
turn: TURN_180
};
glyph.init(props);
glyph.init(prp);
accent = new COperator(glyph);
}
///// group characters /////
else if(code === 0x2190 || type === ARROW_LEFT)
{
this.type = ARROW_LEFT;
this.code = 0x2190;
glyph = new CSingleArrow();
props =
var prp =
{
location: this.loc,
turn: TURN_0
};
glyph.init(props);
glyph.init(prp);
}
else if(code === 0x2192 || type === ARROW_RIGHT)
{
this.type = ARROW_RIGHT;
this.code = 0x2192;
glyph = new CSingleArrow();
props =
var prp =
{
location: this.loc,
turn: TURN_180
};
glyph.init(props);
glyph.init(prp);
}
else if(code === 0x2194 || type === ARROW_LR)
{
this.type = ARROW_LR;
this.code = 0x2194;
glyph = new CLeftRightArrow();
props =
var prp =
{
location: this.loc,
turn: TURN_0
};
glyph.init(props);
glyph.init(prp);
}
else if(code === 0x21D0 || type === DOUBLE_LEFT_ARROW)
{
this.type = DOUBLE_LEFT_ARROW;
this.code = 0x21D0;
glyph = new CDoubleArrow();
props =
var prp =
{
location: this.loc,
turn: TURN_0
};
glyph.init(props);
glyph.init(prp);
}
else if(code === 0x21D2 || type === DOUBLE_RIGHT_ARROW)
{
this.type = DOUBLE_RIGHT_ARROW;
this.code = 0x21D2;
glyph = new CDoubleArrow();
props =
var prp =
{
location: this.loc,
turn: TURN_180
};
glyph.init(props);
glyph.init(prp);
}
else if(code === 0x21D4 || type === DOUBLE_ARROW_LR)
{
this.type = DOUBLE_ARROW_LR;
this.code = 0x21D4;
glyph = new CLR_DoubleArrow();
props =
var prp =
{
location: this.loc,
turn: TURN_0
};
glyph.init(props);
glyph.init(prp);
}
/////
else if(bCode || bType)
......@@ -1068,16 +1091,19 @@ CAccent.prototype.init = function(props)
this.type = ACCENT_SIGN;
accent = new CSign();
var props =
var prp =
{
type: type,
code: code
};
accent.setSign(props);
accent.setSign(prp);
this.code = accent.getCodeAccent();
}
else
{
this.type = ACCENT_COMB_CARON;
this.code = 0x30C;
accent = new CCircumflex();
accent.setTurn(TURN_MIRROR_0);
......@@ -1097,7 +1123,10 @@ CAccent.prototype.getCenter = function()
return center;
}
CAccent.prototype.getProps = function()
CAccent.prototype.getPropsForWrite = function()
{
var prps = {};
var props = {};
props.chr = String.fromCharCode(this.code);
return props;
}
......@@ -11,8 +11,13 @@ CDegree.prototype.init = function(props)
}
CDegree.prototype.init_2 = function(props, oBase)
{
if( typeof(props.type)!=="undefined"|| props.type !== null)
this.type = props.type;
/*if( typeof(props.type)!=="undefined"|| props.type !== null)
this.type = props.type;*/
if(props.type === DEGREE_SUPERSCRIPT)
this.type = DEGREE_SUPERSCRIPT;
else if(props.type === DEGREE_SUBSCRIPT)
this.type = DEGREE_SUBSCRIPT;
this.setDimension(1, 2);
......@@ -37,12 +42,12 @@ CDegree.prototype.recalculateSize = function()
_width += this.dW;
if(this.type === DEGREE_SUPERSCRIPT )
if(this.type === DEGREE_SUPERSCRIPT)
{
this.shiftDegree = 0;
_center = _height - (this.elements[0][0].size.height - this.elements[0][0].size.center);
}
else if(this.type === DEGREE_SUBSCRIPT )
else if(this.type === DEGREE_SUBSCRIPT)
{
this.shiftDegree = _height - this.elements[0][1].size.height;
_center = this.elements[0][0].size.center;
......@@ -136,6 +141,13 @@ CDegree.prototype.getBase = function()
{
return this.elements[0][0];
}
CDegree.prototype.getPropsForWrite = function()
{
var props = {};
props.type = this.type;
return props;
}
function old_CDegreeOrdinary()
{
......@@ -372,6 +384,7 @@ CIterators.prototype.getCtrPrp = function()
function CDegreeSubSup()
{
this.type = DEGREE_SubSup;
this.alnScr = false; // не выровнены, итераторы идут в соответствии с наклоном буквы/мат. объекта
CSubMathBase.call(this);
}
extend(CDegreeSubSup, CSubMathBase);
......@@ -382,8 +395,18 @@ CDegreeSubSup.prototype.init = function(props)
}
CDegreeSubSup.prototype.init_2 = function(props, oBase)
{
if( typeof(props.type)!=="undefined"|| props.type !== null)
this.type = props.type;
/*if( typeof(props.type)!=="undefined"|| props.type !== null)
this.type = props.type;*/
if(props.type === DEGREE_SubSup)
this.type = DEGREE_SubSup;
else if(props.type === DEGREE_PreSubSup)
this.type = DEGREE_PreSubSup;
if(props.alnScr === true || props.alnScr === 1)
this.alnScr = true;
else if(props.alnScr === false || props.alnScr === 0)
this.alnScr = false;
this.setDimension(1, 2);
......@@ -404,6 +427,7 @@ CDegreeSubSup.prototype.init_2 = function(props, oBase)
oIters.alignHor(-1, 1);
this.addMCToContent(oIters, oBase);
}
}
CDegreeSubSup.prototype.recalculateSize = function()
{
......@@ -457,6 +481,15 @@ CDegreeSubSup.prototype.getLowerIterator = function()
return iter;
}
CDegreeSubSup.prototype.getPropsForWrite = function()
{
var props = {};
props.type = this.type;
props.alnScr = this.alnScr;
return props;
}
//выяcнить: почему и с этой ф-ией и без нее работает всё ok...
//всё ok, т.к. в контенте 2 элемента, и их center сравниваем
......
......@@ -7,8 +7,17 @@ function CFraction()
extend(CFraction, CMathBase);
CFraction.prototype.init = function(props)
{
if( typeof(props.type) !== "undefined" && props.type !== null )
var bValid = typeof(props.type) !== "undefined" && props.type !== null;
if(bValid)
{
var bBar = props.type === BAR_FRACTION || props.type === NO_BAR_FRACTION,
bSkew = props.type === SKEWED_FRACTION,
bLin = props.type === LINEAR_FRACTION;
if(bBar || bSkew || bLin) // на всякий случай
this.type = props.type;
}
if(this.type == BAR_FRACTION || this.type == NO_BAR_FRACTION)
{
......
......@@ -60,7 +60,6 @@ CLimit.prototype.init = function(props)
this.setDimension(2, 1);
var oBase = new CMathContent();
//oBase.setOwnTPrp({Italic: false});
var oIter = new CMathContent();
oIter.setReduct(DEGR_REDUCT);
......@@ -148,14 +147,6 @@ CMathFunc.prototype.init = function()
{
this.setDimension(1, 2);
this.setContent();
//var runPrp = new CTextPr();
//runPrp.Italic = false;
//this.elements[0][0].addToBeginningRPrp(runPrp);
//this.elements[0][0].setOwnTPrp({Italic: false}); // trigonometrical function
//this.elements[0][0].mergeTxtPrp({Italic: false}); // trigonometrical function
}
CMathFunc.prototype.setDistance = function()
{
......
This diff is collapsed.
......@@ -394,7 +394,12 @@ CMathText.prototype =
setMText: function(flag)
{
this.bMText = flag;
}
},
// заглушка для текста (для n-арных операторов, когда выставляется текст вместо оператора)
setComposition: function() // заглушка
{},
setReferenceComposition: function() // заглушка
{}
/*draw2: function()
{
......
......@@ -44,6 +44,7 @@ var NARY_UNION = 9;
var NARY_INTERSECTION = 10;
var NARY_LOGICAL_OR = 11;
var NARY_LOGICAL_AND = 12;
var NARY_TEXT_OPER = 13;
var NARY_UndOvr = 0;
var NARY_SubSup = 1;
......@@ -80,6 +81,9 @@ var DOUBLE_LEFT_ARROW = 21;
var DOUBLE_RIGHT_ARROW = 22;
var DOUBLE_ARROW_LR = 23;
var DELIM_OPERATOR = 0;
var DELIM_SEPARATOR = 1;
var TURN_0 = 0;
var TURN_180 = 1;
......@@ -112,6 +116,7 @@ var ACCENT_ARROW_LR = 16;
var ACCENT_HALF_ARROW_LEFT = 17;
var ACCENT_HALF_ARROW_RIGHT = 18;
var ACCENT_SIGN = 19;
var ACCENT_TEXT = 20;
var BASEJC_CENTER = 0;
var BASEJC_TOP = 1;
......
......@@ -36,11 +36,6 @@ function CMathMatrix()
CMathBase.call(this);
}
extend(CMathMatrix, CMathBase);
CMathMatrix.prototype.old_init = function(countRow, countCol)
{
this.setDimension(countRow, countCol);
this.setContent();
}
CMathMatrix.prototype.init = function(props)
{
if(typeof(props.row) === "undefined" || props.row === null)
......
......@@ -13,6 +13,9 @@
function CNary()
{
this.type = null;
this.code = null; // for "read"
this.grow = false;
this.supHide = false;
this.subHide = false;
this.limLoc = NARY_SubSup;
......@@ -21,13 +24,6 @@ function CNary()
extend(CNary, CSubMathBase);
CNary.prototype.init = function(props)
{
/*if(props.limLoc == "undOvr" || props.limLocType == NARY_UndOvr)
this.limLoc = 0;
else if(props.limLoc === "subSup"|| props.limLocType == NARY_SubSup)
this.limLoc = 1;
else
this.limLoc = 1;*/
if(props.limLoc == NARY_UndOvr)
this.limLoc = NARY_UndOvr;
else if(props.limLoc == NARY_SubSup)
......@@ -39,41 +35,112 @@ CNary.prototype.init = function(props)
if(props.subHide === true || props.subHide === 1)
this.subHide = true;
if(props.grow === true || props.grow === 1)
this.grow = true;
this.setDimension(1, 2);
var signChr, sign;
var signCode, sign;
var bChr = false;
if(typeof(props.chr) === "string")
signChr = props.chr.charCodeAt(0);
{
signCode = props.chr.charCodeAt(0);
bChr = true;
}
if(signChr == 0x222B || props.signType == NARY_INTEGRAL)
if(signCode == 0x222B || props.signType == NARY_INTEGRAL)
{
this.code = 0x222B;
this.type = NARY_INTEGRAL;
sign = new CIntegral();
else if(signChr == 0x222C || props.signType == NARY_DOUBLE_INTEGRAL)
}
else if(signCode == 0x222C || props.signType == NARY_DOUBLE_INTEGRAL)
{
this.code = 0x222C;
this.type = NARY_DOUBLE_INTEGRAL;
sign = new CDoubleIntegral();
else if(signChr == 0x222D || props.signType == NARY_TRIPLE_INTEGRAL)
}
else if(signCode == 0x222D || props.signType == NARY_TRIPLE_INTEGRAL)
{
this.code = 0x222D;
this.type = NARY_TRIPLE_INTEGRAL;
sign = new CTripleIntegral();
else if(signChr == 0x222E || props.signType == NARY_CONTOUR_INTEGRAL )
}
else if(signCode == 0x222E || props.signType == NARY_CONTOUR_INTEGRAL )
{
this.code = 0x222E;
this.type = NARY_CONTOUR_INTEGRAL;
sign = new CContourIntegral();
else if(signChr == 0x222F || props.signType == NARY_SURFACE_INTEGRAL )
}
else if(signCode == 0x222F || props.signType == NARY_SURFACE_INTEGRAL )
{
this.code = 0x222F;
this.type = NARY_SURFACE_INTEGRAL;
sign = new CSurfaceIntegral();
else if(signChr == 0x2230 || props.signType == NARY_VOLUME_INTEGRAL)
}
else if(signCode == 0x2230 || props.signType == NARY_VOLUME_INTEGRAL)
{
this.code = 0x2230;
this.type = NARY_VOLUME_INTEGRAL;
sign = new CVolumeIntegral();
else if(signChr ==0x2211 || props.signType == NARY_SIGMA)
}
else if(signCode == 0x2211 || props.signType == NARY_SIGMA)
{
this.code = 0x2211;
this.type = NARY_SIGMA;
sign = new CSigma();
else if(signChr == 0x220F || props.signType == NARY_PRODUCT)
}
else if(signCode == 0x220F || props.signType == NARY_PRODUCT)
{
this.code = 0x220F;
this.type = NARY_PRODUCT;
sign = new CProduct();
else if(signChr ==0x2210 || props.signType == NARY_COPRODUCT)
}
else if(signCode == 0x2210 || props.signType == NARY_COPRODUCT)
{
this.code = 0x2210;
this.type = NARY_COPRODUCT;
sign = new CProduct(-1);
else if(signChr == 0x22C3 || props.signType == NARY_UNION)
}
else if(signCode == 0x22C3 || props.signType == NARY_UNION)
{
this.code = 0x22C3;
this.type = NARY_UNION;
sign = new CUnion();
else if(signChr == 0x22C2 || props.signType == NARY_INTERSECTION)
}
else if(signCode == 0x22C2 || props.signType == NARY_INTERSECTION)
{
this.code = 0x22C2;
this.type = NARY_INTERSECTION;
sign = new CUnion(-1);
else if(signChr == 0x22C1 || props.signType == NARY_LOGICAL_OR)
}
else if(signCode == 0x22C1 || props.signType == NARY_LOGICAL_OR)
{
this.code = 0x22C1;
this.type = NARY_LOGICAL_OR;
sign = new CLogicalOr();
else if(signChr == 0x22C0 || props.signType == NARY_LOGICAL_AND)
}
else if(signCode == 0x22C0 || props.signType == NARY_LOGICAL_AND)
{
this.code = 0x22C0;
this.type = NARY_LOGICAL_AND;
sign = new CLogicalOr(-1);
}
else if(bChr)
{
this.code = signCode;
this.type = NARY_TEXT_OPER;
sign = new CMathText();
sign.add(signCode);
}
else
{
this.code = 0x222B;
this.type = NARY_INTEGRAL;
sign = new CIntegral();
}
var arg = new CMathContent(),
base;
......@@ -105,25 +172,25 @@ CNary.prototype.init = function(props)
if( this.supHide && !this.subHide )
{
base = new CDegree();
props = {type: DEGREE_SUPERSCRIPT};
base.init_2(props, sign);
var prp = {type: DEGREE_SUPERSCRIPT};
base.init_2(prp, sign);
}
else if( !this.supHide && this.subHide )
{
base = new CDegree();
props = {type: DEGREE_SUBSCRIPT};
base.init_2(props, sign);
var prp = {type: DEGREE_SUBSCRIPT};
base.init_2(prp, sign);
}
else
{
base = new CDegreeSubSup();
props = {type: DEGREE_SubSup};
base.init_2(props, sign);
var prp = {type: DEGREE_SubSup};
base.init_2(prp, sign);
}
}
if(!this.supHide && !this.subHide)
base.setCtrPrp(this.CtrPrp); // выставляем аналогично как в CMathContent при добавлении элемента в addMComponent
/*if(!this.supHide && !this.subHide)
base.setCtrPrp(this.CtrPrp);*/ // выставляем аналогично как в CMathContent при добавлении элемента в addMComponent
this.addMCToContent(base, arg);
}
......@@ -143,6 +210,18 @@ CNary.prototype.getLowerIterator = function()
{
return this.elements[0][0].getLowerIterator();
}
CNary.prototype.getPropsForWhite = function()
{
var props = {};
props.limLoc = (this.limLoc == NARY_UndOvr) ? NARY_UndOvr : NARY_SubSup;
props.chr = String.fromCharCode(this.code);
props.supHide = this.supHide === true ? 1: 0;
props.subHide = this.subHide === true ? 1: 0;
props.grow = this.grow === true ? 1 : 0;
return props;
}
function old_CNary()
{
......@@ -260,7 +339,7 @@ CNaryUnd.prototype.init = function(sign)
}
CNaryUnd.prototype.setDistance = function()
{
var zetta = this.getTxtPrp().FontSize* 25.4/96;
var zetta = this.getCtrPrp().FontSize* 25.4/96;
this.dH = zetta*0.25;
}
CNaryUnd.prototype.getCenter = function()
......@@ -289,7 +368,7 @@ CNaryOvr.prototype.init = function(sign)
}
CNaryOvr.prototype.setDistance = function()
{
var zetta = this.getTxtPrp().FontSize* 25.4/96;
var zetta = this.getCtrPrp().FontSize* 25.4/96;
this.dH = zetta*0.1;
}
CNaryOvr.prototype.getCenter = function()
......@@ -322,7 +401,6 @@ CNaryUndOvr.prototype.init = function(sign)
}
CNaryUndOvr.prototype.recalculateSize = function()
{
//var zetta = this.getTxtPrp().FontSize* 25.4/96;
var zetta = this.getCtrPrp().FontSize* 25.4/96;
this.gapTop = zetta*0.25;
this.gapBottom = zetta*0.1;
......@@ -413,7 +491,6 @@ CNaryUndOvr.prototype.getUpperIterator = function()
}
function CNaryOperator(flip)
{
this.Composition = null;
......@@ -421,6 +498,13 @@ function CNaryOperator(flip)
this.sizeGlyph = null;
}
CNaryOperator.prototype.draw = function(pGraphics)
{
if(this.typeObj == MATH_TEXT)
this.drawTextElem(pGraphics);
else
this.drawGlyph(pGraphics);
}
CNaryOperator.prototype.drawGlyph = function(pGraphics)
{
var coord = this.getCoord();
......@@ -466,7 +550,18 @@ CNaryOperator.prototype.draw = function(pGraphics)
pGraphics.df();
pGraphics.SetIntegerGrid(intGrid);
}
CNaryOperator.prototype.drawTextElem = function(pGraphics)
{
pGraphics.b_color1(0,0,0,255);
var rPrp = new CTextPr();
rPrp.Merge( this.getCtrPrp() );
rPrp.Italic = false;
rPrp.Bold = false;
pGraphics.SetFont(rPrp);
CNaryOperator.superclass.call.draw(this, pGraphics);
}
CNaryOperator.prototype.IsJustDraw = function()
{
......
This diff is collapsed.
......@@ -168,14 +168,25 @@ CSignRadical.prototype.relate = function(parent)
function CRadical()
{
this.type = SQUARE_RADICAL; // default
this.degHide = false;
this.signRadical = null;
CMathBase.call(this);
}
extend(CRadical, CMathBase);
CRadical.prototype.init = function(props)
{
if(typeof(props.type) !== "undefined" && props.type !== null)
this.type = props.type;
/*if(typeof(props.type) !== "undefined" && props.type !== null)
this.type = props.type;*/
/*if(props.type === SQUARE_RADICAL)
this.type = SQUARE_RADICAL;
else if(props.type === DEGREE_RADICAL)
this.type = DEGREE_RADICAL;*/
if(props.degHide === true && props.degHide === 1)
this.type = SQUARE_RADICAL;
else if(props.degHide == false && props.degHide === 0)
this.type = DEGREE_RADICAL;
this.setDimension(1, 1);
this.setContent();
......@@ -416,11 +427,23 @@ CRadical.prototype.getBase = function()
}
CRadical.prototype.getDegree = function()
{
var degree = null;
/*var degree = null;
if(this.type == DEGREE_RADICAL)
degree = this.elements[0][0];
else if(this.type = SQUARE_RADICAL)
degree = this.elements[0][0];*/
// для стремной ситуации, когда руками в xml выставили в degHide true, а объект со степенью имеется. Возвращаем основание
return this.elements[0][0];
}
CRadical.prototype.getPropsForWhite = function()
{
var props = {};
props.degHide = this.type == SQUARE_RADICAL ? 1 : 0;
return degree;
return props;
}
function old_CRadical()
......
......@@ -50,7 +50,8 @@ function simulatorRead()
props =
{
begChrType: PARENTHESIS_LEFT,
endChrType: PARENTHESIS_RIGHT,
//endChrType: PARENTHESIS_RIGHT,
endChr: ")",
sepChrType: DELIMITER_LINE,
column: 2
};
......@@ -109,7 +110,8 @@ function simulatorRead()
var integral = new CNary();
props =
{
signType: NARY_INTEGRAL,
//signType: NARY_INTEGRAL,
chr: "B",
limLoc: NARY_SubSup
};
integral.init(props);
......
......@@ -195,6 +195,7 @@
<script type="text/javascript" src = "Math/drawingUnion.js"></script>
<script type="text/javascript" src = "Math/borderBox.js"></script>
<script type="text/javascript" src = "Math/test_for_read.js"></script>
<!---->
......
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