anim-3d-obj 1.0.13 → 1.0.14

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 CHANGED
@@ -1,9 +1,108 @@
1
- This is component-library files on here are imported from: https://github.com/mdnelles/anim-3d-objs-launcher
2
1
 
3
- That version is browser launchable (has App.tsx file)
2
+ # React Typescript Cuboid Builder
4
3
 
5
- This repo is for the npm published version
4
+ This project allows a user to create Cuboids of any size simply by entering a set of parameters.
5
+ The program does the leg work with regard to calculating translationZ depth and config on the fly.
6
6
 
7
- ## IMPORTANT
8
7
 
9
- be sure and run `npm run build` then run `npm publish`
8
+
9
+ ## Deployment
10
+
11
+ Install sequence
12
+
13
+ ```
14
+ git clone https://github.com/mdnelles/anim-3d-objs.git
15
+ npm i
16
+ npm run start
17
+ ```
18
+
19
+ ## Examples
20
+ All sided simple https://codesandbox.io/s/anim-3d-obj-all-sides-simple-sdy1q0
21
+
22
+ Two sided simple https://codesandbox.io/s/anim-3d-obj-2-sides-simple-9wognm
23
+
24
+ 90 degree wobble on X axis https://codesandbox.io/s/anim-3d-obj-wobblex-08mxqe
25
+
26
+ speed wobble(y) 3 sides https://codesandbox.io/s/anim-3d-obj-3-sides-wobble-y-axis-dceqdp
27
+
28
+ ## Authors
29
+
30
+ - [@mdnelles](https://github.com/mdnelles)
31
+
32
+
33
+ ## Demo
34
+
35
+ The following code
36
+
37
+ ```
38
+ const indivStyles: object = {
39
+ // // face individual styles (over rides global)
40
+ bottom: {
41
+ bfv: "visible",
42
+ fontFamily: "Helvetica",
43
+ },
44
+ front: {
45
+ border: "1px solid #f00",
46
+ bgc: "#f00",
47
+ bfv: "visible",
48
+ fontFamily: "Arial, Sans",
49
+ },
50
+ left: {
51
+ bgc: "yellow",
52
+ },
53
+ top: {
54
+ bgc: "pink",
55
+ },
56
+ right: {
57
+ bgc: "purple",
58
+ },
59
+ back: {
60
+ border: "1px solid #f00",
61
+ bgc: "#0f0",
62
+ bfv: "visible",
63
+ fontFamily: "Arial, Sans",
64
+ },
65
+ };
66
+ ```
67
+
68
+ and
69
+ ```
70
+ <Cuboid
71
+ width={260}
72
+ depth={260}
73
+ height={92}
74
+ perspectiveOrigin='50% 50%'
75
+ zIndex={10}
76
+ animSpecs={animSpecs}
77
+ indivStyles={indivStyles}
78
+ faces={faceprops}
79
+ globalStyles={globalStyles}
80
+ >
81
+ {}
82
+ </Cuboid>
83
+ ```
84
+
85
+ will produce the following
86
+
87
+ ![Logo](https://raw.githubusercontent.com/mdnelles/objs-local/main/img.png?token=GHSAT0AAAAAABQVNJ4VATWQM4SI3LXSTDZWYVDOL7Q)
88
+
89
+ ##Face Format
90
+ for things like `background-image: url("myImg.png");` they can be done in `moreStyles` argument.
91
+ ```
92
+ const Specs: any = styled.div`
93
+ opacity: ${!!opac ? opac : globalStyles.opac};
94
+ position: ${position};
95
+ left: ${left};
96
+ margin: ${margin};
97
+ padding: ${padding};
98
+ width: ${width}px;
99
+ font-family: ${fontFamily};
100
+ height: ${height}px;
101
+ background-color: ${!!bgc ? bgc : globalStyles.bgc};
102
+ border: ${!!border ? border : globalStyles.border};
103
+ backface-visibility: ${!!bfv ? bfv : globalStyles.bfv};
104
+ ${transform}
105
+ top: ${top};
106
+ ${moreStyles}
107
+ `;
108
+ ```
@@ -1 +1,2 @@
1
+ export * from './Button';
1
2
  export * from './Cuboid';
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- //export * from './Button';
17
+ __exportStar(require("./Button"), exports);
18
18
  __exportStar(require("./Cuboid"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB"}
@@ -1 +1,2 @@
1
+ export * from './Button';
1
2
  export * from './Cuboid';
@@ -1,3 +1,3 @@
1
- //export * from './Button';
1
+ export * from './Button';
2
2
  export * from './Cuboid';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "anim-3d-obj",
3
3
  "repository": {
4
4
  "type": "git",
5
- "url": "https://github.com/mdnelles/anim-3d-objs-launcher"
5
+ "url": "https://github.com/joeythelantern/Component-Library.git"
6
6
  },
7
7
  "homepage": "https://github.com/mdnelles/anim-3d-objs",
8
- "version": "1.0.13",
8
+ "version": "1.0.14",
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",
@@ -17,7 +17,7 @@
17
17
  "build:esm": "tsc",
18
18
  "build:cjs": "tsc --module CommonJS --outDir dist/cjs"
19
19
  },
20
- "author": "mnelles",
20
+ "author": "mdnelles",
21
21
  "license": "MIT",
22
22
  "devDependencies": {
23
23
  "@types/node": "^17.0.21",