anim-3d-obj 1.1.22 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +214 -154
- package/dist/cjs/components/Button.d.ts +6 -0
- package/dist/cjs/components/Button.js +19 -0
- package/dist/cjs/components/Button.js.map +1 -0
- package/dist/cjs/components/Card.d.ts +2 -0
- package/dist/cjs/components/Card.js +25 -0
- package/dist/cjs/components/Card.js.map +1 -0
- package/dist/cjs/components/Cuboid.d.ts +2 -0
- package/dist/cjs/components/Cuboid.js +29 -0
- package/dist/cjs/components/Cuboid.js.map +1 -0
- package/dist/cjs/components/Faces/Face.d.ts +3 -0
- package/dist/cjs/components/Faces/Face.js +84 -0
- package/dist/cjs/components/Faces/Face.js.map +1 -0
- package/dist/cjs/components/Ribbon.d.ts +2 -0
- package/dist/cjs/components/Ribbon.js +26 -0
- package/dist/cjs/components/Ribbon.js.map +1 -0
- package/dist/cjs/components/index.d.ts +5 -0
- package/dist/cjs/components/index.js +22 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/components/styles/AnimWrap.d.ts +2 -0
- package/dist/cjs/components/styles/AnimWrap.js +86 -0
- package/dist/cjs/components/styles/AnimWrap.js.map +1 -0
- package/dist/cjs/components/styles/Anims.d.ts +30 -0
- package/{src/lib/components/styles/Anims.ts → dist/cjs/components/styles/Anims.js} +62 -77
- package/dist/cjs/components/styles/Anims.js.map +1 -0
- package/dist/cjs/components/styles/Global.d.ts +1 -0
- package/dist/cjs/components/styles/Global.js +14 -0
- package/dist/cjs/components/styles/Global.js.map +1 -0
- package/dist/cjs/components/styles/Scene.d.ts +10 -0
- package/dist/cjs/components/styles/Scene.js +23 -0
- package/dist/cjs/components/styles/Scene.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/components/Button.d.ts +6 -0
- package/dist/esm/components/Button.js +12 -0
- package/dist/esm/components/Button.js.map +1 -0
- package/dist/esm/components/Card.d.ts +2 -0
- package/dist/esm/components/Card.js +18 -0
- package/dist/esm/components/Card.js.map +1 -0
- package/dist/esm/components/Cuboid.d.ts +2 -0
- package/dist/esm/components/Cuboid.js +22 -0
- package/dist/esm/components/Cuboid.js.map +1 -0
- package/dist/esm/components/Faces/Face.d.ts +3 -0
- package/dist/esm/components/Faces/Face.js +79 -0
- package/dist/esm/components/Faces/Face.js.map +1 -0
- package/dist/esm/components/Ribbon.d.ts +2 -0
- package/dist/esm/components/Ribbon.js +19 -0
- package/dist/esm/components/Ribbon.js.map +1 -0
- package/dist/esm/components/index.d.ts +5 -0
- package/dist/esm/components/index.js +6 -0
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/components/styles/AnimWrap.d.ts +2 -0
- package/dist/esm/components/styles/AnimWrap.js +79 -0
- package/dist/esm/components/styles/AnimWrap.js.map +1 -0
- package/dist/esm/components/styles/Anims.d.ts +30 -0
- package/dist/{components/styles/Anims.ts → esm/components/styles/Anims.js} +58 -77
- package/dist/esm/components/styles/Anims.js.map +1 -0
- package/dist/esm/components/styles/Global.d.ts +1 -0
- package/dist/esm/components/styles/Global.js +8 -0
- package/dist/esm/components/styles/Global.js.map +1 -0
- package/dist/esm/components/styles/Scene.d.ts +10 -0
- package/dist/esm/components/styles/Scene.js +16 -0
- package/dist/esm/components/styles/Scene.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +39 -61
- package/babel.config.json +0 -18
- package/dist/components/Card.tsx +0 -56
- package/dist/components/Cuboid.tsx +0 -61
- package/dist/components/Face/face.d.ts +0 -39
- package/dist/components/Face/index.tsx +0 -85
- package/dist/components/Ribbon.tsx +0 -58
- package/dist/components/styles/Anim.d.ts +0 -16
- package/dist/components/styles/AnimWrap.tsx +0 -85
- package/dist/components/styles/Global.ts +0 -7
- package/dist/components/styles/Scene.tsx +0 -37
- package/dist/index.ts +0 -6
- package/img.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/manifest.json +0 -15
- package/public/robots.txt +0 -3
- package/src/App.css +0 -11
- package/src/App.test.tsx +0 -10
- package/src/App.tsx +0 -115
- package/src/index.tsx +0 -19
- package/src/lib/components/Card.tsx +0 -56
- package/src/lib/components/Cuboid.tsx +0 -61
- package/src/lib/components/Face/face.d.ts +0 -39
- package/src/lib/components/Face/index.tsx +0 -85
- package/src/lib/components/Ribbon.tsx +0 -58
- package/src/lib/components/styles/Anim.d.ts +0 -16
- package/src/lib/components/styles/AnimWrap.tsx +0 -85
- package/src/lib/components/styles/Global.ts +0 -7
- package/src/lib/components/styles/Scene.tsx +0 -37
- package/src/lib/index.ts +0 -6
- package/src/reportWebVitals.ts +0 -15
- package/src/setupTests.ts +0 -5
- package/tsconfig.json +0 -26
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const Face = (props) => {
|
|
4
|
+
let { depth = 10, faceType, global = {}, height = 10, custom = false, tranz = 80, width = 100 } = props;
|
|
5
|
+
let transform;
|
|
6
|
+
let styles = !!custom[faceType] && !!custom[faceType].css ? custom[faceType].css : global.css;
|
|
7
|
+
const body = !!custom[faceType] && !!custom[faceType].body ? custom[faceType].body : global.body;
|
|
8
|
+
if (faceType === 'bottom') {
|
|
9
|
+
tranz = +height - +depth / 2;
|
|
10
|
+
height = +depth;
|
|
11
|
+
transform = `transform: rotateX(-90deg) translateZ(${tranz}px);`;
|
|
12
|
+
//styles = !!custom["top"] ? custom : global;
|
|
13
|
+
}
|
|
14
|
+
else if (faceType === 'top') {
|
|
15
|
+
height = +depth;
|
|
16
|
+
if (!!depth)
|
|
17
|
+
tranz = +depth / 2;
|
|
18
|
+
transform = `transform: rotateX(90deg) translateZ(${tranz}px);`;
|
|
19
|
+
}
|
|
20
|
+
else if (faceType === 'front') {
|
|
21
|
+
if (!!depth)
|
|
22
|
+
tranz = +depth / 2;
|
|
23
|
+
transform = `transform: rotateY(0deg) translateZ(${tranz}px);`;
|
|
24
|
+
}
|
|
25
|
+
else if (faceType === 'back') {
|
|
26
|
+
if (!!depth)
|
|
27
|
+
tranz = +depth / 2;
|
|
28
|
+
transform = `transform: rotateY(180deg) translateZ(${tranz}px);`;
|
|
29
|
+
}
|
|
30
|
+
else if (faceType === 'right') {
|
|
31
|
+
if (height > width && !depth) {
|
|
32
|
+
tranz = -(+height / 2 - +width);
|
|
33
|
+
width = +height;
|
|
34
|
+
}
|
|
35
|
+
else if (width > height && !depth) {
|
|
36
|
+
tranz = +height / 2;
|
|
37
|
+
height = +width;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
tranz = +width - +depth / 2;
|
|
41
|
+
width = +depth;
|
|
42
|
+
}
|
|
43
|
+
transform = `transform: rotateY(90deg) translateZ(${tranz}px);`;
|
|
44
|
+
// topr is to of Ribbon which points back
|
|
45
|
+
}
|
|
46
|
+
else if (faceType === 'topr') {
|
|
47
|
+
height = +depth;
|
|
48
|
+
if (!!depth)
|
|
49
|
+
tranz = +depth / 2;
|
|
50
|
+
//let offset = depth / 2;
|
|
51
|
+
transform = `transform: rotateX(90deg) translateZ(${tranz}px ); `;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
if (height > width && !depth) {
|
|
55
|
+
tranz = -(+height / 2 - +width);
|
|
56
|
+
width = +height;
|
|
57
|
+
}
|
|
58
|
+
else if (width > height && !depth) {
|
|
59
|
+
tranz = +height / 2;
|
|
60
|
+
height = +width;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
tranz = +depth / 2;
|
|
64
|
+
width = +depth;
|
|
65
|
+
}
|
|
66
|
+
transform = `transform: rotateY(-90deg) translateZ(${tranz}px);`;
|
|
67
|
+
}
|
|
68
|
+
//const BackFlip: any = styled.section``;
|
|
69
|
+
const Specs = styled.section `
|
|
70
|
+
${styles}
|
|
71
|
+
width: ${width}px;
|
|
72
|
+
position: absolute;
|
|
73
|
+
height: ${height}px;
|
|
74
|
+
${transform};
|
|
75
|
+
`;
|
|
76
|
+
return React.createElement(Specs, null, body);
|
|
77
|
+
};
|
|
78
|
+
export default Face;
|
|
79
|
+
//# sourceMappingURL=Face.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Face.js","sourceRoot":"","sources":["../../../../src/components/Faces/Face.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAe,EAAE;IAC3C,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC;IAExG,IAAI,SAAS,CAAC;IACd,IAAI,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC9F,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;IACjG,IAAI,QAAQ,KAAK,QAAQ,EAAE;QACvB,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;QAC7B,MAAM,GAAG,CAAC,KAAK,CAAC;QAChB,SAAS,G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KAAK;YAAE,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;QAChC,yBAAyB;QACzB,SAAS,GAAG,wCAAwC,KAAK,SAAS,CAAC;KACtE;SAAM;QACH,IAAI,MAAM,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE;YAC1B,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAChC,KAAK,GAAG,CAAC,MAAM,CAAC;SACnB;aAAM,IAAI,KAAK,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE;YACjC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;YACpB,MAAM,GAAG,CAAC,KAAK,CAAC;SACnB;aAAM;YACH,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;YACnB,KAAK,GAAG,CAAC,KAAK,CAAC;SAClB;QACD,SAAS,GAAG,yCAAyC,KAAK,MAAM,CAAC;KACpE;IAED,yCAAyC;IAEzC,MAAM,KAAK,GAAQ,MAAM,CAAC,OAAO,CAAA;UAC3B,MAAM;iBACC,KAAK;;kBAEJ,MAAM;UACd,SAAS;KACd,CAAC;IAEF,OAAO,oBAAC,KAAK,QAAE,IAAI,CAAS,CAAC;AACjC,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnimWrap } from './styles/AnimWrap';
|
|
3
|
+
import { SceneStyle } from './styles/Scene';
|
|
4
|
+
import Face from './Faces/Face';
|
|
5
|
+
import { ObjWrapper } from './styles/Global';
|
|
6
|
+
export const Ribbon = (props) => {
|
|
7
|
+
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex } = props;
|
|
8
|
+
const buildFace = (faceType) => {
|
|
9
|
+
return React.createElement(Face, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom });
|
|
10
|
+
};
|
|
11
|
+
return (React.createElement(SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
12
|
+
React.createElement(AnimWrap, { animSpecs: anim1Specs },
|
|
13
|
+
React.createElement(AnimWrap, { animSpecs: anim2Specs },
|
|
14
|
+
React.createElement(ObjWrapper, null,
|
|
15
|
+
!!faces && !!faces.bottom ? buildFace('bottom') : null,
|
|
16
|
+
!!faces && !!faces.back ? buildFace('back') : null,
|
|
17
|
+
!!faces && !!faces.top ? buildFace('topr') : null)))));
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=Ribbon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAe,EAAO,EAAE;IAC3C,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAE7K,MAAM,SAAS,GAAG,CAAC,QAAa,EAAO,EAAE;QACrC,OAAO,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;IAChJ,CAAC,CAAC;IAEF,OAAO,CACH,oBAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM;QACpH,oBAAC,QAAQ,IAAC,SAAS,EAAE,UAAU;YAC3B,oBAAC,QAAQ,IAAC,SAAS,EAAE,UAAU;gBAC3B,oBAAC,UAAU;oBACN,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;oBACtD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;oBAClD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CACzC,CACN,CACJ,CACF,CAChB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { allAnims } from './Anims';
|
|
4
|
+
export const AnimWrap = (props) => {
|
|
5
|
+
const { children, animSpecs } = props;
|
|
6
|
+
const AS = animSpecs;
|
|
7
|
+
const { X360, Y360, fadeInkf, wobY, wobX, fwdx018, fwdx1836, fwdx09, fwdx918, fwdx1827, fwdx2736, fwdy018, fwdy1836, fwdy09, fwdy918, fwdy1827, fwdy2736, floatX, floatShadow, pulseSM, pulseMD, pulseLG, noAnim } = allAnims({ degreesHi: AS.degreesHi, degreesLow: AS.degreesLow });
|
|
8
|
+
let theAnim = 'noAnim';
|
|
9
|
+
// need to iterate through all animation posibilities and not use eval() to satisfy TS
|
|
10
|
+
if (AS.name === 'X360')
|
|
11
|
+
theAnim = X360;
|
|
12
|
+
else if (AS.name === 'Y360')
|
|
13
|
+
theAnim = Y360;
|
|
14
|
+
else if (AS.name === 'fadeInkf')
|
|
15
|
+
theAnim = fadeInkf;
|
|
16
|
+
else if (AS.name === 'wobX')
|
|
17
|
+
theAnim = wobX;
|
|
18
|
+
else if (AS.name === 'wobY')
|
|
19
|
+
theAnim = wobY;
|
|
20
|
+
else if (AS.name === 'fwdx018')
|
|
21
|
+
theAnim = fwdx018;
|
|
22
|
+
else if (AS.name === 'fwdx1836')
|
|
23
|
+
theAnim = fwdx1836;
|
|
24
|
+
else if (AS.name === 'fwdx09')
|
|
25
|
+
theAnim = fwdx09;
|
|
26
|
+
else if (AS.name === 'fwdx918')
|
|
27
|
+
theAnim = fwdx918;
|
|
28
|
+
else if (AS.name === 'fwdx1827')
|
|
29
|
+
theAnim = fwdx1827;
|
|
30
|
+
else if (AS.name === 'fwdx2736')
|
|
31
|
+
theAnim = fwdx2736;
|
|
32
|
+
else if (AS.name === 'fwdy018')
|
|
33
|
+
theAnim = fwdy018;
|
|
34
|
+
else if (AS.name === 'fwdy1836')
|
|
35
|
+
theAnim = fwdy1836;
|
|
36
|
+
else if (AS.name === 'fwdy09')
|
|
37
|
+
theAnim = fwdy09;
|
|
38
|
+
else if (AS.name === 'fwdy918')
|
|
39
|
+
theAnim = fwdy918;
|
|
40
|
+
else if (AS.name === 'fwdy1827')
|
|
41
|
+
theAnim = fwdy1827;
|
|
42
|
+
else if (AS.name === 'fwdy2736')
|
|
43
|
+
theAnim = fwdy2736;
|
|
44
|
+
else if (AS.name === 'floatX')
|
|
45
|
+
theAnim = floatX;
|
|
46
|
+
else if (AS.name === 'floatShadow')
|
|
47
|
+
theAnim = floatShadow;
|
|
48
|
+
else if (AS.name === 'pulseSM')
|
|
49
|
+
theAnim = pulseSM;
|
|
50
|
+
else if (AS.name === 'pulseMD')
|
|
51
|
+
theAnim = pulseMD;
|
|
52
|
+
else if (AS.name === 'pulseLG')
|
|
53
|
+
theAnim = pulseLG;
|
|
54
|
+
else
|
|
55
|
+
theAnim = noAnim;
|
|
56
|
+
const AnimWrapDiv = styled.div `
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
position: relative;
|
|
60
|
+
transform-style: preserve-3d;
|
|
61
|
+
border: ${AS.border};
|
|
62
|
+
-webkit-animation-duration: ${AS.duration}s;
|
|
63
|
+
animation-duration: ${AS.duration}s;
|
|
64
|
+
-webkit-animation-iteration-count: ${AS.iterationCount};
|
|
65
|
+
animation-iteration-count: ${AS.iterationCount};
|
|
66
|
+
-webkit-animation-name: ${theAnim};
|
|
67
|
+
animation-name: ${theAnim};
|
|
68
|
+
-webkit-animation-fill-mode: ${AS.fillMode};
|
|
69
|
+
animation-fill-mode: ${AS.fillMode};
|
|
70
|
+
animation-direction: ${AS.direction};
|
|
71
|
+
-webkit-animation-direction: ${AS.direction};
|
|
72
|
+
-webkit-animation-timing-function: ${AS.timing};
|
|
73
|
+
animation-timing-function: ${AS.timing};
|
|
74
|
+
-webkit-animation-delay: ${AS.delay}s;
|
|
75
|
+
animation-delay: ${AS.delay}s;
|
|
76
|
+
`;
|
|
77
|
+
return React.createElement(AnimWrapDiv, null, children);
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=AnimWrap.js.map
|
|
@@ -0,0 +1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,GAAG,MAAM,CAAC;IAEtB,MAAM,WAAW,GAAQ,MAAM,CAAC,GAAG,CAAA;;;;;kBAKrB,EAAE,CAAC,MAAM;sCACW,EAAE,CAAC,QAAQ;8BACnB,EAAE,CAAC,QAAQ;6CACI,EAAE,CAAC,cAAc;qCACzB,EAAE,CAAC,cAAc;kCACpB,OAAO;0BACf,OAAO;uCACM,EAAE,CAAC,QAAQ;+BACnB,EAAE,CAAC,QAAQ;+BACX,EAAE,CAAC,SAAS;uCACJ,EAAE,CAAC,SAAS;6CACN,EAAE,CAAC,MAAM;qCACjB,EAAE,CAAC,MAAM;mCACX,EAAE,CAAC,KAAK;2BAChB,EAAE,CAAC,KAAK;KAC9B,CAAC;IAEF,OAAO,oBAAC,WAAW,QAAE,QAAQ,CAAe,CAAC;AACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface AllAnimsProps {
|
|
2
|
+
degreesLow?: number;
|
|
3
|
+
degreesHi?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const allAnims: (props: AllAnimsProps) => {
|
|
6
|
+
X360: import("styled-components").Keyframes;
|
|
7
|
+
Y360: import("styled-components").Keyframes;
|
|
8
|
+
fadeInkf: import("styled-components").Keyframes;
|
|
9
|
+
wobY: import("styled-components").Keyframes;
|
|
10
|
+
wobX: import("styled-components").Keyframes;
|
|
11
|
+
fwdx018: import("styled-components").Keyframes;
|
|
12
|
+
fwdx1836: import("styled-components").Keyframes;
|
|
13
|
+
fwdx09: import("styled-components").Keyframes;
|
|
14
|
+
fwdx918: import("styled-components").Keyframes;
|
|
15
|
+
fwdx1827: import("styled-components").Keyframes;
|
|
16
|
+
fwdx2736: import("styled-components").Keyframes;
|
|
17
|
+
fwdy018: import("styled-components").Keyframes;
|
|
18
|
+
fwdy1836: import("styled-components").Keyframes;
|
|
19
|
+
fwdy09: import("styled-components").Keyframes;
|
|
20
|
+
fwdy918: import("styled-components").Keyframes;
|
|
21
|
+
fwdy1827: import("styled-components").Keyframes;
|
|
22
|
+
fwdy2736: import("styled-components").Keyframes;
|
|
23
|
+
floatX: import("styled-components").Keyframes;
|
|
24
|
+
floatShadow: import("styled-components").Keyframes;
|
|
25
|
+
pulseSM: import("styled-components").Keyframes;
|
|
26
|
+
pulseMD: import("styled-components").Keyframes;
|
|
27
|
+
pulseLG: import("styled-components").Keyframes;
|
|
28
|
+
noAnim: import("styled-components").Keyframes;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import { keyframes } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
degreesHi?: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const allAnims = (props: AllAnimsProps) => {
|
|
9
|
-
const { degreesLow = 0, degreesHi = 0 } = props;
|
|
10
|
-
|
|
11
|
-
const X360 = keyframes`
|
|
1
|
+
import { keyframes } from 'styled-components';
|
|
2
|
+
export const allAnims = (props) => {
|
|
3
|
+
const { degreesLow = 0, degreesHi = 0 } = props;
|
|
4
|
+
const X360 = keyframes `
|
|
12
5
|
from {
|
|
13
6
|
-webkit-transform: rotateX(360deg);
|
|
14
7
|
transform: rotateX(360deg);
|
|
@@ -18,9 +11,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
18
11
|
transform: rotateX(0deg);
|
|
19
12
|
}
|
|
20
13
|
}`;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const Y360 = keyframes`
|
|
14
|
+
//////// Y360
|
|
15
|
+
const Y360 = keyframes `
|
|
24
16
|
from {
|
|
25
17
|
-webkit-transform: rotateY(360deg);
|
|
26
18
|
transform: rotateY(360deg);
|
|
@@ -29,16 +21,14 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
29
21
|
-webkit-transform: rotateY(0deg);
|
|
30
22
|
transform: rotateY(0deg);
|
|
31
23
|
}`;
|
|
32
|
-
|
|
33
|
-
const fadeInkf = keyframes`
|
|
24
|
+
const fadeInkf = keyframes `
|
|
34
25
|
from {
|
|
35
26
|
opacity: 0;
|
|
36
27
|
}
|
|
37
28
|
to {
|
|
38
29
|
opacity: 1;
|
|
39
30
|
}`;
|
|
40
|
-
|
|
41
|
-
const wobY = keyframes`
|
|
31
|
+
const wobY = keyframes `
|
|
42
32
|
0% {
|
|
43
33
|
-webkit-transform: rotateY(${degreesLow}deg);
|
|
44
34
|
transform: rotateY(${degreesLow}deg);
|
|
@@ -51,8 +41,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
51
41
|
-webkit-transform: rotateY(${degreesLow}deg);
|
|
52
42
|
transform: rotateY(${degreesLow}deg);
|
|
53
43
|
}`;
|
|
54
|
-
|
|
55
|
-
const wobX = keyframes`
|
|
44
|
+
const wobX = keyframes `
|
|
56
45
|
0% {
|
|
57
46
|
-webkit-transform: rotateX(${degreesLow}deg);
|
|
58
47
|
transform: rotateX(${degreesLow}deg);
|
|
@@ -65,8 +54,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
65
54
|
-webkit-transform: rotateX(${degreesLow}deg);
|
|
66
55
|
transform: rotateX(${degreesLow}deg);
|
|
67
56
|
}`;
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
/* ============================== x-axis 0-180 >180 - 360 */
|
|
58
|
+
const fwdx018 = keyframes `
|
|
70
59
|
from {
|
|
71
60
|
-webkit-transform: rotateX(360deg);
|
|
72
61
|
transform: rotateX(360deg);
|
|
@@ -75,7 +64,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
75
64
|
-webkit-transform: rotateX(180deg);
|
|
76
65
|
transform: rotateX(180deg);
|
|
77
66
|
}`;
|
|
78
|
-
|
|
67
|
+
const fwdx1836 = keyframes `
|
|
79
68
|
from {
|
|
80
69
|
-webkit-transform: rotateX(180deg);
|
|
81
70
|
transform: rotateX(180deg);
|
|
@@ -84,8 +73,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
84
73
|
-webkit-transform: rotateX(0deg);
|
|
85
74
|
transform: rotateX(0deg);
|
|
86
75
|
}`;
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
/* ============================= x-axis 0-90, 90-180, 180-270, 270-360 */
|
|
77
|
+
const fwdx09 = keyframes `
|
|
89
78
|
from {
|
|
90
79
|
-webkit-transform: rotateX(360deg);
|
|
91
80
|
transform: rotateX(360deg);
|
|
@@ -94,7 +83,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
94
83
|
-webkit-transform: rotateX(90deg);
|
|
95
84
|
transform: rotateX(90deg);
|
|
96
85
|
}`;
|
|
97
|
-
|
|
86
|
+
const fwdx918 = keyframes `
|
|
98
87
|
from {
|
|
99
88
|
-webkit-transform: rotateX(-90deg);
|
|
100
89
|
transform: rotateX(-90deg);
|
|
@@ -103,7 +92,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
103
92
|
-webkit-transform: rotateX(-180deg);
|
|
104
93
|
transform: rotateX(-180deg);
|
|
105
94
|
}`;
|
|
106
|
-
|
|
95
|
+
const fwdx1827 = keyframes `
|
|
107
96
|
from {
|
|
108
97
|
-webkit-transform: rotateX(-180deg);
|
|
109
98
|
transform: rotateX(-180deg);
|
|
@@ -112,7 +101,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
112
101
|
-webkit-transform: rotateX(-270deg);
|
|
113
102
|
transform: rotateX(-270deg);
|
|
114
103
|
}`;
|
|
115
|
-
|
|
104
|
+
const fwdx2736 = keyframes `
|
|
116
105
|
from {
|
|
117
106
|
-webkit-transform: rotateX(-270deg);
|
|
118
107
|
transform: rotateX(-270deg);
|
|
@@ -121,9 +110,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
121
110
|
-webkit-transform: rotateX(-360deg);
|
|
122
111
|
transform: rotateX(-360deg);
|
|
123
112
|
}`;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const fwdy018 = keyframes`
|
|
113
|
+
/* ============================== y-axis 0-180 >180 - 360 */
|
|
114
|
+
const fwdy018 = keyframes `
|
|
127
115
|
from {
|
|
128
116
|
-webkit-transform: rotateY(360deg);
|
|
129
117
|
transform: rotateY(360deg);
|
|
@@ -132,7 +120,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
132
120
|
-webkit-transform: rotateY(180deg);
|
|
133
121
|
transform: rotateY(180deg);
|
|
134
122
|
}`;
|
|
135
|
-
|
|
123
|
+
const fwdy1836 = keyframes `
|
|
136
124
|
from {
|
|
137
125
|
-webkit-transform: rotateY(180deg);
|
|
138
126
|
transform: rotateY(180deg);
|
|
@@ -141,9 +129,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
141
129
|
-webkit-transform: rotateY(0deg);
|
|
142
130
|
transform: rotateY(0deg);
|
|
143
131
|
}`;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const fwdy09 = keyframes`
|
|
132
|
+
/* ============================= y-axis 0-90, 90-180, 180-270, 270-360 */
|
|
133
|
+
const fwdy09 = keyframes `
|
|
147
134
|
from {
|
|
148
135
|
-webkit-transform: rotateY(360deg);
|
|
149
136
|
transform: rotateY(360deg);
|
|
@@ -152,7 +139,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
152
139
|
-webkit-transform: rotateY(90deg);
|
|
153
140
|
transform: rotateY(90deg);
|
|
154
141
|
}`;
|
|
155
|
-
|
|
142
|
+
const fwdy918 = keyframes `
|
|
156
143
|
from {
|
|
157
144
|
-webkit-transform: rotateY(-90deg);
|
|
158
145
|
transform: rotateY(-90deg);
|
|
@@ -161,7 +148,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
161
148
|
-webkit-transform: rotateY(-180deg);
|
|
162
149
|
transform: rotateY(-180deg);
|
|
163
150
|
}`;
|
|
164
|
-
|
|
151
|
+
const fwdy1827 = keyframes `
|
|
165
152
|
from {
|
|
166
153
|
-webkit-transform: rotateY(-180deg);
|
|
167
154
|
transform: rotateY(-180deg);
|
|
@@ -170,7 +157,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
170
157
|
-webkit-transform: rotateY(-270deg);
|
|
171
158
|
transform: rotateY(-270deg);
|
|
172
159
|
}`;
|
|
173
|
-
|
|
160
|
+
const fwdy2736 = keyframes `
|
|
174
161
|
from {
|
|
175
162
|
-webkit-transform: rotateY(-270deg);
|
|
176
163
|
transform: rotateY(-270deg);
|
|
@@ -179,14 +166,12 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
179
166
|
-webkit-transform: rotateY(-360deg);
|
|
180
167
|
transform: rotateY(-360deg);
|
|
181
168
|
}`;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
const floatX = keyframes`
|
|
169
|
+
/* ============================= floating */
|
|
170
|
+
const floatX = keyframes `
|
|
185
171
|
0% { -webkit-transform: translate(0, 0px); -ms-transform: translate(0, 0px); transform: translate(0, 0px); }
|
|
186
172
|
50% { -webkit-transform: translate(0, 15px); -ms-transform: translate(0, 15px); transform: translate(0, 15px); }
|
|
187
173
|
100% { -webkit-transform: translate(0, -0px); -ms-transform: translate(0, -0px); transform: translate(0, -0px); }`;
|
|
188
|
-
|
|
189
|
-
const floatShadow = keyframes`
|
|
174
|
+
const floatShadow = keyframes `
|
|
190
175
|
0% {
|
|
191
176
|
-webkit-box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
|
|
192
177
|
box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);
|
|
@@ -208,8 +193,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
208
193
|
-ms-transform: translateY(0px);
|
|
209
194
|
transform: translateY(0px);
|
|
210
195
|
}`;
|
|
211
|
-
|
|
212
|
-
const pulseSM = keyframes`
|
|
196
|
+
const pulseSM = keyframes `
|
|
213
197
|
0% {
|
|
214
198
|
-webkit-transform: scale(0.9);
|
|
215
199
|
-ms-transform: scale(0.9);
|
|
@@ -225,8 +209,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
225
209
|
-ms-transform: scale(0.9);
|
|
226
210
|
transform: scale(0.9);
|
|
227
211
|
}`;
|
|
228
|
-
|
|
229
|
-
const pulseMD = keyframes`
|
|
212
|
+
const pulseMD = keyframes `
|
|
230
213
|
0% {
|
|
231
214
|
-webkit-transform: scale(0.7);
|
|
232
215
|
-ms-transform: scale(0.7);
|
|
@@ -242,8 +225,7 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
242
225
|
-ms-transform: scale(0.7);
|
|
243
226
|
transform: scale(0.7);
|
|
244
227
|
}`;
|
|
245
|
-
|
|
246
|
-
const pulseLG = keyframes`
|
|
228
|
+
const pulseLG = keyframes `
|
|
247
229
|
0% {
|
|
248
230
|
-webkit-transform: scale(0.5);
|
|
249
231
|
-ms-transform: scale(0.5);
|
|
@@ -259,32 +241,31 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
259
241
|
-ms-transform: scale(0.5);
|
|
260
242
|
transform: scale(0.5);
|
|
261
243
|
}`;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
noAnim,
|
|
289
|
-
};
|
|
244
|
+
const noAnim = keyframes ``;
|
|
245
|
+
return {
|
|
246
|
+
X360,
|
|
247
|
+
Y360,
|
|
248
|
+
fadeInkf,
|
|
249
|
+
wobY,
|
|
250
|
+
wobX,
|
|
251
|
+
fwdx018,
|
|
252
|
+
fwdx1836,
|
|
253
|
+
fwdx09,
|
|
254
|
+
fwdx918,
|
|
255
|
+
fwdx1827,
|
|
256
|
+
fwdx2736,
|
|
257
|
+
fwdy018,
|
|
258
|
+
fwdy1836,
|
|
259
|
+
fwdy09,
|
|
260
|
+
fwdy918,
|
|
261
|
+
fwdy1827,
|
|
262
|
+
fwdy2736,
|
|
263
|
+
floatX,
|
|
264
|
+
floatShadow,
|
|
265
|
+
pulseSM,
|
|
266
|
+
pulseMD,
|
|
267
|
+
pulseLG,
|
|
268
|
+
noAnim
|
|
269
|
+
};
|
|
290
270
|
};
|
|
271
|
+
//# sourceMappingURL=Anims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Anims.js","sourceRoot":"","sources":["../../../../src/components/styles/Anims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAO9C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC7C,MAAM,EAAE,UAAU,GAAG,CAAC,EAAE,SAAS,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC;IAEhD,MAAM,IAAI,GAAG,SAAS,CAAA;;;;;;;;;EASxB,CAAC;IAEC,aAAa;IACb,MAAM,IAAI,GAAG,SAAS,CAAA;;;;;;;;MAQpB,CAAC;IAEH,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;MAMxB,CAAC;IAEH,MAAM,IAAI,GAAG,SAAS,CAAA;;qCAEW,UAAU;6BAClB,UAAU;;;qCAGF,SAAS;6BACjB,SAAS;;;qCAGD,UAAU;6BAClB,UAAU;MACjC,CAAC;IAEH,MAAM,IAAI,GAAG,SAAS,CAAA;;qCAEW,UAAU;6BAClB,UAAU;;;qCAGF,SAAS;6BACjB,SAAS;;;qCAGD,UAAU;6BAClB,UAAU;MACjC,CAAC;IACH,4DAA4D;IAC5D,MAAM,OAAO,GAAG,SAAS,CAAA;;;;;;;;MAQvB,CAAC;IACH,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;;;MAQxB,CAAC;IACH,yEAAyE;IACzE,MAAM,MAAM,GAAG,SAAS,CAAA;;;;;;;;MAQtB,CAAC;IACH,MAAM,OAAO,GAAG,SAAS,CAAA;;;;;;;;M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+
export declare const ObjWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Global.js","sourceRoot":"","sources":["../../../../src/components/styles/Global.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKnC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface SceneStyleProps {
|
|
2
|
+
width?: number | string;
|
|
3
|
+
height?: number | string;
|
|
4
|
+
perspective?: number | string | undefined;
|
|
5
|
+
perspectiveOrigin?: string | undefined;
|
|
6
|
+
zIndex?: number | undefined;
|
|
7
|
+
children: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const SceneStyle: (props: SceneStyleProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export const SceneStyle = (props) => {
|
|
4
|
+
const { width = 0, height = 0, perspective = 600, perspectiveOrigin = '50% 50%', zIndex = 10, children = {} } = props;
|
|
5
|
+
const SceneStyleDiv = styled.div `
|
|
6
|
+
width: ${width}px;
|
|
7
|
+
height: ${height}px;
|
|
8
|
+
-webkit-perspective: ${perspective}px;
|
|
9
|
+
perspective: ${perspective}px;
|
|
10
|
+
-webkit-perspective-origin: ${perspectiveOrigin};
|
|
11
|
+
perspective-origin: ${perspectiveOrigin};
|
|
12
|
+
`;
|
|
13
|
+
return (React.createElement("div", { style: { zIndex } },
|
|
14
|
+
React.createElement(SceneStyleDiv, null, children)));
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Scene.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scene.js","sourceRoot":"","sources":["../../../../src/components/styles/Scene.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,WAAW,GAAG,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAAE,MAAM,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEtH,MAAM,aAAa,GAAQ,MAAM,CAAC,GAAG,CAAA;iBACxB,KAAK;kBACJ,MAAM;+BACO,WAAW;uBACnB,WAAW;sCACI,iBAAiB;8BACzB,iBAAiB;KAC1C,CAAC;IAEF,OAAO,CACH,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE;QAClB,oBAAC,aAAa,QAAE,QAAQ,CAAiB,CACvC,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,4BAA4B;AAC5B,cAAc,cAAc,CAAC"}
|