Files
JiboSDK/node_modules/jibo-keyframes/lib/layers/body-layer.js
2026-03-22 03:21:45 +02:00

1 line
1.8 KiB
JavaScript

"use strict";var e=function(){function e(e,t){for(var n in t){var i=t[n];i.configurable=!0,i.value&&(i.writable=!0)}Object.defineProperties(e,t)}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),t=function s(e,t,n){var i=Object.getOwnPropertyDescriptor(e,t);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:s(o,t,n)}if("value"in i&&i.writable)return i.value;var r=i.get;if(void 0!==r)return r.call(n)},n=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=require("../layer").DOFBaseLayer,r=[{display:"linear",label:"Linear Tween",value:"linear"},{display:"sine in",label:"Sine Ease In",value:"sineIn"},{display:"sine out",label:"Sine Ease Out",value:"sineOut"},{display:"sine in out",label:"Sine Ease In Out",value:"sineInOut"},{display:"cubic in",label:"Cubic Ease In",value:"cubicIn"},{display:"cubic out",label:"Cubic Ease Out",value:"cubicOut"},{display:"cubic in out",label:"Cubic Ease In Out",value:"cubicInOut"}],a={type:{name:"enum",values:r},defaultValue:r[3],blendOperation:"none"},u={type:"float",defaultValue:0,blendOperation:"add"},l={layerType:"Body",properties:{Head:u,Torso:u,Pelvis:u,Tween:a},dofs:{topSection_r:!0,middleSection_r:!0,bottomSection_r:!0}},c=function(o){function r(){i(this,r),t(Object.getPrototypeOf(r.prototype),"constructor",this).call(this)}return n(r,o),e(r,null,{getInfo:{value:function(){return l}},generateDofs:{value:function(e){return{topSection_r:e.Head/180*Math.PI,middleSection_r:e.Torso/180*Math.PI,bottomSection_r:e.Pelvis/180*Math.PI}}}}),r}(o);module.exports=c;