@bitbybit-dev/jscad 0.19.0-alpha.0

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.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/babel.config.cjs +14 -0
  4. package/babel.config.d.cts +5 -0
  5. package/index.d.ts +1 -0
  6. package/index.js +4 -0
  7. package/jscad-generated.d.ts +1 -0
  8. package/jscad-generated.js +27486 -0
  9. package/lib/api/inputs/base-inputs.d.ts +38 -0
  10. package/lib/api/inputs/base-inputs.js +1 -0
  11. package/lib/api/inputs/index.d.ts +2 -0
  12. package/lib/api/inputs/index.js +2 -0
  13. package/lib/api/inputs/inputs.d.ts +2 -0
  14. package/lib/api/inputs/inputs.js +2 -0
  15. package/lib/api/inputs/jscad-inputs.d.ts +1646 -0
  16. package/lib/api/inputs/jscad-inputs.js +2137 -0
  17. package/lib/api/jscad-service.d.ts +51 -0
  18. package/lib/api/jscad-service.js +139 -0
  19. package/lib/api/services/index.d.ts +8 -0
  20. package/lib/api/services/index.js +8 -0
  21. package/lib/api/services/jscad-booleans.d.ts +17 -0
  22. package/lib/api/services/jscad-booleans.js +34 -0
  23. package/lib/api/services/jscad-colors.d.ts +11 -0
  24. package/lib/api/services/jscad-colors.js +14 -0
  25. package/lib/api/services/jscad-expansions.d.ts +12 -0
  26. package/lib/api/services/jscad-expansions.js +34 -0
  27. package/lib/api/services/jscad-extrusions.d.ts +18 -0
  28. package/lib/api/services/jscad-extrusions.js +44 -0
  29. package/lib/api/services/jscad-hulls.d.ts +12 -0
  30. package/lib/api/services/jscad-hulls.js +15 -0
  31. package/lib/api/services/jscad-path.d.ts +23 -0
  32. package/lib/api/services/jscad-path.js +64 -0
  33. package/lib/api/services/jscad-polygon.d.ts +25 -0
  34. package/lib/api/services/jscad-polygon.js +69 -0
  35. package/lib/api/services/jscad-shapes.d.ts +32 -0
  36. package/lib/api/services/jscad-shapes.js +182 -0
  37. package/lib/api/services/jscad-text.d.ts +14 -0
  38. package/lib/api/services/jscad-text.js +68 -0
  39. package/lib/index.d.ts +2 -0
  40. package/lib/index.js +2 -0
  41. package/package.json +99 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Bit By Bit Developers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ ## Bit By Bit Developers Manifold based CAD library
2
+
3
+ <img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
4
+
5
+ This project exposes 3D algorithms based on manifold-3d 3D CAD kernel, developed by Emmett Lalish, which you can find on https://github.com/elalish/manifold. Bit By Bit Developers platform integrates this kernel into it's platform via this library. Currently we try to expose Manifold library 1:1 in terms of functionality through our structured API, but as time goes we will have more unique algorithms in this package, which will be tuned specifically to our users.
6
+
7
+ This package should work in Node and browser based applications. If you want to use this package in your browser based applications we highly suggest to use @bitbybit-dev/manifold-webworker npm package, which wraps this lib into promisified non-blocking API.
8
+
9
+ Visit https://bitbybit.dev to use our full cloud platform.
10
+
11
+ ## Github
12
+ https://github.com/bitbybit-dev/bitbybit/tree/master/packages/dev/manifold
13
+ ## NPM
14
+ https://www.npmjs.com/package/@bitbybit-dev/manifold
15
+
16
+ ## THREEJS Example Applications
17
+ Vase
18
+ https://app-store.bitbybit.dev/vase
19
+ Github Source Code - https://github.com/bitbybit-dev/app-examples/tree/main/react/threejs/vase
20
+
21
+ ## Other Example Applications
22
+ Laptop Holder
23
+ https://app-store.bitbybit.dev/laptop-holder
24
+ Github Source Code Angular - https://github.com/bitbybit-dev/app-examples/tree/main/angular/laptop-holder
25
+ Github Source Code React - https://github.com/bitbybit-dev/app-examples/tree/main/react/laptop-holder
26
+
27
+ Cup Configurator
28
+ https://app-store.bitbybit.dev/cup
29
+ Github Source Code - https://github.com/bitbybit-dev/app-examples/tree/main/react/cup
30
+
31
+ ## Closed Source Example Applications
32
+ https://app-store.bitbybit.dev/terrace-furniture
33
+
34
+ ## Build package
35
+ npm run build-p
36
+
37
+ ## Run unit tests and generate test coverage
38
+ npm run test-c
39
+
40
+ ## Run live unit tests and generate test coverage on save
41
+ npm run test-c-l
42
+
43
+ ## Unit test coverage report online
44
+ https://tests.bitbybit.dev/threejs
45
+
46
+ ## Media Channels
47
+ Discord: https://discord.gg/GSe3VMe
48
+ Youtube: https://www.youtube.com/@bitbybitdev?sub_confirmation=1
49
+ Instagram: https://www.instagram.com/bitbybit.dev
50
+ Twitter: https://twitter.com/bitbybit_dev
51
+ LinkedIn: https://lnkd.in/gQjEQA2
52
+ Facebook: https://www.facebook.com/bitbybitdev
53
+ Medium: https://bitbybit-dev.medium.com/
54
+
55
+ ## Principles
56
+ Bit By Bit Developers company will keep these core algorithms that you can find in this repository free and opensource for its users. These algorithms are based on other open-source projects, run and are deployed on the browser, thus there is no point of closing them down from public.
57
+
58
+ ## About Bit By Bit Developers platform
59
+ Bit By Bit Developers web platform allows creators to program geometry through simple visual programming language or choose monaco typescript editor with full intellisense of bitbybit API. This cloud platform can fulfil many practical, educational and artistic needs of its users. Through familiar programming interface used in tools such as Scratch and Blockly.Games we expose powerful 3D algorithms that make it easier to implement various parametric tasks. Our goal is to make it very simple for users to share their ideas and designs. We want to encourage everyone to engage in the future of this tool.
60
+
61
+ ## Major Dependencies
62
+ Manifold
63
+ https://github.com/elalish/manifold
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ presets: [
3
+ [
4
+ '@babel/preset-env',
5
+ {
6
+ targets: {
7
+ node: 'current',
8
+ },
9
+ },
10
+ ],
11
+ '@babel/preset-typescript'
12
+ ],
13
+ };
14
+ export {};
@@ -0,0 +1,5 @@
1
+ export const presets: (string | (string | {
2
+ targets: {
3
+ node: string;
4
+ };
5
+ })[])[];
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./lib";
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ /*
2
+ * Public API Surface of bitbybit-core
3
+ */
4
+ export * from "./lib";
@@ -0,0 +1 @@
1
+ export default function initJSCAD(): any;