creepyface-dance
Advanced tools
Comparing version 8.1.3 to 8.2.0-alpha.0
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("creepyface")):"function"==typeof define&&define.amd?define(["exports","creepyface"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).creepyfaceDance={},e.creepyface)}(this,function(e,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(n),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=1/0,i=9007199254740991,f=17976931348623157e292,c=NaN,a="[object Function]",l="[object GeneratorFunction]",p="[object Symbol]",s=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,d=/^0o[0-7]+$/i,v=/^(?:0|[1-9]\d*)$/,g=parseInt,m=Object.prototype.toString,h=Math.ceil,j=Math.max;function w(e){var n=typeof e;return e&&("object"==n||"function"==n)}function O(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||!!(n=e)&&"object"==typeof n&&m.call(e)==p;var n}(e))return c;w(e)&&(e=w(n="function"==typeof e.valueOf?e.valueOf():e)?n+"":n);if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=b.test(e);return n||d.test(e)?g(e.slice(2),n?2:8):y.test(e)?c:+e}(e))!==u&&e!==-u?e==e?e:0:(e<0?-1:1)*f:0===e?e:0}var F,x=function(e,n,t){return t&&"number"!=typeof t&&function(e,n,t){if(!w(t))return!1;var r=typeof n;if("number"==r?function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=i}(e.length)&&!function(e){e=w(e)?m.call(e):"";return e==a||e==l}(e)}(t)&&function(e,n){return!!(n=null==n?i:n)&&("number"==typeof e||v.test(e))&&-1<e&&e%1==0&&e<n}(n,t.length):"string"==r&&n in t)return function(e,n){return e===n||e!=e&&n!=n}(t[n],e);return!1}(e,n,t)&&(n=t=void 0),e=O(e),void 0===n?(n=e,e=0):n=O(n),function(e,n,t,r){for(var o=-1,u=j(h((n-e)/(t||1)),0),i=Array(u);u--;)i[r?u:++o]=e,e+=t;return i}(e,n,t=void 0===t?e<n?1:-1:O(t),F)},A=9007199254740991,P="[object Arguments]",T="[object Function]",M="[object GeneratorFunction]",n="object"==typeof o&&o&&o.Object===Object&&o,o="object"==typeof self&&self&&self.Object===Object&&self,n=n||o||Function("return this")();var o=Object.prototype,S=o.hasOwnProperty,$=o.toString,n=n.Symbol,q=o.propertyIsEnumerable,B=n?n.isConcatSpreadable:void 0;function C(e,n,t,r,o){var u=-1,i=e.length;for(t=t||G,o=o||[];++u<i;){var f=e[u];0<n&&t(f)?1<n?C(f,n-1,t,r,o):function(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t]}(o,f):r||(o[o.length]=f)}return o}function G(e){return I(e)||function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=A}(e.length)&&!function(e){e=function(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}(e)?$.call(e):"";return e==T||e==M}(e)}(e)}(n=e)&&S.call(n,"callee")&&(!q.call(n,"callee")||$.call(n)==P)||!!(B&&e&&e[B]);var n}var I=Array.isArray;var N=function(e){return(e?e.length:0)?C(e,1):[]},_=["n","ne","e","se","s","sw","w","nw"],k={serious:null,crazy:[0,0],n:[0,-1],ne:[1,-1],e:[1,0],se:[1,1],s:[0,1],sw:[-1,1],w:[-1,0],nw:[-1,-1]};n={repeat:function(n){return function(e){return N(x(n).map(function(){return e}))}},intercalate:function(n,t){return x(2*n.length).map(function(e){return e%2?t:n[Math.floor(e/2)]})},circle:function(t){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return x(_.length).map(function(e){return _[n=_.indexOf(t)+(r?e:-e),((e=_.length)+n%e)%e];var n})}};e.makePointProvider=function(e){var n=e.name,i=e.audio,f=e.bpm,c=e.firstBeat,a=e.choreography;r.default.registerPointProvider(n,function(n){function t(){var e;i.currentTime>=c&&((e=Math.floor((i.currentTime-c)/r))!==o&&n(k[a[o=e]])),u=requestAnimationFrame(t)}var r=60/f,o=-1,u=requestAnimationFrame(t);return function(){return cancelAnimationFrame(u)}},function(e,n){var t=n.getBoundingClientRect(),r=t.x,o=t.y,n=t.width,t=t.height;return e?[r+n/2+n/2*2*e[0],o+t/2+t/2*2*e[1]]:null})},e.moves=n,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("creepyface")):"function"==typeof define&&define.amd?define(["exports","creepyface"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).creepyfaceDance={},e.creepyface)}(this,function(e,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(n),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=1/0,a=9007199254740991,u=17976931348623157e292,i=NaN,l="[object Function]",s="[object GeneratorFunction]",f=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,y=/^0o[0-7]+$/i,b=/^(?:0|[1-9]\d*)$/,d=parseInt,v=Object.prototype.toString,g=Math.ceil,m=Math.max;function h(e){var n=typeof e;return e&&("object"==n||"function"==n)}function j(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||!!(n=e)&&"object"==typeof n&&"[object Symbol]"==v.call(e);var n}(e))return i;h(e)&&(e=h(n="function"==typeof e.valueOf?e.valueOf():e)?n+"":n);if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var n=p.test(e);return n||y.test(e)?d(e.slice(2),n?2:8):c.test(e)?i:+e}(e))===o||e===-o?(e<0?-1:1)*u:e==e?e:0:0===e?e:0}var w,O=function(e,n,t){t&&"number"!=typeof t&&function(e,n,t){if(h(t)){var r=typeof n;if("number"==r?function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=a}(e.length)&&!function(e){e=h(e)?v.call(e):"";return e==l||e==s}(e)}(t)&&function(e,n){return(n=null==n?a:n)&&("number"==typeof e||b.test(e))&&-1<e&&e%1==0&&e<n}(n,t.length):"string"==r&&n in t)return function(e,n){return e===n||e!=e&&n!=n}(t[n],e)}return}(e,n,t)&&(n=t=void 0),e=j(e),void 0===n?(n=e,e=0):n=j(n),t=void 0===t?e<n?1:-1:j(t);for(var r=e,o=t,u=w,i=-1,f=m(g((n-r)/(o||1)),0),c=Array(f);f--;)c[u?f:++i]=r,r+=o;return c},F=9007199254740991,x="[object Arguments]",A="[object Function]",P="[object GeneratorFunction]",n="object"==typeof n&&n&&n.Object===Object&&n,T="object"==typeof self&&self&&self.Object===Object&&self,n=n||T||Function("return this")();var T=Object.prototype,M=T.hasOwnProperty,S=T.toString,n=n.Symbol,$=T.propertyIsEnumerable,q=n?n.isConcatSpreadable:void 0;function B(e){return C(e)||function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=F}(e.length)&&!function(e){e=function(e){var n=typeof e;return e&&("object"==n||"function"==n)}(e)?S.call(e):"";return e==A||e==P}(e)}(e)}(n=e)&&M.call(n,"callee")&&(!$.call(n,"callee")||S.call(n)==x)||!!(q&&e&&e[q]);var n}var C=Array.isArray;var G=function(e){return(e?e.length:0)?function e(n,t,r,o,u){var i=-1,f=n.length;for(r=r||B,u=u||[];++i<f;){var c=n[i];if(0<t&&r(c))if(1<t)e(c,t-1,r,o,u);else{y=p=s=l=a=void 0;for(var a=u,l=c,s=-1,p=l.length,y=a.length;++s<p;)a[y+s]=l[s]}else o||(u[u.length]=c)}return u}(e,1):[]},I=["n","ne","e","se","s","sw","w","nw"],N={serious:null,crazy:[0,0],n:[0,-1],ne:[1,-1],e:[1,0],se:[1,1],s:[0,1],sw:[-1,1],w:[-1,0],nw:[-1,-1]};T={repeat:function(n){return function(e){return G(O(n).map(function(){return e}))}},intercalate:function(n,t){return O(2*n.length).map(function(e){return e%2?t:n[Math.floor(e/2)]})},circle:function(t){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return O(I.length).map(function(e){return I[e=I.indexOf(t)+(r?e:-e),((n=I.length)+e%n)%n];var n})}};e.makePointProvider=function(e){var n=e.name,i=e.audio,f=e.bpm,c=e.firstBeat,a=e.choreography;r.default.registerPointProvider(n,function(t){var r=60/f,o=-1,u=requestAnimationFrame(function e(){var n;i.currentTime>=c&&((n=Math.floor((i.currentTime-c)/r))!==o&&t(N[a[o=n]])),u=requestAnimationFrame(e)});return function(){return cancelAnimationFrame(u)}},function(e,n){var n=n.getBoundingClientRect(),t=n.x,r=n.y,o=n.width,n=n.height;return e?[t+o/2+o/2*2*e[0],r+n/2+n/2*2*e[1]]:null})},e.moves=T,Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "creepyface-dance", | ||
"version": "8.1.3", | ||
"version": "8.2.0-alpha.0", | ||
"main": "dist/index.js", | ||
@@ -31,18 +31,18 @@ "types": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@babel/core": "^7.14.6", | ||
"@babel/preset-env": "^7.14.7", | ||
"@babel/preset-typescript": "^7.14.5", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@types/lodash.flatten": "^4.4.6", | ||
"@types/lodash.range": "^3.2.6", | ||
"creepyface": "^8.1.3", | ||
"@babel/core": "^7.18.13", | ||
"@babel/preset-env": "^7.18.10", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@types/lodash.flatten": "^4.4.7", | ||
"@types/lodash.range": "^3.2.7", | ||
"creepyface": "^8.2.0-alpha.0", | ||
"lodash.flatten": "^4.4.0", | ||
"lodash.range": "^3.2.0", | ||
"rollup": "^2.52.3", | ||
"rollup": "^2.79.0", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"typescript": "^4.3.4" | ||
"typescript": "^4.8.2" | ||
}, | ||
"gitHead": "0fa29a933e9f3aeb209533d65506f78279d89c46" | ||
"gitHead": "49cc261e173c636483a949623aaa973ab1a00254" | ||
} |
@@ -59,7 +59,7 @@ # Creepyface Dance 💃 · [![npm version](https://img.shields.io/npm/v/creepyface-dance.svg?style=flat)](https://www.npmjs.com/package/creepyface-dance) | ||
Moves are functions that return an array of steps. CreepyfaceDance provides [some of them out of the box](https://github.com/4lejandrito/creepyface/blob/master/packages/creepyface-dance/src/index.ts#L101-L118): | ||
Moves are functions that return an array of steps. CreepyfaceDance provides [some of them out of the box](https://github.com/4lejandrito/creepyface/blob/master/packages/creepyface-dance/src/index.ts#L65-L86): | ||
| Name | Description | Example | | ||
| ------------- | ----------------------------------------------------------------------------------------------------- | ---------------------------------- | | ||
| `repeat` | Repeats the given sequence a specified amouht of times. | `repeat(10)(['s', 'n'])` | | ||
| `repeat` | Repeats the given sequence a specified amount of times. | `repeat(10)(['s', 'n'])` | | ||
| `circle` | An 8 step move describing a counterclockwise circle looking to every direction from the one provided. | `circle('e')` | | ||
@@ -66,0 +66,0 @@ | `intercalate` | Constructs a secuence consisting of the itercalation of a given sequence and a step. | `intercalate(['n', 'w'], 'crazy')` | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
0
12170
2
2