anim-3d-obj 1.1.19 → 1.1.20
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 -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 +1 -1
- package/dist/cjs/components/Card.js +9 -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 +13 -5
- 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 +26 -24
- 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 +10 -4
- package/dist/cjs/components/Ribbon.js.map +1 -1
- 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 +1 -1
- package/dist/cjs/components/styles/AnimWrap.js +69 -77
- package/dist/cjs/components/styles/AnimWrap.js.map +1 -1
- package/dist/cjs/components/styles/Anims.js +1 -1
- 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 +11 -10
- package/dist/cjs/components/styles/Scene.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -5
- package/dist/cjs/index.js +16 -13
- package/dist/cjs/index.js.map +1 -1
- 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 +1 -1
- package/dist/esm/components/Card.js +13 -8
- package/dist/esm/components/Card.js.map +1 -1
- package/dist/esm/components/Cuboid.d.ts +1 -1
- package/dist/esm/components/Cuboid.js +17 -9
- 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 +27 -25
- 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 +14 -8
- package/dist/esm/components/Ribbon.js.map +1 -1
- 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 +1 -1
- package/dist/esm/components/styles/AnimWrap.js +71 -79
- package/dist/esm/components/styles/AnimWrap.js.map +1 -1
- package/dist/esm/components/styles/Anims.js +2 -2
- 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 +12 -11
- package/dist/esm/components/styles/Scene.js.map +1 -1
- package/dist/esm/index.d.ts +1 -5
- package/dist/esm/index.js +3 -7
- package/dist/esm/index.js.map +1 -1
- package/package.json +34 -33
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1,154 +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
|
-
## Examples
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
`** ANIMATIONS`
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
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
|
-
|
|
72
|
-
|
|
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
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
/>
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
will produce the following
|
|
145
|
-
|
|
146
|
-

|
|
147
|
-
|
|
148
|
-
## Authors
|
|
149
|
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
## License
|
|
153
|
-
|
|
154
|
-
[MIT](https://choosealicense.com/licenses/mit/)
|
|
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/)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
3
|
+
backgroundColor?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Button: React.FunctionComponent<IButtonProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
exports.Button = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Button = (props) => {
|
|
9
|
+
const { children, backgroundColor, color, style } = props;
|
|
10
|
+
let _style = style || {};
|
|
11
|
+
/** Override Defaults */
|
|
12
|
+
if (backgroundColor && _style)
|
|
13
|
+
_style.backgroundColor = backgroundColor;
|
|
14
|
+
if (color && _style)
|
|
15
|
+
_style.color = color;
|
|
16
|
+
return (react_1.default.createElement("button", Object.assign({ style: _style }, props), children));
|
|
17
|
+
};
|
|
18
|
+
exports.Button = Button;
|
|
19
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -4,17 +4,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Card = void 0;
|
|
7
|
-
const
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const AnimWrap_1 = require("./styles/AnimWrap");
|
|
9
9
|
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
|
-
|
|
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 (
|
|
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
|
-
return (
|
|
17
|
+
return (react_1.default.createElement(Scene_1.SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
18
|
+
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs },
|
|
19
|
+
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs },
|
|
20
|
+
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
21
|
+
!!faces && !!faces.front ? buildFace("front") : null,
|
|
22
|
+
!!faces && !!faces.back ? buildFace("back") : null)))));
|
|
18
23
|
};
|
|
19
24
|
exports.Card = Card;
|
|
20
25
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/components/Card.tsx"],"names":[],"mappings":"
|
|
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;
|
|
@@ -4,18 +4,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Cuboid = void 0;
|
|
7
|
-
const
|
|
8
|
-
//import React from 'react'
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
9
8
|
const AnimWrap_1 = require("./styles/AnimWrap");
|
|
10
9
|
const Scene_1 = require("./styles/Scene");
|
|
11
10
|
const Face_1 = __importDefault(require("./Faces/Face"));
|
|
12
11
|
const Global_1 = require("./styles/Global");
|
|
13
12
|
const Cuboid = (props) => {
|
|
14
|
-
|
|
13
|
+
let { anim1Specs, anim2Specs, width = 5, height = 5, depth = 5, faces, global = {}, custom = {}, tranz = (+height / 2) | 0, perspective, perspectiveOrigin, zIndex, } = props;
|
|
15
14
|
const buildFace = (faceType) => {
|
|
16
|
-
return (
|
|
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 }));
|
|
17
16
|
};
|
|
18
|
-
return (
|
|
17
|
+
return (react_1.default.createElement(Scene_1.SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
18
|
+
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs },
|
|
19
|
+
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs },
|
|
20
|
+
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
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)))));
|
|
19
27
|
};
|
|
20
28
|
exports.Cuboid = Cuboid;
|
|
21
29
|
//# sourceMappingURL=Cuboid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cuboid.js","sourceRoot":"","sources":["../../../src/components/Cuboid.tsx"],"names":[],"mappings":"
|
|
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;IAC7C,IAAI,EACF,UAAU,EACV,UAAU,EACV,K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AAC,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"}
|
|
@@ -3,38 +3,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
//import React from 'react'
|
|
8
6
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
9
8
|
const Face = (props) => {
|
|
10
|
-
let { height = 10, tranz = 80, width = 100 } = props;
|
|
11
|
-
const { depth = 10, faceType, global = {}, custom = false } = props;
|
|
9
|
+
let { depth = 10, faceType, global = {}, height = 10, custom = false, tranz = 80, width = 100, } = props;
|
|
12
10
|
let transform;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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") {
|
|
16
18
|
tranz = +height - +depth / 2;
|
|
17
19
|
height = +depth;
|
|
18
20
|
transform = `transform: rotateX(-90deg) translateZ(${tranz}px);`;
|
|
19
|
-
//styles = custom["top"] ? custom : global;
|
|
21
|
+
//styles = !!custom["top"] ? custom : global;
|
|
20
22
|
}
|
|
21
|
-
else if (faceType ===
|
|
23
|
+
else if (faceType === "top") {
|
|
22
24
|
height = +depth;
|
|
23
|
-
if (depth)
|
|
25
|
+
if (!!depth)
|
|
24
26
|
tranz = +depth / 2;
|
|
25
27
|
transform = `transform: rotateX(90deg) translateZ(${tranz}px);`;
|
|
26
28
|
}
|
|
27
|
-
else if (faceType ===
|
|
28
|
-
if (depth)
|
|
29
|
+
else if (faceType === "front") {
|
|
30
|
+
if (!!depth)
|
|
29
31
|
tranz = +depth / 2;
|
|
30
32
|
transform = `transform: rotateY(0deg) translateZ(${tranz}px);`;
|
|
31
33
|
}
|
|
32
|
-
else if (faceType ===
|
|
33
|
-
if (depth)
|
|
34
|
+
else if (faceType === "back") {
|
|
35
|
+
if (!!depth)
|
|
34
36
|
tranz = +depth / 2;
|
|
35
37
|
transform = `transform: rotateY(180deg) translateZ(${tranz}px);`;
|
|
36
38
|
}
|
|
37
|
-
else if (faceType ===
|
|
39
|
+
else if (faceType === "right") {
|
|
38
40
|
if (height > width && !depth) {
|
|
39
41
|
tranz = -(+height / 2 - +width);
|
|
40
42
|
width = +height;
|
|
@@ -50,9 +52,9 @@ const Face = (props) => {
|
|
|
50
52
|
transform = `transform: rotateY(90deg) translateZ(${tranz}px);`;
|
|
51
53
|
// topr is to of Ribbon which points back
|
|
52
54
|
}
|
|
53
|
-
else if (faceType ===
|
|
55
|
+
else if (faceType === "topr") {
|
|
54
56
|
height = +depth;
|
|
55
|
-
if (depth)
|
|
57
|
+
if (!!depth)
|
|
56
58
|
tranz = +depth / 2;
|
|
57
59
|
//let offset = depth / 2;
|
|
58
60
|
transform = `transform: rotateX(90deg) translateZ(${tranz}px ); `;
|
|
@@ -74,13 +76,13 @@ const Face = (props) => {
|
|
|
74
76
|
}
|
|
75
77
|
//const BackFlip: any = styled.section``;
|
|
76
78
|
const Specs = styled_components_1.default.section `
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
79
|
+
${styles}
|
|
80
|
+
width: ${width}px;
|
|
81
|
+
position: absolute;
|
|
82
|
+
height: ${height}px;
|
|
83
|
+
${transform};
|
|
84
|
+
`;
|
|
85
|
+
return react_1.default.createElement(Specs, null, body);
|
|
84
86
|
};
|
|
85
87
|
exports.default = Face;
|
|
86
88
|
//# sourceMappingURL=Face.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Face.js","sourceRoot":"","sources":["../../../../src/components/Faces/Face.tsx"],"names":[],"mappings":"
|
|
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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CAAC;SAChB;QACD,SAAS,GAAG,wCAAwC,KAAK,MAAM,CAAC;QAChE,yCAAyC;KAC1C;SAAM,IAAI,QAAQ,KAAK,MAAM,EAAE;QAC9B,MAAM,GAAG,CAAC,KAAK,CAAC;QAChB,IAAI,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;
|
|
@@ -4,17 +4,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Ribbon = void 0;
|
|
7
|
-
const
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const AnimWrap_1 = require("./styles/AnimWrap");
|
|
9
9
|
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
|
-
|
|
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 (
|
|
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
|
-
return (
|
|
17
|
+
return (react_1.default.createElement(Scene_1.SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
|
|
18
|
+
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim1Specs },
|
|
19
|
+
react_1.default.createElement(AnimWrap_1.AnimWrap, { animSpecs: anim2Specs },
|
|
20
|
+
react_1.default.createElement(Global_1.ObjWrapper, null,
|
|
21
|
+
!!faces && !!faces.bottom ? buildFace("bottom") : null,
|
|
22
|
+
!!faces && !!faces.back ? buildFace("back") : null,
|
|
23
|
+
!!faces && !!faces.top ? buildFace("topr") : null)))));
|
|
18
24
|
};
|
|
19
25
|
exports.Ribbon = Ribbon;
|
|
20
26
|
//# sourceMappingURL=Ribbon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Ribbon.js","sourceRoot":"","sources":["../../../src/components/Ribbon.tsx"],"names":[],"mappings":";;;;;;A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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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Button"), exports);
|
|
18
|
+
__exportStar(require("./Faces/Face"), exports);
|
|
19
|
+
__exportStar(require("./Card"), exports);
|
|
20
|
+
__exportStar(require("./Cuboid"), exports);
|
|
21
|
+
__exportStar(require("./Ribbon"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|