diff --git a/apps/common/main/lib/util/define.js b/apps/common/main/lib/util/define.js index b557ec4d3..f39ffa03d 100644 --- a/apps/common/main/lib/util/define.js +++ b/apps/common/main/lib/util/define.js @@ -33,26 +33,26 @@ if (Common === undefined) { var Common = {}; } + if (Common.define === undefined) { Common.define = {}; } -define(function() { - 'use strict'; +define(function(){ 'use strict'; Common.define.c_oAscMathMainType = { - Symbol: 0x00, - Fraction: 0x01, - Script: 0x02, - Radical: 0x03, - Integral: 0x04, - LargeOperator: 0x05, - Bracket: 0x06, - Function: 0x07, - Accent: 0x08, - LimitLog: 0x09, - Operator: 0x0a, - Matrix: 0x0b + Symbol : 0x00, + Fraction : 0x01, + Script : 0x02, + Radical : 0x03, + Integral : 0x04, + LargeOperator: 0x05, + Bracket : 0x06, + Function : 0x07, + Accent : 0x08, + LimitLog : 0x09, + Operator : 0x0a, + Matrix : 0x0b }; // [translate, count cells, scroll] @@ -62,360 +62,360 @@ define(function() { // equations types Common.define.c_oAscMathType = { - Symbol_pm: 0x00000000, - Symbol_infinity: 0x00000001, - Symbol_equals: 0x00000002, - Symbol_neq: 0x00000003, - Symbol_about: 0x00000004, - Symbol_times: 0x00000005, - Symbol_div: 0x00000006, - Symbol_factorial: 0x00000007, - Symbol_propto: 0x00000008, - Symbol_less: 0x00000009, - Symbol_ll: 0x0000000a, - Symbol_greater: 0x0000000b, - Symbol_gg: 0x0000000c, - Symbol_leq: 0x0000000d, - Symbol_geq: 0x0000000e, - Symbol_mp: 0x0000000f, - Symbol_cong: 0x00000010, - Symbol_approx: 0x00000011, - Symbol_equiv: 0x00000012, - Symbol_forall: 0x00000013, - Symbol_additional: 0x00000014, - Symbol_partial: 0x00000015, - Symbol_sqrt: 0x00000016, - Symbol_cbrt: 0x00000017, - Symbol_qdrt: 0x00000018, - Symbol_cup: 0x00000019, - Symbol_cap: 0x0000001a, - Symbol_emptyset: 0x0000001b, - Symbol_percent: 0x0000001c, - Symbol_degree: 0x0000001d, - Symbol_fahrenheit: 0x0000001e, - Symbol_celsius: 0x0000001f, - Symbol_inc: 0x00000020, - Symbol_nabla: 0x00000021, - Symbol_exists: 0x00000022, - Symbol_notexists: 0x00000023, - Symbol_in: 0x00000024, - Symbol_ni: 0x00000025, - Symbol_leftarrow: 0x00000026, - Symbol_uparrow: 0x00000027, - Symbol_rightarrow: 0x00000028, - Symbol_downarrow: 0x00000029, - Symbol_leftrightarrow: 0x0000002a, - Symbol_therefore: 0x0000002b, - Symbol_plus: 0x0000002c, - Symbol_minus: 0x0000002d, - Symbol_not: 0x0000002e, - Symbol_ast: 0x0000002f, - Symbol_bullet: 0x00000030, - Symbol_vdots: 0x00000031, - Symbol_cdots: 0x00000032, - Symbol_rddots: 0x00000033, - Symbol_ddots: 0x00000034, - Symbol_aleph: 0x00000035, - Symbol_beth: 0x00000036, - Symbol_QED: 0x00000037, - Symbol_alpha: 0x00010000, - Symbol_beta: 0x00010001, - Symbol_gamma: 0x00010002, - Symbol_delta: 0x00010003, - Symbol_varepsilon: 0x00010004, - Symbol_epsilon: 0x00010005, - Symbol_zeta: 0x00010006, - Symbol_eta: 0x00010007, - Symbol_theta: 0x00010008, - Symbol_vartheta: 0x00010009, - Symbol_iota: 0x0001000a, - Symbol_kappa: 0x0001000b, - Symbol_lambda: 0x0001000c, - Symbol_mu: 0x0001000d, - Symbol_nu: 0x0001000e, - Symbol_xsi: 0x0001000f, - Symbol_o: 0x00010010, - Symbol_pi: 0x00010011, - Symbol_varpi: 0x00010012, - Symbol_rho: 0x00010013, - Symbol_varrho: 0x00010014, - Symbol_sigma: 0x00010015, - Symbol_varsigma: 0x00010016, - Symbol_tau: 0x00010017, - Symbol_upsilon: 0x00010018, - Symbol_varphi: 0x00010019, - Symbol_phi: 0x0001001a, - Symbol_chi: 0x0001001b, - Symbol_psi: 0x0001001c, - Symbol_omega: 0x0001001d, - Symbol_Alpha: 0x00020000, - Symbol_Beta: 0x00020001, - Symbol_Gamma: 0x00020002, - Symbol_Delta: 0x00020003, - Symbol_Epsilon: 0x00020004, - Symbol_Zeta: 0x00020005, - Symbol_Eta: 0x00020006, - Symbol_Theta: 0x00020007, - Symbol_Iota: 0x00020008, - Symbol_Kappa: 0x00020009, - Symbol_Lambda: 0x0002000a, - Symbol_Mu: 0x0002000b, - Symbol_Nu: 0x0002000c, - Symbol_Xsi: 0x0002000d, - Symbol_O: 0x0002000e, - Symbol_Pi: 0x0002000f, - Symbol_Rho: 0x00020010, - Symbol_Sigma: 0x00020011, - Symbol_Tau: 0x00020012, - Symbol_Upsilon: 0x00020013, - Symbol_Phi: 0x00020014, - Symbol_Chi: 0x00020015, - Symbol_Psi: 0x00020016, - Symbol_Omega: 0x00020017, + Symbol_pm : 0x00000000, + Symbol_infinity : 0x00000001, + Symbol_equals : 0x00000002, + Symbol_neq : 0x00000003, + Symbol_about : 0x00000004, + Symbol_times : 0x00000005, + Symbol_div : 0x00000006, + Symbol_factorial : 0x00000007, + Symbol_propto : 0x00000008, + Symbol_less : 0x00000009, + Symbol_ll : 0x0000000a, + Symbol_greater : 0x0000000b, + Symbol_gg : 0x0000000c, + Symbol_leq : 0x0000000d, + Symbol_geq : 0x0000000e, + Symbol_mp : 0x0000000f, + Symbol_cong : 0x00000010, + Symbol_approx : 0x00000011, + Symbol_equiv : 0x00000012, + Symbol_forall : 0x00000013, + Symbol_additional : 0x00000014, + Symbol_partial : 0x00000015, + Symbol_sqrt : 0x00000016, + Symbol_cbrt : 0x00000017, + Symbol_qdrt : 0x00000018, + Symbol_cup : 0x00000019, + Symbol_cap : 0x0000001a, + Symbol_emptyset : 0x0000001b, + Symbol_percent : 0x0000001c, + Symbol_degree : 0x0000001d, + Symbol_fahrenheit : 0x0000001e, + Symbol_celsius : 0x0000001f, + Symbol_inc : 0x00000020, + Symbol_nabla : 0x00000021, + Symbol_exists : 0x00000022, + Symbol_notexists : 0x00000023, + Symbol_in : 0x00000024, + Symbol_ni : 0x00000025, + Symbol_leftarrow : 0x00000026, + Symbol_uparrow : 0x00000027, + Symbol_rightarrow : 0x00000028, + Symbol_downarrow : 0x00000029, + Symbol_leftrightarrow : 0x0000002a, + Symbol_therefore : 0x0000002b, + Symbol_plus : 0x0000002c, + Symbol_minus : 0x0000002d, + Symbol_not : 0x0000002e, + Symbol_ast : 0x0000002f, + Symbol_bullet : 0x00000030, + Symbol_vdots : 0x00000031, + Symbol_cdots : 0x00000032, + Symbol_rddots : 0x00000033, + Symbol_ddots : 0x00000034, + Symbol_aleph : 0x00000035, + Symbol_beth : 0x00000036, + Symbol_QED : 0x00000037, + Symbol_alpha : 0x00010000, + Symbol_beta : 0x00010001, + Symbol_gamma : 0x00010002, + Symbol_delta : 0x00010003, + Symbol_varepsilon : 0x00010004, + Symbol_epsilon : 0x00010005, + Symbol_zeta : 0x00010006, + Symbol_eta : 0x00010007, + Symbol_theta : 0x00010008, + Symbol_vartheta : 0x00010009, + Symbol_iota : 0x0001000a, + Symbol_kappa : 0x0001000b, + Symbol_lambda : 0x0001000c, + Symbol_mu : 0x0001000d, + Symbol_nu : 0x0001000e, + Symbol_xsi : 0x0001000f, + Symbol_o : 0x00010010, + Symbol_pi : 0x00010011, + Symbol_varpi : 0x00010012, + Symbol_rho : 0x00010013, + Symbol_varrho : 0x00010014, + Symbol_sigma : 0x00010015, + Symbol_varsigma : 0x00010016, + Symbol_tau : 0x00010017, + Symbol_upsilon : 0x00010018, + Symbol_varphi : 0x00010019, + Symbol_phi : 0x0001001a, + Symbol_chi : 0x0001001b, + Symbol_psi : 0x0001001c, + Symbol_omega : 0x0001001d, + Symbol_Alpha : 0x00020000, + Symbol_Beta : 0x00020001, + Symbol_Gamma : 0x00020002, + Symbol_Delta : 0x00020003, + Symbol_Epsilon : 0x00020004, + Symbol_Zeta : 0x00020005, + Symbol_Eta : 0x00020006, + Symbol_Theta : 0x00020007, + Symbol_Iota : 0x00020008, + Symbol_Kappa : 0x00020009, + Symbol_Lambda : 0x0002000a, + Symbol_Mu : 0x0002000b, + Symbol_Nu : 0x0002000c, + Symbol_Xsi : 0x0002000d, + Symbol_O : 0x0002000e, + Symbol_Pi : 0x0002000f, + Symbol_Rho : 0x00020010, + Symbol_Sigma : 0x00020011, + Symbol_Tau : 0x00020012, + Symbol_Upsilon : 0x00020013, + Symbol_Phi : 0x00020014, + Symbol_Chi : 0x00020015, + Symbol_Psi : 0x00020016, + Symbol_Omega : 0x00020017, - FractionVertical: 0x01000000, - FractionDiagonal: 0x01000001, - FractionHorizontal: 0x01000002, - FractionSmall: 0x01000003, - FractionDifferential_1: 0x01010000, - FractionDifferential_2: 0x01010001, - FractionDifferential_3: 0x01010002, - FractionDifferential_4: 0x01010003, - FractionPi_2: 0x01010004, + FractionVertical : 0x01000000, + FractionDiagonal : 0x01000001, + FractionHorizontal : 0x01000002, + FractionSmall : 0x01000003, + FractionDifferential_1 : 0x01010000, + FractionDifferential_2 : 0x01010001, + FractionDifferential_3 : 0x01010002, + FractionDifferential_4 : 0x01010003, + FractionPi_2 : 0x01010004, - ScriptSup: 0x02000000, - ScriptSub: 0x02000001, - ScriptSubSup: 0x02000002, - ScriptSubSupLeft: 0x02000003, - ScriptCustom_1: 0x02010000, - ScriptCustom_2: 0x02010001, - ScriptCustom_3: 0x02010002, - ScriptCustom_4: 0x02010003, + ScriptSup : 0x02000000, + ScriptSub : 0x02000001, + ScriptSubSup : 0x02000002, + ScriptSubSupLeft : 0x02000003, + ScriptCustom_1 : 0x02010000, + ScriptCustom_2 : 0x02010001, + ScriptCustom_3 : 0x02010002, + ScriptCustom_4 : 0x02010003, - RadicalSqrt: 0x03000000, - RadicalRoot_n: 0x03000001, - RadicalRoot_2: 0x03000002, - RadicalRoot_3: 0x03000003, - RadicalCustom_1: 0x03010000, - RadicalCustom_2: 0x03010001, + RadicalSqrt : 0x03000000, + RadicalRoot_n : 0x03000001, + RadicalRoot_2 : 0x03000002, + RadicalRoot_3 : 0x03000003, + RadicalCustom_1 : 0x03010000, + RadicalCustom_2 : 0x03010001, - Integral: 0x04000000, - IntegralSubSup: 0x04000001, - IntegralCenterSubSup: 0x04000002, - IntegralDouble: 0x04000003, - IntegralDoubleSubSup: 0x04000004, - IntegralDoubleCenterSubSup: 0x04000005, - IntegralTriple: 0x04000006, - IntegralTripleSubSup: 0x04000007, - IntegralTripleCenterSubSup: 0x04000008, - IntegralOriented: 0x04010000, - IntegralOrientedSubSup: 0x04010001, - IntegralOrientedCenterSubSup: 0x04010002, - IntegralOrientedDouble: 0x04010003, - IntegralOrientedDoubleSubSup: 0x04010004, - IntegralOrientedDoubleCenterSubSup: 0x04010005, - IntegralOrientedTriple: 0x04010006, - IntegralOrientedTripleSubSup: 0x04010007, - IntegralOrientedTripleCenterSubSup: 0x04010008, - Integral_dx: 0x04020000, - Integral_dy: 0x04020001, - Integral_dtheta: 0x04020002, + Integral : 0x04000000, + IntegralSubSup : 0x04000001, + IntegralCenterSubSup : 0x04000002, + IntegralDouble : 0x04000003, + IntegralDoubleSubSup : 0x04000004, + IntegralDoubleCenterSubSup : 0x04000005, + IntegralTriple : 0x04000006, + IntegralTripleSubSup : 0x04000007, + IntegralTripleCenterSubSup : 0x04000008, + IntegralOriented : 0x04010000, + IntegralOrientedSubSup : 0x04010001, + IntegralOrientedCenterSubSup : 0x04010002, + IntegralOrientedDouble : 0x04010003, + IntegralOrientedDoubleSubSup : 0x04010004, + IntegralOrientedDoubleCenterSubSup : 0x04010005, + IntegralOrientedTriple : 0x04010006, + IntegralOrientedTripleSubSup : 0x04010007, + IntegralOrientedTripleCenterSubSup : 0x04010008, + Integral_dx : 0x04020000, + Integral_dy : 0x04020001, + Integral_dtheta : 0x04020002, - LargeOperator_Sum: 0x05000000, - LargeOperator_Sum_CenterSubSup: 0x05000001, - LargeOperator_Sum_SubSup: 0x05000002, - LargeOperator_Sum_CenterSub: 0x05000003, - LargeOperator_Sum_Sub: 0x05000004, - LargeOperator_Prod: 0x05010000, - LargeOperator_Prod_CenterSubSup: 0x05010001, - LargeOperator_Prod_SubSup: 0x05010002, - LargeOperator_Prod_CenterSub: 0x05010003, - LargeOperator_Prod_Sub: 0x05010004, - LargeOperator_CoProd: 0x05010005, - LargeOperator_CoProd_CenterSubSup: 0x05010006, - LargeOperator_CoProd_SubSup: 0x05010007, - LargeOperator_CoProd_CenterSub: 0x05010008, - LargeOperator_CoProd_Sub: 0x05010009, - LargeOperator_Union: 0x05020000, - LargeOperator_Union_CenterSubSup: 0x05020001, - LargeOperator_Union_SubSup: 0x05020002, - LargeOperator_Union_CenterSub: 0x05020003, - LargeOperator_Union_Sub: 0x05020004, - LargeOperator_Intersection: 0x05020005, - LargeOperator_Intersection_CenterSubSup: 0x05020006, - LargeOperator_Intersection_SubSup: 0x05020007, - LargeOperator_Intersection_CenterSub: 0x05020008, - LargeOperator_Intersection_Sub: 0x05020009, - LargeOperator_Disjunction: 0x05030000, - LargeOperator_Disjunction_CenterSubSup: 0x05030001, - LargeOperator_Disjunction_SubSup: 0x05030002, - LargeOperator_Disjunction_CenterSub: 0x05030003, - LargeOperator_Disjunction_Sub: 0x05030004, - LargeOperator_Conjunction: 0x05030005, - LargeOperator_Conjunction_CenterSubSup: 0x05030006, - LargeOperator_Conjunction_SubSup: 0x05030007, - LargeOperator_Conjunction_CenterSub: 0x05030008, - LargeOperator_Conjunction_Sub: 0x05030009, - LargeOperator_Custom_1: 0x05040000, - LargeOperator_Custom_2: 0x05040001, - LargeOperator_Custom_3: 0x05040002, - LargeOperator_Custom_4: 0x05040003, - LargeOperator_Custom_5: 0x05040004, + LargeOperator_Sum : 0x05000000, + LargeOperator_Sum_CenterSubSup : 0x05000001, + LargeOperator_Sum_SubSup : 0x05000002, + LargeOperator_Sum_CenterSub : 0x05000003, + LargeOperator_Sum_Sub : 0x05000004, + LargeOperator_Prod : 0x05010000, + LargeOperator_Prod_CenterSubSup : 0x05010001, + LargeOperator_Prod_SubSup : 0x05010002, + LargeOperator_Prod_CenterSub : 0x05010003, + LargeOperator_Prod_Sub : 0x05010004, + LargeOperator_CoProd : 0x05010005, + LargeOperator_CoProd_CenterSubSup : 0x05010006, + LargeOperator_CoProd_SubSup : 0x05010007, + LargeOperator_CoProd_CenterSub : 0x05010008, + LargeOperator_CoProd_Sub : 0x05010009, + LargeOperator_Union : 0x05020000, + LargeOperator_Union_CenterSubSup : 0x05020001, + LargeOperator_Union_SubSup : 0x05020002, + LargeOperator_Union_CenterSub : 0x05020003, + LargeOperator_Union_Sub : 0x05020004, + LargeOperator_Intersection : 0x05020005, + LargeOperator_Intersection_CenterSubSup : 0x05020006, + LargeOperator_Intersection_SubSup : 0x05020007, + LargeOperator_Intersection_CenterSub : 0x05020008, + LargeOperator_Intersection_Sub : 0x05020009, + LargeOperator_Disjunction : 0x05030000, + LargeOperator_Disjunction_CenterSubSup : 0x05030001, + LargeOperator_Disjunction_SubSup : 0x05030002, + LargeOperator_Disjunction_CenterSub : 0x05030003, + LargeOperator_Disjunction_Sub : 0x05030004, + LargeOperator_Conjunction : 0x05030005, + LargeOperator_Conjunction_CenterSubSup : 0x05030006, + LargeOperator_Conjunction_SubSup : 0x05030007, + LargeOperator_Conjunction_CenterSub : 0x05030008, + LargeOperator_Conjunction_Sub : 0x05030009, + LargeOperator_Custom_1 : 0x05040000, + LargeOperator_Custom_2 : 0x05040001, + LargeOperator_Custom_3 : 0x05040002, + LargeOperator_Custom_4 : 0x05040003, + LargeOperator_Custom_5 : 0x05040004, - Bracket_Round: 0x06000000, - Bracket_Square: 0x06000001, - Bracket_Curve: 0x06000002, - Bracket_Angle: 0x06000003, - Bracket_LowLim: 0x06000004, - Bracket_UppLim: 0x06000005, - Bracket_Line: 0x06000006, - Bracket_LineDouble: 0x06000007, - Bracket_Square_OpenOpen: 0x06000008, - Bracket_Square_CloseClose: 0x06000009, - Bracket_Square_CloseOpen: 0x0600000a, - Bracket_SquareDouble: 0x0600000b, - Bracket_Round_Delimiter_2: 0x06010000, - Bracket_Curve_Delimiter_2: 0x06010001, - Bracket_Angle_Delimiter_2: 0x06010002, - Bracket_Angle_Delimiter_3: 0x06010003, - Bracket_Round_OpenNone: 0x06020000, - Bracket_Round_NoneOpen: 0x06020001, - Bracket_Square_OpenNone: 0x06020002, - Bracket_Square_NoneOpen: 0x06020003, - Bracket_Curve_OpenNone: 0x06020004, - Bracket_Curve_NoneOpen: 0x06020005, - Bracket_Angle_OpenNone: 0x06020006, - Bracket_Angle_NoneOpen: 0x06020007, - Bracket_LowLim_OpenNone: 0x06020008, - Bracket_LowLim_NoneNone: 0x06020009, - Bracket_UppLim_OpenNone: 0x0602000a, - Bracket_UppLim_NoneOpen: 0x0602000b, - Bracket_Line_OpenNone: 0x0602000c, - Bracket_Line_NoneOpen: 0x0602000d, - Bracket_LineDouble_OpenNone: 0x0602000e, - Bracket_LineDouble_NoneOpen: 0x0602000f, - Bracket_SquareDouble_OpenNone: 0x06020010, - Bracket_SquareDouble_NoneOpen: 0x06020011, - Bracket_Custom_1: 0x06030000, - Bracket_Custom_2: 0x06030001, - Bracket_Custom_3: 0x06030002, - Bracket_Custom_4: 0x06030003, - Bracket_Custom_5: 0x06040000, - Bracket_Custom_6: 0x06040001, - Bracket_Custom_7: 0x06040002, + Bracket_Round : 0x06000000, + Bracket_Square : 0x06000001, + Bracket_Curve : 0x06000002, + Bracket_Angle : 0x06000003, + Bracket_LowLim : 0x06000004, + Bracket_UppLim : 0x06000005, + Bracket_Line : 0x06000006, + Bracket_LineDouble : 0x06000007, + Bracket_Square_OpenOpen : 0x06000008, + Bracket_Square_CloseClose : 0x06000009, + Bracket_Square_CloseOpen : 0x0600000a, + Bracket_SquareDouble : 0x0600000b, + Bracket_Round_Delimiter_2 : 0x06010000, + Bracket_Curve_Delimiter_2 : 0x06010001, + Bracket_Angle_Delimiter_2 : 0x06010002, + Bracket_Angle_Delimiter_3 : 0x06010003, + Bracket_Round_OpenNone : 0x06020000, + Bracket_Round_NoneOpen : 0x06020001, + Bracket_Square_OpenNone : 0x06020002, + Bracket_Square_NoneOpen : 0x06020003, + Bracket_Curve_OpenNone : 0x06020004, + Bracket_Curve_NoneOpen : 0x06020005, + Bracket_Angle_OpenNone : 0x06020006, + Bracket_Angle_NoneOpen : 0x06020007, + Bracket_LowLim_OpenNone : 0x06020008, + Bracket_LowLim_NoneNone : 0x06020009, + Bracket_UppLim_OpenNone : 0x0602000a, + Bracket_UppLim_NoneOpen : 0x0602000b, + Bracket_Line_OpenNone : 0x0602000c, + Bracket_Line_NoneOpen : 0x0602000d, + Bracket_LineDouble_OpenNone : 0x0602000e, + Bracket_LineDouble_NoneOpen : 0x0602000f, + Bracket_SquareDouble_OpenNone : 0x06020010, + Bracket_SquareDouble_NoneOpen : 0x06020011, + Bracket_Custom_1 : 0x06030000, + Bracket_Custom_2 : 0x06030001, + Bracket_Custom_3 : 0x06030002, + Bracket_Custom_4 : 0x06030003, + Bracket_Custom_5 : 0x06040000, + Bracket_Custom_6 : 0x06040001, + Bracket_Custom_7 : 0x06040002, - Function_Sin: 0x07000000, - Function_Cos: 0x07000001, - Function_Tan: 0x07000002, - Function_Csc: 0x07000003, - Function_Sec: 0x07000004, - Function_Cot: 0x07000005, - Function_1_Sin: 0x07010000, - Function_1_Cos: 0x07010001, - Function_1_Tan: 0x07010002, - Function_1_Csc: 0x07010003, - Function_1_Sec: 0x07010004, - Function_1_Cot: 0x07010005, - Function_Sinh: 0x07020000, - Function_Cosh: 0x07020001, - Function_Tanh: 0x07020002, - Function_Csch: 0x07020003, - Function_Sech: 0x07020004, - Function_Coth: 0x07020005, - Function_1_Sinh: 0x07030000, - Function_1_Cosh: 0x07030001, - Function_1_Tanh: 0x07030002, - Function_1_Csch: 0x07030003, - Function_1_Sech: 0x07030004, - Function_1_Coth: 0x07030005, - Function_Custom_1: 0x07040000, - Function_Custom_2: 0x07040001, - Function_Custom_3: 0x07040002, + Function_Sin : 0x07000000, + Function_Cos : 0x07000001, + Function_Tan : 0x07000002, + Function_Csc : 0x07000003, + Function_Sec : 0x07000004, + Function_Cot : 0x07000005, + Function_1_Sin : 0x07010000, + Function_1_Cos : 0x07010001, + Function_1_Tan : 0x07010002, + Function_1_Csc : 0x07010003, + Function_1_Sec : 0x07010004, + Function_1_Cot : 0x07010005, + Function_Sinh : 0x07020000, + Function_Cosh : 0x07020001, + Function_Tanh : 0x07020002, + Function_Csch : 0x07020003, + Function_Sech : 0x07020004, + Function_Coth : 0x07020005, + Function_1_Sinh : 0x07030000, + Function_1_Cosh : 0x07030001, + Function_1_Tanh : 0x07030002, + Function_1_Csch : 0x07030003, + Function_1_Sech : 0x07030004, + Function_1_Coth : 0x07030005, + Function_Custom_1 : 0x07040000, + Function_Custom_2 : 0x07040001, + Function_Custom_3 : 0x07040002, - Accent_Dot: 0x08000000, - Accent_DDot: 0x08000001, - Accent_DDDot: 0x08000002, - Accent_Hat: 0x08000003, - Accent_Check: 0x08000004, - Accent_Accent: 0x08000005, - Accent_Grave: 0x08000006, - Accent_Smile: 0x08000007, - Accent_Tilde: 0x08000008, - Accent_Bar: 0x08000009, - Accent_DoubleBar: 0x0800000a, - Accent_CurveBracketTop: 0x0800000b, - Accent_CurveBracketBot: 0x0800000c, - Accent_GroupTop: 0x0800000d, - Accent_GroupBot: 0x0800000e, - Accent_ArrowL: 0x0800000f, - Accent_ArrowR: 0x08000010, - Accent_ArrowD: 0x08000011, - Accent_HarpoonL: 0x08000012, - Accent_HarpoonR: 0x08000013, - Accent_BorderBox: 0x08010000, - Accent_BorderBoxCustom: 0x08010001, - Accent_BarTop: 0x08020000, - Accent_BarBot: 0x08020001, - Accent_Custom_1: 0x08030000, - Accent_Custom_2: 0x08030001, - Accent_Custom_3: 0x08030002, + Accent_Dot : 0x08000000, + Accent_DDot : 0x08000001, + Accent_DDDot : 0x08000002, + Accent_Hat : 0x08000003, + Accent_Check : 0x08000004, + Accent_Accent : 0x08000005, + Accent_Grave : 0x08000006, + Accent_Smile : 0x08000007, + Accent_Tilde : 0x08000008, + Accent_Bar : 0x08000009, + Accent_DoubleBar : 0x0800000a, + Accent_CurveBracketTop : 0x0800000b, + Accent_CurveBracketBot : 0x0800000c, + Accent_GroupTop : 0x0800000d, + Accent_GroupBot : 0x0800000e, + Accent_ArrowL : 0x0800000f, + Accent_ArrowR : 0x08000010, + Accent_ArrowD : 0x08000011, + Accent_HarpoonL : 0x08000012, + Accent_HarpoonR : 0x08000013, + Accent_BorderBox : 0x08010000, + Accent_BorderBoxCustom : 0x08010001, + Accent_BarTop : 0x08020000, + Accent_BarBot : 0x08020001, + Accent_Custom_1 : 0x08030000, + Accent_Custom_2 : 0x08030001, + Accent_Custom_3 : 0x08030002, - LimitLog_LogBase: 0x09000000, - LimitLog_Log: 0x09000001, - LimitLog_Lim: 0x09000002, - LimitLog_Min: 0x09000003, - LimitLog_Max: 0x09000004, - LimitLog_Ln: 0x09000005, - LimitLog_Custom_1: 0x09010000, - LimitLog_Custom_2: 0x09010001, + LimitLog_LogBase : 0x09000000, + LimitLog_Log : 0x09000001, + LimitLog_Lim : 0x09000002, + LimitLog_Min : 0x09000003, + LimitLog_Max : 0x09000004, + LimitLog_Ln : 0x09000005, + LimitLog_Custom_1 : 0x09010000, + LimitLog_Custom_2 : 0x09010001, - Operator_ColonEquals: 0x0a000000, - Operator_EqualsEquals: 0x0a000001, - Operator_PlusEquals: 0x0a000002, - Operator_MinusEquals: 0x0a000003, - Operator_Definition: 0x0a000004, - Operator_UnitOfMeasure: 0x0a000005, - Operator_DeltaEquals: 0x0a000006, - Operator_ArrowL_Top: 0x0a010000, - Operator_ArrowR_Top: 0x0a010001, - Operator_ArrowL_Bot: 0x0a010002, - Operator_ArrowR_Bot: 0x0a010003, - Operator_DoubleArrowL_Top: 0x0a010004, - Operator_DoubleArrowR_Top: 0x0a010005, - Operator_DoubleArrowL_Bot: 0x0a010006, - Operator_DoubleArrowR_Bot: 0x0a010007, - Operator_ArrowD_Top: 0x0a010008, - Operator_ArrowD_Bot: 0x0a010009, - Operator_DoubleArrowD_Top: 0x0a01000a, - Operator_DoubleArrowD_Bot: 0x0a01000b, - Operator_Custom_1: 0x0a020000, - Operator_Custom_2: 0x0a020001, + Operator_ColonEquals : 0x0a000000, + Operator_EqualsEquals : 0x0a000001, + Operator_PlusEquals : 0x0a000002, + Operator_MinusEquals : 0x0a000003, + Operator_Definition : 0x0a000004, + Operator_UnitOfMeasure : 0x0a000005, + Operator_DeltaEquals : 0x0a000006, + Operator_ArrowL_Top : 0x0a010000, + Operator_ArrowR_Top : 0x0a010001, + Operator_ArrowL_Bot : 0x0a010002, + Operator_ArrowR_Bot : 0x0a010003, + Operator_DoubleArrowL_Top : 0x0a010004, + Operator_DoubleArrowR_Top : 0x0a010005, + Operator_DoubleArrowL_Bot : 0x0a010006, + Operator_DoubleArrowR_Bot : 0x0a010007, + Operator_ArrowD_Top : 0x0a010008, + Operator_ArrowD_Bot : 0x0a010009, + Operator_DoubleArrowD_Top : 0x0a01000a, + Operator_DoubleArrowD_Bot : 0x0a01000b, + Operator_Custom_1 : 0x0a020000, + Operator_Custom_2 : 0x0a020001, - Matrix_1_2: 0x0b000000, - Matrix_2_1: 0x0b000001, - Matrix_1_3: 0x0b000002, - Matrix_3_1: 0x0b000003, - Matrix_2_2: 0x0b000004, - Matrix_2_3: 0x0b000005, - Matrix_3_2: 0x0b000006, - Matrix_3_3: 0x0b000007, - Matrix_Dots_Center: 0x0b010000, - Matrix_Dots_Baseline: 0x0b010001, - Matrix_Dots_Vertical: 0x0b010002, - Matrix_Dots_Diagonal: 0x0b010003, - Matrix_Identity_2: 0x0b020000, - Matrix_Identity_2_NoZeros: 0x0b020001, - Matrix_Identity_3: 0x0b020002, - Matrix_Identity_3_NoZeros: 0x0b020003, - Matrix_2_2_RoundBracket: 0x0b030000, - Matrix_2_2_SquareBracket: 0x0b030001, - Matrix_2_2_LineBracket: 0x0b030002, - Matrix_2_2_DLineBracket: 0x0b030003, - Matrix_Flat_Round: 0x0b040000, - Matrix_Flat_Square: 0x0b040001 + Matrix_1_2 : 0x0b000000, + Matrix_2_1 : 0x0b000001, + Matrix_1_3 : 0x0b000002, + Matrix_3_1 : 0x0b000003, + Matrix_2_2 : 0x0b000004, + Matrix_2_3 : 0x0b000005, + Matrix_3_2 : 0x0b000006, + Matrix_3_3 : 0x0b000007, + Matrix_Dots_Center : 0x0b010000, + Matrix_Dots_Baseline : 0x0b010001, + Matrix_Dots_Vertical : 0x0b010002, + Matrix_Dots_Diagonal : 0x0b010003, + Matrix_Identity_2 : 0x0b020000, + Matrix_Identity_2_NoZeros : 0x0b020001, + Matrix_Identity_3 : 0x0b020002, + Matrix_Identity_3_NoZeros : 0x0b020003, + Matrix_2_2_RoundBracket : 0x0b030000, + Matrix_2_2_SquareBracket : 0x0b030001, + Matrix_2_2_LineBracket : 0x0b030002, + Matrix_2_2_DLineBracket : 0x0b030003, + Matrix_Flat_Round : 0x0b040000, + Matrix_Flat_Square : 0x0b040001 }; - Common.define.chartData = _.extend(new (function () { + Common.define.chartData = _.extend( new(function() { return { textLine: 'Line', textColumn: 'Column', @@ -464,13 +464,9 @@ define(function() { textComboAreaBar: 'Stacked area - clustered column', textComboCustom: 'Custom combination', - getChartGroupData: function (headername) { + getChartGroupData: function(headername) { return [ - { - id: 'menu-chart-group-bar', - caption: this.textColumn, - headername: (headername) ? this.textCharts : undefined - }, + {id: 'menu-chart-group-bar', caption: this.textColumn, headername: (headername) ? this.textCharts : undefined}, {id: 'menu-chart-group-line', caption: this.textLine}, {id: 'menu-chart-group-pie', caption: this.textPie}, {id: 'menu-chart-group-hbar', caption: this.textBar}, @@ -482,233 +478,44 @@ define(function() { ]; }, - getChartData: function () { + getChartData: function() { return [ - { - group: 'menu-chart-group-bar', - type: Asc.c_oAscChartTypeSettings.barNormal, - iconCls: 'column-normal', - tip: this.textBarNormal - }, - { - group: 'menu-chart-group-bar', - type: Asc.c_oAscChartTypeSettings.barStacked, - iconCls: 'column-stack', - tip: this.textBarStacked - }, - { - group: 'menu-chart-group-bar', - type: Asc.c_oAscChartTypeSettings.barStackedPer, - iconCls: 'column-pstack', - tip: this.textBarStackedPer - }, - { - group: 'menu-chart-group-bar', - type: Asc.c_oAscChartTypeSettings.barNormal3d, - iconCls: 'column-3d-normal', - tip: this.textBarNormal3d, - is3d: true - }, - { - group: 'menu-chart-group-bar', - type: Asc.c_oAscChartTypeSettings.barStacked3d, - iconCls: 'column-3d-stack', - tip: this.textBarStacked3d, - is3d: true - }, - { - group: 'menu-chart-group-bar', - type: Asc.c_oAscChartTypeSettings.barStackedPer3d, - iconCls: 'column-3d-pstack', - tip: this.textBarStackedPer3d, - is3d: true - }, - { - group: 'menu-chart-group-bar', - type: Asc.c_oAscChartTypeSettings.barNormal3dPerspective, - iconCls: 'column-3d-normal-per', - tip: this.textBarNormal3dPerspective, - is3d: true - }, - { - group: 'menu-chart-group-line', - type: Asc.c_oAscChartTypeSettings.lineNormal, - iconCls: 'line-normal', - tip: this.textLine - }, - { - group: 'menu-chart-group-line', - type: Asc.c_oAscChartTypeSettings.lineStacked, - iconCls: 'line-stack', - tip: this.textLineStacked - }, - { - group: 'menu-chart-group-line', - type: Asc.c_oAscChartTypeSettings.lineStackedPer, - iconCls: 'line-pstack', - tip: this.textLineStackedPer - }, - { - group: 'menu-chart-group-line', - type: Asc.c_oAscChartTypeSettings.lineNormalMarker, - iconCls: 'line-normal-marker', - tip: this.textLineMarker - }, - { - group: 'menu-chart-group-line', - type: Asc.c_oAscChartTypeSettings.lineStackedMarker, - iconCls: 'line-stack-marker', - tip: this.textLineStackedMarker - }, - { - group: 'menu-chart-group-line', - type: Asc.c_oAscChartTypeSettings.lineStackedPerMarker, - iconCls: 'line-pstack-marker', - tip: this.textLineStackedPerMarker - }, - { - group: 'menu-chart-group-line', - type: Asc.c_oAscChartTypeSettings.line3d, - iconCls: 'line-3d', - tip: this.textLine3d, - is3d: true - }, - { - group: 'menu-chart-group-pie', - type: Asc.c_oAscChartTypeSettings.pie, - iconCls: 'pie-normal', - tip: this.textPie - }, - { - group: 'menu-chart-group-pie', - type: Asc.c_oAscChartTypeSettings.doughnut, - iconCls: 'pie-doughnut', - tip: this.textDoughnut - }, - { - group: 'menu-chart-group-pie', - type: Asc.c_oAscChartTypeSettings.pie3d, - iconCls: 'pie-3d-normal', - tip: this.textPie3d, - is3d: true - }, - { - group: 'menu-chart-group-hbar', - type: Asc.c_oAscChartTypeSettings.hBarNormal, - iconCls: 'bar-normal', - tip: this.textHBarNormal - }, - { - group: 'menu-chart-group-hbar', - type: Asc.c_oAscChartTypeSettings.hBarStacked, - iconCls: 'bar-stack', - tip: this.textHBarStacked - }, - { - group: 'menu-chart-group-hbar', - type: Asc.c_oAscChartTypeSettings.hBarStackedPer, - iconCls: 'bar-pstack', - tip: this.textHBarStackedPer - }, - { - group: 'menu-chart-group-hbar', - type: Asc.c_oAscChartTypeSettings.hBarNormal3d, - iconCls: 'bar-3d-normal', - tip: this.textHBarNormal3d, - is3d: true - }, - { - group: 'menu-chart-group-hbar', - type: Asc.c_oAscChartTypeSettings.hBarStacked3d, - iconCls: 'bar-3d-stack', - tip: this.textHBarStacked3d, - is3d: true - }, - { - group: 'menu-chart-group-hbar', - type: Asc.c_oAscChartTypeSettings.hBarStackedPer3d, - iconCls: 'bar-3d-pstack', - tip: this.textHBarStackedPer3d, - is3d: true - }, - { - group: 'menu-chart-group-area', - type: Asc.c_oAscChartTypeSettings.areaNormal, - iconCls: 'area-normal', - tip: this.textArea - }, - { - group: 'menu-chart-group-area', - type: Asc.c_oAscChartTypeSettings.areaStacked, - iconCls: 'area-stack', - tip: this.textAreaStacked - }, - { - group: 'menu-chart-group-area', - type: Asc.c_oAscChartTypeSettings.areaStackedPer, - iconCls: 'area-pstack', - tip: this.textAreaStackedPer - }, - { - group: 'menu-chart-group-scatter', - type: Asc.c_oAscChartTypeSettings.scatter, - iconCls: 'point-normal', - tip: this.textScatter - }, - { - group: 'menu-chart-group-scatter', - type: Asc.c_oAscChartTypeSettings.scatterSmoothMarker, - iconCls: 'point-smooth-marker', - tip: this.textScatterSmoothMarker - }, - { - group: 'menu-chart-group-scatter', - type: Asc.c_oAscChartTypeSettings.scatterSmooth, - iconCls: 'point-smooth', - tip: this.textScatterSmooth - }, - { - group: 'menu-chart-group-scatter', - type: Asc.c_oAscChartTypeSettings.scatterLineMarker, - iconCls: 'point-line-marker', - tip: this.textScatterLineMarker - }, - { - group: 'menu-chart-group-scatter', - type: Asc.c_oAscChartTypeSettings.scatterLine, - iconCls: 'point-line', - tip: this.textScatterLine - }, - { - group: 'menu-chart-group-stock', - type: Asc.c_oAscChartTypeSettings.stock, - iconCls: 'stock-normal', - tip: this.textStock - }, - { - group: 'menu-chart-group-combo', - type: Asc.c_oAscChartTypeSettings.comboBarLine, - iconCls: 'combo-bar-line', - tip: this.textComboBarLine - }, - { - group: 'menu-chart-group-combo', - type: Asc.c_oAscChartTypeSettings.comboBarLineSecondary, - iconCls: 'combo-bar-line-sec', - tip: this.textComboBarLineSecondary - }, - { - group: 'menu-chart-group-combo', - type: Asc.c_oAscChartTypeSettings.comboAreaBar, - iconCls: 'combo-area-bar', - tip: this.textComboAreaBar - }, - { - group: 'menu-chart-group-combo', - type: Asc.c_oAscChartTypeSettings.comboCustom, - iconCls: 'combo-custom', - tip: this.textComboCustom - } + { group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal, iconCls: 'column-normal', tip: this.textBarNormal}, + { group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barStacked, iconCls: 'column-stack', tip: this.textBarStacked}, + { group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barStackedPer, iconCls: 'column-pstack', tip: this.textBarStackedPer}, + { group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal3d, iconCls: 'column-3d-normal', tip: this.textBarNormal3d, is3d: true}, + { group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barStacked3d, iconCls: 'column-3d-stack', tip: this.textBarStacked3d, is3d: true}, + { group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barStackedPer3d, iconCls: 'column-3d-pstack', tip: this.textBarStackedPer3d, is3d: true}, + { group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal3dPerspective, iconCls: 'column-3d-normal-per', tip: this.textBarNormal3dPerspective, is3d: true}, + { group: 'menu-chart-group-line', type: Asc.c_oAscChartTypeSettings.lineNormal, iconCls: 'line-normal', tip: this.textLine}, + { group: 'menu-chart-group-line', type: Asc.c_oAscChartTypeSettings.lineStacked, iconCls: 'line-stack', tip: this.textLineStacked}, + { group: 'menu-chart-group-line', type: Asc.c_oAscChartTypeSettings.lineStackedPer, iconCls: 'line-pstack', tip: this.textLineStackedPer}, + { group: 'menu-chart-group-line', type: Asc.c_oAscChartTypeSettings.lineNormalMarker, iconCls: 'line-normal-marker', tip: this.textLineMarker}, + { group: 'menu-chart-group-line', type: Asc.c_oAscChartTypeSettings.lineStackedMarker, iconCls: 'line-stack-marker', tip: this.textLineStackedMarker}, + { group: 'menu-chart-group-line', type: Asc.c_oAscChartTypeSettings.lineStackedPerMarker,iconCls: 'line-pstack-marker', tip: this.textLineStackedPerMarker}, + { group: 'menu-chart-group-line', type: Asc.c_oAscChartTypeSettings.line3d, iconCls: 'line-3d', tip: this.textLine3d, is3d: true}, + { group: 'menu-chart-group-pie', type: Asc.c_oAscChartTypeSettings.pie, iconCls: 'pie-normal', tip: this.textPie}, + { group: 'menu-chart-group-pie', type: Asc.c_oAscChartTypeSettings.doughnut, iconCls: 'pie-doughnut', tip: this.textDoughnut}, + { group: 'menu-chart-group-pie', type: Asc.c_oAscChartTypeSettings.pie3d, iconCls: 'pie-3d-normal', tip: this.textPie3d, is3d: true}, + { group: 'menu-chart-group-hbar', type: Asc.c_oAscChartTypeSettings.hBarNormal, iconCls: 'bar-normal', tip: this.textHBarNormal}, + { group: 'menu-chart-group-hbar', type: Asc.c_oAscChartTypeSettings.hBarStacked, iconCls: 'bar-stack', tip: this.textHBarStacked}, + { group: 'menu-chart-group-hbar', type: Asc.c_oAscChartTypeSettings.hBarStackedPer, iconCls: 'bar-pstack', tip: this.textHBarStackedPer}, + { group: 'menu-chart-group-hbar', type: Asc.c_oAscChartTypeSettings.hBarNormal3d, iconCls: 'bar-3d-normal', tip: this.textHBarNormal3d, is3d: true}, + { group: 'menu-chart-group-hbar', type: Asc.c_oAscChartTypeSettings.hBarStacked3d, iconCls: 'bar-3d-stack', tip: this.textHBarStacked3d, is3d: true}, + { group: 'menu-chart-group-hbar', type: Asc.c_oAscChartTypeSettings.hBarStackedPer3d, iconCls: 'bar-3d-pstack', tip: this.textHBarStackedPer3d, is3d: true}, + { group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaNormal, iconCls: 'area-normal', tip: this.textArea}, + { group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStacked, iconCls: 'area-stack', tip: this.textAreaStacked}, + { group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStackedPer, iconCls: 'area-pstack', tip: this.textAreaStackedPer}, + { group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatter, iconCls: 'point-normal', tip: this.textScatter}, + { group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatterSmoothMarker,iconCls: 'point-smooth-marker', tip: this.textScatterSmoothMarker}, + { group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatterSmooth, iconCls: 'point-smooth', tip: this.textScatterSmooth}, + { group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatterLineMarker, iconCls: 'point-line-marker', tip: this.textScatterLineMarker}, + { group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatterLine, iconCls: 'point-line', tip: this.textScatterLine}, + { group: 'menu-chart-group-stock', type: Asc.c_oAscChartTypeSettings.stock, iconCls: 'stock-normal', tip: this.textStock}, + { group: 'menu-chart-group-combo', type: Asc.c_oAscChartTypeSettings.comboBarLine, iconCls: 'combo-bar-line', tip: this.textComboBarLine}, + { group: 'menu-chart-group-combo', type: Asc.c_oAscChartTypeSettings.comboBarLineSecondary, iconCls: 'combo-bar-line-sec', tip: this.textComboBarLineSecondary}, + { group: 'menu-chart-group-combo', type: Asc.c_oAscChartTypeSettings.comboAreaBar, iconCls: 'combo-area-bar', tip: this.textComboAreaBar}, + { group: 'menu-chart-group-combo', type: Asc.c_oAscChartTypeSettings.comboCustom, iconCls: 'combo-custom', tip: this.textComboCustom} // { group: 'menu-chart-group-surface', type: Asc.c_oAscChartTypeSettings.surfaceNormal, iconCls: 'surface-normal'}, // { group: 'menu-chart-group-surface', type: Asc.c_oAscChartTypeSettings.surfaceWireframe, iconCls: 'surface-wireframe'}, // { group: 'menu-chart-group-surface', type: Asc.c_oAscChartTypeSettings.contourNormal, iconCls: 'contour-normal'}, @@ -717,47 +524,25 @@ define(function() { ]; }, - getSparkGroupData: function (headername) { + getSparkGroupData: function(headername) { return [ - { - id: 'menu-chart-group-sparkcolumn', - inline: true, - headername: (headername) ? this.textSparks : undefined - }, - {id: 'menu-chart-group-sparkline', inline: true}, - {id: 'menu-chart-group-sparkwin', inline: true} + { id: 'menu-chart-group-sparkcolumn', inline: true, headername: (headername) ? this.textSparks : undefined }, + { id: 'menu-chart-group-sparkline', inline: true }, + { id: 'menu-chart-group-sparkwin', inline: true } ]; }, - getSparkData: function () { + getSparkData: function() { return [ - { - group: 'menu-chart-group-sparkcolumn', - type: Asc.c_oAscSparklineType.Column, - allowSelected: true, - iconCls: 'spark-column', - tip: this.textColumnSpark - }, - { - group: 'menu-chart-group-sparkline', - type: Asc.c_oAscSparklineType.Line, - allowSelected: true, - iconCls: 'spark-line', - tip: this.textLineSpark - }, - { - group: 'menu-chart-group-sparkwin', - type: Asc.c_oAscSparklineType.Stacked, - allowSelected: true, - iconCls: 'spark-win', - tip: this.textWinLossSpark - } + { group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column', tip: this.textColumnSpark}, + { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line', tip: this.textLineSpark}, + { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win', tip: this.textWinLossSpark} ]; } } })(), Common.define.chartData || {}); - Common.define.conditionalData = _.extend(new (function () { + Common.define.conditionalData = _.extend( new(function() { return { textDate: 'Date', textYesterday: 'Yesterday', @@ -1005,320 +790,86 @@ define(function() { getEffectGroupData: function () { return [ - { - id: 'menu-effect-group-entrance', - value: AscFormat.PRESET_CLASS_ENTR, - caption: this.textEntrance - }, - { - id: 'menu-effect-group-emphasis', - value: AscFormat.PRESET_CLASS_EMPH, - caption: this.textEmphasis - }, - {id: 'menu-effect-group-exit', value: AscFormat.PRESET_CLASS_EXIT, caption: this.textExit}, - {id: 'menu-effect-group-path', value: AscFormat.PRESET_CLASS_PATH, caption: this.textPath} - + {id: 'menu-effect-group-entrance', value: AscFormat.PRESET_CLASS_ENTR, caption: this.textEntrance}, + {id: 'menu-effect-group-emphasis', value: AscFormat.PRESET_CLASS_EMPH, caption: this.textEmphasis}, + {id: 'menu-effect-group-exit', value: AscFormat.PRESET_CLASS_EXIT, caption: this.textExit}, + {id: 'menu-effect-group-path', value: AscFormat.PRESET_CLASS_PATH, caption: this.textPath} ]; }, getEffectData: function () { return [ - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_APPEAR, - iconCls: 'transition-push', - displayValue: this.textAppear - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_FADE, - iconCls: 'transition-push', - displayValue: this.textFade - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_FLY_IN_FROM, - iconCls: 'transition-push', - displayValue: this.textFlyIn - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_FLOAT, - iconCls: 'transition-push', - displayValue: this.textFloatIn - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_SPLIT, - iconCls: 'transition-push', - displayValue: this.textSplit - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_WIPE_FROM, - iconCls: 'transition-wipe', - displayValue: this.textWipe - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_BOX, - iconCls: 'transition-push', - displayValue: this.textBox - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_CIRCLE, - iconCls: 'transition-push', - displayValue: this.textCircle - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_PLUS, - iconCls: 'transition-push', - displayValue: this.textPlus - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_DIAMOND, - iconCls: 'transition-push', - displayValue: this.textDiamond - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_WHEEL, - iconCls: 'transition-push', - displayValue: this.textWheel - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_RANDOM_BARS, - iconCls: 'transition-push', - displayValue: this.textRandomBars - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_GROW_AND_TURN, - iconCls: 'transition-push', - displayValue: this.textGrowTurn - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_ZOOM, - iconCls: 'transition-zoom', - displayValue: this.textZoom - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_SWIVEL, - iconCls: 'transition-push', - displayValue: this.textSwivel - }, - { - group: 'menu-effect-group-entrance', - value: AscFormat.ENTRANCE_BOUNCE, - iconCls: 'transition-push', - displayValue: this.textBounce - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_PULSE, - iconCls: 'transition-push', - displayValue: this.textPulse - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_COLOR_PULSE, - iconCls: 'transition-push', - displayValue: this.textColorPulse - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_TEETER, - iconCls: 'transition-push', - displayValue: this.textTeeter - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_SPIN, - iconCls: 'transition-split', - displayValue: this.textSplit - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_GROW_SHRINK, - iconCls: 'transition-push', - displayValue: this.textGrowShrink - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_DESATURATE, - iconCls: 'transition-push', - displayValue: this.textDesaturate - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_CONTRASTING_DARKEN, - iconCls: 'transition-push', - displayValue: this.textDarken - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_LIGHTEN, - iconCls: 'transition-push', - displayValue: this.textLighten - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_TRANSPARENCY, - iconCls: 'transition-push', - displayValue: this.textTransparency - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_OBJECT_COLOR, - iconCls: 'transition-push', - displayValue: this.textObjectColor - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR, - iconCls: 'transition-push', - displayValue: this.textComplementaryColor - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_LINE_COLOR, - iconCls: 'transition-push', - displayValue: this.textLineColor - }, - { - group: 'menu-effect-group-emphasis', - value: AscFormat.EMPHASIS_FILL_COLOR, - iconCls: 'transition-push', - displayValue: this.textFillColor - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_DISAPPEAR, - iconCls: 'transition-push', - displayValue: this.textDisappear - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_FADE, - iconCls: 'transition-push', - displayValue: this.textFade - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_FLY_OUT_TO, - iconCls: 'transition-push', - displayValue: this.textFlyOut - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_FLOAT, - iconCls: 'transition-push', - displayValue: this.textFloatOut - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_SPLIT, - iconCls: 'transition-split', - displayValue: this.textSplit - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_WIPE_FROM, - iconCls: 'transition-wipe', - displayValue: this.textWipe - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_BOX, - iconCls: 'transition-push', - displayValue: this.textBox - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_CIRCLE, - iconCls: 'transition-push', - displayValue: this.textCircle - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_PLUS, - iconCls: 'transition-push', - displayValue: this.textPlus - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_DIAMOND, - iconCls: 'transition-push', - displayValue: this.textDiamond - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_WHEEL, - iconCls: 'transition-push', - displayValue: this.textWheel - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_RANDOM_BARS, - iconCls: 'transition-push', - displayValue: this.textRandomBars - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_SHRINK_AND_TURN, - iconCls: 'transition-push', - displayValue: this.textShrinkTurn - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_ZOOM, - iconCls: 'transition-push', - displayValue: this.textZoom - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_BASIC_SWIVEL, - iconCls: 'transition-push', - displayValue: this.textSwivel - }, - { - group: 'menu-effect-group-exit', - value: AscFormat.EXIT_BOUNCE, - iconCls: 'transition-push', - displayValue: this.textBounce - }, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_DOWN, iconCls: 'transition-push', displayValue: this.textDown}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_LEFT, iconCls: 'transition-push', displayValue: this.textLeft}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT, iconCls: 'transition-push', displayValue: this.textRight}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_UP, iconCls: 'transition-push', displayValue: this.textUp}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_DOWN, iconCls: 'transition-push', displayValue: this.textArcDown}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_LEFT, iconCls: 'transition-push', displayValue: this.textArcLeft}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_RIGHT, iconCls: 'transition-push', displayValue: this.textArcRight}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_UP, iconCls: 'transition-push', displayValue: this.textArcUp}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN, iconCls: 'transition-push', displayValue: this.textTurnDown}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN_RIGHT, iconCls: 'transition-push', displayValue: this.textTurnDownRight}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP, iconCls: 'transition-push', displayValue: this.textTurnUp}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP_RIGHT, iconCls: 'transition-push', displayValue: this.textTurnUpRight}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_CIRCLE, iconCls: 'transition-push', displayValue: this.textCircle}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_DIAMOND, iconCls: 'transition-push', displayValue: this.textDiamond}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_EQUAL_TRIANGLE, iconCls: 'transition-push', displayValue: this.textEqualTriangle}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_HEXAGON, iconCls: 'transition-push', displayValue: this.textHexagon}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_OCTAGON, iconCls: 'transition-push', displayValue: this.textOctagon}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_PARALLELOGRAM, iconCls: 'transition-push', displayValue: this.textParallelogram}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_PENTAGON, iconCls: 'transition-push', displayValue: this.textPentagon}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT_TRIANGLE, iconCls: 'transition-push', displayValue: this.textRightTriangle}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_SQUARE, iconCls: 'transition-push', displayValue: this.textSquare}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_TRAPEZOID, iconCls: 'transition-push', displayValue: this.textTrapezoid}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_HORIZONTAL_FIGURE_8_FOUR, iconCls: 'transition-push', displayValue: this.textHorizontalFigure}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_VERTICAL_FIGURE_8, iconCls: 'transition-push', displayValue: this.textVerticalFigure}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_LOOP_DE_LOOP, iconCls: 'transition-push', displayValue: this.textLoopDeLoop}, - {group: 'menu-effect-group-path', value: AscFormat.MOTION_CUSTOM_PATH, iconCls: 'transition-push', displayValue: this.textCustomPath} + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_APPEAR, iconCls: 'transition-push', displayValue: this.textAppear}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FADE, iconCls: 'transition-push', displayValue: this.textFade}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FLY_IN_FROM, iconCls: 'transition-push', displayValue: this.textFlyIn}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FLOAT, iconCls: 'transition-push', displayValue: this.textFloatIn}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_SPLIT, iconCls: 'transition-push', displayValue: this.textSplit}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_WIPE_FROM, iconCls: 'transition-wipe', displayValue: this.textWipe}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_BOX, iconCls: 'transition-push', displayValue: this.textBox}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_CIRCLE, iconCls: 'transition-push', displayValue: this.textCircle}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_PLUS, iconCls: 'transition-push', displayValue: this.textPlus}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_DIAMOND, iconCls: 'transition-push', displayValue: this.textDiamond}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_WHEEL, iconCls: 'transition-push', displayValue: this.textWheel}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_RANDOM_BARS, iconCls: 'transition-push', displayValue: this.textRandomBars}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_GROW_AND_TURN, iconCls: 'transition-push', displayValue: this.textGrowTurn}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_ZOOM, iconCls: 'transition-zoom', displayValue: this.textZoom}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_SWIVEL, iconCls: 'transition-push', displayValue: this.textSwivel}, + {group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_BOUNCE, iconCls: 'transition-push', displayValue: this.textBounce}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_PULSE, iconCls: 'transition-push', displayValue: this.textPulse}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_COLOR_PULSE, iconCls: 'transition-push', displayValue: this.textColorPulse}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_TEETER, iconCls: 'transition-push', displayValue: this.textTeeter}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_SPIN, iconCls: 'transition-split', displayValue: this.textSplit}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_GROW_SHRINK, iconCls: 'transition-push', displayValue: this.textGrowShrink}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_DESATURATE, iconCls: 'transition-push', displayValue: this.textDesaturate}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_CONTRASTING_DARKEN, iconCls: 'transition-push', displayValue: this.textDarken}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_LIGHTEN, iconCls: 'transition-push', displayValue: this.textLighten}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_TRANSPARENCY, iconCls: 'transition-push', displayValue: this.textTransparency}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_OBJECT_COLOR, iconCls: 'transition-push', displayValue: this.textObjectColor}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR, iconCls: 'transition-push', displayValue: this.textComplementaryColor}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_LINE_COLOR, iconCls: 'transition-push', displayValue: this.textLineColor}, + {group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_FILL_COLOR, iconCls: 'transition-push', displayValue: this.textFillColor}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_DISAPPEAR, iconCls: 'transition-push', displayValue: this.textDisappear}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_FADE, iconCls: 'transition-push', displayValue: this.textFade}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_FLY_OUT_TO, iconCls: 'transition-push', displayValue: this.textFlyOut}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_FLOAT, iconCls: 'transition-push', displayValue: this.textFloatOut}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_SPLIT, iconCls: 'transition-split', displayValue: this.textSplit}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_WIPE_FROM, iconCls: 'transition-wipe', displayValue: this.textWipe}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_BOX, iconCls: 'transition-push', displayValue: this.textBox}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_CIRCLE, iconCls: 'transition-push', displayValue: this.textCircle}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_PLUS, iconCls: 'transition-push', displayValue: this.textPlus}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_DIAMOND, iconCls: 'transition-push', displayValue: this.textDiamond}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_WHEEL, iconCls: 'transition-push', displayValue: this.textWheel}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_RANDOM_BARS, iconCls: 'transition-push', displayValue: this.textRandomBars}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_SHRINK_AND_TURN, iconCls: 'transition-push', displayValue: this.textShrinkTurn}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_ZOOM, iconCls: 'transition-push', displayValue: this.textZoom}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_BASIC_SWIVEL, iconCls: 'transition-push', displayValue: this.textSwivel}, + {group: 'menu-effect-group-exit', value: AscFormat.EXIT_BOUNCE, iconCls: 'transition-push', displayValue: this.textBounce}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_DOWN, iconCls: 'transition-push', displayValue: this.textDown}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_LEFT, iconCls: 'transition-push', displayValue: this.textLeft}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT, iconCls: 'transition-push', displayValue: this.textRight}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_UP, iconCls: 'transition-push', displayValue: this.textUp}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_DOWN, iconCls: 'transition-push', displayValue: this.textArcDown}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_LEFT, iconCls: 'transition-push', displayValue: this.textArcLeft}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_RIGHT, iconCls: 'transition-push', displayValue: this.textArcRight}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_UP, iconCls: 'transition-push', displayValue: this.textArcUp}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN, iconCls: 'transition-push', displayValue: this.textTurnDown}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN_RIGHT, iconCls: 'transition-push', displayValue: this.textTurnDownRight}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP, iconCls: 'transition-push', displayValue: this.textTurnUp}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP_RIGHT, iconCls: 'transition-push', displayValue: this.textTurnUpRight}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_CIRCLE, iconCls: 'transition-push', displayValue: this.textCircle}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_DIAMOND, iconCls: 'transition-push', displayValue: this.textDiamond}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_EQUAL_TRIANGLE, iconCls: 'transition-push', displayValue: this.textEqualTriangle}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_HEXAGON, iconCls: 'transition-push', displayValue: this.textHexagon}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_OCTAGON, iconCls: 'transition-push', displayValue: this.textOctagon}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_PARALLELOGRAM, iconCls: 'transition-push', displayValue: this.textParallelogram}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_PENTAGON, iconCls: 'transition-push', displayValue: this.textPentagon}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT_TRIANGLE, iconCls: 'transition-push', displayValue: this.textRightTriangle}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_SQUARE, iconCls: 'transition-push', displayValue: this.textSquare}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_TRAPEZOID, iconCls: 'transition-push', displayValue: this.textTrapezoid}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_HORIZONTAL_FIGURE_8_FOUR, iconCls: 'transition-push', displayValue: this.textHorizontalFigure}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_VERTICAL_FIGURE_8, iconCls: 'transition-push', displayValue: this.textVerticalFigure}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_LOOP_DE_LOOP, iconCls: 'transition-push', displayValue: this.textLoopDeLoop}, + {group: 'menu-effect-group-path', value: AscFormat.MOTION_CUSTOM_PATH, iconCls: 'transition-push', displayValue: this.textCustomPath} ]; }, @@ -1326,1228 +877,420 @@ define(function() { if (!isPath) return [ - {id: 'menu-effect-level-basic', displayValue: this.textBasic}, - {id: 'menu-effect-level-subtle', displayValue: this.textSubtle}, - {id: 'menu-effect-level-moderate', displayValue: this.textModerate}, - {id: 'menu-effect-level-exciting', displayValue: this.textExciting} + {id: 'menu-effect-level-basic', displayValue: this.textBasic}, + {id: 'menu-effect-level-subtle', displayValue: this.textSubtle}, + {id: 'menu-effect-level-moderate', displayValue: this.textModerate}, + {id: 'menu-effect-level-exciting', displayValue: this.textExciting} ]; else return [ - {id: 'menu-effect-level-basic', displayValue: this.textBasic}, - {id: 'menu-effect-level-lines_curves', displayValue: this.textSubtle}, - {id: 'menu-effect-level-special', displayValue: this.textModerate} + {id: 'menu-effect-level-basic', displayValue: this.textBasic}, + {id: 'menu-effect-level-lines_curves', displayValue: this.textSubtle}, + {id: 'menu-effect-level-special', displayValue: this.textModerate} ]; }, getEffectFullData: function () { return [ - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_APPEAR, - displayValue: this.textAppear - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_BLINDS, - displayValue: this.textBlinds - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_BOX, - displayValue: this.textBox - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_CHECKERBOARD, - displayValue: this.textCheckerboard - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_CIRCLE, - displayValue: this.textCircle - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_DIAMOND, - displayValue: this.textDiamond - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_DISSOLVE_IN, - displayValue: this.textDissolveIn - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_FLY_IN_FROM, - displayValue: this.textFlyIn - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_PEEK_IN_FROM, - displayValue: this.textPeekIn - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_PLUS, - displayValue: this.textPlus - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_RANDOM_BARS, - displayValue: this.textRandomBars - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_SPLIT, - displayValue: this.textSplit - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_STRIPS, - displayValue: this.textStrips - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_WEDGE, - displayValue: this.textWedge - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_WHEEL, - displayValue: this.textWheel - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-basic', - value: AscFormat.ENTRANCE_WIPE_FROM, - displayValue: this.textWipe - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-subtle', - value: AscFormat.ENTRANCE_EXPAND, - displayValue: this.textExpand - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-subtle', - value: AscFormat.ENTRANCE_FADE, - displayValue: this.textFade - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-subtle', - value: AscFormat.ENTRANCE_SWIVEL, - displayValue: this.textSwivel - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-subtle', - value: AscFormat.ENTRANCE_ZOOM, - displayValue: this.textZoom - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_BASIC_ZOOM, - displayValue: this.textBasicZoom - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_CENTER_REVOLVE, - displayValue: this.textCenterRevolve - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_CENTER_COMPRESS, - displayValue: this.textCompress - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_FLOAT_DOWN, - displayValue: this.textFloatDown - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_FLOAT_UP, - displayValue: this.textFloatUp - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_GROW_AND_TURN, - displayValue: this.textGrowTurn - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_RISE_UP, - displayValue: this.textRiseUp - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_SPINNER, - displayValue: this.textSpinner - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-moderate', - value: AscFormat.ENTRANCE_STRETCH, - displayValue: this.textStretch - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_BASIC_SWIVEL, - displayValue: this.textBasicSwivel - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_BOOMERANG, - displayValue: this.textBoomerang - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_BOUNCE, - displayValue: this.textBounce - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_CREDITS, - displayValue: this.textCredits - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_CURVE_UP, - displayValue: this.textCuverUp - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_DROP, - displayValue: this.textDrop - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_FLIP, - displayValue: this.textFlip - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_FLOAT, - displayValue: this.textFloat - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_PINWHEEL, - displayValue: this.textPinwheel - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_SPIRAL_IN, - displayValue: this.textSpiralIn - }, - { - group: 'menu-effect-group-entrance', - level: 'menu-effect-level-exciting', - value: AscFormat.ENTRANCE_WHIP, - displayValue: this.textWhip - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-basic', - value: AscFormat.EMPHASIS_FILL_COLOR, - displayValue: this.textFillColor - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-basic', - value: AscFormat.EMPHASIS_GROW_SHRINK, - displayValue: this.textGrowShrink - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-basic', - value: AscFormat.EMPHASIS_LINE_COLOR, - displayValue: this.textLineColor - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-basic', - value: AscFormat.EMPHASIS_SPIN, - displayValue: this.textSpin - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-basic', - value: AscFormat.EMPHASIS_TRANSPARENCY, - displayValue: this.textTransparency - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR, - displayValue: this.textComplementaryColor - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR_2, - displayValue: this.textComplementaryColor2 - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_CONTRASTING_COLOR, - displayValue: this.textContrastingColor - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_CONTRASTING_DARKEN, - displayValue: this.textDarken - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_DESATURAT, - displayValue: this.textDesaturate - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_LIGHTEN, - displayValue: this.textLighten - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_OBJECT_COLOR, - displayValue: this.textObjectColor - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-subtle', - value: AscFormat.EMPHASIS_PULSE, - displayValue: this.textPulse - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-moderate', - value: AscFormat.EMPHASIS_COLOR_PULSE, - displayValue: this.textColorPulse - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-moderate', - value: AscFormat.EMPHASIS_GROW_WITH_COLOR, - displayValue: this.textGrowWithColor - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-moderate', - value: AscFormat.EMPHASIS_SHIMMER, - displayValue: this.textShimmer - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-moderate', - value: AscFormat.EMPHASIS_TEETER, - displayValue: this.textTeeter - }, - { - group: 'menu-effect-group-emphasis', - level: 'menu-effect-level-exciting', - value: AscFormat.EMPHASIS_BLINK, - displayValue: this.textBlink - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_BLINDS, - displayValue: this.textBlinds - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_BOX, - displayValue: this.textBox - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_CHECKERBOARD, - displayValue: this.textCheckerboard - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_CIRCLE, - displayValue: this.textCircle - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_DIAMOND, - displayValue: this.textDiamond - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_DISAPPEAR, - displayValue: this.textDisappear - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_DISSOLVE_OUT, - displayValue: this.textDissolveOut - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_FLY_OUT_TO, - displayValue: this.textFlyOut - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_PEEK_OUT_TO, - displayValue: this.textPeekOut - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_PLUS, - displayValue: this.textPlus - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_RANDOM_BARS, - displayValue: this.textRandomBars - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_SPLIT, - displayValue: this.textSplit - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_STRIPS, - displayValue: this.textStrips - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_WEDGE, - displayValue: this.textWedge - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_WHEEL, - displayValue: this.textWheel - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-basic', - value: AscFormat.EXIT_WIPE_FROM, - displayValue: this.textWipe - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-subtle', - value: AscFormat.EXIT_CONTRACT, - displayValue: this.textContrast - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-subtle', - value: AscFormat.EXIT_FADE, - displayValue: this.textFade - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-subtle', - value: AscFormat.EXIT_SWIVEL, - displayValue: this.textSwivel - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-subtle', - value: AscFormat.EXIT_ZOOM, - displayValue: this.textZoom - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_BASIC_ZOOM, - displayValue: this.textBasicZoom - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_CENTER_REVOLVE, - displayValue: this.textCenterRevolve - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_COLLAPSE, - displayValue: this.textCollapse - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_FLOAT_DOWN, - displayValue: this.textFloatDown - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_FLOAT_UP, - displayValue: this.textFloatUp - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_SHRINK_AND_TURN, - displayValue: this.textShrinkTurn - }, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_APPEAR, displayValue: this.textAppear}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_BLINDS, displayValue: this.textBlinds}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_BOX, displayValue: this.textBox}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_CHECKERBOARD, displayValue: this.textCheckerboard}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_CIRCLE, displayValue: this.textCircle}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_DIAMOND, displayValue: this.textDiamond}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_DISSOLVE_IN, displayValue: this.textDissolveIn}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_FLY_IN_FROM, displayValue: this.textFlyIn}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_PEEK_IN_FROM, displayValue: this.textPeekIn}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_PLUS, displayValue: this.textPlus}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_RANDOM_BARS, displayValue: this.textRandomBars}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_SPLIT, displayValue: this.textSplit}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_STRIPS, displayValue: this.textStrips}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_WEDGE, displayValue: this.textWedge}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_WHEEL, displayValue: this.textWheel}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-basic', value: AscFormat.ENTRANCE_WIPE_FROM, displayValue: this.textWipe}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-subtle', value: AscFormat.ENTRANCE_EXPAND, displayValue: this.textExpand}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-subtle', value: AscFormat.ENTRANCE_FADE, displayValue: this.textFade}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-subtle', value: AscFormat.ENTRANCE_SWIVEL, displayValue: this.textSwivel}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-subtle', value: AscFormat.ENTRANCE_ZOOM, displayValue: this.textZoom}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_BASIC_ZOOM, displayValue: this.textBasicZoom}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_CENTER_REVOLVE, displayValue: this.textCenterRevolve}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_CENTER_COMPRESS, displayValue: this.textCompress}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_FLOAT_DOWN, displayValue: this.textFloatDown}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_FLOAT_UP, displayValue: this.textFloatUp}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_GROW_AND_TURN, displayValue: this.textGrowTurn}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_RISE_UP, displayValue: this.textRiseUp}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_SPINNER, displayValue: this.textSpinner}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-moderate', value: AscFormat.ENTRANCE_STRETCH, displayValue: this.textStretch}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_BASIC_SWIVEL, displayValue: this.textBasicSwivel}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_BOOMERANG, displayValue: this.textBoomerang}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_BOUNCE, displayValue: this.textBounce}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_CREDITS, displayValue: this.textCredits}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_CURVE_UP, displayValue: this.textCuverUp}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_DROP, displayValue: this.textDrop}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_FLIP, displayValue: this.textFlip}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_FLOAT, displayValue: this.textFloat}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_PINWHEEL, displayValue: this.textPinwheel}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_SPIRAL_IN, displayValue: this.textSpiralIn}, + {group: 'menu-effect-group-entrance', level: 'menu-effect-level-exciting', value: AscFormat.ENTRANCE_WHIP, displayValue: this.textWhip}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-basic', value: AscFormat.EMPHASIS_FILL_COLOR, displayValue: this.textFillColor}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-basic', value: AscFormat.EMPHASIS_GROW_SHRINK, displayValue: this.textGrowShrink}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-basic', value: AscFormat.EMPHASIS_LINE_COLOR, displayValue: this.textLineColor}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-basic', value: AscFormat.EMPHASIS_SPIN, displayValue: this.textSpin}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-basic', value: AscFormat.EMPHASIS_TRANSPARENCY, displayValue: this.textTransparency}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR, displayValue: this.textComplementaryColor}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR_2, displayValue: this.textComplementaryColor2}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_CONTRASTING_COLOR, displayValue: this.textContrastingColor}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_CONTRASTING_DARKEN, displayValue: this.textDarken}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_DESATURAT, displayValue: this.textDesaturate}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_LIGHTEN, displayValue: this.textLighten}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_OBJECT_COLOR, displayValue: this.textObjectColor}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-subtle', value: AscFormat.EMPHASIS_PULSE, displayValue: this.textPulse}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-moderate', value: AscFormat.EMPHASIS_COLOR_PULSE, displayValue: this.textColorPulse}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-moderate', value: AscFormat.EMPHASIS_GROW_WITH_COLOR, displayValue: this.textGrowWithColor}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-moderate', value: AscFormat.EMPHASIS_SHIMMER, displayValue: this.textShimmer}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-moderate', value: AscFormat.EMPHASIS_TEETER, displayValue: this.textTeeter}, + {group: 'menu-effect-group-emphasis', level: 'menu-effect-level-exciting', value: AscFormat.EMPHASIS_BLINK, displayValue: this.textBlink}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_BLINDS, displayValue: this.textBlinds}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_BOX, displayValue: this.textBox}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_CHECKERBOARD, displayValue: this.textCheckerboard}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_CIRCLE, displayValue: this.textCircle}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_DIAMOND, displayValue: this.textDiamond}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_DISAPPEAR, displayValue: this.textDisappear}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_DISSOLVE_OUT, displayValue: this.textDissolveOut}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_FLY_OUT_TO, displayValue: this.textFlyOut}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_PEEK_OUT_TO, displayValue: this.textPeekOut}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_PLUS, displayValue: this.textPlus}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_RANDOM_BARS, displayValue: this.textRandomBars}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_SPLIT, displayValue: this.textSplit}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_STRIPS, displayValue: this.textStrips}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_WEDGE, displayValue: this.textWedge}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_WHEEL, displayValue: this.textWheel}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-basic', value: AscFormat.EXIT_WIPE_FROM, displayValue: this.textWipe}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-subtle', value: AscFormat.EXIT_CONTRACT, displayValue: this.textContrast}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-subtle', value: AscFormat.EXIT_FADE, displayValue: this.textFade}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-subtle', value: AscFormat.EXIT_SWIVEL, displayValue: this.textSwivel}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-subtle', value: AscFormat.EXIT_ZOOM, displayValue: this.textZoom}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_BASIC_ZOOM, displayValue: this.textBasicZoom}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_CENTER_REVOLVE, displayValue: this.textCenterRevolve}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_COLLAPSE, displayValue: this.textCollapse}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_FLOAT_DOWN, displayValue: this.textFloatDown}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_FLOAT_UP, displayValue: this.textFloatUp}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_SHRINK_AND_TURN, displayValue: this.textShrinkTurn}, //sink down- EXIT_SHRINK_DOWN? - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_SPINNER, - displayValue: this.textSpinner - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-moderate', - value: AscFormat.EXIT_STRETCHY, - displayValue: this.textStretch - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_BASIC_SWIVEL, - displayValue: this.textBasicSwivel - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_BOOMERANG, - displayValue: this.textBoomerang - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_BOUNCE, - displayValue: this.textBounce - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_CREDITS, - displayValue: this.textCredits - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_CURVE_DOWN, - displayValue: this.textCurveDown - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_DROP, - displayValue: this.textDrop - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_FLIP, - displayValue: this.textFlip - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_FLOAT, - displayValue: this.textFloat - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_PINWHEEL, - displayValue: this.textPinwheel - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_SPIRAL_OUT, - displayValue: this.textSpiralOut - }, - { - group: 'menu-effect-group-exit', - level: 'menu-effect-level-exciting', - value: AscFormat.EXIT_WHIP, - displayValue: this.textWhip - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_PATH_4_POINT_STAR, - displayValue: this.textPointStar4 - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_PATH_5_POINT_STAR, - displayValue: this.textPointStar5 - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_PATH_6_POINT_STAR, - displayValue: this.textPointStar6 - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_PATH_8_POINT_STAR, - displayValue: this.textPointStar8 - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_CIRCLE, - displayValue: this.textCircle - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_CRESCENT_MOON, - displayValue: this.textCrescentMoon - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_DIAMOND, - displayValue: this.textDiamond - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_EQUAL_TRIANGLE, - displayValue: this.textEqualTriangle - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_FOOTBALL, - displayValue: this.textFootball - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_HEART, - displayValue: this.textHeart - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_HEXAGON, - displayValue: this.textHexagon - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_OCTAGON, - displayValue: this.textOctagon - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_PARALLELOGRAM, - displayValue: this.textParallelogram - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_PENTAGON, - displayValue: this.textPentagon - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_RIGHT_TRIANGLE, - displayValue: this.textRightTriangle - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_SQUARE, - displayValue: this.textSquare - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_TEARDROP, - displayValue: this.textTeardrop - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-basic', - value: AscFormat.MOTION_TRAPEZOID, - displayValue: this.textTrapezoid - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_ARC_DOWN, - displayValue: this.textArcDown - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_ARC_LEFT, - displayValue: this.textArcLeft - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_ARC_RIGHT, - displayValue: this.textArcRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_ARC_UP, - displayValue: this.textArcUp - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_BOUNCE_LEFT, - displayValue: this.textBounceLeft - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_BOUNCE_RIGHT, - displayValue: this.textBounceRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_CURVY_LEFT, - displayValue: this.textCurvyLeft - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_CURVY_RIGHT, - displayValue: this.textCurvyRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_DECAYING_WAVE, - displayValue: this.textDecayingWave - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_DIAGONAL_DOWN_RIGHT, - displayValue: this.textDiagonalDownRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_DIAGONAL_UP_RIGHT, - displayValue: this.textDiagonalUpRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_DOWN, - displayValue: this.textDown - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_FUNNEL, - displayValue: this.textFunnel - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_HEARTBEAT, - displayValue: this.textHeartbeat - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_LEFT, - displayValue: this.textLeft - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_S_CURVE_1, - displayValue: this.textSCurve1 - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_S_CURVE_2, - displayValue: this.textSCurve2 - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_SINE_WAVE, - displayValue: this.textSineWave - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_SINE_SPIRAL_LEFT, - displayValue: this.textSpiralLeft - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_SINE_SPIRAL_RIGHT, - displayValue: this.textSpiralRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_SPRING, - displayValue: this.textSpring - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_STAIRS_DOWN, - displayValue: this.textStairsDown - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_TURN_DOWN, - displayValue: this.textTurnDown - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_TURN_DOWN_RIGHT, - displayValue: this.textTurnDownRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_TURN_UP, - displayValue: this.textTurnUp - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_TURN_UP_RIGHT, - displayValue: this.textTurnUpRight - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_UP, - displayValue: this.textUp - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_WAVE, - displayValue: this.textWave - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-lines_curves', - value: AscFormat.MOTION_ZIGZAG, - displayValue: this.textZigzag - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_BEAN, - displayValue: this.textBean - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_CURVED_SQUARE, - displayValue: this.textCurvedSquare - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_CURVED_X, - displayValue: this.textCurvedX - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_CURVY_STAR, - displayValue: this.textCurvyStar - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_FIGURE_8_FOUR, - displayValue: this.textFigureFour - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_HORIZONTAL_FIGURE_8_FOUR, - displayValue: this.textHorizontalFigure - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_INVERTED_SQUARE, - displayValue: this.textInvertedSquare - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_INVERTED_TRIANGLE, - displayValue: this.textInvertedTriangle - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_LOOP_DE_LOOP, - displayValue: this.textLoopDeLoop - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_NEUTRON, - displayValue: this.textNeutron - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_PEANUT, - displayValue: this.textPeanut - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_POINTY_STAR, - displayValue: this.textPointStar - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_SWOOSH, - displayValue: this.textSwoosh - }, - { - group: 'menu-effect-group-path', - level: 'menu-effect-level-special', - value: AscFormat.MOTION_VERTICAL_FIGURE_8, - displayValue: this.textVerticalFigure - } + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_SPINNER, displayValue: this.textSpinner}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-moderate', value: AscFormat.EXIT_STRETCHY, displayValue: this.textStretch}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_BASIC_SWIVEL, displayValue: this.textBasicSwivel}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_BOOMERANG, displayValue: this.textBoomerang}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_BOUNCE, displayValue: this.textBounce}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_CREDITS, displayValue: this.textCredits}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_CURVE_DOWN, displayValue: this.textCurveDown}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_DROP, displayValue: this.textDrop}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_FLIP, displayValue: this.textFlip}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_FLOAT, displayValue: this.textFloat}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_PINWHEEL, displayValue: this.textPinwheel}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_SPIRAL_OUT, displayValue: this.textSpiralOut}, + {group: 'menu-effect-group-exit', level: 'menu-effect-level-exciting', value: AscFormat.EXIT_WHIP, displayValue: this.textWhip}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_PATH_4_POINT_STAR, displayValue: this.textPointStar4}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_PATH_5_POINT_STAR, displayValue: this.textPointStar5}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_PATH_6_POINT_STAR, displayValue: this.textPointStar6}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_PATH_8_POINT_STAR, displayValue: this.textPointStar8}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_CIRCLE, displayValue: this.textCircle}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_CRESCENT_MOON, displayValue: this.textCrescentMoon}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_DIAMOND, displayValue: this.textDiamond}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_EQUAL_TRIANGLE, displayValue: this.textEqualTriangle}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_FOOTBALL, displayValue: this.textFootball}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_HEART, displayValue: this.textHeart}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_HEXAGON, displayValue: this.textHexagon}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_OCTAGON, displayValue: this.textOctagon}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_PARALLELOGRAM, displayValue: this.textParallelogram}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_PENTAGON, displayValue: this.textPentagon}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_RIGHT_TRIANGLE, displayValue: this.textRightTriangle}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_SQUARE, displayValue: this.textSquare}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_TEARDROP, displayValue: this.textTeardrop}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-basic', value: AscFormat.MOTION_TRAPEZOID, displayValue: this.textTrapezoid}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_ARC_DOWN, displayValue: this.textArcDown}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_ARC_LEFT, displayValue: this.textArcLeft}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_ARC_RIGHT, displayValue: this.textArcRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_ARC_UP, displayValue: this.textArcUp}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_BOUNCE_LEFT, displayValue: this.textBounceLeft}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_BOUNCE_RIGHT, displayValue: this.textBounceRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_CURVY_LEFT, displayValue: this.textCurvyLeft}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_CURVY_RIGHT, displayValue: this.textCurvyRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_DECAYING_WAVE, displayValue: this.textDecayingWave}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_DIAGONAL_DOWN_RIGHT, displayValue: this.textDiagonalDownRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_DIAGONAL_UP_RIGHT, displayValue: this.textDiagonalUpRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_DOWN, displayValue: this.textDown}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_FUNNEL, displayValue: this.textFunnel}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_HEARTBEAT, displayValue: this.textHeartbeat}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_LEFT, displayValue: this.textLeft}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_S_CURVE_1, displayValue: this.textSCurve1}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_S_CURVE_2, displayValue: this.textSCurve2}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_SINE_WAVE, displayValue: this.textSineWave}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_SINE_SPIRAL_LEFT, displayValue: this.textSpiralLeft}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_SINE_SPIRAL_RIGHT, displayValue: this.textSpiralRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_SPRING, displayValue: this.textSpring}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_STAIRS_DOWN, displayValue: this.textStairsDown}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_TURN_DOWN, displayValue: this.textTurnDown}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_TURN_DOWN_RIGHT, displayValue: this.textTurnDownRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_TURN_UP, displayValue: this.textTurnUp}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_TURN_UP_RIGHT, displayValue: this.textTurnUpRight}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_UP, displayValue: this.textUp}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_WAVE, displayValue: this.textWave}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-lines_curves', value: AscFormat.MOTION_ZIGZAG, displayValue: this.textZigzag}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_BEAN, displayValue: this.textBean}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_CURVED_SQUARE, displayValue: this.textCurvedSquare}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_CURVED_X, displayValue: this.textCurvedX}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_CURVY_STAR, displayValue: this.textCurvyStar}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_FIGURE_8_FOUR, displayValue: this.textFigureFour}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_HORIZONTAL_FIGURE_8_FOUR, displayValue: this.textHorizontalFigure}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_INVERTED_SQUARE, displayValue: this.textInvertedSquare}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_INVERTED_TRIANGLE, displayValue: this.textInvertedTriangle}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_LOOP_DE_LOOP, displayValue: this.textLoopDeLoop}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_NEUTRON, displayValue: this.textNeutron}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_PEANUT, displayValue: this.textPeanut}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_POINTY_STAR, displayValue: this.textPointStar}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_SWOOSH, displayValue: this.textSwoosh}, + {group: 'menu-effect-group-path', level: 'menu-effect-level-special', value: AscFormat.MOTION_VERTICAL_FIGURE_8, displayValue: this.textVerticalFigure} ]; }, - getEffectOptionsData: function (group) { - var arr = []; + getEffectOptionsData: function (group, type) { switch (group) { case 'menu-effect-group-entrance': - arr[AscFormat.ENTRANCE_APPEAR] = []; - arr[AscFormat.ENTRANCE_BLINDS] = [ - {value: AscFormat.ENTRANCE_BLINDS_HORIZONTAL, displayValue: this.textHorizontal}, - {value: AscFormat.ENTRANCE_BLINDS_VERTICAL, caption: this.textVertical} - ]; - arr[AscFormat.ENTRANCE_BOX] = [ - {value: AscFormat.ENTRANCE_BOX_IN, caption: this.textIn}, - {value: AscFormat.ENTRANCE_BOX_OUT, caption: this.textOut} - ]; - arr[AscFormat.ENTRANCE_CHECKERBOARD] = [ - {value: AscFormat.ENTRANCE_CHECKERBOARD_ACROSS, caption: this.textAcross}, - {value: AscFormat.ENTRANCE_CHECKERBOARD_DOWN, caption: this.textDown} - ]; - arr[AscFormat.ENTRANCE_CIRCLE] = [ - {value: AscFormat.ENTRANCE_CIRCLE_IN, caption: this.textIn}, - {value: AscFormat.ENTRANCE_CIRCLE_OUT, caption: this.textOut} - ]; - arr[AscFormat.ENTRANCE_DIAMOND] = [ - {value: AscFormat.ENTRANCE_DIAMOND_IN, caption: this.textIn}, - {value: AscFormat.ENTRANCE_DIAMOND_OUT, caption: this.textOut} - ]; - arr[AscFormat.ENTRANCE_DISSOLVE_IN] = []; - arr[AscFormat.ENTRANCE_FLY_IN_FROM] = [ - {value: AscFormat.ENTRANCE_FLY_IN_FROM_BOTTOM, caption: this.textFromBottom}, - {value: AscFormat.ENTRANCE_FLY_IN_FROM_BOTTOM_LEFT, caption: this.textFromBottomLeft}, - {value: AscFormat.ENTRANCE_FLY_IN_FROM_LEFT, caption: this.textFromLeft}, - {value: AscFormat.ENTRANCE_FLY_IN_FROM_TOP_LEFT, caption: this.textFromTopLeft}, - {value: AscFormat.ENTRANCE_FLY_IN_FROM_TOP, caption: this.textFromTop}, - {value: AscFormat.ENTRANCE_FLY_IN_FROM_TOP_RIGHT, caption: this.textFromTopRight}, - {value: AscFormat.ENTRANCE_FLY_IN_FROM_RIGHT, caption: this.textFromRight}, - {value: AscFormat.ENTRANCE_FLY_IN_FROM_BOTTOM_RIGHT, caption: this.textFromBottomRight} - ]; - arr[AscFormat.ENTRANCE_PEEK_IN_FROM] = [ - {value: AscFormat.ENTRANCE_PEEK_IN_FROM_BOTTOM, caption: this.textFromBottom}, - {value: AscFormat.ENTRANCE_PEEK_IN_FROM_LEFT, caption: this.textFromLeft}, - {value: AscFormat.ENTRANCE_PEEK_IN_FROM_RIGHT, caption: this.textFromRight}, - {value: AscFormat.ENTRANCE_PEEK_IN_FROM_TOP, caption: this.textFromTop} - ]; - arr[AscFormat.ENTRANCE_PLUS] = [ - {value: AscFormat.ENTRANCE_PLUS_IN, caption: this.textIn}, - {value: AscFormat.ENTRANCE_PLUS_OUT, caption: this.textOut} - ]; - arr[AscFormat.ENTRANCE_RANDOM_BARS] = [ - {value: AscFormat.ENTRANCE_RANDOM_BARS_HORIZONTAL, caption: this.textHorizontal}, - {value: AscFormat.ENTRANCE_RANDOM_BARS_VERTICAL, caption: this.textVertical} - ]; - arr[AscFormat.ENTRANCE_SPLIT] = [ - {value: AscFormat.ENTRANCE_SPLIT_HORIZONTAL_IN, caption: this.textHorizontalIn}, - {value: AscFormat.ENTRANCE_SPLIT_HORIZONTAL_OUT, caption: this.textHorizontalOut}, - {value: AscFormat.ENTRANCE_SPLIT_VERTICAL_IN, caption: this.textVerticalIn}, - {value: AscFormat.ENTRANCE_SPLIT_VERTICAL_OUT, caption: this.textVerticalOut} - ]; - arr[AscFormat.ENTRANCE_STRIPS] = [ - {value: AscFormat.ENTRANCE_STRIPS_LEFT_DOWN, caption: this.textLeftDown}, - {value: AscFormat.ENTRANCE_STRIPS_LEFT_UP, caption: this.textLeftUp}, - {value: AscFormat.ENTRANCE_STRIPS_RIGHT_DOWN, caption: this.textRightDown}, - {value: AscFormat.ENTRANCE_STRIPS_RIGHT_UP, caption: this.textRightUp} - ]; - arr[AscFormat.ENTRANCE_WEDGE] = []; - arr[AscFormat.ENTRANCE_WHEEL] = [ - {value: AscFormat.ENTRANCE_WHEEL_1_SPOKE, caption: this.textSpoke1}, - {value: AscFormat.ENTRANCE_WHEEL_2_SPOKE, caption: this.textSpoke2}, - {value: AscFormat.ENTRANCE_WHEEL_3_SPOKE, caption: this.textSpoke3}, - {value: AscFormat.ENTRANCE_WHEEL_4_SPOKE, caption: this.textSpoke4}, - {value: AscFormat.ENTRANCE_WHEEL_8_SPOKE, caption: this.textSpoke8} - ]; - arr[AscFormat.ENTRANCE_WIPE_FROM] = [ - {value: AscFormat.ENTRANCE_WIPE_FROM_BOTTOM, caption: this.textFromBottom}, - {value: AscFormat.ENTRANCE_WIPE_FROM_LEFT, caption: this.textFromLeft}, - {value: AscFormat.ENTRANCE_WIPE_FROM_RIGHT, caption: this.textFromRight}, - {value: AscFormat.ENTRANCE_WIPE_FROM_FROM_TOP, caption: this.textFromTop} - ]; - arr[AscFormat.ENTRANCE_EXPAND] = []; - arr[AscFormat.ENTRANCE_FADE] = []; - arr[AscFormat.ENTRANCE_SWIVEL] = []; - arr[AscFormat.ENTRANCE_ZOOM] = [ - {value: AscFormat.ENTRANCE_ZOOM_OBJECT_CENTER, caption: this.textObjectCenter}, - {value: AscFormat.ENTRANCE_ZOOM_SLIDE_CENTER, caption: this.textSlideCenter} - ]; - arr[AscFormat.ENTRANCE_BASIC_ZOOM] = [ - {value: AscFormat.ENTRANCE_BASIC_ZOOM_IN, caption: this.textIn}, - { - value: AscFormat.ENTRANCE_BASIC_ZOOM_IN_FROM_SCREEN_CENTER, - caption: this.textInFromScreenCenter - }, - {value: AscFormat.ENTRANCE_BASIC_ZOOM_IN_SLIGHTLY, caption: this.textInSlightly}, - {value: AscFormat.ENTRANCE_BASIC_ZOOM_OUT, caption: this.textOut}, - { - value: AscFormat.ENTRANCE_BASIC_ZOOM_OUT_FROM_SCREEN_BOTTOM, - caption: this.textOutFromScreenBottom - }, - {value: AscFormat.ENTRANCE_BASIC_ZOOM_OUT_SLIGHTLY, caption: this.textOutSlightly} - ]; - arr[AscFormat.ENTRANCE_CENTER_REVOLVE] = []; - arr[AscFormat.ENTRANCE_CENTER_COMPRESS] = []; - arr[AscFormat.ENTRANCE_FLOAT_DOWN] = []; - arr[AscFormat.ENTRANCE_FLOAT_UP] = []; - arr[AscFormat.ENTRANCE_GROW_AND_TURN] = []; - arr[AscFormat.ENTRANCE_RISE_UP] = []; - arr[AscFormat.ENTRANCE_SPINNER] = []; - arr[AscFormat.ENTRANCE_STRETCH] = [ - {value: AscFormat.ENTRANCE_STRETCH_ACROSS, caption: this.textAcross}, - {value: AscFormat.ENTRANCE_STRETCH_FROM_BOTTOM, caption: this.textFromBottom}, - {value: AscFormat.ENTRANCE_STRETCH_FROM_LEFT, caption: this.textFromLeft}, - {value: AscFormat.ENTRANCE_STRETCH_FROM_RIGHT, caption: this.textFromRight}, - {value: AscFormat.ENTRANCE_STRETCH_FROM_TOP, caption: this.textFromTop} - ]; - arr[AscFormat.ENTRANCE_BASIC_SWIVEL] = [ - {value: AscFormat.ENTRANCE_BASIC_SWIVEL_HORIZONTAL, caption: this.textHorizontal}, - {value: AscFormat.ENTRANCE_BASIC_SWIVEL_VERTICAL, caption: this.textVertical} - ]; - arr[AscFormat.ENTRANCE_BOOMERANG] = []; - arr[AscFormat.ENTRANCE_BOUNCE] = []; - arr[AscFormat.ENTRANCE_CREDITS] = []; - arr[AscFormat.ENTRANCE_CURVE_UP] = []; - arr[AscFormat.ENTRANCE_DROP] = []; - arr[AscFormat.ENTRANCE_FLIP] = []; - arr[AscFormat.ENTRANCE_FLOAT] = []; - arr[AscFormat.ENTRANCE_PINWHEEL] = []; - arr[AscFormat.ENTRANCE_SPIRAL_IN] = []; - arr[AscFormat.ENTRANCE_WHIP] = []; + switch (type) { + case AscFormat.ENTRANCE_BLINDS: + return [ + {value: AscFormat.ENTRANCE_BLINDS_HORIZONTAL, caption: this.textHorizontal}, + {value: AscFormat.ENTRANCE_BLINDS_VERTICAL, caption: this.textVertical} + ]; + case AscFormat.ENTRANCE_BOX: + return [ + {value: AscFormat.ENTRANCE_BOX_IN, caption: this.textIn}, + {value: AscFormat.ENTRANCE_BOX_OUT, caption: this.textOut} + ]; + case AscFormat.ENTRANCE_CHECKERBOARD: + return [ + {value: AscFormat.ENTRANCE_CHECKERBOARD_ACROSS, caption: this.textAcross}, + {value: AscFormat.ENTRANCE_CHECKERBOARD_DOWN, caption: this.textDown} + ]; + case AscFormat.ENTRANCE_CIRCLE: + return [ + {value: AscFormat.ENTRANCE_CIRCLE_IN, caption: this.textIn}, + {value: AscFormat.ENTRANCE_CIRCLE_OUT, caption: this.textOut} + ]; + case AscFormat.ENTRANCE_DIAMOND: + return [ + {value: AscFormat.ENTRANCE_DIAMOND_IN, caption: this.textIn}, + {value: AscFormat.ENTRANCE_DIAMOND_OUT, caption: this.textOut} + ]; - return arr; + case AscFormat.ENTRANCE_FLY_IN_FROM: + return [ + {value: AscFormat.ENTRANCE_FLY_IN_FROM_BOTTOM, caption: this.textFromBottom}, + {value: AscFormat.ENTRANCE_FLY_IN_FROM_BOTTOM_LEFT, caption: this.textFromBottomLeft}, + {value: AscFormat.ENTRANCE_FLY_IN_FROM_LEFT, caption: this.textFromLeft}, + {value: AscFormat.ENTRANCE_FLY_IN_FROM_TOP_LEFT, caption: this.textFromTopLeft}, + {value: AscFormat.ENTRANCE_FLY_IN_FROM_TOP, caption: this.textFromTop}, + {value: AscFormat.ENTRANCE_FLY_IN_FROM_TOP_RIGHT, caption: this.textFromTopRight}, + {value: AscFormat.ENTRANCE_FLY_IN_FROM_RIGHT, caption: this.textFromRight}, + {value: AscFormat.ENTRANCE_FLY_IN_FROM_BOTTOM_RIGHT, caption: this.textFromBottomRight} + ]; + case AscFormat.ENTRANCE_PEEK_IN_FROM: + return [ + {value: AscFormat.ENTRANCE_PEEK_IN_FROM_BOTTOM, caption: this.textFromBottom}, + {value: AscFormat.ENTRANCE_PEEK_IN_FROM_LEFT, caption: this.textFromLeft}, + {value: AscFormat.ENTRANCE_PEEK_IN_FROM_RIGHT, caption: this.textFromRight}, + {value: AscFormat.ENTRANCE_PEEK_IN_FROM_TOP, caption: this.textFromTop} + ]; + case AscFormat.ENTRANCE_PLUS: + return [ + {value: AscFormat.ENTRANCE_PLUS_IN, caption: this.textIn}, + {value: AscFormat.ENTRANCE_PLUS_OUT, caption: this.textOut} + ]; + case AscFormat.ENTRANCE_RANDOM_BARS: + return [ + {value: AscFormat.ENTRANCE_RANDOM_BARS_HORIZONTAL, caption: this.textHorizontal}, + {value: AscFormat.ENTRANCE_RANDOM_BARS_VERTICAL, caption: this.textVertical} + ]; + case AscFormat.ENTRANCE_SPLIT: + return [ + {value: AscFormat.ENTRANCE_SPLIT_HORIZONTAL_IN, caption: this.textHorizontalIn}, + {value: AscFormat.ENTRANCE_SPLIT_HORIZONTAL_OUT, caption: this.textHorizontalOut}, + {value: AscFormat.ENTRANCE_SPLIT_VERTICAL_IN, caption: this.textVerticalIn}, + {value: AscFormat.ENTRANCE_SPLIT_VERTICAL_OUT, caption: this.textVerticalOut} + ]; + case AscFormat.ENTRANCE_STRIPS: + return [ + {value: AscFormat.ENTRANCE_STRIPS_LEFT_DOWN, caption: this.textLeftDown}, + {value: AscFormat.ENTRANCE_STRIPS_LEFT_UP, caption: this.textLeftUp}, + {value: AscFormat.ENTRANCE_STRIPS_RIGHT_DOWN, caption: this.textRightDown}, + {value: AscFormat.ENTRANCE_STRIPS_RIGHT_UP, caption: this.textRightUp} + ]; + case AscFormat.ENTRANCE_WHEEL: + return [ + {value: AscFormat.ENTRANCE_WHEEL_1_SPOKE, caption: this.textSpoke1}, + {value: AscFormat.ENTRANCE_WHEEL_2_SPOKE, caption: this.textSpoke2}, + {value: AscFormat.ENTRANCE_WHEEL_3_SPOKE, caption: this.textSpoke3}, + {value: AscFormat.ENTRANCE_WHEEL_4_SPOKE, caption: this.textSpoke4}, + {value: AscFormat.ENTRANCE_WHEEL_8_SPOKE, caption: this.textSpoke8} + ]; + case AscFormat.ENTRANCE_WIPE_FROM: + return [ + {value: AscFormat.ENTRANCE_WIPE_FROM_BOTTOM, caption: this.textFromBottom}, + {value: AscFormat.ENTRANCE_WIPE_FROM_LEFT, caption: this.textFromLeft}, + {value: AscFormat.ENTRANCE_WIPE_FROM_RIGHT, caption: this.textFromRight}, + {value: AscFormat.ENTRANCE_WIPE_FROM_FROM_TOP, caption: this.textFromTop} + ]; + case AscFormat.ENTRANCE_ZOOM: + return [ + {value: AscFormat.ENTRANCE_ZOOM_OBJECT_CENTER, caption: this.textObjectCenter}, + {value: AscFormat.ENTRANCE_ZOOM_SLIDE_CENTER, caption: this.textSlideCenter} + ]; + case AscFormat.ENTRANCE_BASIC_ZOOM: + return [ + {value: AscFormat.ENTRANCE_BASIC_ZOOM_IN, caption: this.textIn}, + {value: AscFormat.ENTRANCE_BASIC_ZOOM_IN_FROM_SCREEN_CENTER, caption: this.textInFromScreenCenter}, + {value: AscFormat.ENTRANCE_BASIC_ZOOM_IN_SLIGHTLY, caption: this.textInSlightly}, + {value: AscFormat.ENTRANCE_BASIC_ZOOM_OUT, caption: this.textOut}, + {value: AscFormat.ENTRANCE_BASIC_ZOOM_OUT_FROM_SCREEN_BOTTOM, caption: this.textOutFromScreenBottom}, + {value: AscFormat.ENTRANCE_BASIC_ZOOM_OUT_SLIGHTLY, caption: this.textOutSlightly} + ]; + case AscFormat.ENTRANCE_STRETCH: + return [ + {value: AscFormat.ENTRANCE_STRETCH_ACROSS, caption: this.textAcross}, + {value: AscFormat.ENTRANCE_STRETCH_FROM_BOTTOM, caption: this.textFromBottom}, + {value: AscFormat.ENTRANCE_STRETCH_FROM_LEFT, caption: this.textFromLeft}, + {value: AscFormat.ENTRANCE_STRETCH_FROM_RIGHT, caption: this.textFromRight}, + {value: AscFormat.ENTRANCE_STRETCH_FROM_TOP, caption: this.textFromTop} + ]; + case AscFormat.ENTRANCE_BASIC_SWIVEL: + return [ + {value: AscFormat.ENTRANCE_BASIC_SWIVEL_HORIZONTAL, caption: this.textHorizontal}, + {value: AscFormat.ENTRANCE_BASIC_SWIVEL_VERTICAL, caption: this.textVertical} + ]; + default: + return undefined; + } + break; case 'menu-effect-group-exit': - arr[AscFormat.EXIT_BLINDS] = [ - {value: AscFormat.EXIT_BLINDS_HORIZONTAL, caption: this.textHorizontal}, - {value: AscFormat.EXIT_BLINDS_VERTICAL, caption: this.textVertical} - ]; - arr[AscFormat.EXIT_BOX] = [ - {value: AscFormat.EXIT_BOX_IN, caption: this.textIn}, - {value: AscFormat.EXIT_BOX_OUT, caption: this.textOut} - ]; - arr[AscFormat.EXIT_CHECKERBOARD] = [ - {value: AscFormat.EXIT_CHECKERBOARD_ACROSS, caption: this.textAcross}, - {value: AscFormat.EXIT_CIRCLE_OUT, caption: this.textUp} - ]; - arr[AscFormat.EXIT_CIRCLE] = [ - {value: AscFormat.EXIT_CIRCLE_IN, caption: this.textIn}, - {value: AscFormat.EXIT_BOX_OUT, caption: this.textOut} - ]; - arr[AscFormat.EXIT_DIAMOND] = [ - {value: AscFormat.EXIT_DIAMOND_IN, caption: this.textIn}, - {value: AscFormat.EXIT_DIAMOND_IN, caption: this.textOut} - ]; - arr[AscFormat.EXIT_DISAPPEAR] = []; - arr[AscFormat.EXIT_DISSOLVE_OUT] = []; - arr[AscFormat.EXIT_FLY_OUT_TO] = [ - {value: AscFormat.EXIT_FLY_OUT_TO_BOTTOM, caption: this.textToBottom}, - {value: AscFormat.EXIT_FLY_OUT_TO_BOTTOM_LEFT, caption: this.textToBottomLeft}, - {value: AscFormat.EXIT_FLY_OUT_TO_LEFT, caption: this.textToLeft}, - {value: AscFormat.EXIT_FLY_OUT_TO_TOP_LEFT, caption: this.textToTopLeft}, - {value: AscFormat.EXIT_FLY_OUT_TO_TOP, caption: this.textToTop}, - {value: AscFormat.EXIT_FLY_OUT_TO_TOP_RIGHT, caption: this.textToTopRight}, - {value: AscFormat.EXIT_FLY_OUT_TO_RIGHT, caption: this.textToRight}, - {value: AscFormat.EXIT_FLY_OUT_TO_BOTTOM_RIGHT, caption: this.textToBottomRight} - ]; - arr[AscFormat.EXIT_PEEK_OUT_TO] = [ - {value: AscFormat.EXIT_PEEK_OUT_TO_BOTTOM, caption: this.textToBottom}, - {value: AscFormat.EXIT_PEEK_OUT_TO_LEFT, caption: this.textToLeft}, - {value: AscFormat.EXIT_PEEK_OUT_TO_RIGHT, caption: this.textToRight}, - {value: AscFormat.EXIT_PEEK_OUT_TO_TOP, caption: this.textToTop} - ]; - arr[AscFormat.EXIT_PLUS] = [ - {value: AscFormat.EXIT_PLUS_IN, caption: this.textIn}, - {value: AscFormat.EXIT_PLUS_OUT, caption: this.textOut} - ]; - arr[AscFormat.EXIT_RANDOM_BARS] = [ - {value: AscFormat.EXIT_RANDOM_BARS_HORIZONTAL, caption: this.textHorizontal}, - {value: AscFormat.EXIT_RANDOM_BARS_VERTICAL, caption: this.textVertical} - ]; - arr[AscFormat.EXIT_SPLIT] = [ - {value: AscFormat.EXIT_SPLIT_HORIZONTAL_IN, caption: this.textHorizontalIn}, - {value: AscFormat.EXIT_SPLIT_HORIZONTAL_OUT, caption: this.textHorizontalOut}, - {value: AscFormat.EXIT_SPLIT_VERTICAL_IN, caption: this.textVerticalIn}, - {value: AscFormat.EXIT_SPLIT_VERTICAL_OUT, caption: this.textVerticalOut} - ]; - arr[AscFormat.EXIT_STRIPS] = [ - {value: AscFormat.EXIT_STRIPS_LEFT_DOWN, caption: this.textLeftDown}, - {value: AscFormat.EXIT_STRIPS_LEFT_UP, caption: this.textLeftUp}, - {value: AscFormat.EXIT_STRIPS_RIGHT_DOWN, caption: this.textRightDown}, - {value: AscFormat.EXIT_STRIPS_RIGHT_UP, caption: this.textRightUp} - ]; - arr[AscFormat.EXIT_WEDGE] = []; - arr[AscFormat.EXIT_WHEEL] = [ - {value: AscFormat.EXIT_WHEEL_1_SPOKE, caption: this.textSpoke1}, - {value: AscFormat.EXIT_WHEEL_2_SPOKE, caption: this.textSpoke2}, - {value: AscFormat.EXIT_WHEEL_3_SPOKE, caption: this.textSpoke3}, - {value: AscFormat.EXIT_WHEEL_4_SPOKE, caption: this.textSpoke4}, - {value: AscFormat.EXIT_WHEEL_8_SPOKE, caption: this.textSpoke8} - ]; - arr[AscFormat.EXIT_WIPE_FROM] = [ - {value: AscFormat.EXIT_WIPE_FROM_BOTTOM, caption: this.textFromBottom}, - {value: AscFormat.EXIT_WIPE_FROM_LEFT, caption: this.textFromLeft}, - {value: AscFormat.EXIT_WIPE_FROM_RIGHT, caption: this.textFromRight}, - {value: AscFormat.EXIT_WIPE_FROM_TOP, caption: this.textFromTop} - ]; - arr[AscFormat.EXIT_CONTRACT] = []; - arr[AscFormat.EXIT_FADE] = []; - arr[AscFormat.EXIT_SWIVEL] = []; - arr[AscFormat.EXIT_ZOOM] = [ - {value: AscFormat.ENTRANCE_ZOOM_OBJECT_CENTER, caption: this.textObjectCenter}, - {value: AscFormat.ENTRANCE_ZOOM_SLIDE_CENTER, caption: this.textSlideCenter} - ]; - arr[AscFormat.EXIT_BASIC_ZOOM] = [ - {value: AscFormat.EXIT_BASIC_ZOOM_IN, caption: this.textIn}, - { - value: AscFormat.EXIT_BASIC_ZOOM_IN_TO_SCREEN_BOTTOM, - caption: this.textInToScreenCenter - }, - {value: AscFormat.EXIT_BASIC_ZOOM_IN_SLIGHTLY, caption: this.textInSlightly}, - {value: AscFormat.EXIT_BASIC_ZOOM_OUT, caption: this.textOut}, - { - value: AscFormat.EXIT_BASIC_ZOOM_OUT_TO_SCREEN_CENTER, - caption: this.textOutToScreenBottom - }, - {value: AscFormat.EXIT_BASIC_ZOOM_OUT_SLIGHTLY, caption: this.textOutSlightly} - ]; - arr[AscFormat.EXIT_CENTER_REVOLVE] = []; - arr[AscFormat.EXIT_COLLAPSE] = [ - {value: AscFormat.EXIT_COLLAPSE_ACROSS, caption: this.textAcross}, - {value: AscFormat.EXIT_COLLAPSE_TO_BOTTOM, caption: this.textToBottom}, - {value: AscFormat.EXIT_COLLAPSE_TO_LEFT, caption: this.textToLeft}, - {value: AscFormat.EXIT_COLLAPSE_TO_RIGHT, caption: this.textToRight}, - {value: AscFormat.EXIT_COLLAPSE_TO_TOP, caption: this.textToTop} - ]; - arr[AscFormat.EXIT_FLOAT_DOWN] = []; - arr[AscFormat.EXIT_FLOAT_UP] = []; - arr[AscFormat.EXIT_SHRINK_AND_TURN] = []; - //sink down- EXIT_SHRINK_DOWN? - arr[AscFormat.EXIT_SPINNER] = []; - arr[AscFormat.EXIT_STRETCHY] = []; - arr[AscFormat.EXIT_BASIC_SWIVEL] = [ - {value: AscFormat.EXIT_BASIC_SWIVEL_HORIZONTAL, caption: this.textHorizontal}, - {value: AscFormat.EXIT_BASIC_SWIVEL_VERTICAL, caption: this.textVertical} - ]; - arr[AscFormat.EXIT_BOOMERANG] = []; - arr[AscFormat.EXIT_BOUNCE] = []; - arr[AscFormat.EXIT_CREDITS] = []; - arr[AscFormat.EXIT_CURVE_DOWN] = []; - arr[AscFormat.EXIT_DROP] = []; - arr[AscFormat.EXIT_FLIP] = []; - arr[AscFormat.EXIT_FLOAT] = []; - arr[AscFormat.EXIT_PINWHEEL] = []; - arr[AscFormat.EXIT_SPIRAL_OUT] = []; - arr[AscFormat.EXIT_WHIP] = []; - - return arr; + switch (type){ + case AscFormat.EXIT_BLINDS: + return [ + {value: AscFormat.EXIT_BLINDS_HORIZONTAL, caption: this.textHorizontal}, + {value: AscFormat.EXIT_BLINDS_VERTICAL, caption: this.textVertical} + ]; + case AscFormat.EXIT_BOX: + return [ + {value: AscFormat.EXIT_BOX_IN, caption: this.textIn}, + {value: AscFormat.EXIT_BOX_OUT, caption: this.textOut} + ]; + case AscFormat.EXIT_CHECKERBOARD: + return [ + {value: AscFormat.EXIT_CHECKERBOARD_ACROSS, caption: this.textAcross}, + {value: AscFormat.EXIT_CIRCLE_OUT, caption: this.textUp} + ]; + case AscFormat.EXIT_CIRCLE: + return [ + {value: AscFormat.EXIT_CIRCLE_IN, caption: this.textIn}, + {value: AscFormat.EXIT_BOX_OUT, caption: this.textOut} + ]; + case AscFormat.EXIT_DIAMOND: + return [ + {value: AscFormat.EXIT_DIAMOND_IN, caption: this.textIn}, + {value: AscFormat.EXIT_DIAMOND_IN, caption: this.textOut} + ]; + case AscFormat.EXIT_FLY_OUT_TO: + return [ + {value: AscFormat.EXIT_FLY_OUT_TO_BOTTOM, caption: this.textToBottom}, + {value: AscFormat.EXIT_FLY_OUT_TO_BOTTOM_LEFT, caption: this.textToBottomLeft}, + {value: AscFormat.EXIT_FLY_OUT_TO_LEFT, caption: this.textToLeft}, + {value: AscFormat.EXIT_FLY_OUT_TO_TOP_LEFT, caption: this.textToTopLeft}, + {value: AscFormat.EXIT_FLY_OUT_TO_TOP, caption: this.textToTop}, + {value: AscFormat.EXIT_FLY_OUT_TO_TOP_RIGHT, caption: this.textToTopRight}, + {value: AscFormat.EXIT_FLY_OUT_TO_RIGHT, caption: this.textToRight}, + {value: AscFormat.EXIT_FLY_OUT_TO_BOTTOM_RIGHT, caption: this.textToBottomRight} + ]; + case AscFormat.EXIT_PEEK_OUT_TO: + return [ + {value: AscFormat.EXIT_PEEK_OUT_TO_BOTTOM, caption: this.textToBottom}, + {value: AscFormat.EXIT_PEEK_OUT_TO_LEFT, caption: this.textToLeft}, + {value: AscFormat.EXIT_PEEK_OUT_TO_RIGHT, caption: this.textToRight}, + {value: AscFormat.EXIT_PEEK_OUT_TO_TOP, caption: this.textToTop} + ]; + case AscFormat.EXIT_PLUS: + return [ + {value: AscFormat.EXIT_PLUS_IN, caption: this.textIn}, + {value: AscFormat.EXIT_PLUS_OUT, caption: this.textOut} + ]; + case AscFormat.EXIT_RANDOM_BARS: + return [ + {value: AscFormat.EXIT_RANDOM_BARS_HORIZONTAL, caption: this.textHorizontal}, + {value: AscFormat.EXIT_RANDOM_BARS_VERTICAL, caption: this.textVertical} + ]; + case AscFormat.EXIT_SPLIT: + return [ + {value: AscFormat.EXIT_SPLIT_HORIZONTAL_IN, caption: this.textHorizontalIn}, + {value: AscFormat.EXIT_SPLIT_HORIZONTAL_OUT, caption: this.textHorizontalOut}, + {value: AscFormat.EXIT_SPLIT_VERTICAL_IN, caption: this.textVerticalIn}, + {value: AscFormat.EXIT_SPLIT_VERTICAL_OUT, caption: this.textVerticalOut} + ]; + case AscFormat.EXIT_STRIPS: + return [ + {value: AscFormat.EXIT_STRIPS_LEFT_DOWN, caption: this.textLeftDown}, + {value: AscFormat.EXIT_STRIPS_LEFT_UP, caption: this.textLeftUp}, + {value: AscFormat.EXIT_STRIPS_RIGHT_DOWN, caption: this.textRightDown}, + {value: AscFormat.EXIT_STRIPS_RIGHT_UP, caption: this.textRightUp} + ]; + case AscFormat.EXIT_WHEEL: + return [ + {value: AscFormat.EXIT_WHEEL_1_SPOKE, caption: this.textSpoke1}, + {value: AscFormat.EXIT_WHEEL_2_SPOKE, caption: this.textSpoke2}, + {value: AscFormat.EXIT_WHEEL_3_SPOKE, caption: this.textSpoke3}, + {value: AscFormat.EXIT_WHEEL_4_SPOKE, caption: this.textSpoke4}, + {value: AscFormat.EXIT_WHEEL_8_SPOKE, caption: this.textSpoke8} + ]; + case AscFormat.EXIT_WIPE_FROM: + return [ + {value: AscFormat.EXIT_WIPE_FROM_BOTTOM, caption: this.textFromBottom}, + {value: AscFormat.EXIT_WIPE_FROM_LEFT, caption: this.textFromLeft}, + {value: AscFormat.EXIT_WIPE_FROM_RIGHT, caption: this.textFromRight}, + {value: AscFormat.EXIT_WIPE_FROM_TOP, caption: this.textFromTop} + ]; + case AscFormat.EXIT_ZOOM: + return [ + {value: AscFormat.ENTRANCE_ZOOM_OBJECT_CENTER, caption: this.textObjectCenter}, + {value: AscFormat.ENTRANCE_ZOOM_SLIDE_CENTER, caption: this.textSlideCenter} + ]; + case AscFormat.EXIT_BASIC_ZOOM: + return [ + {value: AscFormat.EXIT_BASIC_ZOOM_IN, caption: this.textIn}, + {value: AscFormat.EXIT_BASIC_ZOOM_IN_TO_SCREEN_BOTTOM, caption: this.textInToScreenCenter}, + {value: AscFormat.EXIT_BASIC_ZOOM_IN_SLIGHTLY, caption: this.textInSlightly}, + {value: AscFormat.EXIT_BASIC_ZOOM_OUT, caption: this.textOut}, + {value: AscFormat.EXIT_BASIC_ZOOM_OUT_TO_SCREEN_CENTER, caption: this.textOutToScreenBottom}, + {value: AscFormat.EXIT_BASIC_ZOOM_OUT_SLIGHTLY, caption: this.textOutSlightly} + ]; + case AscFormat.EXIT_COLLAPSE: + return [ + {value: AscFormat.EXIT_COLLAPSE_ACROSS, caption: this.textAcross}, + {value: AscFormat.EXIT_COLLAPSE_TO_BOTTOM, caption: this.textToBottom}, + {value: AscFormat.EXIT_COLLAPSE_TO_LEFT, caption: this.textToLeft}, + {value: AscFormat.EXIT_COLLAPSE_TO_RIGHT, caption: this.textToRight}, + {value: AscFormat.EXIT_COLLAPSE_TO_TOP, caption: this.textToTop} + ]; + case AscFormat.EXIT_BASIC_SWIVEL: + return [ + {value: AscFormat.EXIT_BASIC_SWIVEL_HORIZONTAL, caption: this.textHorizontal}, + {value: AscFormat.EXIT_BASIC_SWIVEL_VERTICAL, caption: this.textVertical} + ]; + default: + return undefined; + } + break; default: - return []; + return undefined; } } } diff --git a/apps/presentationeditor/main/app/controller/Animation.js b/apps/presentationeditor/main/app/controller/Animation.js index a35f1f67d..dfa5e5763 100644 --- a/apps/presentationeditor/main/app/controller/Animation.js +++ b/apps/presentationeditor/main/app/controller/Animation.js @@ -63,18 +63,19 @@ define([ this.addListeners({ 'PE.Views.Animation': { - 'animation:preview': _.bind(this.onPreviewClick, this), - 'animation:parameters': _.bind(this.onParameterClick, this), - 'animation:duration': _.bind(this.onDurationChange, this), - 'animation:selecteffect': _.bind(this.onEffectSelect, this), - 'animation:delay': _.bind(this.onDelayChange, this), - 'animation:animationpane':_.bind(this.onAnimationPane, this), - 'animation:addanimation': _.bind(this.onAddAnimation, this), + 'animation:preview': _.bind(this.onPreviewClick, this), + 'animation:parameters': _.bind(this.onParameterClick, this), + 'animation:duration': _.bind(this.onDurationChange, this), + 'animation:selecteffect': _.bind(this.onEffectSelect, this), + 'animation:delay': _.bind(this.onDelayChange, this), + 'animation:animationpane': _.bind(this.onAnimationPane, this), + 'animation:addanimation': _.bind(this.onAddAnimation, this), 'animation:startselect': _.bind(this.onStartSelect, this), 'animation:checkrewind': _.bind(this.onCheckRewindChange,this), + 'animation:repeat': _.bind(this.onRepeatChange, this) }, 'Toolbar': { - 'tab:active': _.bind(this.onActiveTab, this) + 'tab:active': _.bind(this.onActiveTab, this) } }); this.EffectGroups = Common.define.effectData.getEffectGroupData(); @@ -87,16 +88,16 @@ define([ setConfig: function (config) { this.appConfig = config.mode; this.view = this.createView('PE.Views.Animation', { - toolbar: config.toolbar, - mode: config.mode + toolbar : config.toolbar, + mode : config.mode }); return this; }, setApi: function (api) { this.api = api; - this.api.asc_registerCallback('asc_onFocusObject', _.bind(this.onFocusObject, this)); - this.api.asc_registerCallback('asc_onCountPages', _.bind(this.onApiCountPages, this)); + this.api.asc_registerCallback('asc_onFocusObject', _.bind(this.onFocusObject, this)); + this.api.asc_registerCallback('asc_onCountPages', _.bind(this.onApiCountPages, this)); return this; }, @@ -125,36 +126,28 @@ define([ if(this.api && this.AnimationProperties) { this.AnimationProperties.asc_putSubtype(value); this.api.asc_SetAnimationProperties(this.AnimationProperties); - // this.getAnimationProperties(); - - console.log(this.AnimationProperties.asc_getSubtype()); } }, - - onAnimationPane: function() { (new PE.Views.AnimationDialog({ - api: this.api, - activEffect: this.Effect + api : this.api, + activeEffect : this._state.Effect })).show(); }, onAddAnimation: function(picker, record) { var type = record.get('value'); - var group = _.findWhere(Common.define.effectData.getEffectGroupData(),{id: record.get('group')}).value; - this.addNewEffect(type, group); - this._state.EffectGroups = group; - this._state.Effect = type; + var group = _.findWhere(Common.define.effectData.getEffectGroupData(), {id: record.get('group')}).value; + this.addNewEffect(type, group, false); }, addNewEffect: function (type, group, replace) { if (this._state.Effect == type) return; - - var parameter= this.view.setMenuParameters(type, undefined, group == this._state.EffectGroups); - this.api.asc_AddAnimation(this._state.EffectGroups, type, parameter!==undefined ? parameter : 0, !!replace); - if (parameter!= undefined) - this.onParameterClick(parameter); + var parameter = this.view.setMenuParameters(type, undefined, group == this._state.EffectGroups); + this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace); + this._state.EffectGroups = group; + this._state.Effect = type; }, onDurationChange: function(field, newValue, oldValue, eOpts) { @@ -173,17 +166,24 @@ define([ } }, + onRepeatChange: function (field, newValue, oldValue, eOpts){ + if (this.api) { + this._state.Repeat = field.getNumberValue() * 1000; + this.AnimationProperties.asc_putRepeatCount(this._state.Repeat); + this.api.asc_SetAnimationProperties(this.AnimationProperties); + } + }, onEffectSelect: function (combo, record) { - var type = record.get('value'); - var group = _.findWhere(Common.define.effectData.getEffectGroupData(),{id: record.get('group')}).value; - this.addNewEffect(type, group, true); - this._state.EffectGroups = group; - this._state.Effect = type; + if (this.api) { + var type = record.get('value'); + var group = (type != AscFormat.ANIM_PRESET_NONE) ? _.findWhere(Common.define.effectData.getEffectGroupData(), {id: record.get('group')}).value : undefined; + this.addNewEffect(type, group, this._state.Effect != AscFormat.ANIM_PRESET_NONE); + } }, onStartSelect: function (combo, record) { if (this.api) { - this._state.StartEffect =record.value; + this._state.StartEffect = record.value; this.AnimationProperties.asc_putStartType(this._state.StartEffect); this.api.asc_SetAnimationProperties(this.AnimationProperties); } @@ -197,6 +197,7 @@ define([ }, onFocusObject: function(selectedObjects) { + var isAnimtionObject = false, isAnimation = false; for (var i = 0; i 0.001 || + (this._state.Repeat === null || value === null) && (this._state.Repeat !== value) || + (this._state.Repeat === undefined || value === undefined) && (this._state.Repeat !== value)) { + this._state.Repeat = value; + } + this._state.StartSelect = this.AnimationProperties.asc_getStartType(); this._state.RepeatCount = this.AnimationProperties.asc_getRepeatCount(); this._state.Rewind = this.AnimationProperties.asc_getRewind(); @@ -256,6 +288,7 @@ define([ onActiveTab: function(tab) { if (tab == 'animate') { this._state.onactivetab = true; + this.setLocked(); this.setSettings(); } @@ -267,8 +300,8 @@ define([ }, setLocked: function() { - if (this._state.lockedtransition != undefined) - this.lockToolbar(PE.enumLock.transitLock, this._state.lockedtransition); + /* if (this._state.lockedanimation != undefined) + this.lockToolbar(PE.enumLock.animationLock, this._state.lockedanimation);*/ }, setSettings: function () { @@ -280,11 +313,12 @@ define([ this.view.btnParameters.setIconCls('toolbar__icon icon ' + item.get('imageUrl')); } - if (me.btnParameters.menu.items.length > 0 && this._state.EffectOption !== undefined) - me.setMenuParameters(this._state.Effect, this._state.EffectOption, true); + if (this._state.EffectOption !== undefined) + me.setMenuParameters(this._state.Effect, this._state.EffectOption); me.numDuration.setValue((this._state.Duration !== null && this._state.Duration !== undefined) ? this._state.Duration / 1000. : '', true); me.numDelay.setValue((this._state.Delay !== null && this._state.Delay !== undefined) ? this._state.Delay / 1000. : '', true); + me.numRepeat.setValue((this._state.Repeat !== null && this._state.Repeat !== undefined) ? this._state.Repeat / 1000. : '', true); (this._state.StartSelect==undefined)&&(this._state.StartSelect = AscFormat.NODE_TYPE_CLICKEFFECT); item = me.cmbStart.store.findWhere({value: this._state.StartSelect}); diff --git a/apps/presentationeditor/main/app/view/Animation.js b/apps/presentationeditor/main/app/view/Animation.js index 493727179..7b6c5fead 100644 --- a/apps/presentationeditor/main/app/view/Animation.js +++ b/apps/presentationeditor/main/app/view/Animation.js @@ -178,7 +178,7 @@ define([ caption: this.txtPreview, split: false, iconCls: 'toolbar__icon preview-transitions', - //lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock], + //lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart], dataHint: '1', dataHintDirection: 'left', dataHintOffset: 'medium' @@ -219,6 +219,7 @@ define([ dataHintDirection: 'bottom', dataHintOffset: 'small' }); + this.lockedControls.push(this.btnAddAnimation); this.numDuration = new Common.UI.MetricSpinner({ @@ -296,6 +297,7 @@ define([ value: '', maxValue: 1000, minValue: 0, + defaultUnit: '', //lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock], dataHint: '1', dataHintDirection: 'bottom', @@ -319,43 +321,6 @@ define([ return this; }, - createParametersMenuItems: function() - { - var arrEffectType = [ - {caption: this.textSmoothly, value: Asc.c_oAscSlideTransitionParams.Fade_Smoothly}, - {caption: this.textBlack, value: Asc.c_oAscSlideTransitionParams.Fade_Through_Black}, - {caption: this.textLeft, value: Asc.c_oAscSlideTransitionParams.Param_Left}, - {caption: this.textTop, value: Asc.c_oAscSlideTransitionParams.Param_Top}, - {caption: this.textRight, value: Asc.c_oAscSlideTransitionParams.Param_Right}, - {caption: this.textBottom, value: Asc.c_oAscSlideTransitionParams.Param_Bottom}, - {caption: this.textTopLeft, value: Asc.c_oAscSlideTransitionParams.Param_TopLeft}, - {caption: this.textTopRight, value: Asc.c_oAscSlideTransitionParams.Param_TopRight}, - {caption: this.textBottomLeft, value: Asc.c_oAscSlideTransitionParams.Param_BottomLeft}, - {caption: this.textBottomRight, value: Asc.c_oAscSlideTransitionParams.Param_BottomRight}, - {caption: this.textVerticalIn, value: Asc.c_oAscSlideTransitionParams.Split_VerticalIn}, - {caption: this.textVerticalOut, value: Asc.c_oAscSlideTransitionParams.Split_VerticalOut}, - {caption: this.textHorizontalIn, value: Asc.c_oAscSlideTransitionParams.Split_HorizontalIn}, - {caption: this.textHorizontalOut, value: Asc.c_oAscSlideTransitionParams.Split_HorizontalOut}, - {caption: this.textClockwise, value: Asc.c_oAscSlideTransitionParams.Clock_Clockwise}, - {caption: this.textCounterclockwise, value: Asc.c_oAscSlideTransitionParams.Clock_Counterclockwise}, - {caption: this.textWedge, value: Asc.c_oAscSlideTransitionParams.Clock_Wedge}, - {caption: this.textZoomIn, value: Asc.c_oAscSlideTransitionParams.Zoom_In}, - {caption: this.textZoomOut, value: Asc.c_oAscSlideTransitionParams.Zoom_Out}, - {caption: this.textZoomRotate, value: Asc.c_oAscSlideTransitionParams.Zoom_AndRotate} - ]; - - var itemsMenu = []; - _.each(arrEffectType, function (item) { - itemsMenu.push({ - caption: item.caption, - value: item.value, - checkable: true, - toggleGroup: 'effects' - }); - }); - return itemsMenu; - }, - onAppReady: function (config) { var me = this; (new Promise(function (accept, reject) { @@ -459,42 +424,38 @@ define([ this.widthDuration = this.widthRow(this.$el.find("#animation-duration"), this.$el.find("#animation-label-trigger"),this.widthDuration); }, - setMenuParameters: function (effectId, option, reload) + setMenuParameters: function (effectId, option) { - var effect = this.listEffects.store.findWhere({value: effectId}).attributes; - if(reload) { - this._arrEffectOptions = Common.define.effectData.getEffectOptionsData(effect.group); - } + var effect = this.listEffects.store.findWhere({value: effectId}); + var arrEffectOptions = Common.define.effectData.getEffectOptionsData(effect.get('group'), effect.get('value')); if (!this.listEffects.isDisabled()) { - this.btnParameters.setDisabled(effect.group === 'none' || !this._arrEffectOptions); - this.btnPreview.setDisabled(effect.group === 'none'); - this.numDuration.setDisabled(effect.group === 'none'); + this.btnParameters.setDisabled(!arrEffectOptions); } - if(!this._arrEffectOptions) - return undefined; + if(!arrEffectOptions) { + this.btnParameters.menu.removeAll(); + this._effectId = effectId + return undefined; + } var selectedElement; - this.btnParameters.menu.removeAll(); - if(this._arrEffectOptions[effect.value] && this._arrEffectOptions[effect.value].length>0) { - var i=0; - this._arrEffectOptions[effect.value].forEach(function (opt, index) { + if (this._effectId != effectId) { + this.btnParameters.menu.removeAll(); + arrEffectOptions.forEach(function (opt, index) { + opt.checkable = true; + opt.toggleGroup ='animateeffects'; this.btnParameters.menu.addItem(opt); - this.btnParameters.menu.items[index].checkable=true; - if((option!=undefined)&&(opt.value==option)) - i = index; + (opt.value==option) && (selectedElement = this.btnParameters.menu.items[index]); }, this); - selectedElement = this.btnParameters.menu.items[i]; - selectedElement.setChecked(true); } else { - selectedElement = undefined; + this.btnParameters.menu.items.forEach(function (opt) { + (opt.value == option) && (selectedElement = opt); + }); } - - if (!this.listEffects.isDisabled()) { - this.btnParameters.setDisabled(!selectedElement); - } - - return (selectedElement)?selectedElement.value:undefined; + (selectedElement == undefined) && (selectedElement = this.btnParameters.menu.items[0]) + selectedElement.setChecked(true); + this._effectId = effectId; + return selectedElement.value; }, @@ -509,41 +470,10 @@ define([ strRewind: 'Rewind', strRepeat: 'Repeat', strTrigger: 'Trigger', - textStartOnClick: 'On Click', textStartWithPrevious: 'With Previous', textStartAfterPrevious: 'After Previous', - - textNone: 'None', - textFade: 'Fade', - textPush: 'Push', - textWipe: 'Wipe', - textSplit: 'Split', - textUnCover: 'UnCover', - textCover: 'Cover', - textClock: 'Clock', - textZoom: 'Zoom', - - textSmoothly: 'Smoothly', - textBlack: 'Through Black', - textLeft: 'Left', - textTop: 'Top', - textRight: 'Right', - textBottom: 'Bottom', - textTopLeft: 'Top-Left', - textTopRight: 'Top-Right', - textBottomLeft: 'Bottom-Left', - textBottomRight: 'Bottom-Right', - textVerticalIn: 'Vertical In', - textVerticalOut: 'Vertical Out', - textHorizontalIn: 'Horizontal In', - textHorizontalOut: 'Horizontal Out', - textClockwise: 'Clockwise', - textCounterclockwise: 'Counterclockwise', - textWedge: 'Wedge', - textZoomIn: 'Zoom In', - textZoomOut: 'Zoom Out', - textZoomRotate: 'Zoom and Rotate' + textNone: 'None' } }()), PE.Views.Animation || {})); diff --git a/apps/presentationeditor/main/app/view/AnimationDialog.js b/apps/presentationeditor/main/app/view/AnimationDialog.js index 2b64623cd..e465cc387 100644 --- a/apps/presentationeditor/main/app/view/AnimationDialog.js +++ b/apps/presentationeditor/main/app/view/AnimationDialog.js @@ -64,17 +64,15 @@ define([ this.allEffects = Common.define.effectData.getEffectFullData(); this.options.tpl = _.template(this.template)(this.options); this.api = this.options.api; - this.activEffect = this.options.Effect; - if (this.activEffect != undefined) { - var itemEffect= this.allEffects.findWhere({value: this.activEffect}); + this.activeEffect = this.options.Effect; + if (this.activeEffect != undefined) { + var itemEffect= this.allEffects.findWhere({value: this.activeEffect}); this.activeGroup = itemEffect.group; this.activeLevel = itemEffect.level; } Common.UI.Window.prototype.initialize.call(this, this.options); }, - setEvents: function() { - this.cmbGroup.on('selected', _.bind(this.onGroupSelect,this)); - } , + render: function() { Common.UI.Window.prototype.render.call(this); @@ -92,35 +90,45 @@ define([ data : Common.define.effectData.getEffectGroupData(), value : (this.activEffect != undefined)?this.activeGroup:undefined }); + this.cmbGroup.on('selected', _.bind(this.onGroupSelect,this)); this.cmbLevel = new Common.UI.ComboBox({ el : $('#animation-level'), cls: 'input-group-nr', editable: false, style : 'margin-top: 16px; width: 100%;', - takeFocusOnClose: true, - data : Common.define.effectData.getLevelEffect(false) + takeFocusOnClose: true }); + this.cmbLevel.on('selected', _.bind(this.onLevelSelect,this)); this.lstEffectList = new Common.UI.ListView({ el : $('#animation-list'), - scroll : true, - data : (this.activEffect != undefined)?this.allEffects.where({group: this.activeGroup, level: this.activeLevel}):undefined + itemTemplate: _.template('
<%= displayValue %>
'), + scroll : true }); this.chPreview = new Common.UI.CheckBox({ el : $('#animation-setpreview'), labelText : this.textPreviewEffect }); - - this.setEvents.call(this); - + this.cmbGroup.selectRecord(this.cmbGroup.store.models[0]); + this.onGroupSelect(undefined,this.cmbGroup.store.models[0]); }, + onGroupSelect: function (combo, record) { - this.activeGroup = record.value; - this.cmbLevel.data=Common.define.effectData.getLevelEffect(record.id == 'menu-effect-group-path'); - this.cmbLevel.setValue(this.cmbLevel.data[0].displayValue); + this.activeGroup = record.id; + this.cmbLevel.store.reset(Common.define.effectData.getLevelEffect(record.id == 'menu-effect-group-path')); + this.cmbLevel.selectRecord(this.cmbLevel.store.models[0]); + this.onLevelSelect(undefined,this.cmbLevel.store.models[0]); }, + + onLevelSelect: function (combo, record) { + this.activeLevel = record.id; + var arr = _.where(this.allEffects, {group: this.activeGroup, level: this.activeLevel }); + this.lstEffectList.store.reset(arr); + this.lstEffectList.selectRecord(this.lstEffectList.store.models[0]); + }, + textTitle: 'More Effects', textPreviewEffect: 'Preview Effect'