Merge pull request #1440 from ONLYOFFICE/feature/fix-animation
Fix animation
This commit is contained in:
commit
a69310886d
|
@ -792,86 +792,86 @@ define(function(){ 'use strict';
|
||||||
|
|
||||||
getEffectGroupData: function () {
|
getEffectGroupData: function () {
|
||||||
return [
|
return [
|
||||||
{id: 'menu-effect-group-entrance', value: AscFormat.PRESET_CLASS_ENTR, caption: this.textEntrance},
|
{id: 'menu-effect-group-entrance', value: AscFormat.PRESET_CLASS_ENTR, caption: this.textEntrance, iconClsCustom: 'animation-entrance-custom'},
|
||||||
{id: 'menu-effect-group-emphasis', value: AscFormat.PRESET_CLASS_EMPH, caption: this.textEmphasis},
|
{id: 'menu-effect-group-emphasis', value: AscFormat.PRESET_CLASS_EMPH, caption: this.textEmphasis, iconClsCustom: 'animation-emphasis-custom'},
|
||||||
{id: 'menu-effect-group-exit', value: AscFormat.PRESET_CLASS_EXIT, caption: this.textExit},
|
{id: 'menu-effect-group-exit', value: AscFormat.PRESET_CLASS_EXIT, caption: this.textExit, iconClsCustom: 'animation-exit-custom'},
|
||||||
{id: 'menu-effect-group-path', value: AscFormat.PRESET_CLASS_PATH, caption: this.textPath}
|
{id: 'menu-effect-group-path', value: AscFormat.PRESET_CLASS_PATH, caption: this.textPath, iconClsCustom: 'animation-motion_paths-custom'}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
||||||
getEffectData: function () {
|
getEffectData: function () {
|
||||||
return [
|
return [
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_APPEAR, iconCls: 'animation-entrance-appear', displayValue: this.textAppear},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_APPEAR, iconCls: 'animation-entrance-appear', displayValue: this.textAppear},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FADE, iconCls: 'animation-entrance-fade', displayValue: this.textFade},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FADE, iconCls: 'animation-entrance-fade', displayValue: this.textFade},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FLY_IN_FROM, iconCls: 'animation-entrance-fly_in', displayValue: this.textFlyIn},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FLY_IN_FROM, iconCls: 'animation-entrance-fly_in', displayValue: this.textFlyIn},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FLOAT, iconCls: 'animation-entrance-float_in', displayValue: this.textFloatIn},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_FLOAT, iconCls: 'animation-entrance-float_in', displayValue: this.textFloatIn},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_SPLIT, iconCls: 'animation-entrance-split', displayValue: this.textSplit},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_SPLIT, iconCls: 'animation-entrance-split', displayValue: this.textSplit},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_WIPE_FROM, iconCls: 'animation-entrance-wipe', displayValue: this.textWipe},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_WIPE_FROM, iconCls: 'animation-entrance-wipe', displayValue: this.textWipe},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_BOX, iconCls: 'animation-entrance-shape', displayValue: this.textBox},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_BOX, iconCls: 'animation-entrance-shape', displayValue: this.textBox},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_CIRCLE, iconCls: 'animation-entrance-shape', displayValue: this.textCircle},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_CIRCLE, iconCls: 'animation-entrance-shape', displayValue: this.textCircle},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_PLUS, iconCls: 'animation-entrance-shape', displayValue: this.textPlus},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_PLUS, iconCls: 'animation-entrance-shape', displayValue: this.textPlus},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_DIAMOND, iconCls: 'animation-entrance-shape', displayValue: this.textDiamond},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_DIAMOND, iconCls: 'animation-entrance-shape', displayValue: this.textDiamond},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_WHEEL, iconCls: 'animation-entrance-wheel', displayValue: this.textWheel},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_WHEEL, iconCls: 'animation-entrance-wheel', displayValue: this.textWheel},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_RANDOM_BARS, iconCls: 'animation-entrance-random_bars', displayValue: this.textRandomBars},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_RANDOM_BARS, iconCls: 'animation-entrance-random_bars', displayValue: this.textRandomBars},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_GROW_AND_TURN, iconCls: 'animation-entrance-grow_turn', displayValue: this.textGrowTurn},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_GROW_AND_TURN, iconCls: 'animation-entrance-grow_turn', displayValue: this.textGrowTurn},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_ZOOM, iconCls: 'animation-entrance-zoom', displayValue: this.textZoom},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_ZOOM, iconCls: 'animation-entrance-zoom', displayValue: this.textZoom},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_SWIVEL, iconCls: 'animation-entrance-swivel', displayValue: this.textSwivel},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_SWIVEL, iconCls: 'animation-entrance-swivel', displayValue: this.textSwivel},
|
||||||
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_BOUNCE, iconCls: 'animation-entrance-bounce', displayValue: this.textBounce},
|
{group: 'menu-effect-group-entrance', value: AscFormat.ENTRANCE_BOUNCE, iconCls: 'animation-entrance-bounce', displayValue: this.textBounce},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_PULSE, iconCls: 'animation-emphasis-pulse', displayValue: this.textPulse},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_PULSE, iconCls: 'animation-emphasis-pulse', displayValue: this.textPulse},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_COLOR_PULSE, iconCls: 'animation-emphasis-color_pulse', displayValue: this.textColorPulse},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_COLOR_PULSE, iconCls: 'animation-emphasis-color_pulse', displayValue: this.textColorPulse},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_TEETER, iconCls: 'animation-emphasis-teeter', displayValue: this.textTeeter},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_TEETER, iconCls: 'animation-emphasis-teeter', displayValue: this.textTeeter},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_SPIN, iconCls: 'animation-emphasis-spin', displayValue: this.textSpin},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_SPIN, iconCls: 'animation-emphasis-spin', displayValue: this.textSpin},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_GROW_SHRINK, iconCls: 'animation-emphasis-grow_or_Shrink', displayValue: this.textGrowShrink},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_GROW_SHRINK, iconCls: 'animation-emphasis-grow_or_Shrink', displayValue: this.textGrowShrink},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_DESATURATE, iconCls: 'animation-emphasis-desaturate', displayValue: this.textDesaturate},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_DESATURATE, iconCls: 'animation-emphasis-desaturate', displayValue: this.textDesaturate},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_CONTRASTING_DARKEN, iconCls: 'animation-emphasis-darken', displayValue: this.textDarken},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_CONTRASTING_DARKEN, iconCls: 'animation-emphasis-darken', displayValue: this.textDarken},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_LIGHTEN, iconCls: 'animation-emphasis-lighten', displayValue: this.textLighten},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_LIGHTEN, iconCls: 'animation-emphasis-lighten', displayValue: this.textLighten},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_TRANSPARENCY, iconCls: 'animation-emphasis-transparency', displayValue: this.textTransparency},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_TRANSPARENCY, iconCls: 'animation-emphasis-transparency', displayValue: this.textTransparency},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_OBJECT_COLOR, iconCls: 'animation-emphasis-object_color', displayValue: this.textObjectColor},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_OBJECT_COLOR, iconCls: 'animation-emphasis-object_color', displayValue: this.textObjectColor},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR, iconCls: 'animation-emphasis-complementary_color', displayValue: this.textComplementaryColor},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_COMPLEMENTARY_COLOR, iconCls: 'animation-emphasis-complementary_color', displayValue: this.textComplementaryColor},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_LINE_COLOR, iconCls: 'animation-emphasis-line_color', displayValue: this.textLineColor},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_LINE_COLOR, iconCls: 'animation-emphasis-line_color', displayValue: this.textLineColor},
|
||||||
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_FILL_COLOR, iconCls: 'animation-emphasis-fill_color', displayValue: this.textFillColor},
|
{group: 'menu-effect-group-emphasis', value: AscFormat.EMPHASIS_FILL_COLOR, iconCls: 'animation-emphasis-fill_color', displayValue: this.textFillColor},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_DISAPPEAR, iconCls: 'animation-exit-Disappear', displayValue: this.textDisappear},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_DISAPPEAR, iconCls: 'animation-exit-disappear', displayValue: this.textDisappear},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_FADE, iconCls: 'animation-exit-fade', displayValue: this.textFade},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_FADE, iconCls: 'animation-exit-fade', displayValue: this.textFade},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_FLY_OUT_TO, iconCls: 'animation-exit-fly_out', displayValue: this.textFlyOut},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_FLY_OUT_TO, iconCls: 'animation-exit-fly_out', displayValue: this.textFlyOut},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_FLOAT, iconCls: 'animation-exit-float_out', displayValue: this.textFloatOut},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_FLOAT, iconCls: 'animation-exit-float_out', displayValue: this.textFloatOut},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_SPLIT, iconCls: 'animation-exit-split', displayValue: this.textSplit},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_SPLIT, iconCls: 'animation-exit-split', displayValue: this.textSplit},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_WIPE_FROM, iconCls: 'animation-exit-wipe', displayValue: this.textWipe},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_WIPE_FROM, iconCls: 'animation-exit-wipe', displayValue: this.textWipe},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_BOX, iconCls: 'animation-exit-shape', displayValue: this.textBox},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_BOX, iconCls: 'animation-exit-shape', displayValue: this.textBox},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_CIRCLE, iconCls: 'animation-exit-shape', displayValue: this.textCircle},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_CIRCLE, iconCls: 'animation-exit-shape', displayValue: this.textCircle},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_PLUS, iconCls: 'animation-exit-shape', displayValue: this.textPlus},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_PLUS, iconCls: 'animation-exit-shape', displayValue: this.textPlus},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_DIAMOND, iconCls: 'animation-exit-shape', displayValue: this.textDiamond},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_DIAMOND, iconCls: 'animation-exit-shape', displayValue: this.textDiamond},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_WHEEL, iconCls: 'animation-exit-wheel', displayValue: this.textWheel},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_WHEEL, iconCls: 'animation-exit-wheel', displayValue: this.textWheel},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_RANDOM_BARS, iconCls: 'animation-exit-random_bars', displayValue: this.textRandomBars},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_RANDOM_BARS, iconCls: 'animation-exit-random_bars', displayValue: this.textRandomBars},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_SHRINK_AND_TURN, iconCls: 'animation-exit-shrink_turn', displayValue: this.textShrinkTurn},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_SHRINK_AND_TURN, iconCls: 'animation-exit-shrink_turn', displayValue: this.textShrinkTurn},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_ZOOM, iconCls: 'animation-exit-zoom', displayValue: this.textZoom},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_ZOOM, iconCls: 'animation-exit-zoom', displayValue: this.textZoom},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_BASIC_SWIVEL, iconCls: 'animation-exit-swivel', displayValue: this.textSwivel},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_BASIC_SWIVEL, iconCls: 'animation-exit-swivel', displayValue: this.textSwivel},
|
||||||
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_BOUNCE, iconCls: 'animation-exit-bounce', displayValue: this.textBounce},
|
{group: 'menu-effect-group-exit', value: AscFormat.EXIT_BOUNCE, iconCls: 'animation-exit-bounce', displayValue: this.textBounce},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_DOWN, iconCls: 'animation-motion_paths-lines', displayValue: this.textDown},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_DOWN, iconCls: 'animation-motion_paths-lines', displayValue: this.textDown},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_LEFT, iconCls: 'animation-motion_paths-lines', displayValue: this.textLeft},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_LEFT, iconCls: 'animation-motion_paths-lines', displayValue: this.textLeft},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT, iconCls: 'animation-motion_paths-lines', displayValue: this.textRight},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT, iconCls: 'animation-motion_paths-lines', displayValue: this.textRight},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_UP, iconCls: 'animation-motion_paths-lines', displayValue: this.textUp},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_UP, iconCls: 'animation-motion_paths-lines', displayValue: this.textUp},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_DOWN, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcDown},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_DOWN, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcDown},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_LEFT, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcLeft},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_LEFT, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcLeft},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_RIGHT, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcRight},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_RIGHT, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcRight},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_UP, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcUp},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_ARC_UP, iconCls: 'animation-motion_paths-arcs', displayValue: this.textArcUp},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnDown},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnDown},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN_RIGHT, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnDownRight},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_DOWN_RIGHT, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnDownRight},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnUp},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnUp},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP_RIGHT, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnUpRight},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TURN_UP_RIGHT, iconCls: 'animation-motion_paths-turns', displayValue: this.textTurnUpRight},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_CIRCLE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textCircle},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_CIRCLE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textCircle},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_DIAMOND, iconCls: 'animation-motion_paths-shapes', displayValue: this.textDiamond},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_DIAMOND, iconCls: 'animation-motion_paths-shapes', displayValue: this.textDiamond},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_EQUAL_TRIANGLE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textEqualTriangle},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_EQUAL_TRIANGLE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textEqualTriangle},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_HEXAGON, iconCls: 'animation-motion_paths-shapes', displayValue: this.textHexagon},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_HEXAGON, iconCls: 'animation-motion_paths-shapes', displayValue: this.textHexagon},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_OCTAGON, iconCls: 'animation-motion_paths-shapes', displayValue: this.textOctagon},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_OCTAGON, iconCls: 'animation-motion_paths-shapes', displayValue: this.textOctagon},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_PARALLELOGRAM, iconCls: 'animation-motion_paths-shapes', displayValue: this.textParallelogram},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_PARALLELOGRAM, iconCls: 'animation-motion_paths-shapes', displayValue: this.textParallelogram},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_PENTAGON, iconCls: 'animation-motion_paths-shapes', displayValue: this.textPentagon},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_PENTAGON, iconCls: 'animation-motion_paths-shapes', displayValue: this.textPentagon},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT_TRIANGLE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textRightTriangle},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_RIGHT_TRIANGLE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textRightTriangle},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_SQUARE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textSquare},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_SQUARE, iconCls: 'animation-motion_paths-shapes', displayValue: this.textSquare},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TRAPEZOID, iconCls: 'animation-motion_paths-shapes', displayValue: this.textTrapezoid},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_TRAPEZOID, iconCls: 'animation-motion_paths-shapes', displayValue: this.textTrapezoid},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_HORIZONTAL_FIGURE_8_FOUR, iconCls: 'animation-motion_paths-loops', displayValue: this.textHorizontalFigure},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_HORIZONTAL_FIGURE_8_FOUR, iconCls: 'animation-motion_paths-loops', displayValue: this.textHorizontalFigure},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_VERTICAL_FIGURE_8, iconCls: 'animation-motion_paths-loops', displayValue: this.textVerticalFigure},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_VERTICAL_FIGURE_8, iconCls: 'animation-motion_paths-loops', displayValue: this.textVerticalFigure},
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_LOOP_DE_LOOP, iconCls: 'animation-motion_paths-loops', displayValue: this.textLoopDeLoop},
|
{group: 'menu-effect-group-path', value: AscFormat.MOTION_LOOP_DE_LOOP, iconCls: 'animation-motion_paths-loops', displayValue: this.textLoopDeLoop}//,
|
||||||
{group: 'menu-effect-group-path', value: AscFormat.MOTION_CUSTOM_PATH, iconCls: 'animation-motion_paths-custom_path', displayValue: this.textCustomPath}
|
//{group: 'menu-effect-group-path', value: AscFormat.MOTION_CUSTOM_PATH, iconCls: 'animation-motion_paths-custom_path', displayValue: this.textCustomPath}
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -157,12 +157,13 @@ define([
|
||||||
onAnimationAdditional: function(replace) { // replace or add new additional effect
|
onAnimationAdditional: function(replace) { // replace or add new additional effect
|
||||||
var me = this;
|
var me = this;
|
||||||
(new PE.Views.AnimationDialog({
|
(new PE.Views.AnimationDialog({
|
||||||
api : this.api,
|
api : this.api,
|
||||||
activeEffect : this._state.Effect,
|
activeEffect : this._state.Effect,
|
||||||
handler: function(result, value) {
|
groupValue : this._state.EffectGroup,
|
||||||
|
handler : function(result, value) {
|
||||||
if (result == 'ok') {
|
if (result == 'ok') {
|
||||||
if (me.api) {
|
if (me.api) {
|
||||||
me.addNewEffect(value.activeEffect, value.activeGroupValue, replace);
|
me.addNewEffect(value.activeEffect, value.activeGroupValue, value.activeGroup, replace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -171,13 +172,13 @@ define([
|
||||||
|
|
||||||
onAddAnimation: function(picker, record) {
|
onAddAnimation: function(picker, record) {
|
||||||
var type = record.get('value');
|
var type = record.get('value');
|
||||||
var group = _.findWhere(Common.define.effectData.getEffectGroupData(), {id: record.get('group')}).value;
|
var group = _.findWhere(this.EffectGroups, {id: record.get('group')}).value;
|
||||||
this.addNewEffect(type, group, false);
|
this.addNewEffect(type, group, record.get('group'), false);
|
||||||
},
|
},
|
||||||
|
|
||||||
addNewEffect: function (type, group, replace) {
|
addNewEffect: function (type, group, groupName, replace) {
|
||||||
if (this._state.Effect == type) return;
|
if (this._state.Effect == type) return;
|
||||||
var parameter = this.view.setMenuParameters(type, undefined, group == this._state.EffectGroups);
|
var parameter = this.view.setMenuParameters(type, groupName, undefined);
|
||||||
this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace);
|
this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace);
|
||||||
this._state.EffectGroups = group;
|
this._state.EffectGroups = group;
|
||||||
this._state.Effect = type;
|
this._state.Effect = type;
|
||||||
|
@ -237,14 +238,13 @@ define([
|
||||||
onEffectSelect: function (combo, record) {
|
onEffectSelect: function (combo, record) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
var type = record.get('value');
|
var type = record.get('value');
|
||||||
var group = (type != AscFormat.ANIM_PRESET_NONE) ? _.findWhere(Common.define.effectData.getEffectGroupData(), {id: record.get('group')}).value : undefined;
|
var group = (type != AscFormat.ANIM_PRESET_NONE) ? _.findWhere(this.EffectGroups, {id: record.get('group')}).value : undefined;
|
||||||
this.addNewEffect(type, group, this._state.Effect != AscFormat.ANIM_PRESET_NONE);
|
this.addNewEffect(type, group, record.get('group'),this._state.Effect != AscFormat.ANIM_PRESET_NONE);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onStartSelect: function (combo, record) {
|
onStartSelect: function (combo, record) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
// this._state.StartEffect = record.value;
|
|
||||||
this.AnimationProperties.asc_putStartType(record.value);
|
this.AnimationProperties.asc_putStartType(record.value);
|
||||||
this.api.asc_SetAnimationProperties(this.AnimationProperties);
|
this.api.asc_SetAnimationProperties(this.AnimationProperties);
|
||||||
}
|
}
|
||||||
|
@ -326,7 +326,7 @@ define([
|
||||||
item = store.add(new Common.UI.DataViewModel({
|
item = store.add(new Common.UI.DataViewModel({
|
||||||
group: group.get('id'),
|
group: group.get('id'),
|
||||||
value: this._state.Effect,
|
value: this._state.Effect,
|
||||||
iconCls: 'transition-push',
|
iconCls: group.get('iconClsCustom'),
|
||||||
displayValue: rec ? rec.displayValue : '',
|
displayValue: rec ? rec.displayValue : '',
|
||||||
isCustom: true
|
isCustom: true
|
||||||
}), {at:index+1});
|
}), {at:index+1});
|
||||||
|
@ -342,8 +342,8 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
this._state.EffectOption = this.AnimationProperties.asc_getSubtype();
|
this._state.EffectOption = this.AnimationProperties.asc_getSubtype();
|
||||||
if (this._state.EffectOption !== undefined)
|
if (this._state.EffectOption !== undefined && this._state.EffectOption !== null)
|
||||||
this._state.noAnimationParam = view.setMenuParameters(this._state.Effect, this._state.EffectOption)===undefined;
|
this._state.noAnimationParam = view.setMenuParameters(this._state.Effect, _.findWhere(this.EffectGroups,{value: this._state.EffectGroup}).id, this._state.EffectOption)===undefined;
|
||||||
|
|
||||||
value = this.AnimationProperties.asc_getDuration();
|
value = this.AnimationProperties.asc_getDuration();
|
||||||
if (Math.abs(this._state.Duration - value) > 0.001 ||
|
if (Math.abs(this._state.Duration - value) > 0.001 ||
|
||||||
|
|
|
@ -253,7 +253,7 @@
|
||||||
<span id="animation-spin-duration" class="btn-slot text spinner" ></span>
|
<span id="animation-spin-duration" class="btn-slot text spinner" ></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="elset font-normal">
|
<div class="elset font-normal">
|
||||||
<div class="btn-slot" style="width: 82px;" id="animation-trigger"></div>
|
<div class="btn-slot text" id="animation-trigger"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
|
@ -267,12 +267,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="separator long"></div>
|
<div class="separator long"></div>
|
||||||
<div class="group small" style="width: 120px; min-width: 100px;">
|
<div class="group small" >
|
||||||
<div class="elset">
|
<div class="elset">
|
||||||
<div class="btn-slot" id="animation-moveearlier"></div>
|
<div class="btn-slot text" id="animation-moveearlier"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="elset font-normal">
|
<div class="elset font-normal">
|
||||||
<div class="btn-slot" id="animation-movelater"></div>
|
<div class="btn-slot text" id="animation-movelater"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -62,7 +62,7 @@ define([
|
||||||
me.fireEvent('animation:selecteffect', [combo, record]);
|
me.fireEvent('animation:selecteffect', [combo, record]);
|
||||||
}, me));
|
}, me));
|
||||||
me.listEffectsMore.on('click', _.bind(function () {
|
me.listEffectsMore.on('click', _.bind(function () {
|
||||||
me.fireEvent('animation:additional', [true]); // replace effect
|
me.fireEvent('animation:additional', [me.listEffects.menuPicker.getSelectedRec().get('value') != AscFormat.ANIM_PRESET_NONE]); // replace effect
|
||||||
}, me));
|
}, me));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,6 +159,7 @@ define([
|
||||||
this.lockedControls = [];
|
this.lockedControls = [];
|
||||||
|
|
||||||
this._arrEffectName = [{group:'none', value: AscFormat.ANIM_PRESET_NONE, iconCls: 'animation-none', displayValue: this.textNone}].concat(Common.define.effectData.getEffectData());
|
this._arrEffectName = [{group:'none', value: AscFormat.ANIM_PRESET_NONE, iconCls: 'animation-none', displayValue: this.textNone}].concat(Common.define.effectData.getEffectData());
|
||||||
|
_.forEach(this._arrEffectName,function (elm){elm.tip = elm.displayValue;});
|
||||||
this._arrEffectOptions = [];
|
this._arrEffectOptions = [];
|
||||||
var itemWidth = 87,
|
var itemWidth = 87,
|
||||||
itemHeight = 40;
|
itemHeight = 40;
|
||||||
|
@ -214,8 +215,10 @@ define([
|
||||||
iconCls: 'toolbar__icon transition-fade',
|
iconCls: 'toolbar__icon transition-fade',
|
||||||
lock: [_set.slideDeleted, _set.noSlides, _set.noAnimationPreview],
|
lock: [_set.slideDeleted, _set.noSlides, _set.noAnimationPreview],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'left',
|
/*dataHintDirection: 'left',
|
||||||
dataHintOffset: 'medium'
|
dataHintOffset: 'medium'*/
|
||||||
|
dataHintDirection: 'bottom',
|
||||||
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.btnPreview);
|
this.lockedControls.push(this.btnPreview);
|
||||||
|
|
||||||
|
@ -259,7 +262,7 @@ define([
|
||||||
this.numDuration = new Common.UI.MetricSpinner({
|
this.numDuration = new Common.UI.MetricSpinner({
|
||||||
el: this.$el.find('#animation-spin-duration'),
|
el: this.$el.find('#animation-spin-duration'),
|
||||||
step: 1,
|
step: 1,
|
||||||
width: 52,
|
width: 55,
|
||||||
value: '',
|
value: '',
|
||||||
defaultUnit: this.txtSec,
|
defaultUnit: this.txtSec,
|
||||||
maxValue: 300,
|
maxValue: 300,
|
||||||
|
@ -304,7 +307,7 @@ define([
|
||||||
this.numDelay = new Common.UI.MetricSpinner({
|
this.numDelay = new Common.UI.MetricSpinner({
|
||||||
el: this.$el.find('#animation-spin-delay'),
|
el: this.$el.find('#animation-spin-delay'),
|
||||||
step: 1,
|
step: 1,
|
||||||
width: 52,
|
width: 55,
|
||||||
value: '',
|
value: '',
|
||||||
defaultUnit: this.txtSec,
|
defaultUnit: this.txtSec,
|
||||||
maxValue: 300,
|
maxValue: 300,
|
||||||
|
@ -318,7 +321,8 @@ define([
|
||||||
|
|
||||||
this.cmbStart = new Common.UI.ComboBox({
|
this.cmbStart = new Common.UI.ComboBox({
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
menuStyle: 'width: 150px;',
|
menuStyle: 'min-width: 100%;',
|
||||||
|
editable: false,
|
||||||
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation],
|
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation],
|
||||||
data: [
|
data: [
|
||||||
{value: AscFormat.NODE_TYPE_CLICKEFFECT, displayValue: this.textStartOnClick},
|
{value: AscFormat.NODE_TYPE_CLICKEFFECT, displayValue: this.textStartOnClick},
|
||||||
|
@ -326,7 +330,8 @@ define([
|
||||||
{value: AscFormat.NODE_TYPE_AFTEREFFECT, displayValue: this.textStartAfterPrevious}
|
{value: AscFormat.NODE_TYPE_AFTEREFFECT, displayValue: this.textStartAfterPrevious}
|
||||||
],
|
],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'top'
|
dataHintDirection: 'top',
|
||||||
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.cmbStart);
|
this.lockedControls.push(this.cmbStart);
|
||||||
|
|
||||||
|
@ -343,15 +348,15 @@ define([
|
||||||
this.numRepeat = new Common.UI.MetricSpinner({
|
this.numRepeat = new Common.UI.MetricSpinner({
|
||||||
el: this.$el.find('#animation-spin-repeat'),
|
el: this.$el.find('#animation-spin-repeat'),
|
||||||
step: 1,
|
step: 1,
|
||||||
width: 88,
|
width: 55,
|
||||||
value: '',
|
value: '',
|
||||||
maxValue: 1000,
|
maxValue: 1000,
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
defaultUnit: '',
|
defaultUnit: '',
|
||||||
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation],
|
lock: [_set.slideDeleted, _set.noSlides, _set.noGraphic, _set.noAnimation],
|
||||||
dataHint: '1',
|
dataHint: '1',
|
||||||
dataHintDirection: 'bottom',
|
dataHintDirection: 'top',
|
||||||
dataHintOffset: 'big'
|
dataHintOffset: 'small'
|
||||||
});
|
});
|
||||||
this.lockedControls.push(this.numRepeat);
|
this.lockedControls.push(this.numRepeat);
|
||||||
|
|
||||||
|
@ -477,10 +482,12 @@ define([
|
||||||
return this.lockedControls;
|
return this.lockedControls;
|
||||||
},
|
},
|
||||||
|
|
||||||
setMenuParameters: function (effectId, option)
|
setMenuParameters: function (effectId, effectGroup, option)
|
||||||
{
|
{
|
||||||
var effect = _.findWhere(this.allEffects, {value: effectId});
|
var arrEffectOptions;
|
||||||
var arrEffectOptions = Common.define.effectData.getEffectOptionsData(effect.group, effect.value);
|
var effect = _.findWhere(this.allEffects, {group: effectGroup, value: effectId});
|
||||||
|
if(effect)
|
||||||
|
arrEffectOptions = Common.define.effectData.getEffectOptionsData(effect.group, effect.value);
|
||||||
if(!arrEffectOptions) {
|
if(!arrEffectOptions) {
|
||||||
this.btnParameters.menu.removeAll();
|
this.btnParameters.menu.removeAll();
|
||||||
this._effectId = effectId
|
this._effectId = effectId
|
||||||
|
|
|
@ -70,12 +70,18 @@ define([
|
||||||
this._state.activeGroup = this.EffectGroupData[0].id;
|
this._state.activeGroup = this.EffectGroupData[0].id;
|
||||||
this._state.activeGroupValue = this.EffectGroupData[0].value;
|
this._state.activeGroupValue = this.EffectGroupData[0].value;
|
||||||
this.EffectGroupData.forEach(function (item) {item.displayValue = item.caption;});
|
this.EffectGroupData.forEach(function (item) {item.displayValue = item.caption;});
|
||||||
if ((this.options.activeEffect != undefined) && (this.options.activeEffect != AscFormat.ANIM_PRESET_NONE)){
|
if ((this.options.activeEffect != undefined) && (this.options.activeEffect != AscFormat.ANIM_PRESET_NONE) && (this.options.activeEffect !== AscFormat.ANIM_PRESET_MULTIPLE)){
|
||||||
this._state.activeEffect = this.options.activeEffect;
|
this._state.activeEffect = this.options.activeEffect;
|
||||||
var itemEffect = _.findWhere(this.allEffects,{value: this._state.activeEffect});
|
this._state.activeGroupValue = this.options.groupValue;
|
||||||
this._state.activeGroup = itemEffect.group;
|
var group = _.findWhere(this.EffectGroupData, {value: this._state.activeGroupValue})
|
||||||
this._state.activeGroupValue = _.findWhere(this.EffectGroupData, {id: this._state.activeGroup}).value;
|
this._state.activeGroup = group.id;
|
||||||
this.activeLevel = itemEffect.level;
|
var itemEffect = _.findWhere(this.allEffects, {
|
||||||
|
group: this._state.activeGroup,
|
||||||
|
value: this._state.activeEffect
|
||||||
|
});
|
||||||
|
if(itemEffect)
|
||||||
|
this.activeLevel = itemEffect.level;
|
||||||
|
|
||||||
}
|
}
|
||||||
Common.UI.Window.prototype.initialize.call(this, this.options);
|
Common.UI.Window.prototype.initialize.call(this, this.options);
|
||||||
},
|
},
|
||||||
|
@ -154,7 +160,9 @@ define([
|
||||||
fillEffect: function () {
|
fillEffect: function () {
|
||||||
var arr = _.where(this.allEffects, {group: this._state.activeGroup, level: this.activeLevel });
|
var arr = _.where(this.allEffects, {group: this._state.activeGroup, level: this.activeLevel });
|
||||||
this.lstEffectList.store.reset(arr);
|
this.lstEffectList.store.reset(arr);
|
||||||
var item = (this._state.activeEffect != undefined)?this.lstEffectList.store.findWhere({value: this._state.activeEffect}):this.lstEffectList.store.at(0);
|
var item = this.lstEffectList.store.findWhere({value: this._state.activeEffect});
|
||||||
|
if(!item)
|
||||||
|
item = this.lstEffectList.store.at(0);
|
||||||
this.lstEffectList.selectRecord(item);
|
this.lstEffectList.selectRecord(item);
|
||||||
this._state.activeEffect = item.get('value');
|
this._state.activeEffect = item.get('value');
|
||||||
},
|
},
|
||||||
|
|
|
@ -221,7 +221,7 @@ define([
|
||||||
this.numDuration = new Common.UI.MetricSpinner({
|
this.numDuration = new Common.UI.MetricSpinner({
|
||||||
el: this.$el.find('#transit-spin-duration'),
|
el: this.$el.find('#transit-spin-duration'),
|
||||||
step: 1,
|
step: 1,
|
||||||
width: 50,
|
width: 55,
|
||||||
value: '',
|
value: '',
|
||||||
defaultUnit: this.txtSec,
|
defaultUnit: this.txtSec,
|
||||||
maxValue: 300,
|
maxValue: 300,
|
||||||
|
@ -236,7 +236,7 @@ define([
|
||||||
this.numDelay = new Common.UI.MetricSpinner({
|
this.numDelay = new Common.UI.MetricSpinner({
|
||||||
el: this.$el.find('#transit-spin-delay'),
|
el: this.$el.find('#transit-spin-delay'),
|
||||||
step: 1,
|
step: 1,
|
||||||
width: 60,
|
width: 55,
|
||||||
value: '',
|
value: '',
|
||||||
defaultUnit: this.txtSec,
|
defaultUnit: this.txtSec,
|
||||||
maxValue: 300,
|
maxValue: 300,
|
||||||
|
|
|
@ -2101,6 +2101,7 @@
|
||||||
"PE.Views.Toolbar.textAlignMiddle": "Align text to the middle",
|
"PE.Views.Toolbar.textAlignMiddle": "Align text to the middle",
|
||||||
"PE.Views.Toolbar.textAlignRight": "Align text right",
|
"PE.Views.Toolbar.textAlignRight": "Align text right",
|
||||||
"PE.Views.Toolbar.textAlignTop": "Align text to the top",
|
"PE.Views.Toolbar.textAlignTop": "Align text to the top",
|
||||||
|
"PE.Views.Toolbar.textTabAnimation": "Animation",
|
||||||
"PE.Views.Toolbar.textArrangeBack": "Send to Background",
|
"PE.Views.Toolbar.textArrangeBack": "Send to Background",
|
||||||
"PE.Views.Toolbar.textArrangeBackward": "Send Backward",
|
"PE.Views.Toolbar.textArrangeBackward": "Send Backward",
|
||||||
"PE.Views.Toolbar.textArrangeForward": "Bring Forward",
|
"PE.Views.Toolbar.textArrangeForward": "Bring Forward",
|
||||||
|
|
Loading…
Reference in a new issue