anim-3d-obj 1.1.32 → 1.1.34
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/README.md +154 -59
- package/dist/cjs/components/Button.d.ts +1 -1
- package/dist/cjs/components/Button.js.map +1 -1
- package/dist/cjs/components/Card.d.ts +1 -1
- package/dist/cjs/components/Card.js +4 -4
- package/dist/cjs/components/Card.js.map +1 -1
- package/dist/cjs/components/Cuboid.d.ts +1 -1
- package/dist/cjs/components/Cuboid.js +8 -8
- package/dist/cjs/components/Cuboid.js.map +1 -1
- package/dist/cjs/components/Faces/Face.d.ts +1 -1
- package/dist/cjs/components/Faces/Face.js +19 -15
- package/dist/cjs/components/Faces/Face.js.map +1 -1
- package/dist/cjs/components/Ribbon.d.ts +1 -1
- package/dist/cjs/components/Ribbon.js +5 -5
- package/dist/cjs/components/Ribbon.js.map +1 -1
- package/dist/cjs/components/index.d.ts +5 -5
- package/dist/cjs/components/styles/AnimWrap.d.ts +1 -1
- package/dist/cjs/components/styles/AnimWrap.js +44 -44
- package/dist/cjs/components/styles/AnimWrap.js.map +1 -1
- package/dist/cjs/components/styles/Anims.d.ts +0 -4
- package/dist/cjs/components/styles/Anims.js +18 -79
- package/dist/cjs/components/styles/Anims.js.map +1 -1
- package/dist/cjs/components/styles/Global.js +4 -4
- package/dist/cjs/components/styles/Scene.js +8 -8
- package/dist/cjs/components/styles/Scene.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/esm/components/Button.d.ts +1 -1
- package/dist/esm/components/Button.js +1 -1
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Card.d.ts +1 -1
- package/dist/esm/components/Card.js +9 -9
- package/dist/esm/components/Card.js.map +1 -1
- package/dist/esm/components/Cuboid.d.ts +1 -1
- package/dist/esm/components/Cuboid.js +13 -13
- package/dist/esm/components/Cuboid.js.map +1 -1
- package/dist/esm/components/Faces/Face.d.ts +1 -1
- package/dist/esm/components/Faces/Face.js +21 -17
- package/dist/esm/components/Faces/Face.js.map +1 -1
- package/dist/esm/components/Ribbon.d.ts +1 -1
- package/dist/esm/components/Ribbon.js +10 -10
- package/dist/esm/components/Ribbon.js.map +1 -1
- package/dist/esm/components/index.d.ts +5 -5
- package/dist/esm/components/index.js +5 -5
- package/dist/esm/components/styles/AnimWrap.d.ts +1 -1
- package/dist/esm/components/styles/AnimWrap.js +47 -47
- package/dist/esm/components/styles/AnimWrap.js.map +1 -1
- package/dist/esm/components/styles/Anims.d.ts +0 -4
- package/dist/esm/components/styles/Anims.js +19 -80
- package/dist/esm/components/styles/Anims.js.map +1 -1
- package/dist/esm/components/styles/Global.js +5 -5
- package/dist/esm/components/styles/Scene.js +10 -10
- package/dist/esm/components/styles/Scene.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +46 -39
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1,59 +1,154 @@
|
|
|
1
|
-
# React Typescript Cuboid Builder
|
|
2
|
-
|
|
3
|
-
This project allows a user to create Cuboids of any size simply by entering a set of parameters.
|
|
4
|
-
The program does the leg work with regard to calculating translationZ depth and config on the fly.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
1
|
+
# React Typescript Cuboid Builder
|
|
2
|
+
|
|
3
|
+
This project allows a user to create Cuboids of any size simply by entering a set of parameters.
|
|
4
|
+
The program does the leg work with regard to calculating translationZ depth and config on the fly.
|
|
5
|
+
|
|
6
|
+
- [GIT HOME](https://github.com/mdnelles/anim-3d-objs-launcher)
|
|
7
|
+
- [NPM HOME](https://www.npmjs.com/package/anim-3d-obj) npm i anim-3d-obj
|
|
8
|
+
|
|
9
|
+
## Examples
|
|
10
|
+
|
|
11
|
+
- [6 sided Cuboid - animate X360 Y360](https://codesandbox.io/s/anim-3d-obj-all-sides-simple-bf67yg)
|
|
12
|
+
- [3 sided Object - animate y-axis](https://codesandbox.io/s/anim-3d-obj-3-sides-wobble-y-axis-wglkms)
|
|
13
|
+
- [Double box spin](https://codesandbox.io/s/react-anim-3d-double-box-spin-vbdhg2)
|
|
14
|
+
- [2 sided object with animation wobble](https://codesandbox.io/s/anim-3d-obj-wobblex-mmidkg)
|
|
15
|
+
- [Parallel divs animated x and y axis in tandem](https://codesandbox.io/s/anim-3d-obj-2-sides-simple-4057y7)
|
|
16
|
+
- [Spinning Slab](https://codesandbox.io/s/react-anim-3d-pulse-kc8g0f)
|
|
17
|
+
|
|
18
|
+
## Config
|
|
19
|
+
|
|
20
|
+
Animations are optional. Either or both of `anim1Specs` or `anim2Specs` can be applied to the object.
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
const anim1Specs: object = {
|
|
24
|
+
border: '', // while testing reveal the animation wrapper
|
|
25
|
+
degreesHi: -45, // degrees if spin
|
|
26
|
+
degreesLow: 45, // degrees if spin
|
|
27
|
+
delay: 0, // start delay in seconds
|
|
28
|
+
direction: 'normal', //normal alternating reverse
|
|
29
|
+
duration: 8, // seconds
|
|
30
|
+
fillMode: 'forward', // node forward backward both
|
|
31
|
+
iterationCount: 'infinite', // number or infinte
|
|
32
|
+
name: 'Y360', // ** ANIMATIONS
|
|
33
|
+
timing: 'ease-in-out', // linear ease ease-in-out
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`** ANIMATIONS`
|
|
38
|
+
|
|
39
|
+
- X360: rotate 360 degrees on the x-axis
|
|
40
|
+
- Y360: rotate 360 degrees on the y-axis
|
|
41
|
+
- fadeInkf: fade object in from 0 to 1 Opacity
|
|
42
|
+
- wobY: wobble on y-axis (degreesHi <-> degreesLow)
|
|
43
|
+
- wobX: wobble on x-axis (degreesHi <-> degreesLow)
|
|
44
|
+
- fwdx018: spin object on x-axis from 0 degrees to 180 degrees
|
|
45
|
+
- fwdx1836: spin object on x-axis from 180 degrees to 360 degrees
|
|
46
|
+
- fwdx09: spin object on x-axis from 0 degrees to 90 degrees
|
|
47
|
+
- fwdx918: spin object on x-axis from 90 degrees to 180 degrees
|
|
48
|
+
- fwdx1827: spin object on x-axis from 180 degrees to 270 degrees
|
|
49
|
+
- fwdx2736: spin object on x-axis from 270 degrees to 360 degrees
|
|
50
|
+
- fwdy018: spin object on y-axis from 0 degrees to 180 degrees
|
|
51
|
+
- fwdy1836: spin object on y-axis from 180 degrees to 360 degrees
|
|
52
|
+
- fwdy09: spin object on y-axis from 0 degrees to 90 degrees
|
|
53
|
+
- fwdy918: spin object on y-axis from 90 degrees to 180 degrees
|
|
54
|
+
- fwdy1827: spin object on y-axis from 180 degrees to 270 degrees
|
|
55
|
+
- fwdy2736: spin object on y-axis from 270 degrees to 360 degrees
|
|
56
|
+
- floatX: float object so is not stationary
|
|
57
|
+
- floatShadow: float object + add shadow
|
|
58
|
+
- pulseSM: pulse object Small
|
|
59
|
+
- pulseMD: pulse object Medium
|
|
60
|
+
- pulseLG: pulse object Large
|
|
61
|
+
- noAnim: no animation place holder
|
|
62
|
+
|
|
63
|
+
<>
|
|
64
|
+
|
|
65
|
+
GLOBAL CONFIG
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
// EXAMPLE GLOBAL FACE CONFIG
|
|
69
|
+
// This will be applied to all Faces that do not have their own custom config
|
|
70
|
+
const global: object = {
|
|
71
|
+
// // face individual styles (over rides global)
|
|
72
|
+
css: `
|
|
73
|
+
border: 1px solid #fff;
|
|
74
|
+
background: rgb(2,0,36);
|
|
75
|
+
background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(141,191,249,.7) 100%);
|
|
76
|
+
color:white;
|
|
77
|
+
text-align:center;
|
|
78
|
+
line-height:10;
|
|
79
|
+
backface-visibility: visible;
|
|
80
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
81
|
+
border-radius:5px;
|
|
82
|
+
`,
|
|
83
|
+
body: ' ',
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
<>
|
|
88
|
+
|
|
89
|
+
CUSTOM CONFIG FOR INDIVIDUAL FACES
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
const custom: object = {
|
|
93
|
+
// // face individual styles (over rides global)
|
|
94
|
+
front: {
|
|
95
|
+
css: ``,
|
|
96
|
+
body: <Login />,
|
|
97
|
+
},
|
|
98
|
+
left: {
|
|
99
|
+
css: `
|
|
100
|
+
border: 1px solid #fff;
|
|
101
|
+
background: rgb(2,0,36);
|
|
102
|
+
color:white;
|
|
103
|
+
text-align: center;
|
|
104
|
+
line-height:8;`
|
|
105
|
+
body: " ",
|
|
106
|
+
},
|
|
107
|
+
right: {
|
|
108
|
+
css: ``,
|
|
109
|
+
body: " ",
|
|
110
|
+
},
|
|
111
|
+
back: {
|
|
112
|
+
css: ``,
|
|
113
|
+
body: <Logout />,
|
|
114
|
+
},
|
|
115
|
+
bottom: {
|
|
116
|
+
css: `
|
|
117
|
+
background-color:rgba(141,191,249,1);
|
|
118
|
+
-webkit-box-shadow: 0px 0px 23px 18px #858585;
|
|
119
|
+
box-shadow: 0px 0px 23px 18px #858585;
|
|
120
|
+
`,
|
|
121
|
+
},
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Render
|
|
125
|
+
|
|
126
|
+
and
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
<Cuboid
|
|
130
|
+
width={250}
|
|
131
|
+
height={300}
|
|
132
|
+
depth={250}
|
|
133
|
+
perspective={800}
|
|
134
|
+
perspectiveOrigin='50% 50%'
|
|
135
|
+
zIndex={10}
|
|
136
|
+
anim1Specs={anim1Specs}
|
|
137
|
+
anim2Specs={anim2Specs}
|
|
138
|
+
custom={custom}
|
|
139
|
+
faces={faceprops}
|
|
140
|
+
global={global}
|
|
141
|
+
/>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
will produce the following
|
|
145
|
+
|
|
146
|
+

|
|
147
|
+
|
|
148
|
+
## Authors
|
|
149
|
+
|
|
150
|
+
- [@mdnelles](https://github.com/mdnelles)
|
|
151
|
+
|
|
152
|
+
## License
|
|
153
|
+
|
|
154
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAWnB,MAAM,MAAM,GAA0C,CAAC,KAAK,EAAE,EAAE;IACrE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAE1D,IAAI,MAAM,GAAwB,KAAK,IAAI,EAAE,CAAC;IAE9C,wBAAwB;IACxB,IAAI,eAAe,IAAI,MAAM;QAAE,MAAM,CAAC,eAAe,GAAG,eAAe,CAAC;IACxE,IAAI,KAAK,IAAI,MAAM;QAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;IAE1C,OAAO,CACL,wDAAQ,KAAK,EAAE,MAAM,IAAM,KAAK,GAC7B,QAAQ,CACF,CACV,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,MAAM,UAcjB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjProps } from
|
|
1
|
+
import { ObjProps } from "./Faces/FaceInter";
|
|
2
2
|
export declare const Card: (props: ObjProps) => any;
|
|
@@ -10,16 +10,16 @@ const Scene_1 = require("./styles/Scene");
|
|
|
10
10
|
const Face_1 = __importDefault(require("./Faces/Face"));
|
|
11
11
|
const Global_1 = require("./styles/Global");
|
|
12
12
|
const Card = (props) => {
|
|
13
|
-
let { anim1Specs, anim2Specs, width = 5, height = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex } = props;
|
|
13
|
+
let { anim1Specs, anim2Specs, width = 5, height = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex, } = props;
|
|
14
14
|
const buildFace = (faceType) => {
|
|
15
|
-
return react_1.default.createElement(Face_1.default, { width: width, height: height, depth: 0.1, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom });
|
|
15
|
+
return (react_1.default.createElement(Face_1.default, { width: width, height: height, depth: 0.1, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom }));
|
|
16
16
|
};
|
|
17
17
|
return (react_1.default.createElement(Scene_1.SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
18
18
|
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs },
|
|
19
19
|
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs },
|
|
20
20
|
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
21
|
-
!!faces && !!faces.front ? buildFace(
|
|
22
|
-
!!faces && !!faces.back ? buildFace(
|
|
21
|
+
!!faces && !!faces.front ? buildFace("front") : null,
|
|
22
|
+
!!faces && !!faces.back ? buildFace("back") : null)))));
|
|
23
23
|
};
|
|
24
24
|
exports.Card = Card;
|
|
25
25
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/components/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,gDAA6C;AAC7C,0CAA4C;AAE5C,wDAAgC;AAChC,4CAA6C;AAEtC,MAAM,IAAI,GAAG,CAAC,KAAe,EAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/components/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,gDAA6C;AAC7C,0CAA4C;AAE5C,wDAAgC;AAChC,4CAA6C;AAEtC,MAAM,IAAI,GAAG,CAAC,KAAe,EAAO,EAAE;IAC3C,IAAI,EACF,UAAU,EACV,UAAU,EACV,KAAK,GAAG,CAAC,EACT,MAAM,GAAG,CAAC,EACV,KAAK,EACL,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,EAAE,EACX,KAAK,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EACzB,WAAW,EACX,iBAAiB,EACjB,MAAM,GACP,GAAG,KAAK,CAAC;IAEV,MAAM,SAAS,GAAG,CAAC,QAAa,EAAO,EAAE;QACvC,OAAO,CACL,8BAAC,cAAI,IACH,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACd,CACH,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,8BAAC,kBAAU,IACT,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,MAAM,EAAE,MAAM;QAEd,8BAAC,mBAAQ,IAAC,SAAS,EAAE,UAAU;YAC7B,8BAAC,mBAAQ,IAAC,SAAS,EAAE,UAAU;gBAC7B,8BAAC,mBAAU;oBACR,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;oBACpD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CACxC,CACJ,CACF,CACA,CACd,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,IAAI,QAgDf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjProps } from
|
|
1
|
+
import { ObjProps } from "./Faces/FaceInter";
|
|
2
2
|
export declare const Cuboid: (props: ObjProps) => any;
|
|
@@ -10,20 +10,20 @@ const Scene_1 = require("./styles/Scene");
|
|
|
10
10
|
const Face_1 = __importDefault(require("./Faces/Face"));
|
|
11
11
|
const Global_1 = require("./styles/Global");
|
|
12
12
|
const Cuboid = (props) => {
|
|
13
|
-
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex } = props;
|
|
13
|
+
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex, } = props;
|
|
14
14
|
const buildFace = (faceType) => {
|
|
15
|
-
return react_1.default.createElement(Face_1.default, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom });
|
|
15
|
+
return (react_1.default.createElement(Face_1.default, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom }));
|
|
16
16
|
};
|
|
17
17
|
return (react_1.default.createElement(Scene_1.SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
18
18
|
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs },
|
|
19
19
|
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs },
|
|
20
20
|
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
21
|
-
!!faces && !!faces.front ? buildFace(
|
|
22
|
-
!!faces && !!faces.right ? buildFace(
|
|
23
|
-
!!faces && !!faces.back ? buildFace(
|
|
24
|
-
!!faces && !!faces.left ? buildFace(
|
|
25
|
-
!!faces && !!faces.top ? buildFace(
|
|
26
|
-
!!faces && !!faces.bottom ? buildFace(
|
|
21
|
+
!!faces && !!faces.front ? buildFace("front") : null,
|
|
22
|
+
!!faces && !!faces.right ? buildFace("right") : null,
|
|
23
|
+
!!faces && !!faces.back ? buildFace("back") : null,
|
|
24
|
+
!!faces && !!faces.left ? buildFace("left") : null,
|
|
25
|
+
!!faces && !!faces.top ? buildFace("top") : null,
|
|
26
|
+
!!faces && !!faces.bottom ? buildFace("bottom") : null)))));
|
|
27
27
|
};
|
|
28
28
|
exports.Cuboid = Cuboid;
|
|
29
29
|
//# sourceMappingURL=Cuboid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cuboid.js","sourceRoot":"","sources":["../../../src/components/Cuboid.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,gDAA6C;AAC7C,0CAA4C;AAE5C,wDAAgC;AAChC,4CAA6C;AAEtC,MAAM,MAAM,GAAG,CAAC,KAAe,EAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"Cuboid.js","sourceRoot":"","sources":["../../../src/components/Cuboid.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,g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C,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,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,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;oBAChD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAC5C,CACJ,CACF,CACA,CACd,CAAC;AACJ,CAAC,CAAC;AArDW,QAAA,MAAM,UAqDjB"}
|
|
@@ -6,33 +6,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const Face = (props) => {
|
|
9
|
-
let { depth = 10, faceType, global = {}, height = 10, custom = false, tranz = 80, width = 100 } = props;
|
|
9
|
+
let { depth = 10, faceType, global = {}, height = 10, custom = false, tranz = 80, width = 100, } = props;
|
|
10
10
|
let transform;
|
|
11
|
-
let styles = !!custom[faceType] && !!custom[faceType].css
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
let styles = !!custom[faceType] && !!custom[faceType].css
|
|
12
|
+
? custom[faceType].css
|
|
13
|
+
: global.css;
|
|
14
|
+
const body = !!custom[faceType] && !!custom[faceType].body
|
|
15
|
+
? custom[faceType].body
|
|
16
|
+
: global.body;
|
|
17
|
+
if (faceType === "bottom") {
|
|
14
18
|
tranz = +height - +depth / 2;
|
|
15
19
|
height = +depth;
|
|
16
20
|
transform = `transform: rotateX(-90deg) translateZ(${tranz}px);`;
|
|
17
21
|
//styles = !!custom["top"] ? custom : global;
|
|
18
22
|
}
|
|
19
|
-
else if (faceType ===
|
|
23
|
+
else if (faceType === "top") {
|
|
20
24
|
height = +depth;
|
|
21
25
|
if (!!depth)
|
|
22
26
|
tranz = +depth / 2;
|
|
23
27
|
transform = `transform: rotateX(90deg) translateZ(${tranz}px);`;
|
|
24
28
|
}
|
|
25
|
-
else if (faceType ===
|
|
29
|
+
else if (faceType === "front") {
|
|
26
30
|
if (!!depth)
|
|
27
31
|
tranz = +depth / 2;
|
|
28
32
|
transform = `transform: rotateY(0deg) translateZ(${tranz}px);`;
|
|
29
33
|
}
|
|
30
|
-
else if (faceType ===
|
|
34
|
+
else if (faceType === "back") {
|
|
31
35
|
if (!!depth)
|
|
32
36
|
tranz = +depth / 2;
|
|
33
37
|
transform = `transform: rotateY(180deg) translateZ(${tranz}px);`;
|
|
34
38
|
}
|
|
35
|
-
else if (faceType ===
|
|
39
|
+
else if (faceType === "right") {
|
|
36
40
|
if (height > width && !depth) {
|
|
37
41
|
tranz = -(+height / 2 - +width);
|
|
38
42
|
width = +height;
|
|
@@ -48,7 +52,7 @@ const Face = (props) => {
|
|
|
48
52
|
transform = `transform: rotateY(90deg) translateZ(${tranz}px);`;
|
|
49
53
|
// topr is to of Ribbon which points back
|
|
50
54
|
}
|
|
51
|
-
else if (faceType ===
|
|
55
|
+
else if (faceType === "topr") {
|
|
52
56
|
height = +depth;
|
|
53
57
|
if (!!depth)
|
|
54
58
|
tranz = +depth / 2;
|
|
@@ -72,12 +76,12 @@ const Face = (props) => {
|
|
|
72
76
|
}
|
|
73
77
|
//const BackFlip: any = styled.section``;
|
|
74
78
|
const Specs = styled_components_1.default.section `
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
${styles}
|
|
80
|
+
width: ${width}px;
|
|
81
|
+
position: absolute;
|
|
82
|
+
height: ${height}px;
|
|
83
|
+
${transform};
|
|
84
|
+
`;
|
|
81
85
|
return react_1.default.createElement(Specs, null, body);
|
|
82
86
|
};
|
|
83
87
|
exports.default = Face;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Face.js","sourceRoot":"","sources":["../../../../src/components/Faces/Face.tsx"],"names":[],"mappings":";;;;;AAAA,0EAAuC;AACvC,kDAA0B;AAG1B,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAe,EAAE;
|
|
1
|
+
{"version":3,"file":"Face.js","sourceRoot":"","sources":["../../../../src/components/Faces/Face.tsx"],"names":[],"mappings":";;;;;AAAA,0EAAuC;AACvC,kDAA0B;AAG1B,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAe,EAAE;IAC7C,IAAI,EACF,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,KAAK,EACd,KAAK,GAAG,EAAE,EACV,KAAK,GAAG,GAAG,GACZ,GAAG,KAAK,CAAC;IAEV,IAAI,SAAS,CAAC;IACd,IAAI,MAAM,GACR,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG;QAC1C,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG;QACtB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IACjB,MAAM,IAAI,GACR,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI;QAC3C,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI;QACvB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;IAClB,IAAI,QAAQ,KAAK,QAAQ,EAAE;QACzB,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;QAC7B,MAAM,GAAG,CAAC,KAAK,CAAC;QA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CAAC,CAAC,KAAK;YAAE,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;QAChC,yBAAyB;QACzB,SAAS,GAAG,wCAAwC,KAAK,SAAS,CAAC;KACpE;SAAM;QACL,IAAI,MAAM,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE;YAC5B,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAChC,KAAK,GAAG,CAAC,MAAM,CAAC;SACjB;aAAM,IAAI,KAAK,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE;YACnC,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;YACpB,MAAM,GAAG,CAAC,KAAK,CAAC;SACjB;aAAM;YACL,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC;YACnB,KAAK,GAAG,CAAC,KAAK,CAAC;SAChB;QACD,SAAS,GAAG,yCAAyC,KAAK,MAAM,CAAC;KAClE;IAED,yCAAyC;IAEzC,MAAM,KAAK,GAAQ,2BAAM,CAAC,OAAO,CAAA;MAC7B,MAAM;aACC,KAAK;;cAEJ,MAAM;MACd,SAAS;GACZ,CAAC;IAEF,OAAO,8BAAC,KAAK,QAAE,IAAI,CAAS,CAAC;AAC/B,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjProps } from
|
|
1
|
+
import { ObjProps } from "./Faces/FaceInter";
|
|
2
2
|
export declare const Ribbon: (props: ObjProps) => any;
|
|
@@ -10,17 +10,17 @@ const Scene_1 = require("./styles/Scene");
|
|
|
10
10
|
const Face_1 = __importDefault(require("./Faces/Face"));
|
|
11
11
|
const Global_1 = require("./styles/Global");
|
|
12
12
|
const Ribbon = (props) => {
|
|
13
|
-
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex } = props;
|
|
13
|
+
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex, } = props;
|
|
14
14
|
const buildFace = (faceType) => {
|
|
15
|
-
return react_1.default.createElement(Face_1.default, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom });
|
|
15
|
+
return (react_1.default.createElement(Face_1.default, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom }));
|
|
16
16
|
};
|
|
17
17
|
return (react_1.default.createElement(Scene_1.SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
18
18
|
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs },
|
|
19
19
|
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs },
|
|
20
20
|
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
21
|
-
!!faces && !!faces.bottom ? buildFace(
|
|
22
|
-
!!faces && !!faces.back ? buildFace(
|
|
23
|
-
!!faces && !!faces.top ? buildFace(
|
|
21
|
+
!!faces && !!faces.bottom ? buildFace("bottom") : null,
|
|
22
|
+
!!faces && !!faces.back ? buildFace("back") : null,
|
|
23
|
+
!!faces && !!faces.top ? buildFace("topr") : null)))));
|
|
24
24
|
};
|
|
25
25
|
exports.Ribbon = Ribbon;
|
|
26
26
|
//# sourceMappingURL=Ribbon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,gDAA6C;AAC7C,0CAA4C;AAE5C,wDAAgC;AAChC,4CAA6C;AAEtC,MAAM,MAAM,GAAG,CAAC,KAAe,EAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names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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,CACvC,CACJ,CACF,CACA,CACd,CAAC;AACJ,CAAC,CAAC;AAlDW,QAAA,MAAM,UAkDjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./Button";
|
|
2
|
+
export * from "./Faces/Face";
|
|
3
|
+
export * from "./Card";
|
|
4
|
+
export * from "./Cuboid";
|
|
5
|
+
export * from "./Ribbon";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnimStylesProps } from
|
|
1
|
+
import { AnimStylesProps } from "./Anim";
|
|
2
2
|
export declare const AnimWrap: (props: AnimStylesProps) => JSX.Element;
|
|
@@ -10,76 +10,76 @@ const Anims_1 = require("./Anims");
|
|
|
10
10
|
const AnimWrap = (props) => {
|
|
11
11
|
const { children, animSpecs } = props;
|
|
12
12
|
const AS = animSpecs;
|
|
13
|
-
const { X360, Y360, fadeInkf, wobY, wobX, fwdx018, fwdx1836, fwdx09, fwdx918, fwdx1827, fwdx2736, fwdy018, fwdy1836, fwdy09, fwdy918, fwdy1827, fwdy2736, floatX, floatShadow, pulseSM, pulseMD, pulseLG, noAnim } = (0, Anims_1.allAnims)({ degreesHi: AS.degreesHi, degreesLow: AS.degreesLow });
|
|
14
|
-
let theAnim =
|
|
13
|
+
const { X360, Y360, fadeInkf, wobY, wobX, fwdx018, fwdx1836, fwdx09, fwdx918, fwdx1827, fwdx2736, fwdy018, fwdy1836, fwdy09, fwdy918, fwdy1827, fwdy2736, floatX, floatShadow, pulseSM, pulseMD, pulseLG, noAnim, } = (0, Anims_1.allAnims)({ degreesHi: AS.degreesHi, degreesLow: AS.degreesLow });
|
|
14
|
+
let theAnim = "noAnim";
|
|
15
15
|
// need to iterate through all animation posibilities and not use eval() to satisfy TS
|
|
16
|
-
if (AS.name ===
|
|
16
|
+
if (AS.name === "X360")
|
|
17
17
|
theAnim = X360;
|
|
18
|
-
else if (AS.name ===
|
|
18
|
+
else if (AS.name === "Y360")
|
|
19
19
|
theAnim = Y360;
|
|
20
|
-
else if (AS.name ===
|
|
20
|
+
else if (AS.name === "fadeInkf")
|
|
21
21
|
theAnim = fadeInkf;
|
|
22
|
-
else if (AS.name ===
|
|
22
|
+
else if (AS.name === "wobX")
|
|
23
23
|
theAnim = wobX;
|
|
24
|
-
else if (AS.name ===
|
|
24
|
+
else if (AS.name === "wobY")
|
|
25
25
|
theAnim = wobY;
|
|
26
|
-
else if (AS.name ===
|
|
26
|
+
else if (AS.name === "fwdx018")
|
|
27
27
|
theAnim = fwdx018;
|
|
28
|
-
else if (AS.name ===
|
|
28
|
+
else if (AS.name === "fwdx1836")
|
|
29
29
|
theAnim = fwdx1836;
|
|
30
|
-
else if (AS.name ===
|
|
30
|
+
else if (AS.name === "fwdx09")
|
|
31
31
|
theAnim = fwdx09;
|
|
32
|
-
else if (AS.name ===
|
|
32
|
+
else if (AS.name === "fwdx918")
|
|
33
33
|
theAnim = fwdx918;
|
|
34
|
-
else if (AS.name ===
|
|
34
|
+
else if (AS.name === "fwdx1827")
|
|
35
35
|
theAnim = fwdx1827;
|
|
36
|
-
else if (AS.name ===
|
|
36
|
+
else if (AS.name === "fwdx2736")
|
|
37
37
|
theAnim = fwdx2736;
|
|
38
|
-
else if (AS.name ===
|
|
38
|
+
else if (AS.name === "fwdy018")
|
|
39
39
|
theAnim = fwdy018;
|
|
40
|
-
else if (AS.name ===
|
|
40
|
+
else if (AS.name === "fwdy1836")
|
|
41
41
|
theAnim = fwdy1836;
|
|
42
|
-
else if (AS.name ===
|
|
42
|
+
else if (AS.name === "fwdy09")
|
|
43
43
|
theAnim = fwdy09;
|
|
44
|
-
else if (AS.name ===
|
|
44
|
+
else if (AS.name === "fwdy918")
|
|
45
45
|
theAnim = fwdy918;
|
|
46
|
-
else if (AS.name ===
|
|
46
|
+
else if (AS.name === "fwdy1827")
|
|
47
47
|
theAnim = fwdy1827;
|
|
48
|
-
else if (AS.name ===
|
|
48
|
+
else if (AS.name === "fwdy2736")
|
|
49
49
|
theAnim = fwdy2736;
|
|
50
|
-
else if (AS.name ===
|
|
50
|
+
else if (AS.name === "floatX")
|
|
51
51
|
theAnim = floatX;
|
|
52
|
-
else if (AS.name ===
|
|
52
|
+
else if (AS.name === "floatShadow")
|
|
53
53
|
theAnim = floatShadow;
|
|
54
|
-
else if (AS.name ===
|
|
54
|
+
else if (AS.name === "pulseSM")
|
|
55
55
|
theAnim = pulseSM;
|
|
56
|
-
else if (AS.name ===
|
|
56
|
+
else if (AS.name === "pulseMD")
|
|
57
57
|
theAnim = pulseMD;
|
|
58
|
-
else if (AS.name ===
|
|
58
|
+
else if (AS.name === "pulseLG")
|
|
59
59
|
theAnim = pulseLG;
|
|
60
60
|
else
|
|
61
61
|
theAnim = noAnim;
|
|
62
62
|
const AnimWrapDiv = styled_components_1.default.div `
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
position: relative;
|
|
66
|
+
transform-style: preserve-3d;
|
|
67
|
+
border: ${AS.border};
|
|
68
|
+
-webkit-animation-duration: ${AS.duration}s;
|
|
69
|
+
animation-duration: ${AS.duration}s;
|
|
70
|
+
-webkit-animation-iteration-count: ${AS.iterationCount};
|
|
71
|
+
animation-iteration-count: ${AS.iterationCount};
|
|
72
|
+
-webkit-animation-name: ${theAnim};
|
|
73
|
+
animation-name: ${theAnim};
|
|
74
|
+
-webkit-animation-fill-mode: ${AS.fillMode};
|
|
75
|
+
animation-fill-mode: ${AS.fillMode};
|
|
76
|
+
animation-direction: ${AS.direction};
|
|
77
|
+
-webkit-animation-direction: ${AS.direction};
|
|
78
|
+
-webkit-animation-timing-function: ${AS.timing};
|
|
79
|
+
animation-timing-function: ${AS.timing};
|
|
80
|
+
-webkit-animation-delay: ${AS.delay}s;
|
|
81
|
+
animation-delay: ${AS.delay}s;
|
|
82
|
+
`;
|
|
83
83
|
return react_1.default.createElement(AnimWrapDiv, null, children);
|
|
84
84
|
};
|
|
85
85
|
exports.AnimWrap = AnimWrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimWrap.js","sourceRoot":"","sources":["../../../../src/components/styles/AnimWrap.tsx"],"names":[],"mappings":";;;;;;AAAA,0EAAuC;AACvC,kDAA0B;AAE1B,mCAAmC;AAE5B,MAAM,QAAQ,GAAG,CAAC,KAAsB,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"AnimWrap.js","sourceRoot":"","sources":["../../../../src/components/styles/AnimWrap.tsx"],"names":[],"mappings":";;;;;;AAAA,0EAAuC;AACvC,kDAA0B;AAE1B,mCAAmC;AAE5B,MAAM,QAAQ,GAAG,CAAC,KAAsB,EAAE,EAAE;IACjD,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,GAAQ,SAAS,CAAC;IAE1B,MAAM,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,EACX,OAAO,EACP,OAAO,EACP,OAAO,EACP,MAAM,GACP,GAAG,IAAA,gB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