Skip to content

Commit 28c191b

Browse files
committed
update keyframes
1 parent 4d34143 commit 28c191b

File tree

4 files changed

+842
-503
lines changed

4 files changed

+842
-503
lines changed

dist/jquery.keyframes.js

+39-65
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,47 @@ Object.defineProperty(exports, "__esModule", {
6565
});
6666
exports.default = void 0;
6767

68-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
68+
function _extends() {
69+
_extends = Object.assign || function (target) {
70+
for (var i = 1; i < arguments.length; i++) {
71+
var source = arguments[i];
72+
73+
for (var key in source) {
74+
if (Object.prototype.hasOwnProperty.call(source, key)) {
75+
target[key] = source[key];
76+
}
77+
}
78+
}
79+
80+
return target;
81+
};
6982

70-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
83+
return _extends.apply(this, arguments);
84+
}
85+
86+
function _classCallCheck(instance, Constructor) {
87+
if (!(instance instanceof Constructor)) {
88+
throw new TypeError("Cannot call a class as a function");
89+
}
90+
}
7191

72-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
92+
function _defineProperties(target, props) {
93+
for (var i = 0; i < props.length; i++) {
94+
var descriptor = props[i];
95+
descriptor.enumerable = descriptor.enumerable || false;
96+
descriptor.configurable = true;
97+
if ("value" in descriptor) descriptor.writable = true;
98+
Object.defineProperty(target, descriptor.key, descriptor);
99+
}
100+
}
73101

74-
require('es6-object-assign/auto');
102+
function _createClass(Constructor, protoProps, staticProps) {
103+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
104+
if (staticProps) _defineProperties(Constructor, staticProps);
105+
return Constructor;
106+
}
75107

76-
var Keyframes =
77-
/*#__PURE__*/
78-
function () {
108+
var Keyframes = function () {
79109
function Keyframes(elem) {
80110
_classCallCheck(this, Keyframes);
81111

@@ -149,14 +179,15 @@ function () {
149179
key: "playCSS",
150180
value: function playCSS(frameOptions) {
151181
var animObjToStr = function animObjToStr(obj) {
152-
var newObj = Object.assign({}, {
182+
var newObj = _extends({}, {
153183
duration: '0s',
154184
timingFunction: 'ease',
155185
delay: '0s',
156186
iterationCount: 1,
157187
direction: 'normal',
158188
fillMode: 'forwards'
159189
}, obj);
190+
160191
return [newObj.name, newObj.duration, newObj.timingFunction, newObj.delay, newObj.iterationCount, newObj.direction, newObj.fillMode].join(' ');
161192
};
162193

@@ -268,61 +299,4 @@ if (typeof document !== 'undefined') {
268299
var _default = Keyframes;
269300
exports.default = _default;
270301

271-
},{"es6-object-assign/auto":3}],3:[function(require,module,exports){
272-
'use strict';
273-
274-
require('./index').polyfill();
275-
276-
},{"./index":4}],4:[function(require,module,exports){
277-
/**
278-
* Code refactored from Mozilla Developer Network:
279-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
280-
*/
281-
'use strict';
282-
283-
function assign(target, firstSource) {
284-
if (target === undefined || target === null) {
285-
throw new TypeError('Cannot convert first argument to object');
286-
}
287-
288-
var to = Object(target);
289-
290-
for (var i = 1; i < arguments.length; i++) {
291-
var nextSource = arguments[i];
292-
293-
if (nextSource === undefined || nextSource === null) {
294-
continue;
295-
}
296-
297-
var keysArray = Object.keys(Object(nextSource));
298-
299-
for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
300-
var nextKey = keysArray[nextIndex];
301-
var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
302-
303-
if (desc !== undefined && desc.enumerable) {
304-
to[nextKey] = nextSource[nextKey];
305-
}
306-
}
307-
}
308-
309-
return to;
310-
}
311-
312-
function polyfill() {
313-
if (!Object.assign) {
314-
Object.defineProperty(Object, 'assign', {
315-
enumerable: false,
316-
configurable: true,
317-
writable: true,
318-
value: assign
319-
});
320-
}
321-
}
322-
323-
module.exports = {
324-
assign: assign,
325-
polyfill: polyfill
326-
};
327-
328302
},{}]},{},[1]);

dist/jquery.keyframes.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)