Update generated files.

pull/183/head
Glen Cheney 7 years ago
parent 346055a593
commit 9b9d716ee8

16
dist/shuffle.js vendored

@ -457,7 +457,9 @@ var e = document.createElement('div');
e.style.cssText = 'width:10px;padding:2px;box-sizing:border-box;'; e.style.cssText = 'width:10px;padding:2px;box-sizing:border-box;';
element.appendChild(e); element.appendChild(e);
var width = window.getComputedStyle(e, null).width; var _window$getComputedSt = window.getComputedStyle(e, null);
var width = _window$getComputedSt.width;
var ret = width === '10px'; var ret = width === '10px';
element.removeChild(e); element.removeChild(e);
@ -1192,15 +1194,18 @@ var Shuffle = function (_TinyEmitter) {
}, { }, {
key: 'setItemTransitions', key: 'setItemTransitions',
value: function setItemTransitions(items) { value: function setItemTransitions(items) {
var speed = this.options.speed; var _options = this.options,
var easing = this.options.easing; speed = _options.speed,
easing = _options.easing;
var positionProps = this.options.useTransforms ? ['transform'] : ['top', 'left']; var positionProps = this.options.useTransforms ? ['transform'] : ['top', 'left'];
// Allow users to transtion other properties if they exist in the `before` // Allow users to transtion other properties if they exist in the `before`
// css mapping of the shuffle item. // css mapping of the shuffle item.
var properties = positionProps.concat(Object.keys(ShuffleItem.Css.HIDDEN.before).map(function (k) { var cssProps = Object.keys(ShuffleItem.Css.HIDDEN.before).map(function (k) {
return hyphenate(k); return hyphenate(k);
})).join(); });
var properties = positionProps.concat(cssProps).join();
items.forEach(function (item) { items.forEach(function (item) {
item.element.style.transitionDuration = speed + 'ms'; item.element.style.transitionDuration = speed + 'ms';
@ -2110,6 +2115,7 @@ var Shuffle = function (_TinyEmitter) {
// Save current duration and delay. // Save current duration and delay.
var data = elements.map(function (element) { var data = elements.map(function (element) {
var style = element.style; var style = element.style;
var duration = style.transitionDuration; var duration = style.transitionDuration;
var delay = style.transitionDelay; var delay = style.transitionDelay;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -457,7 +457,9 @@ var e = document.createElement('div');
e.style.cssText = 'width:10px;padding:2px;box-sizing:border-box;'; e.style.cssText = 'width:10px;padding:2px;box-sizing:border-box;';
element.appendChild(e); element.appendChild(e);
var width = window.getComputedStyle(e, null).width; var _window$getComputedSt = window.getComputedStyle(e, null);
var width = _window$getComputedSt.width;
var ret = width === '10px'; var ret = width === '10px';
element.removeChild(e); element.removeChild(e);
@ -1192,15 +1194,18 @@ var Shuffle = function (_TinyEmitter) {
}, { }, {
key: 'setItemTransitions', key: 'setItemTransitions',
value: function setItemTransitions(items) { value: function setItemTransitions(items) {
var speed = this.options.speed; var _options = this.options,
var easing = this.options.easing; speed = _options.speed,
easing = _options.easing;
var positionProps = this.options.useTransforms ? ['transform'] : ['top', 'left']; var positionProps = this.options.useTransforms ? ['transform'] : ['top', 'left'];
// Allow users to transtion other properties if they exist in the `before` // Allow users to transtion other properties if they exist in the `before`
// css mapping of the shuffle item. // css mapping of the shuffle item.
var properties = positionProps.concat(Object.keys(ShuffleItem.Css.HIDDEN.before).map(function (k) { var cssProps = Object.keys(ShuffleItem.Css.HIDDEN.before).map(function (k) {
return hyphenate(k); return hyphenate(k);
})).join(); });
var properties = positionProps.concat(cssProps).join();
items.forEach(function (item) { items.forEach(function (item) {
item.element.style.transitionDuration = speed + 'ms'; item.element.style.transitionDuration = speed + 'ms';
@ -2110,6 +2115,7 @@ var Shuffle = function (_TinyEmitter) {
// Save current duration and delay. // Save current duration and delay.
var data = elements.map(function (element) { var data = elements.map(function (element) {
var style = element.style; var style = element.style;
var duration = style.transitionDuration; var duration = style.transitionDuration;
var delay = style.transitionDelay; var delay = style.transitionDelay;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save