@bitbybit-dev/jscad 0.21.0 → 1.0.0-rc.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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Bit By Bit Developers
3
+ Copyright (c) 2026 Bit by bit developers
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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
+ * JSCAD 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
+ * JSCAD package uses the same foundational types without additions.
5
+ */
6
+ export { Base } from "@bitbybit-dev/base";
@@ -1,2 +1,3 @@
1
1
  export * from "./jscad-inputs";
2
+ export * from "./base-inputs";
2
3
  export * from "@bitbybit-dev/base/lib/api/inputs";
@@ -1,2 +1,3 @@
1
1
  export * from "./jscad-inputs";
2
+ export * from "./base-inputs";
2
3
  export * from "@bitbybit-dev/base/lib/api/inputs";
@@ -1,2 +1 @@
1
- export * from "./jscad-inputs";
2
- export * from "./base-inputs";
1
+ export * from "./index";
@@ -1,2 +1,2 @@
1
- export * from "./jscad-inputs";
2
- export * from "./base-inputs";
1
+ // Re-export everything from index for backward compatibility
2
+ export * from "./index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbybit-dev/jscad",
3
- "version": "0.21.0",
3
+ "version": "1.0.0-rc.0",
4
4
  "description": "Bit By Bit Developers JSCAD based CAD Library to Program Geometry",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -58,7 +58,7 @@
58
58
  "types": "./index.d.ts",
59
59
  "type": "module",
60
60
  "dependencies": {
61
- "@bitbybit-dev/base": "0.21.0",
61
+ "@bitbybit-dev/base": "1.0.0-rc.0",
62
62
  "@jscad/io-utils": "2.0.28",
63
63
  "@jscad/modeling": "2.12.3",
64
64
  "@jscad/stl-serializer": "2.1.18",