@bitbybit-dev/manifold 0.21.1 → 1.0.0-rc.1

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/babel.config.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  module.exports = {
2
3
  presets: [
3
4
  [
@@ -14,4 +15,3 @@ module.exports = {
14
15
  "babel-plugin-transform-import-meta"
15
16
  ],
16
17
  };
17
- export {};
@@ -1,6 +1,6 @@
1
- export const presets: (string | (string | {
1
+ export let presets: (string | (string | {
2
2
  targets: {
3
3
  node: string;
4
4
  };
5
5
  })[])[];
6
- export const plugins: string[];
6
+ export let plugins: string[];
@@ -1,67 +1,5 @@
1
- export declare namespace Base {
2
- type Color = string;
3
- type ColorRGB = {
4
- r: number;
5
- g: number;
6
- b: number;
7
- };
8
- type Point2 = [number, number];
9
- type Vector2 = [number, number];
10
- type Point3 = [number, number, number];
11
- type Vector3 = [number, number, number];
12
- type Axis3 = {
13
- origin: Base.Point3;
14
- direction: Base.Vector3;
15
- };
16
- type Axis2 = {
17
- origin: Base.Point2;
18
- direction: Base.Vector2;
19
- };
20
- type Segment2 = [Point2, Point2];
21
- type Segment3 = [Point3, Point3];
22
- type TrianglePlane3 = {
23
- normal: Vector3;
24
- d: number;
25
- };
26
- type Triangle3 = [Base.Point3, Base.Point3, Base.Point3];
27
- type Mesh3 = Triangle3[];
28
- type Plane3 = {
29
- origin: Base.Point3;
30
- normal: Base.Vector3;
31
- direction: Base.Vector3;
32
- };
33
- type BoundingBox = {
34
- min: Base.Point3;
35
- max: Base.Point3;
36
- center?: Base.Point3;
37
- width?: number;
38
- height?: number;
39
- length?: number;
40
- };
41
- type Line2 = {
42
- start: Base.Point2;
43
- end: Base.Point2;
44
- };
45
- type Line3 = {
46
- start: Base.Point3;
47
- end: Base.Point3;
48
- };
49
- type Polyline3 = {
50
- points: Base.Point3[];
51
- isClosed?: boolean;
52
- };
53
- type Polyline2 = {
54
- points: Base.Point2[];
55
- isClosed?: boolean;
56
- };
57
- type VerbCurve = {
58
- tessellate: (options: any) => any;
59
- };
60
- type VerbSurface = {
61
- tessellate: (options: any) => any;
62
- };
63
- type TransformMatrix3x3 = [number, number, number, number, number, number, number, number, number];
64
- type TransformMatrixes3x3 = TransformMatrix3x3[];
65
- type TransformMatrix = [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number];
66
- type TransformMatrixes = TransformMatrix[];
67
- }
1
+ /**
2
+ * Re-export Base namespace from @bitbybit-dev/base.
3
+ * Manifold package uses the same foundational types without additions.
4
+ */
5
+ export { Base } from "@bitbybit-dev/base";
@@ -1 +1,6 @@
1
- export {};
1
+ /* eslint-disable @typescript-eslint/no-namespace */
2
+ /**
3
+ * Re-export Base namespace from @bitbybit-dev/base.
4
+ * Manifold package uses the same foundational types without additions.
5
+ */
6
+ export { Base } from "@bitbybit-dev/base";
@@ -1,2 +1,3 @@
1
1
  export * from "./manifold-inputs";
2
2
  export * from "./base-inputs";
3
+ export * from "@bitbybit-dev/base/lib/api/inputs";
@@ -1,2 +1,3 @@
1
1
  export * from "./manifold-inputs";
2
2
  export * from "./base-inputs";
3
+ export * from "@bitbybit-dev/base/lib/api/inputs";
@@ -1,4 +1,4 @@
1
- import * as Inputs from "../../inputs/inputs";
1
+ import * as Inputs from "../../inputs";
2
2
  import * as Manifold3D from "manifold-3d";
3
3
  import { CrossSectionShapes } from "./cross-section-shapes";
4
4
  import { CrossSectionOperations } from "./cross-section-operations";
package/package.json CHANGED
@@ -1,96 +1,95 @@
1
1
  {
2
- "name": "@bitbybit-dev/manifold",
3
- "version": "0.21.1",
4
- "description": "Bit By Bit Developers Manifold based CAD Library to Program Geometry",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/bitbybit-dev/bitbybit"
9
- },
10
- "keywords": [
11
- "Bit By Bit Developers",
12
- "bitbybit",
13
- "bitbybit.dev",
14
- "Geometry",
15
- "CAD",
16
- "3D",
17
- "JSCAD",
18
- "OCCT",
19
- "OpenCascade",
20
- "Creative coding",
21
- "CSG",
22
- "Mesh",
23
- "Meshing",
24
- "Manifold",
25
- "Manifold-3D",
26
- "WebGL",
27
- "WebGPU",
28
- "Parametric",
29
- "Modeling",
30
- "Browser CAD",
31
- "3D algorithms",
32
- "3D modeling",
33
- "3D printing",
34
- "3D printing algorithms",
35
- "3D software",
36
- "OpenCascade Technology",
37
- "AEC",
38
- "Automotive",
39
- "Engineering",
40
- "CAE",
41
- "CAM"
42
- ],
43
- "directories": {
44
- "lib": "lib"
45
- },
46
- "scripts": {
47
- "build": "tsc -p tsconfig.bitbybit.json",
48
- "build-p": "npm run build && npm run copy-package && npm run copy-readme && npm run delete-coverage",
49
- "copy-package": "shx cp -R ./package.json ./dist",
50
- "copy-readme": "shx cp -R ./README.md ./dist && shx cp -R ./LICENSE ./dist",
51
- "delete-coverage": "shx rm -rf ./dist/coverage || true",
52
- "test": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --watchAll=true",
53
- "test-c": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=false",
54
- "test-c-l": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=true"
55
- },
56
- "author": "Bit by bit developers",
57
- "license": "MIT",
58
- "types": "./index.d.ts",
59
- "type": "module",
60
- "dependencies": {
61
- "manifold-3d": "3.3.2",
62
- "@bitbybit-dev/base": "0.21.1"
63
- },
64
- "devDependencies": {
65
- "shx":"0.4.0",
66
- "sass": "1.57.1",
67
- "@testing-library/jest-dom": "5.14.1",
68
- "mvdir": "1.0.21",
69
- "jest": "29.4.1",
70
- "ts-node": "10.9.1",
71
- "ts-jest": "29.0.0",
72
- "typescript": "4.8.2",
73
- "@types/jest": "29.0.0",
74
- "babel-jest": "29.0.0",
75
- "@babel/core": "7.16.0",
76
- "@babel/preset-env": "7.16.0",
77
- "@babel/preset-typescript": "7.16.0",
78
- "babel-plugin-transform-import-meta": "2.2.1",
79
- "jest-html-reporters": "3.0.11"
80
- },
81
- "jest": {
82
- "preset": "ts-jest",
83
- "transform": {
84
- "\\.[jt]sx?$": "babel-jest"
2
+ "name": "@bitbybit-dev/manifold",
3
+ "version": "1.0.0-rc.1",
4
+ "description": "Bit By Bit Developers Manifold based CAD Library to Program Geometry",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/bitbybit-dev/bitbybit"
85
9
  },
86
- "extensionsToTreatAsEsm": [
87
- ".ts"
10
+ "keywords": [
11
+ "Bit By Bit Developers",
12
+ "bitbybit",
13
+ "bitbybit.dev",
14
+ "Geometry",
15
+ "CAD",
16
+ "3D",
17
+ "JSCAD",
18
+ "OCCT",
19
+ "OpenCascade",
20
+ "Creative coding",
21
+ "CSG",
22
+ "Mesh",
23
+ "Meshing",
24
+ "Manifold",
25
+ "Manifold-3D",
26
+ "WebGL",
27
+ "WebGPU",
28
+ "Parametric",
29
+ "Modeling",
30
+ "Browser CAD",
31
+ "3D algorithms",
32
+ "3D modeling",
33
+ "3D printing",
34
+ "3D printing algorithms",
35
+ "3D software",
36
+ "OpenCascade Technology",
37
+ "AEC",
38
+ "Automotive",
39
+ "Engineering",
40
+ "CAE",
41
+ "CAM"
88
42
  ],
89
- "transformIgnorePatterns": [
90
- "node_modules/(?!@bitbybit-dev)/"
91
- ],
92
- "collectCoverageFrom": [
93
- "lib/api/**/*"
94
- ]
95
- }
96
- }
43
+ "directories": {
44
+ "lib": "lib"
45
+ },
46
+ "scripts": {
47
+ "build": "tsc -p tsconfig.bitbybit.json",
48
+ "build-p": "npm run build && npm run copy-package && npm run copy-readme && npm run delete-coverage",
49
+ "copy-package": "shx cp -R ./package.json ./dist",
50
+ "copy-readme": "shx cp -R ./README.md ./dist && shx cp -R ./LICENSE ./dist",
51
+ "delete-coverage": "shx rm -rf ./dist/coverage || true",
52
+ "test": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --watchAll=true",
53
+ "test-c": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=false",
54
+ "test-c-l": "set NODE_OPTIONS=--experimental-specifier-resolution=node && jest --coverage --watchAll=true"
55
+ },
56
+ "author": "Bit by bit developers",
57
+ "license": "MIT",
58
+ "types": "./index.d.ts",
59
+ "type": "module",
60
+ "dependencies": {
61
+ "manifold-3d": "3.3.2",
62
+ "@bitbybit-dev/base": "1.0.0-rc.1"
63
+ },
64
+ "devDependencies": {
65
+ "shx": "0.4.0",
66
+ "@testing-library/jest-dom": "6.9.1",
67
+ "mvdir": "1.0.22",
68
+ "jest": "30.2.0",
69
+ "ts-node": "10.9.2",
70
+ "ts-jest": "29.4.6",
71
+ "typescript": "5.9.3",
72
+ "@types/jest": "30.0.0",
73
+ "babel-jest": "30.2.0",
74
+ "@babel/core": "7.28.6",
75
+ "@babel/preset-env": "7.28.6",
76
+ "@babel/preset-typescript": "7.28.5",
77
+ "babel-plugin-transform-import-meta": "2.3.3",
78
+ "jest-html-reporters": "3.1.7"
79
+ },
80
+ "jest": {
81
+ "preset": "ts-jest",
82
+ "transform": {
83
+ "\\.[jt]sx?$": "babel-jest"
84
+ },
85
+ "extensionsToTreatAsEsm": [
86
+ ".ts"
87
+ ],
88
+ "transformIgnorePatterns": [
89
+ "node_modules/(?!@bitbybit-dev)/"
90
+ ],
91
+ "collectCoverageFrom": [
92
+ "lib/api/**/*"
93
+ ]
94
+ }
95
+ }
@@ -1,2 +0,0 @@
1
- export * from "./manifold-inputs";
2
- export * from "./base-inputs";
@@ -1,2 +0,0 @@
1
- export * from "./manifold-inputs";
2
- export * from "./base-inputs";