Fixed some IE issues with new code base.
This commit is contained in:
parent
a1f59fe181
commit
2a309434c1
37
.eslintrc
Normal file
37
.eslintrc
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"extends": [
|
||||
// Extend the airbnb eslint config
|
||||
"airbnb-base",
|
||||
// Vue
|
||||
"plugin:vue/vue3-recommended"
|
||||
],
|
||||
"parser": "vue-eslint-parser",
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
// ESLint will not look in parent folders for eslint configs
|
||||
"root": false,
|
||||
// An environment defines global variables that are predefined.
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
// Rule overrides
|
||||
"rules": {
|
||||
// Disable no-params-reassign for properties
|
||||
"no-param-reassign": ["error", { "props": false }],
|
||||
// Allow strict mode (we are not dealing with modules)
|
||||
"strict": [0],
|
||||
// Disable bitwise
|
||||
"no-bitwise": 0,
|
||||
// Allow use of "private methods"
|
||||
"no-underscore-dangle": 0,
|
||||
// Disable alert rule till we have a CE in place
|
||||
"no-alert": 0,
|
||||
// Allow extensions on imports
|
||||
"import/extensions": 0,
|
||||
// Allow exporting mutable 'let' binding
|
||||
"import/no-mutable-exports": 0
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* KUTE.js Base v2.1.1-alpha1 (http://thednp.github.io/kute.js)
|
||||
* KUTE.js Base v2.1.1-alpha2 (http://thednp.github.io/kute.js)
|
||||
* Copyright 2015-2021 © thednp
|
||||
* Licensed under MIT (https://github.com/thednp/kute.js/blob/master/LICENSE)
|
||||
*/
|
||||
|
@ -9,7 +9,7 @@
|
|||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.KUTE = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
var version = "2.1.1-alpha1";
|
||||
var version = "2.1.1-alpha2";
|
||||
|
||||
var KUTE = {};
|
||||
|
||||
|
@ -178,7 +178,9 @@
|
|||
if (!KUTE[fnObj]) { KUTE[fnObj] = componentLink[fnObj]; }
|
||||
} else {
|
||||
Object.keys(this$1.valuesEnd).forEach(function (prop) {
|
||||
Object.keys(this$1.valuesEnd[prop]).forEach(function (i) {
|
||||
var propObject = this$1.valuesEnd[prop];
|
||||
if (propObject instanceof Object) {
|
||||
Object.keys(propObject).forEach(function (i) {
|
||||
if (typeof (componentLink[i]) === 'function') { // transformCSS3
|
||||
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
|
||||
} else {
|
||||
|
@ -189,6 +191,7 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
4
demo/src/kute-base.min.js
vendored
4
demo/src/kute-base.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* KUTE.js Extra v2.1.1-alpha1 (http://thednp.github.io/kute.js)
|
||||
* KUTE.js Extra v2.1.1-alpha2 (http://thednp.github.io/kute.js)
|
||||
* Copyright 2015-2021 © thednp
|
||||
* Licensed under MIT (https://github.com/thednp/kute.js/blob/master/LICENSE)
|
||||
*/
|
||||
|
@ -82,7 +82,7 @@
|
|||
return t2;
|
||||
};
|
||||
|
||||
var version = "2.1.1-alpha1";
|
||||
var version = "2.1.1-alpha2";
|
||||
|
||||
var KUTE = {};
|
||||
|
||||
|
@ -228,7 +228,9 @@
|
|||
if (!KUTE[fnObj]) { KUTE[fnObj] = componentLink[fnObj]; }
|
||||
} else {
|
||||
Object.keys(this$1.valuesEnd).forEach(function (prop) {
|
||||
Object.keys(this$1.valuesEnd[prop]).forEach(function (i) {
|
||||
var propObject = this$1.valuesEnd[prop];
|
||||
if (propObject instanceof Object) {
|
||||
Object.keys(propObject).forEach(function (i) {
|
||||
if (typeof (componentLink[i]) === 'function') { // transformCSS3
|
||||
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
|
||||
} else {
|
||||
|
@ -239,6 +241,7 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -1623,14 +1626,10 @@
|
|||
}
|
||||
function prepareClip(tweenProp, value) {
|
||||
if (value instanceof Array) {
|
||||
// return [trueDimension(value[0]),
|
||||
// trueDimension(value[1]), trueDimension(value[2]), trueDimension(value[3])];
|
||||
return value.map(function (x) { return trueDimension(x); });
|
||||
}
|
||||
var clipValue = value.replace(/rect|\(|\)/g, '');
|
||||
clipValue = /,/g.test(clipValue) ? clipValue.split(',') : clipValue.split(/\s/);
|
||||
// return [trueDimension(clipValue[0]),
|
||||
// trueDimension(clipValue[1]), trueDimension(clipValue[2]), trueDimension(clipValue[3])];
|
||||
return clipValue.map(function (x) { return trueDimension(x); });
|
||||
}
|
||||
|
||||
|
|
4
demo/src/kute-extra.min.js
vendored
4
demo/src/kute-extra.min.js
vendored
File diff suppressed because one or more lines are too long
4
demo/src/kute.min.js
vendored
4
demo/src/kute.min.js
vendored
File diff suppressed because one or more lines are too long
9
dist/kute.esm.js
vendored
9
dist/kute.esm.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* KUTE.js Standard v2.1.1-alpha1 (http://thednp.github.io/kute.js)
|
||||
* KUTE.js Standard v2.1.1-alpha2 (http://thednp.github.io/kute.js)
|
||||
* Copyright 2015-2021 © thednp
|
||||
* Licensed under MIT (https://github.com/thednp/kute.js/blob/master/LICENSE)
|
||||
*/
|
||||
|
@ -76,7 +76,7 @@ CubicBezier.prototype.solveCurveX = function solveCurveX (x) {
|
|||
return t2;
|
||||
};
|
||||
|
||||
var version = "2.1.1-alpha1";
|
||||
var version = "2.1.1-alpha2";
|
||||
|
||||
var KUTE = {};
|
||||
|
||||
|
@ -222,7 +222,9 @@ function linkInterpolation() {
|
|||
if (!KUTE[fnObj]) { KUTE[fnObj] = componentLink[fnObj]; }
|
||||
} else {
|
||||
Object.keys(this$1.valuesEnd).forEach(function (prop) {
|
||||
Object.keys(this$1.valuesEnd[prop]).forEach(function (i) {
|
||||
var propObject = this$1.valuesEnd[prop];
|
||||
if (propObject instanceof Object) {
|
||||
Object.keys(propObject).forEach(function (i) {
|
||||
if (typeof (componentLink[i]) === 'function') { // transformCSS3
|
||||
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
|
||||
} else {
|
||||
|
@ -233,6 +235,7 @@ function linkInterpolation() {
|
|||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
4
dist/kute.esm.min.js
vendored
4
dist/kute.esm.min.js
vendored
File diff suppressed because one or more lines are too long
9
dist/kute.js
vendored
9
dist/kute.js
vendored
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* KUTE.js Standard v2.1.1-alpha1 (http://thednp.github.io/kute.js)
|
||||
* KUTE.js Standard v2.1.1-alpha2 (http://thednp.github.io/kute.js)
|
||||
* Copyright 2015-2021 © thednp
|
||||
* Licensed under MIT (https://github.com/thednp/kute.js/blob/master/LICENSE)
|
||||
*/
|
||||
|
@ -82,7 +82,7 @@
|
|||
return t2;
|
||||
};
|
||||
|
||||
var version = "2.1.1-alpha1";
|
||||
var version = "2.1.1-alpha2";
|
||||
|
||||
var KUTE = {};
|
||||
|
||||
|
@ -228,7 +228,9 @@
|
|||
if (!KUTE[fnObj]) { KUTE[fnObj] = componentLink[fnObj]; }
|
||||
} else {
|
||||
Object.keys(this$1.valuesEnd).forEach(function (prop) {
|
||||
Object.keys(this$1.valuesEnd[prop]).forEach(function (i) {
|
||||
var propObject = this$1.valuesEnd[prop];
|
||||
if (propObject instanceof Object) {
|
||||
Object.keys(propObject).forEach(function (i) {
|
||||
if (typeof (componentLink[i]) === 'function') { // transformCSS3
|
||||
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
|
||||
} else {
|
||||
|
@ -239,6 +241,7 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
4
dist/kute.min.js
vendored
4
dist/kute.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "kute.js",
|
||||
"version": "2.1.1-alpha1",
|
||||
"version": "2.1.1-alpha2",
|
||||
"description": "JavaScript animation engine",
|
||||
"main": "dist/kute.min.js",
|
||||
"module": "dist/kute.esm.js",
|
||||
|
|
|
@ -14,7 +14,9 @@ export default function linkInterpolation() { // DON'T change
|
|||
if (!KUTE[fnObj]) KUTE[fnObj] = componentLink[fnObj];
|
||||
} else {
|
||||
Object.keys(this.valuesEnd).forEach((prop) => {
|
||||
Object.keys(this.valuesEnd[prop]).forEach((i) => {
|
||||
const propObject = this.valuesEnd[prop];
|
||||
if (propObject instanceof Object) {
|
||||
Object.keys(propObject).forEach((i) => {
|
||||
if (typeof (componentLink[i]) === 'function') { // transformCSS3
|
||||
if (!KUTE[i]) KUTE[i] = componentLink[i];
|
||||
} else {
|
||||
|
@ -25,6 +27,7 @@ export default function linkInterpolation() { // DON'T change
|
|||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue