anim-3d-obj 1.1.15 → 1.1.19
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 +154 -107
- package/dist/cjs/components/Card.d.ts +2 -0
- package/dist/cjs/components/Card.js +20 -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 +21 -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 +86 -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 +20 -0
- package/dist/cjs/components/Ribbon.js.map +1 -0
- package/dist/cjs/components/styles/AnimWrap.d.ts +2 -0
- package/dist/cjs/components/styles/AnimWrap.js +94 -0
- package/dist/cjs/components/styles/AnimWrap.js.map +1 -0
- package/dist/cjs/components/styles/Anims.d.ts +30 -0
- package/dist/cjs/components/styles/Anims.js +275 -0
- 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 +22 -0
- package/dist/cjs/components/styles/Scene.js.map +1 -0
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.js +17 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/components/Card.d.ts +2 -0
- package/dist/esm/components/Card.js +13 -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 +14 -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 +81 -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 +13 -0
- package/dist/esm/components/Ribbon.js.map +1 -0
- package/dist/esm/components/styles/AnimWrap.d.ts +2 -0
- package/dist/esm/components/styles/AnimWrap.js +87 -0
- package/dist/esm/components/styles/AnimWrap.js.map +1 -0
- package/dist/esm/components/styles/Anims.d.ts +30 -0
- package/{src/components/styles/Anims.ts → dist/esm/components/styles/Anims.js} +81 -100
- 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 +15 -0
- package/dist/esm/components/styles/Scene.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +32 -62
- package/.eslintignore +0 -2
- package/.eslintrc +0 -32
- package/.prettierrc.json +0 -10
- package/jestconfig.json +0 -8
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/src/components/Card.tsx +0 -55
- package/src/components/Cuboid.tsx +0 -61
- package/src/components/Faces/Face.tsx +0 -72
- package/src/components/Faces/FaceInter.d.ts +0 -39
- package/src/components/Ribbon.tsx +0 -57
- package/src/components/styles/Anim.d.ts +0 -16
- package/src/components/styles/AnimWrap.tsx +0 -92
- package/src/components/styles/Global.ts +0 -7
- package/src/components/styles/Scene.tsx +0 -30
- package/src/index.ts +0 -9
- package/tests/common.test.tsx +0 -29
- package/tsconfig.json +0 -29
|
@@ -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 'styled-components'
|
|
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);
|
|
@@ -17,10 +10,9 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
17
10
|
-webkit-transform: rotateX(0deg);
|
|
18
11
|
transform: rotateX(0deg);
|
|
19
12
|
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const Y360 = keyframes`
|
|
13
|
+
}`;
|
|
14
|
+
//////// Y360
|
|
15
|
+
const Y360 = keyframes `
|
|
24
16
|
from {
|
|
25
17
|
-webkit-transform: rotateY(360deg);
|
|
26
18
|
transform: rotateY(360deg);
|
|
@@ -28,17 +20,15 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
28
20
|
to {
|
|
29
21
|
-webkit-transform: rotateY(0deg);
|
|
30
22
|
transform: rotateY(0deg);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const fadeInkf = keyframes`
|
|
23
|
+
}`;
|
|
24
|
+
const fadeInkf = keyframes `
|
|
34
25
|
from {
|
|
35
26
|
opacity: 0;
|
|
36
27
|
}
|
|
37
28
|
to {
|
|
38
29
|
opacity: 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const wobY = keyframes`
|
|
30
|
+
}`;
|
|
31
|
+
const wobY = keyframes `
|
|
42
32
|
0% {
|
|
43
33
|
-webkit-transform: rotateY(${degreesLow}deg);
|
|
44
34
|
transform: rotateY(${degreesLow}deg);
|
|
@@ -50,9 +40,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
50
40
|
100% {
|
|
51
41
|
-webkit-transform: rotateY(${degreesLow}deg);
|
|
52
42
|
transform: rotateY(${degreesLow}deg);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const wobX = keyframes`
|
|
43
|
+
}`;
|
|
44
|
+
const wobX = keyframes `
|
|
56
45
|
0% {
|
|
57
46
|
-webkit-transform: rotateX(${degreesLow}deg);
|
|
58
47
|
transform: rotateX(${degreesLow}deg);
|
|
@@ -64,9 +53,9 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
64
53
|
100% {
|
|
65
54
|
-webkit-transform: rotateX(${degreesLow}deg);
|
|
66
55
|
transform: rotateX(${degreesLow}deg);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
}`;
|
|
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);
|
|
@@ -74,8 +63,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
74
63
|
to {
|
|
75
64
|
-webkit-transform: rotateX(180deg);
|
|
76
65
|
transform: rotateX(180deg);
|
|
77
|
-
}
|
|
78
|
-
|
|
66
|
+
}`;
|
|
67
|
+
const fwdx1836 = keyframes `
|
|
79
68
|
from {
|
|
80
69
|
-webkit-transform: rotateX(180deg);
|
|
81
70
|
transform: rotateX(180deg);
|
|
@@ -83,9 +72,9 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
83
72
|
to {
|
|
84
73
|
-webkit-transform: rotateX(0deg);
|
|
85
74
|
transform: rotateX(0deg);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
75
|
+
}`;
|
|
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);
|
|
@@ -93,8 +82,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
93
82
|
to {
|
|
94
83
|
-webkit-transform: rotateX(90deg);
|
|
95
84
|
transform: rotateX(90deg);
|
|
96
|
-
}
|
|
97
|
-
|
|
85
|
+
}`;
|
|
86
|
+
const fwdx918 = keyframes `
|
|
98
87
|
from {
|
|
99
88
|
-webkit-transform: rotateX(-90deg);
|
|
100
89
|
transform: rotateX(-90deg);
|
|
@@ -102,8 +91,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
102
91
|
to {
|
|
103
92
|
-webkit-transform: rotateX(-180deg);
|
|
104
93
|
transform: rotateX(-180deg);
|
|
105
|
-
}
|
|
106
|
-
|
|
94
|
+
}`;
|
|
95
|
+
const fwdx1827 = keyframes `
|
|
107
96
|
from {
|
|
108
97
|
-webkit-transform: rotateX(-180deg);
|
|
109
98
|
transform: rotateX(-180deg);
|
|
@@ -111,8 +100,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
111
100
|
to {
|
|
112
101
|
-webkit-transform: rotateX(-270deg);
|
|
113
102
|
transform: rotateX(-270deg);
|
|
114
|
-
}
|
|
115
|
-
|
|
103
|
+
}`;
|
|
104
|
+
const fwdx2736 = keyframes `
|
|
116
105
|
from {
|
|
117
106
|
-webkit-transform: rotateX(-270deg);
|
|
118
107
|
transform: rotateX(-270deg);
|
|
@@ -120,10 +109,9 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
120
109
|
to {
|
|
121
110
|
-webkit-transform: rotateX(-360deg);
|
|
122
111
|
transform: rotateX(-360deg);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const fwdy018 = keyframes`
|
|
112
|
+
}`;
|
|
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);
|
|
@@ -131,8 +119,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
131
119
|
to {
|
|
132
120
|
-webkit-transform: rotateY(180deg);
|
|
133
121
|
transform: rotateY(180deg);
|
|
134
|
-
}
|
|
135
|
-
|
|
122
|
+
}`;
|
|
123
|
+
const fwdy1836 = keyframes `
|
|
136
124
|
from {
|
|
137
125
|
-webkit-transform: rotateY(180deg);
|
|
138
126
|
transform: rotateY(180deg);
|
|
@@ -140,10 +128,9 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
140
128
|
to {
|
|
141
129
|
-webkit-transform: rotateY(0deg);
|
|
142
130
|
transform: rotateY(0deg);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const fwdy09 = keyframes`
|
|
131
|
+
}`;
|
|
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);
|
|
@@ -151,8 +138,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
151
138
|
to {
|
|
152
139
|
-webkit-transform: rotateY(90deg);
|
|
153
140
|
transform: rotateY(90deg);
|
|
154
|
-
}
|
|
155
|
-
|
|
141
|
+
}`;
|
|
142
|
+
const fwdy918 = keyframes `
|
|
156
143
|
from {
|
|
157
144
|
-webkit-transform: rotateY(-90deg);
|
|
158
145
|
transform: rotateY(-90deg);
|
|
@@ -160,8 +147,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
160
147
|
to {
|
|
161
148
|
-webkit-transform: rotateY(-180deg);
|
|
162
149
|
transform: rotateY(-180deg);
|
|
163
|
-
}
|
|
164
|
-
|
|
150
|
+
}`;
|
|
151
|
+
const fwdy1827 = keyframes `
|
|
165
152
|
from {
|
|
166
153
|
-webkit-transform: rotateY(-180deg);
|
|
167
154
|
transform: rotateY(-180deg);
|
|
@@ -169,8 +156,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
169
156
|
to {
|
|
170
157
|
-webkit-transform: rotateY(-270deg);
|
|
171
158
|
transform: rotateY(-270deg);
|
|
172
|
-
}
|
|
173
|
-
|
|
159
|
+
}`;
|
|
160
|
+
const fwdy2736 = keyframes `
|
|
174
161
|
from {
|
|
175
162
|
-webkit-transform: rotateY(-270deg);
|
|
176
163
|
transform: rotateY(-270deg);
|
|
@@ -178,15 +165,13 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
178
165
|
to {
|
|
179
166
|
-webkit-transform: rotateY(-360deg);
|
|
180
167
|
transform: rotateY(-360deg);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
const floatX = keyframes`
|
|
168
|
+
}`;
|
|
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
|
-
100% { -webkit-transform: translate(0, -0px); -ms-transform: translate(0, -0px); transform: translate(0, -0px); }
|
|
188
|
-
|
|
189
|
-
const floatShadow = keyframes`
|
|
173
|
+
100% { -webkit-transform: translate(0, -0px); -ms-transform: translate(0, -0px); transform: translate(0, -0px); }`;
|
|
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);
|
|
@@ -207,9 +192,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
207
192
|
-webkit-transform: translateY(0px);
|
|
208
193
|
-ms-transform: translateY(0px);
|
|
209
194
|
transform: translateY(0px);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const pulseSM = keyframes`
|
|
195
|
+
}`;
|
|
196
|
+
const pulseSM = keyframes `
|
|
213
197
|
0% {
|
|
214
198
|
-webkit-transform: scale(0.9);
|
|
215
199
|
-ms-transform: scale(0.9);
|
|
@@ -224,9 +208,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
224
208
|
-webkit-transform: scale(0.9);
|
|
225
209
|
-ms-transform: scale(0.9);
|
|
226
210
|
transform: scale(0.9);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
const pulseMD = keyframes`
|
|
211
|
+
}`;
|
|
212
|
+
const pulseMD = keyframes `
|
|
230
213
|
0% {
|
|
231
214
|
-webkit-transform: scale(0.7);
|
|
232
215
|
-ms-transform: scale(0.7);
|
|
@@ -241,9 +224,8 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
241
224
|
-webkit-transform: scale(0.7);
|
|
242
225
|
-ms-transform: scale(0.7);
|
|
243
226
|
transform: scale(0.7);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
const pulseLG = keyframes`
|
|
227
|
+
}`;
|
|
228
|
+
const pulseLG = keyframes `
|
|
247
229
|
0% {
|
|
248
230
|
-webkit-transform: scale(0.5);
|
|
249
231
|
-ms-transform: scale(0.5);
|
|
@@ -258,33 +240,32 @@ export const allAnims = (props: AllAnimsProps) => {
|
|
|
258
240
|
-webkit-transform: scale(0.5);
|
|
259
241
|
-ms-transform: scale(0.5);
|
|
260
242
|
transform: scale(0.5);
|
|
261
|
-
}
|
|
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
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
243
|
+
}`;
|
|
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
|
+
};
|
|
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;;;;;;;;MAQvB,CAAC;IACH,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;;;MAQxB,CAAC;IACH,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;;;MAQxB,CAAC;IAEH,4DAA4D;IAC5D,MAAM,OAAO,GAAG,SAAS,CAAA;;;;;;;;KAQxB,CAAC;IACF,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;;;KAQzB,CAAC;IAEF,yEAAyE;IACzE,MAAM,MAAM,GAAG,SAAS,CAAA;;;;;;;;KAQvB,CAAC;IACF,MAAM,OAAO,GAAG,SAAS,CAAA;;;;;;;;KAQxB,CAAC;IACF,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;;;KAQzB,CAAC;IACF,MAAM,QAAQ,GAAG,SAAS,CAAA;;;;;;;;KAQzB,CAAC;IAEF,4CAA4C;IAC5C,MAAM,MAAM,GAAG,SAAS,CAAA;;;uHAG2F,CAAC;IAEpH,MAAM,WAAW,GAAG,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;UAqBvB,CAAC;IAEP,MAAM,OAAO,GAAG,SAAS,CAAA;;;;;;;;;;;;;;;MAevB,CAAC;IAEH,MAAM,OAAO,GAAG,SAAS,CAAA;;;;;;;;;;;;;;;OAetB,CAAC;IAEJ,MAAM,OAAO,GAAG,SAAS,CAAA;;;;;;;;;;;;;;;OAetB,CAAC;IAEJ,MAAM,MAAM,GAAG,SAAS,CAAA,EAAE,CAAC;IAE3B,OAAO;QACH,IAAI;QACJ,IAAI;QACJ,QAAQ;QACR,IAAI;QACJ,IAAI;QACJ,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,QAAQ;QACR,QAAQ;QACR,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,QAAQ;QACR,QAAQ;QACR,MAAM;QACN,WAAW;QACX,OAAO;QACP,OAAO;QACP,OAAO;QACP,MAAM;KACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
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 (_jsx("div", Object.assign({ style: { zIndex } }, { children: _jsx(SceneStyleDiv, { children: children }) })));
|
|
14
|
+
};
|
|
15
|
+
//# 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;AAYvC,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,4BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,gBAClB,KAAC,aAAa,cAAE,QAAQ,GAAiB,IACvC,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//import MyCounter from './components/App'
|
|
2
|
+
//export { MyCounter }
|
|
3
|
+
import Face from './components/Faces/Face';
|
|
4
|
+
import { Cuboid } from './components/Cuboid';
|
|
5
|
+
import { Ribbon } from './components/Ribbon';
|
|
6
|
+
import { Card } from './components/Card';
|
|
7
|
+
export { Face, Cuboid, Ribbon, Card };
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,sBAAsB;AAEtB,OAAO,IAAI,MAAM,yBAAyB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,65 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"react": "^18.2.0",
|
|
13
|
-
"react-dom": "^18.2.0",
|
|
14
|
-
"react-redux": "^8.0.2",
|
|
15
|
-
"react-scripts": "5.0.1",
|
|
16
|
-
"styled-components": "^5.3.5",
|
|
17
|
-
"typescript": "^4.7.4",
|
|
18
|
-
"web-vitals": "^2.1.4"
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"buildOLD": "react-scripts build",
|
|
22
|
-
"build": "tsc",
|
|
23
|
-
"build4jest": "npm build:esm && npm build:cjs",
|
|
24
|
-
"build:esm": "tsc",
|
|
25
|
-
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
|
26
|
-
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
|
|
27
|
-
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
|
|
28
|
-
"test": "jest --config jestconfig.json"
|
|
29
|
-
},
|
|
30
|
-
"eslintConfig": {
|
|
31
|
-
"extends": [
|
|
32
|
-
"react-app",
|
|
33
|
-
"react-app/jest"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"browserslist": {
|
|
37
|
-
"production": [
|
|
38
|
-
">0.2%",
|
|
39
|
-
"not dead",
|
|
40
|
-
"not op_mini all"
|
|
2
|
+
"name": "anim-3d-obj",
|
|
3
|
+
"version": "1.1.19",
|
|
4
|
+
"private": false,
|
|
5
|
+
"npm": {
|
|
6
|
+
"publish": true
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/cjs/index.js",
|
|
9
|
+
"module": "dist/esm/index.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
41
12
|
],
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs",
|
|
15
|
+
"build:esm": "tsc",
|
|
16
|
+
"build:cjs": "tsc --module CommonJS --outDir dist/cjs"
|
|
17
|
+
},
|
|
18
|
+
"author": "mdnelles",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/node": "^17.0.21",
|
|
22
|
+
"@types/react": "^17.0.37",
|
|
23
|
+
"@types/react-dom": "^17.0.11",
|
|
24
|
+
"@types/styled-components": "^5.1.26",
|
|
25
|
+
"react": "^17.0.2",
|
|
26
|
+
"react-dom": "^17.0.2",
|
|
27
|
+
"styled-components": "^5.3.5",
|
|
28
|
+
"typescript": "^4.5.2"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": "^17.0.2",
|
|
32
|
+
"react-dom": "^17.0.2",
|
|
33
|
+
"styled-components": "^5.3.5"
|
|
34
|
+
}
|
|
65
35
|
}
|
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"extends": [
|
|
4
|
-
"prettier",
|
|
5
|
-
"plugin:prettier/recommended",
|
|
6
|
-
"eslint:recommended",
|
|
7
|
-
"plugin:react/recommended",
|
|
8
|
-
"plugin:@typescript-eslint/eslint-recommended",
|
|
9
|
-
"plugin:@typescript-eslint/recommended"
|
|
10
|
-
],
|
|
11
|
-
"parser": "@typescript-eslint/parser",
|
|
12
|
-
"plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
|
|
13
|
-
"rules": {
|
|
14
|
-
"react-hooks/rules-of-hooks": "error",
|
|
15
|
-
"react-hooks/exhaustive-deps": "warn",
|
|
16
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
17
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
18
|
-
"@typescript-eslint/no-explicit-any": "off"
|
|
19
|
-
},
|
|
20
|
-
"settings": {
|
|
21
|
-
"react": {
|
|
22
|
-
"version": "detect"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"env": {
|
|
26
|
-
"browser": true,
|
|
27
|
-
"node": true
|
|
28
|
-
},
|
|
29
|
-
"globals": {
|
|
30
|
-
"JSX": true
|
|
31
|
-
}
|
|
32
|
-
}
|
package/.prettierrc.json
DELETED
package/jestconfig.json
DELETED
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/index.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta
|
|
9
|
-
name="description"
|
|
10
|
-
content="Web site created using create-react-app"
|
|
11
|
-
/>
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
<!--
|
|
14
|
-
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
-
-->
|
|
17
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
-
<!--
|
|
19
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
-
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
-
|
|
23
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
-
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
-
-->
|
|
27
|
-
<title>React Redux App</title>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
-
<div id="root"></div>
|
|
32
|
-
<!--
|
|
33
|
-
This HTML file is a template.
|
|
34
|
-
If you open it directly in the browser, you will see an empty page.
|
|
35
|
-
|
|
36
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
-
|
|
39
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
-
-->
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
package/public/logo192.png
DELETED
|
Binary file
|
package/public/logo512.png
DELETED
|
Binary file
|