Fixed some IE issues with new code base.

This commit is contained in:
thednp 2021-03-31 08:08:58 +00:00
parent a1f59fe181
commit 2a309434c1
12 changed files with 126 additions and 78 deletions

37
.eslintrc Normal file
View 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
}
}

View file

@ -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,17 +178,20 @@
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) {
if (typeof (componentLink[i]) === 'function') { // transformCSS3
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
} else {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
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 {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
}
});
}
});

File diff suppressed because one or more lines are too long

View file

@ -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,17 +228,20 @@
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) {
if (typeof (componentLink[i]) === 'function') { // transformCSS3
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
} else {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
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 {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
}
});
}
});
@ -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); });
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

29
dist/kute.esm.js vendored
View file

@ -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,17 +222,20 @@ 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) {
if (typeof (componentLink[i]) === 'function') { // transformCSS3
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
} else {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
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 {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
}
});
}
});

File diff suppressed because one or more lines are too long

29
dist/kute.js vendored
View file

@ -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,17 +228,20 @@
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) {
if (typeof (componentLink[i]) === 'function') { // transformCSS3
if (!KUTE[i]) { KUTE[i] = componentLink[i]; }
} else {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
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 {
Object.keys(componentLink[fnObj]).forEach(function (j) {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) { KUTE[j] = componentLink[i][j]; }
}
});
}
});
}
});
}
});

4
dist/kute.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -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",

View file

@ -14,17 +14,20 @@ 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) => {
if (typeof (componentLink[i]) === 'function') { // transformCSS3
if (!KUTE[i]) KUTE[i] = componentLink[i];
} else {
Object.keys(componentLink[fnObj]).forEach((j) => {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) KUTE[j] = componentLink[i][j];
}
});
}
});
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 {
Object.keys(componentLink[fnObj]).forEach((j) => {
if (componentLink[i] && typeof (componentLink[i][j]) === 'function') { // transformMatrix
if (!KUTE[j]) KUTE[j] = componentLink[i][j];
}
});
}
});
}
});
}
});