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

|
|
204
|
-
|
|
205
|
-
## Authors
|
|
206
|
-
|
|
207
|
-
- # [@mdnelles](https://github.com/mdnelles)
|
|
208
|
-
- [@mdnelles](https://github.com/mdnelles)
|
|
209
|
-
|
|
210
|
-
## License
|
|
211
|
-
|
|
212
|
-
[MIT](https://choosealicense.com/licenses/mit/)
|
|
@@ -5,21 +5,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Card = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const AnimWrap_1 = require("./styles/AnimWrap");
|
|
9
8
|
const Scene_1 = require("./styles/Scene");
|
|
10
9
|
const Face_1 = __importDefault(require("./Faces/Face"));
|
|
11
10
|
const Global_1 = require("./styles/Global");
|
|
11
|
+
const AnimFilter_1 = __importDefault(require("./styles/AnimFilter"));
|
|
12
12
|
const Card = (props) => {
|
|
13
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
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
|
-
react_1.default.createElement(
|
|
19
|
-
react_1.default.createElement(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
!!faces && !!faces.back ? buildFace('back') : null)))));
|
|
18
|
+
react_1.default.createElement(AnimFilter_1.default, { anim1Specs: anim1Specs, anim2Specs: anim2Specs },
|
|
19
|
+
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
20
|
+
!!faces && !!faces.front ? buildFace('front') : null,
|
|
21
|
+
!!faces && !!faces.back ? buildFace('back') : null))));
|
|
23
22
|
};
|
|
24
23
|
exports.Card = Card;
|
|
25
24
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/components/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/components/Card.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,0CAA4C;AAE5C,wDAAgC;AAChC,4CAA6C;AAC7C,qEAA6C;AAEtC,MAAM,IAAI,GAAG,CAAC,KAAe,EAAO,EAAE;IACzC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,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;IAElK,MAAM,SAAS,GAAG,CAAC,QAAa,EAAO,EAAE;QACrC,OAAO,8BAAC,cAAI,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;IAC9I,CAAC,CAAC;IAEF,OAAO,CACH,8BAAC,kBAAU,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM;QACpH,8BAAC,oBAAU,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;YACtD,8BAAC,mBAAU;gBACN,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;gBACpD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAC1C,CACJ,CACJ,CAChB,CAAC;AACN,CAAC,CAAC;AAjBW,QAAA,IAAI,QAiBf"}
|
|
@@ -5,25 +5,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Cuboid = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const AnimWrap_1 = require("./styles/AnimWrap");
|
|
9
8
|
const Scene_1 = require("./styles/Scene");
|
|
10
9
|
const Face_1 = __importDefault(require("./Faces/Face"));
|
|
11
10
|
const Global_1 = require("./styles/Global");
|
|
11
|
+
const AnimFilter_1 = __importDefault(require("./styles/AnimFilter"));
|
|
12
12
|
const Cuboid = (props) => {
|
|
13
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
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
|
-
react_1.default.createElement(
|
|
19
|
-
react_1.default.createElement(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
!!faces && !!faces.bottom ? buildFace('bottom') : null)))));
|
|
18
|
+
react_1.default.createElement(AnimFilter_1.default, { anim1Specs: anim1Specs, anim2Specs: anim2Specs },
|
|
19
|
+
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
20
|
+
!!faces && !!faces.front ? buildFace('front') : null,
|
|
21
|
+
!!faces && !!faces.right ? buildFace('right') : null,
|
|
22
|
+
!!faces && !!faces.back ? buildFace('back') : null,
|
|
23
|
+
!!faces && !!faces.left ? buildFace('left') : null,
|
|
24
|
+
!!faces && !!faces.top ? buildFace('top') : null,
|
|
25
|
+
!!faces && !!faces.bottom ? buildFace('bottom') : null))));
|
|
27
26
|
};
|
|
28
27
|
exports.Cuboid = Cuboid;
|
|
29
28
|
//# sourceMappingURL=Cuboid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cuboid.js","sourceRoot":"","sources":["../../../src/components/Cuboid.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"Cuboid.js","sourceRoot":"","sources":["../../../src/components/Cuboid.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,0CAA4C;AAE5C,wDAAgC;AAChC,4CAA6C;AAC7C,qEAA6C;AAEtC,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,8BAAC,cAAI,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,8BAAC,kBAAU,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM;QACpH,8BAAC,oBAAU,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;YACtD,8BAAC,mBAAU;gBACN,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;gBACpD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;gBACpD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;gBAChD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAC9C,CACJ,CACJ,CAChB,CAAC;AACN,CAAC,CAAC;AArBW,QAAA,MAAM,UAqBjB"}
|
|
@@ -5,22 +5,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Ribbon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const AnimWrap_1 = require("./styles/AnimWrap");
|
|
9
8
|
const Scene_1 = require("./styles/Scene");
|
|
10
9
|
const Face_1 = __importDefault(require("./Faces/Face"));
|
|
11
10
|
const Global_1 = require("./styles/Global");
|
|
11
|
+
const AnimFilter_1 = __importDefault(require("./styles/AnimFilter"));
|
|
12
12
|
const Ribbon = (props) => {
|
|
13
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
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
|
-
react_1.default.createElement(
|
|
19
|
-
react_1.default.createElement(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
!!faces && !!faces.top ? buildFace('topr') : null)))));
|
|
18
|
+
react_1.default.createElement(AnimFilter_1.default, { anim1Specs: anim1Specs, anim2Specs: anim2Specs },
|
|
19
|
+
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
20
|
+
!!faces && !!faces.bottom ? buildFace('bottom') : null,
|
|
21
|
+
!!faces && !!faces.back ? buildFace('back') : null,
|
|
22
|
+
!!faces && !!faces.top ? buildFace('topr') : null))));
|
|
24
23
|
};
|
|
25
24
|
exports.Ribbon = Ribbon;
|
|
26
25
|
//# sourceMappingURL=Ribbon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,0CAA4C;AAE5C,wDAAgC;AAChC,4CAA6C;AAC7C,qEAA6C;AAEtC,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,8BAAC,cAAI,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,8BAAC,kBAAU,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM;QACpH,8BAAC,oBAAU,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;YACtD,8BAAC,mBAAU;gBACN,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;gBACtD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CACzC,CACJ,CACJ,CAChB,CAAC;AACN,CAAC,CAAC;AAlBW,QAAA,MAAM,UAkBjB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const AnimWrap_1 = require("./AnimWrap");
|
|
8
|
+
function AnimFilter(props) {
|
|
9
|
+
const { anim1Specs = false, anim2Specs = false, children = '' } = props;
|
|
10
|
+
return anim1Specs && anim2Specs ? (react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs },
|
|
11
|
+
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs }, children))) : anim1Specs && !anim2Specs ? (react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs }, children)) : !anim1Specs && anim2Specs ? (react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs }, children)) : (react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
12
|
+
}
|
|
13
|
+
exports.default = AnimFilter;
|
|
14
|
+
//# sourceMappingURL=AnimFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimFilter.js","sourceRoot":"","sources":["../../../../src/components/styles/AnimFilter.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,yCAAsC;AAQtC,SAAwB,UAAU,CAAC,KAAsB;IACrD,MAAM,EAAE,UAAU,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAExE,OAAO,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,CAC9B,8BAAC,mBAAQ,IAAC,SAAS,EAAE,UAAU;QAC3B,8BAAC,mBAAQ,IAAC,SAAS,EAAE,UAAU,IAAG,QAAQ,CAAY,CAC/C,CACd,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAC5B,8BAAC,mBAAQ,IAAC,SAAS,EAAE,UAAU,IAAG,QAAQ,CAAY,CACzD,CAAC,CAAC,CAAC,CAAC,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,CAC5B,8BAAC,mBAAQ,IAAC,SAAS,EAAE,UAAU,IAAG,QAAQ,CAAY,CACzD,CAAC,CAAC,CAAC,CACA,8DAAG,QAAQ,CAAI,CAClB,CAAC;AACN,CAAC;AAdD,6BAcC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnimWrap } from './styles/AnimWrap';
|
|
3
2
|
import { SceneStyle } from './styles/Scene';
|
|
4
3
|
import Face from './Faces/Face';
|
|
5
4
|
import { ObjWrapper } from './styles/Global';
|
|
5
|
+
import AnimFilter from './styles/AnimFilter';
|
|
6
6
|
export const Card = (props) => {
|
|
7
7
|
let { anim1Specs, anim2Specs, width = 5, height = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex } = props;
|
|
8
8
|
const buildFace = (faceType) => {
|
|
9
9
|
return React.createElement(Face, { width: width, height: height, depth: 0.1, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom });
|
|
10
10
|
};
|
|
11
11
|
return (React.createElement(SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
12
|
-
React.createElement(
|
|
13
|
-
React.createElement(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
!!faces && !!faces.back ? buildFace('back') : null)))));
|
|
12
|
+
React.createElement(AnimFilter, { anim1Specs: anim1Specs, anim2Specs: anim2Specs },
|
|
13
|
+
React.createElement(ObjWrapper, null,
|
|
14
|
+
!!faces && !!faces.front ? buildFace('front') : null,
|
|
15
|
+
!!faces && !!faces.back ? buildFace('back') : null))));
|
|
17
16
|
};
|
|
18
17
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/components/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/components/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAE7C,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAe,EAAO,EAAE;IACzC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,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;IAElK,MAAM,SAAS,GAAG,CAAC,QAAa,EAAO,EAAE;QACrC,OAAO,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;IAC9I,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,UAAU,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;YACtD,oBAAC,UAAU;gBACN,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;gBACpD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAC1C,CACJ,CACJ,CAChB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnimWrap } from './styles/AnimWrap';
|
|
3
2
|
import { SceneStyle } from './styles/Scene';
|
|
4
3
|
import Face from './Faces/Face';
|
|
5
4
|
import { ObjWrapper } from './styles/Global';
|
|
5
|
+
import AnimFilter from './styles/AnimFilter';
|
|
6
6
|
export const Cuboid = (props) => {
|
|
7
7
|
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex } = props;
|
|
8
8
|
const buildFace = (faceType) => {
|
|
9
9
|
return React.createElement(Face, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom });
|
|
10
10
|
};
|
|
11
11
|
return (React.createElement(SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
12
|
-
React.createElement(
|
|
13
|
-
React.createElement(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
!!faces && !!faces.bottom ? buildFace('bottom') : null)))));
|
|
12
|
+
React.createElement(AnimFilter, { anim1Specs: anim1Specs, anim2Specs: anim2Specs },
|
|
13
|
+
React.createElement(ObjWrapper, null,
|
|
14
|
+
!!faces && !!faces.front ? buildFace('front') : null,
|
|
15
|
+
!!faces && !!faces.right ? buildFace('right') : null,
|
|
16
|
+
!!faces && !!faces.back ? buildFace('back') : null,
|
|
17
|
+
!!faces && !!faces.left ? buildFace('left') : null,
|
|
18
|
+
!!faces && !!faces.top ? buildFace('top') : null,
|
|
19
|
+
!!faces && !!faces.bottom ? buildFace('bottom') : null))));
|
|
21
20
|
};
|
|
22
21
|
//# sourceMappingURL=Cuboid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cuboid.js","sourceRoot":"","sources":["../../../src/components/Cuboid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Cuboid.js","sourceRoot":"","sources":["../../../src/components/Cuboid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,UAAU,MAAM,qBAAqB,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,UAAU,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;YACtD,oBAAC,UAAU;gBACN,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;gBACpD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI;gBACpD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;gBAChD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAC9C,CACJ,CACJ,CAChB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnimWrap } from './styles/AnimWrap';
|
|
3
2
|
import { SceneStyle } from './styles/Scene';
|
|
4
3
|
import Face from './Faces/Face';
|
|
5
4
|
import { ObjWrapper } from './styles/Global';
|
|
5
|
+
import AnimFilter from './styles/AnimFilter';
|
|
6
6
|
export const Ribbon = (props) => {
|
|
7
7
|
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex } = props;
|
|
8
8
|
const buildFace = (faceType) => {
|
|
9
9
|
return React.createElement(Face, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom });
|
|
10
10
|
};
|
|
11
11
|
return (React.createElement(SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
12
|
-
React.createElement(
|
|
13
|
-
React.createElement(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
!!faces && !!faces.top ? buildFace('topr') : null)))));
|
|
12
|
+
React.createElement(AnimFilter, { anim1Specs: anim1Specs, anim2Specs: anim2Specs },
|
|
13
|
+
React.createElement(ObjWrapper, null,
|
|
14
|
+
!!faces && !!faces.bottom ? buildFace('bottom') : null,
|
|
15
|
+
!!faces && !!faces.back ? buildFace('back') : null,
|
|
16
|
+
!!faces && !!faces.top ? buildFace('topr') : null))));
|
|
18
17
|
};
|
|
19
18
|
//# sourceMappingURL=Ribbon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,UAAU,MAAM,qBAAqB,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,UAAU,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;YACtD,oBAAC,UAAU;gBACN,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;gBACtD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClD,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CACzC,CACJ,CACJ,CAChB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AnimWrap } from './AnimWrap';
|
|
3
|
+
export default function AnimFilter(props) {
|
|
4
|
+
const { anim1Specs = false, anim2Specs = false, children = '' } = props;
|
|
5
|
+
return anim1Specs && anim2Specs ? (React.createElement(AnimWrap, { animSpecs: anim1Specs },
|
|
6
|
+
React.createElement(AnimWrap, { animSpecs: anim2Specs }, children))) : anim1Specs && !anim2Specs ? (React.createElement(AnimWrap, { animSpecs: anim1Specs }, children)) : !anim1Specs && anim2Specs ? (React.createElement(AnimWrap, { animSpecs: anim2Specs }, children)) : (React.createElement(React.Fragment, null, children));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=AnimFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimFilter.js","sourceRoot":"","sources":["../../../../src/components/styles/AnimFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAsB;IACrD,MAAM,EAAE,UAAU,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAExE,OAAO,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,CAC9B,oBAAC,QAAQ,IAAC,SAAS,EAAE,UAAU;QAC3B,oBAAC,QAAQ,IAAC,SAAS,EAAE,UAAU,IAAG,QAAQ,CAAY,CAC/C,CACd,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAC5B,oBAAC,QAAQ,IAAC,SAAS,EAAE,UAAU,IAAG,QAAQ,CAAY,CACzD,CAAC,CAAC,CAAC,CAAC,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,CAC5B,oBAAC,QAAQ,IAAC,SAAS,EAAE,UAAU,IAAG,QAAQ,CAAY,CACzD,CAAC,CAAC,CAAC,CACA,0CAAG,QAAQ,CAAI,CAClB,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "https://github.com/mdnelles/anim-3d-objs",
|
|
6
6
|
"homepage": "https://github.com/mdnelles/anim-3d-objs/blob/main/README.md"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.1.
|
|
8
|
+
"version": "1.1.33",
|
|
9
9
|
"description": "A component library for getting people started with easy to re-use components for everyday projects.",
|
|
10
10
|
"main": "dist/cjs/index.js",
|
|
11
11
|
"module": "dist/esm/index.js",
|