@bitbybit-dev/base 0.21.1 → 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.
@@ -1,3 +1,3 @@
1
1
  export class GlobalCDNProvider {
2
2
  }
3
- GlobalCDNProvider.BITBYBIT_CDN_URL = "https://cdn.jsdelivr.net/gh/bitbybit-dev/bitbybit-assets@0.21.1";
3
+ GlobalCDNProvider.BITBYBIT_CDN_URL = "https://git-cdn.bitbybit.dev/v1.0.0-rc.0";
@@ -1,2 +1,4 @@
1
1
  export * from "./services";
2
2
  export * from "./GlobalCDNProvider";
3
+ export * as Inputs from "./inputs";
4
+ export { Base } from "./inputs/base-inputs";
package/lib/api/index.js CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from "./services";
2
2
  export * from "./GlobalCDNProvider";
3
+ export * as Inputs from "./inputs";
4
+ export { Base } from "./inputs/base-inputs";
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Base namespace containing foundational types and enums used across all bitbybit packages.
3
+ * This is the single source of truth - other packages extend this via module augmentation.
4
+ */
1
5
  export declare namespace Base {
2
6
  type Color = string;
3
7
  type ColorRGB = {
@@ -20,6 +24,7 @@ export declare namespace Base {
20
24
  };
21
25
  type Segment2 = [Point2, Point2];
22
26
  type Segment3 = [Point3, Point3];
27
+ /** Triangle plane is efficient definition described by a normal vector and d value (N dot X = d) */
23
28
  type TrianglePlane3 = {
24
29
  normal: Vector3;
25
30
  d: number;
@@ -1,6 +1,13 @@
1
1
  /* eslint-disable @typescript-eslint/no-namespace */
2
+ /**
3
+ * Base namespace containing foundational types and enums used across all bitbybit packages.
4
+ * This is the single source of truth - other packages extend this via module augmentation.
5
+ */
2
6
  export var Base;
3
7
  (function (Base) {
8
+ // ============================================================================
9
+ // Alignment Enums
10
+ // ============================================================================
4
11
  let horizontalAlignEnum;
5
12
  (function (horizontalAlignEnum) {
6
13
  horizontalAlignEnum["left"] = "left";
@@ -1,14 +1 @@
1
- export * from "./color-inputs";
2
- export * from "./lists-inputs";
3
- export * from "./logic-inputs";
4
- export * from "./math-inputs";
5
- export * from "./point-inputs";
6
- export * from "./text-inputs";
7
- export * from "./text-inputs";
8
- export * from "./vector-inputs";
9
- export * from "./transforms-inputs";
10
- export * from "./dates-inputs";
11
- export * from "./line-inputs";
12
- export * from "./polyline-inputs";
13
- export * from "./mesh-inputs";
14
- export * from "./io-inputs";
1
+ export * from "./index";
@@ -1,14 +1,2 @@
1
- export * from "./color-inputs";
2
- export * from "./lists-inputs";
3
- export * from "./logic-inputs";
4
- export * from "./math-inputs";
5
- export * from "./point-inputs";
6
- export * from "./text-inputs";
7
- export * from "./text-inputs";
8
- export * from "./vector-inputs";
9
- export * from "./transforms-inputs";
10
- export * from "./dates-inputs";
11
- export * from "./line-inputs";
12
- export * from "./polyline-inputs";
13
- export * from "./mesh-inputs";
14
- export * from "./io-inputs";
1
+ // Re-export everything from index for backward compatibility
2
+ export * from "./index";
@@ -1,5 +1,5 @@
1
1
  import { Base } from "./base-inputs";
2
- import { Math } from "./inputs";
2
+ import { Math } from "./math-inputs";
3
3
  export declare namespace Vector {
4
4
  class TwoVectorsDto {
5
5
  constructor(first?: number[], second?: number[]);
@@ -1,4 +1,4 @@
1
- import { Math } from "./inputs";
1
+ import { Math } from "./math-inputs";
2
2
  export var Vector;
3
3
  (function (Vector) {
4
4
  class TwoVectorsDto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbybit-dev/base",
3
- "version": "0.21.1",
3
+ "version": "1.0.0-rc.0",
4
4
  "description": "Bit By Bit Developers Base CAD Library to Program Geometry",
5
5
  "main": "index.js",
6
6
  "repository": {