Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed Feb 1, 2025
1 parent 3bd07dd commit 4ae1a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
14 changes: 0 additions & 14 deletions src/core/anim_key.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { CONSTANTS } from "./constants.js";



class Key
{
constructor(obj)
Expand All @@ -28,7 +26,6 @@ class Key
this.set(obj);
}


setEasing(e)
{
this._easing = e;
Expand Down Expand Up @@ -129,12 +126,6 @@ class Key
}
}







Key.cubicSpline = function (perc, key1, key2)
{
let
Expand All @@ -154,7 +145,6 @@ Key.easeCubicSpline = function (perc, key2)
return Key.cubicSpline(perc, this, key2);
};


Key.linear = function (perc, key1, key2)
{
return parseFloat(key1.value) + parseFloat(key2.value - key1.value) * perc;
Expand Down Expand Up @@ -244,7 +234,6 @@ Key.easeCubicIn = function (t, key2)
return Key.linear(t, this, key2);
};


// b 0
// c 1/2 or 1
// d always 1
Expand Down Expand Up @@ -335,7 +324,6 @@ Key.easeInElastic = function (t, key2)
return Key.linear(t, this, key2);
};


Key.easeOutElastic = function (t, key2)
{
let s = 1.70158;
Expand Down Expand Up @@ -435,6 +423,4 @@ Key.easeSmootherStep = function (perc, key2)
return Key.linear(perc, this, key2);
};



export { Key };
5 changes: 2 additions & 3 deletions src/core/core_op.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,16 +822,15 @@ export class Op extends Events
* @instance
* @memberof Op
* @param {String} name
* @param {number} value default value
* @param {number} v default value
* @return {Port} created port
*/
inInt(name, v)
{
// old
const p = this.addInPort(
new Port(this, name, CONSTANTS.OP.OP_PORT_TYPE_VALUE, {
"increment": "integer"
})
"increment": "integer" })
);
if (v !== undefined)
{
Expand Down

0 comments on commit 4ae1a0d

Please sign in to comment.