web-apps/apps/presentationeditor/main/app/view/Transitions.js

473 lines
21 KiB
JavaScript
Raw Normal View History

2021-07-16 14:31:23 +00:00
/*
*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
/**
* Transitions.js
*
* View
*
2021-07-17 10:47:50 +00:00
* Created by Olga.Sharova on 15.07.21
* Copyright (c) 2021 Ascensio System SIA. All rights reserved.
2021-07-16 14:31:23 +00:00
*
*/
define([
'common/main/lib/util/utils',
'common/main/lib/component/Button',
'common/main/lib/component/DataView',
2021-07-21 02:25:56 +00:00
'common/main/lib/component/ComboDataView',
'common/main/lib/component/Layout',
'presentationeditor/main/app/view/SlideSettings',
2021-07-19 12:08:11 +00:00
'common/main/lib/component/MetricSpinner',
2021-07-16 14:31:23 +00:00
'common/main/lib/component/Window'
2021-08-06 03:05:27 +00:00
], function () {
2021-07-16 14:31:23 +00:00
'use strict';
2021-08-06 03:05:27 +00:00
PE.Views.Transitions = Common.UI.BaseView.extend(_.extend((function() {
2021-07-16 14:31:23 +00:00
function setEvents() {
var me = this;
2021-08-06 03:05:27 +00:00
if (me.listEffects) {
me.listEffects.on('click', _.bind(function (combo, record) {
me.fireEvent('transit:selecteffect', [combo, record]);
}, me));
2021-07-21 02:25:56 +00:00
}
2021-08-06 03:05:27 +00:00
if (me.btnPreview) {
me.btnPreview.on('click', _.bind(function(btn) {
2021-07-20 02:35:56 +00:00
me.fireEvent('transit:preview', [me.btnPreview]);
}, me));
2021-07-19 12:08:11 +00:00
}
2021-08-06 03:05:27 +00:00
if (me.btnParameters) {
2021-07-16 14:31:23 +00:00
2021-08-06 03:05:27 +00:00
me.btnParameters.menu.on('item:click', function (menu, item, e) {
2021-10-22 14:32:38 +00:00
me.fireEvent('transit:parameters', [item.value]);
2021-07-16 14:31:23 +00:00
});
}
2021-08-06 03:05:27 +00:00
if (me.btnApplyToAll) {
me.btnApplyToAll.on('click', _.bind(function(btn) {
2021-07-20 02:35:56 +00:00
me.fireEvent('transit:applytoall', [me.btnApplyToAll]);
}, me));
}
2021-08-06 03:05:27 +00:00
if (me.numDuration) {
2021-07-20 02:35:56 +00:00
me.numDuration.on('change', function(bth) {
me.fireEvent('transit:duration', [me.numDuration]);
2021-08-06 03:05:27 +00:00
}, me);
2021-07-20 02:35:56 +00:00
}
2021-08-06 03:05:27 +00:00
if (me.numDelay) {
2021-07-21 02:25:56 +00:00
me.numDelay.on('change', function(bth) {
me.fireEvent('transit:delay', [me.numDelay]);
2021-08-06 03:05:27 +00:00
}, me);
2021-07-21 02:25:56 +00:00
}
2021-08-06 03:05:27 +00:00
if (me.chStartOnClick) {
me.chStartOnClick.on('change', _.bind(function (e) {
me.fireEvent('transit:startonclick', [me.chStartOnClick, me.chStartOnClick.value, me.chStartOnClick.lastValue]);
}, me));
2021-07-21 02:25:56 +00:00
}
2021-08-06 03:05:27 +00:00
if (me.chDelay) {
me.chDelay.on('change', _.bind(function (e) {
me.fireEvent('transit:checkdelay', [me.chDelay, me.chDelay.value, me.chDelay.lastValue]);
}, me));
2021-07-27 14:18:50 +00:00
}
2021-07-16 14:31:23 +00:00
}
return {
2021-07-26 01:20:39 +00:00
// el: '#transitions-panel',
2021-07-16 14:31:23 +00:00
options: {},
initialize: function (options) {
2021-07-21 02:25:56 +00:00
2021-07-16 14:31:23 +00:00
Common.UI.BaseView.prototype.initialize.call(this, options);
2021-08-06 03:05:27 +00:00
this.toolbar = options.toolbar;
2021-07-16 14:31:23 +00:00
this.appConfig = options.mode;
2021-08-06 03:05:27 +00:00
this.$el = this.toolbar.toolbar.$el.find('#transitions-panel');
2021-12-29 16:41:15 +00:00
var _set = Common.enumLock;
2021-08-06 03:05:27 +00:00
this.lockedControls = [];
2021-07-20 02:35:56 +00:00
2021-07-21 02:25:56 +00:00
this._arrEffectName = [
2021-08-10 22:19:16 +00:00
{title: this.textNone, imageUrl: "transition-none", value: Asc.c_oAscSlideTransitionTypes.None, id: Common.UI.getId()},
{title: this.textFade, imageUrl: "transition-fade", value: Asc.c_oAscSlideTransitionTypes.Fade, id: Common.UI.getId()},
{title: this.textPush, imageUrl: "transition-push", value: Asc.c_oAscSlideTransitionTypes.Push, id: Common.UI.getId()},
{title: this.textWipe, imageUrl: "transition-wipe", value: Asc.c_oAscSlideTransitionTypes.Wipe, id: Common.UI.getId()},
{title: this.textSplit, imageUrl: "transition-split", value: Asc.c_oAscSlideTransitionTypes.Split, id: Common.UI.getId()},
{title: this.textUnCover, imageUrl: "transition-uncover", value: Asc.c_oAscSlideTransitionTypes.UnCover, id: Common.UI.getId()},
{title: this.textCover, imageUrl: "transition-cover", value: Asc.c_oAscSlideTransitionTypes.Cover, id: Common.UI.getId()},
{title: this.textClock, imageUrl: "transition-clock", value: Asc.c_oAscSlideTransitionTypes.Clock, id: Common.UI.getId()},
{title: this.textZoom, imageUrl: "transition-zoom", value: Asc.c_oAscSlideTransitionTypes.Zoom, id: Common.UI.getId(), cls: 'last-item'}
2021-07-21 02:25:56 +00:00
];
this._arrEffectName.forEach(function(item) {
item.tip = item.title;
});
2021-07-21 02:25:56 +00:00
2022-01-13 11:38:22 +00:00
var itemWidth = 88,
2021-12-03 08:07:31 +00:00
itemHeight = 40;
2021-07-21 02:25:56 +00:00
this.listEffects = new Common.UI.ComboDataView({
cls: 'combo-transitions',
2021-12-03 08:07:31 +00:00
itemWidth: itemWidth,
itemHeight: itemHeight,
style: 'min-width:110px;',
2021-12-03 08:07:31 +00:00
itemTemplate: _.template([
'<div class = "btn_item x-huge" id = "<%= id %>" style = "width: ' + itemWidth + 'px;height: ' + itemHeight + 'px;">',
'<div class = "icon toolbar__icon <%= imageUrl %>"></div>',
'<div class = "caption"><%= title %></div>',
'</div>'
].join('')),
2021-07-21 02:25:56 +00:00
enableKeyEvents: true,
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
dataHintDirection: 'bottom',
2021-08-17 21:56:59 +00:00
dataHintOffset: '-16, 0',
delayRenderTips: true,
2021-07-21 02:25:56 +00:00
beforeOpenHandler: function (e) {
var cmp = this,
2021-08-04 22:50:25 +00:00
menu = cmp.openButton.menu;
2021-07-21 02:25:56 +00:00
if (menu.cmpEl) {
menu.menuAlignEl = cmp.cmpEl;
menu.menuAlign = 'tl-tl';
menu.cmpEl.css({
2021-08-06 03:05:27 +00:00
'width': cmp.cmpEl.width() - cmp.openButton.$el.width(),
2021-07-21 02:25:56 +00:00
'min-height': cmp.cmpEl.height()
});
}
if (cmp.menuPicker.scroller) {
cmp.menuPicker.scroller.update({
includePadding: true,
suppressScrollX: true
});
}
cmp.removeTips();
}
});
2021-08-02 01:37:23 +00:00
this.lockedControls.push(this.listEffects);
2021-07-21 02:25:56 +00:00
this.listEffects.menuPicker.store.add(this._arrEffectName);
2021-07-19 12:08:11 +00:00
this.btnPreview = new Common.UI.Button({
2021-08-11 08:51:55 +00:00
cls: 'btn-toolbar', // x-huge icon-top',
2021-07-19 12:08:11 +00:00
caption: this.txtPreview,
split: false,
2021-08-11 08:51:55 +00:00
iconCls: 'toolbar__icon preview-transitions',
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
2021-08-17 21:56:59 +00:00
dataHintDirection: 'left',
dataHintOffset: 'medium'
2021-07-19 12:08:11 +00:00
});
2021-08-02 01:37:23 +00:00
this.lockedControls.push(this.btnPreview);
2021-07-20 02:35:56 +00:00
2021-08-06 03:05:27 +00:00
this.btnParameters = new Common.UI.Button({
2021-07-28 23:50:34 +00:00
cls: 'btn-toolbar x-huge icon-top',
2021-08-06 03:05:27 +00:00
caption: this.txtParameters,
2021-08-11 12:59:56 +00:00
iconCls: 'toolbar__icon icon transition-none',
2021-08-03 19:41:10 +00:00
menu: new Common.UI.Menu({
2021-08-06 03:05:27 +00:00
items: this.createParametersMenuItems()}),
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
dataHintDirection: 'bottom',
2021-08-17 21:56:59 +00:00
dataHintOffset: 'small'
2021-07-17 10:47:50 +00:00
});
2021-08-06 03:05:27 +00:00
this.lockedControls.push(this.btnParameters);
2021-07-26 08:20:16 +00:00
2021-07-20 02:35:56 +00:00
this.btnApplyToAll = new Common.UI.Button({
cls: 'btn-toolbar',
caption: this.txtApplyToAll,
2021-07-17 10:47:50 +00:00
split: true,
2021-08-11 08:51:55 +00:00
iconCls: 'toolbar__icon transition-apply-all',
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
2021-08-17 21:56:59 +00:00
dataHintDirection: 'left',
dataHintOffset: 'medium'
2021-07-20 02:35:56 +00:00
});
2021-08-02 01:37:23 +00:00
this.lockedControls.push(this.btnApplyToAll);
2021-07-20 02:35:56 +00:00
this.numDuration = new Common.UI.MetricSpinner({
el: this.$el.find('#transit-spin-duration'),
step: 1,
width: 55,
2021-07-20 02:35:56 +00:00
value: '',
2021-08-06 03:05:27 +00:00
defaultUnit: this.txtSec,
2021-07-20 02:35:56 +00:00
maxValue: 300,
minValue: 0,
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
dataHintDirection: 'top',
2021-08-17 21:56:59 +00:00
dataHintOffset: 'small'
2021-07-20 02:35:56 +00:00
});
2021-08-02 01:37:23 +00:00
this.lockedControls.push(this.numDuration);
2021-07-26 08:20:16 +00:00
2022-01-21 09:37:24 +00:00
this.lblDuration = new Common.UI.Label({
el: this.$el.find('#transit-duration'),
iconCls: 'toolbar__icon animation-duration',
caption: this.strDuration,
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock]
});
this.lockedControls.push(this.lblDuration);
2021-07-20 02:35:56 +00:00
this.numDelay = new Common.UI.MetricSpinner({
el: this.$el.find('#transit-spin-delay'),
step: 1,
width: 55,
2021-07-20 02:35:56 +00:00
value: '',
2021-08-06 03:05:27 +00:00
defaultUnit: this.txtSec,
2021-07-20 02:35:56 +00:00
maxValue: 300,
minValue: 0,
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
dataHintDirection: 'bottom',
2021-08-17 21:56:59 +00:00
dataHintOffset: 'big'
2021-07-20 02:35:56 +00:00
});
2021-08-02 01:37:23 +00:00
this.lockedControls.push(this.numDelay);
2021-07-26 08:20:16 +00:00
2021-07-23 00:45:03 +00:00
this.chStartOnClick = new Common.UI.CheckBox({
2021-07-27 14:18:50 +00:00
el: this.$el.find('#transit-checkbox-startonclick'),
2021-08-02 01:37:23 +00:00
labelText: this.strStartOnClick,
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
2021-08-17 21:56:59 +00:00
dataHintDirection: 'left',
dataHintOffset: 'small'
2021-08-04 22:50:25 +00:00
});
2021-08-02 01:37:23 +00:00
this.lockedControls.push(this.chStartOnClick);
2021-07-27 14:18:50 +00:00
this.chDelay = new Common.UI.CheckBox({
el: this.$el.find('#transit-checkbox-delay'),
2021-08-02 01:37:23 +00:00
labelText: this.strDelay,
2021-08-11 21:26:29 +00:00
lock: [_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock],
dataHint: '1',
2021-08-17 21:56:59 +00:00
dataHintDirection: 'left',
dataHintOffset: 'small'
2021-07-27 14:18:50 +00:00
});
2021-08-02 01:37:23 +00:00
this.lockedControls.push(this.chDelay);
2021-12-29 16:41:15 +00:00
Common.Utils.lockControls(Common.enumLock.disableOnStart, true, {array: this.lockedControls});
2021-08-04 22:50:25 +00:00
2021-07-16 14:31:23 +00:00
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
},
render: function (el) {
this.boxSdk = $('#editor_sdk');
2021-08-06 03:05:27 +00:00
if (el) el.html(this.getPanel());
2021-07-16 14:31:23 +00:00
return this;
},
2021-08-06 03:05:27 +00:00
createParametersMenuItems: function()
2021-07-30 17:22:42 +00:00
{
2021-08-06 03:05:27 +00:00
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},
2021-07-31 00:36:26 +00:00
{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},
2021-07-30 17:22:42 +00:00
{caption: this.textClockwise, value: Asc.c_oAscSlideTransitionParams.Clock_Clockwise},
{caption: this.textCounterclockwise, value: Asc.c_oAscSlideTransitionParams.Clock_Counterclockwise},
2021-08-06 03:05:27 +00:00
{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},
2021-07-30 17:22:42 +00:00
{caption: this.textZoomRotate, value: Asc.c_oAscSlideTransitionParams.Zoom_AndRotate}
2021-07-31 00:36:26 +00:00
];
2021-07-30 17:22:42 +00:00
2021-08-06 03:05:27 +00:00
var itemsMenu = [];
_.each(arrEffectType, function (item) {
itemsMenu.push({
2021-07-30 17:22:42 +00:00
caption: item.caption,
value: item.value,
checkable: true,
2021-07-31 00:36:26 +00:00
toggleGroup: 'effects'
2021-08-06 03:05:27 +00:00
});
2021-07-30 17:22:42 +00:00
});
return itemsMenu;
},
2021-08-06 03:05:27 +00:00
2021-07-16 14:31:23 +00:00
onAppReady: function (config) {
var me = this;
(new Promise(function (accept, reject) {
accept();
2021-08-06 03:05:27 +00:00
})).then(function() {
2021-07-28 23:50:34 +00:00
2021-07-26 08:20:16 +00:00
setEvents.call(me);
2021-07-16 14:31:23 +00:00
});
},
getPanel: function () {
2021-08-06 03:05:27 +00:00
this.listEffects && this.listEffects.render(this.$el.find('#transit-field-effects'));
2021-07-20 02:35:56 +00:00
this.btnPreview && this.btnPreview.render(this.$el.find('#transit-button-preview'));
2021-08-07 15:44:26 +00:00
this.btnParameters && this.btnParameters.render(this.$el.find('#transit-button-parameters'));
2021-07-20 02:35:56 +00:00
this.btnApplyToAll && this.btnApplyToAll.render(this.$el.find('#transit-button-apply'));
this.renderComponent('#transit-spin-duration', this.numDuration);
this.renderComponent('#transit-spin-delay', this.numDelay);
2021-07-27 14:18:50 +00:00
this.renderComponent('#transit-checkbox-startonclick', this.chStartOnClick);
2021-08-06 03:05:27 +00:00
this.$el.find("#label-delay").innerText = this.strDelay;
2021-07-16 14:31:23 +00:00
return this.$el;
},
2021-08-06 03:05:27 +00:00
2021-07-31 00:36:26 +00:00
renderComponent: function (compid, obj)
{
2021-08-06 03:05:27 +00:00
var element = this.$el.find(compid);
2021-07-31 00:36:26 +00:00
element.parent().append(obj.el);
},
2021-07-16 14:31:23 +00:00
show: function () {
Common.UI.BaseView.prototype.show.call(this);
this.fireEvent('show', this);
},
2021-08-06 03:05:27 +00:00
getButtons: function (type) {
if (type === undefined)
2021-08-02 01:37:23 +00:00
return this.lockedControls;
return [];
},
2021-08-06 03:05:27 +00:00
2021-08-02 01:37:23 +00:00
setDisabled: function (state) {
2021-08-06 03:05:27 +00:00
this.lockedControls && this.lockedControls.forEach(function (button) {
2021-08-02 01:37:23 +00:00
button.setDisabled(state);
2021-08-06 03:05:27 +00:00
}, this);
2021-07-20 02:35:56 +00:00
},
2021-07-31 00:36:26 +00:00
2021-08-06 03:05:27 +00:00
setMenuParameters: function (effect, value)
2021-07-21 02:25:56 +00:00
{
2021-08-06 03:05:27 +00:00
var minMax = [-1, -1];
2021-07-21 02:25:56 +00:00
switch (effect) {
case Asc.c_oAscSlideTransitionTypes.Fade:
2021-08-06 03:05:27 +00:00
minMax = [0, 1];
2021-07-21 02:25:56 +00:00
break;
case Asc.c_oAscSlideTransitionTypes.Push:
2021-08-06 03:05:27 +00:00
minMax = [2, 5];
2021-07-21 02:25:56 +00:00
break;
case Asc.c_oAscSlideTransitionTypes.Wipe:
2021-08-06 03:05:27 +00:00
minMax = [2, 9];
2021-07-21 02:25:56 +00:00
break;
case Asc.c_oAscSlideTransitionTypes.Split:
2021-08-06 03:05:27 +00:00
minMax = [10, 13];
2021-07-21 02:25:56 +00:00
break;
case Asc.c_oAscSlideTransitionTypes.UnCover:
2021-08-06 03:05:27 +00:00
minMax = [2, 9];
2021-07-21 02:25:56 +00:00
break;
case Asc.c_oAscSlideTransitionTypes.Cover:
2021-08-06 03:05:27 +00:00
minMax = [2, 9];
2021-07-21 02:25:56 +00:00
break;
case Asc.c_oAscSlideTransitionTypes.Clock:
2021-08-06 03:05:27 +00:00
minMax = [14, 16];
2021-07-21 02:25:56 +00:00
break;
case Asc.c_oAscSlideTransitionTypes.Zoom:
2021-08-06 03:05:27 +00:00
minMax = [17, 19];
2021-07-21 02:25:56 +00:00
break;
}
2021-08-06 03:05:27 +00:00
2021-07-25 20:12:20 +00:00
var selectedElement;
2021-10-22 11:19:53 +00:00
2021-08-06 03:05:27 +00:00
_.each(this.btnParameters.menu.items, function (element, index) {
2021-10-22 11:19:53 +00:00
if ((index >= minMax[0])&&(index <= minMax[1])) {
2021-10-22 14:32:38 +00:00
element.setVisible(true);
2021-07-25 20:12:20 +00:00
if (value != undefined) {
2021-08-06 03:05:27 +00:00
if (value == element.value) selectedElement = element;
2021-07-25 20:12:20 +00:00
}
}
2021-10-22 14:32:38 +00:00
else
element.setVisible(false);
2021-07-21 02:25:56 +00:00
});
2021-08-02 23:06:03 +00:00
2021-08-06 03:05:27 +00:00
if (selectedElement == undefined)
selectedElement = this.btnParameters.menu.items[minMax[0]];
if (effect != Asc.c_oAscSlideTransitionTypes.None)
2021-07-25 20:12:20 +00:00
selectedElement.setChecked(true);
2021-08-06 03:05:27 +00:00
if (!this.listEffects.isDisabled()) {
this.numDelay.setDisabled(this.chDelay.getValue() !== 'checked');
this.btnParameters.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None);
2021-08-02 01:37:23 +00:00
this.btnPreview.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None);
this.numDuration.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None);
2022-01-21 09:37:24 +00:00
this.lblDuration.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None);
2021-08-02 01:37:23 +00:00
}
2021-10-22 14:32:38 +00:00
return (selectedElement)?selectedElement.value:-1;
2021-07-21 02:25:56 +00:00
},
2021-08-06 03:05:27 +00:00
txtSec: 's',
txtPreview: 'Preview',
txtParameters: 'Parameters',
2021-07-20 02:35:56 +00:00
txtApplyToAll: 'Apply to All Slides',
strDuration: 'Duration',
2021-07-31 00:36:26 +00:00
strDelay: 'Delay',
2021-07-25 20:12:20 +00:00
strStartOnClick: 'Start On Click',
2021-07-21 02:25:56 +00:00
textNone: 'None',
textFade: 'Fade',
textPush: 'Push',
textWipe: 'Wipe',
textSplit: 'Split',
textUnCover: 'UnCover',
textCover: 'Cover',
textClock: 'Clock',
textZoom: 'Zoom',
2021-07-25 20:12:20 +00:00
2021-07-20 02:35:56 +00:00
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'
2021-07-16 14:31:23 +00:00
}
2021-07-17 23:15:10 +00:00
}()), PE.Views.Transitions || {}));
2021-07-16 14:31:23 +00:00
2021-07-17 10:47:50 +00:00
});