UNPKG

@bitbybit-dev/core

Version:

Bit By Bit Developers Core CAD API to Program Geometry

65 lines (64 loc) 2.94 kB
/** * Re-export Base namespace from @bitbybit-dev/base and extend with core-specific types. */ import { Base as BaseTypes } from "@bitbybit-dev/base"; export declare namespace Base { type Color = BaseTypes.Color; type ColorRGB = BaseTypes.ColorRGB; type ColorRGBA = BaseTypes.ColorRGBA; type Material = BaseTypes.Material; type Point2 = BaseTypes.Point2; type Vector2 = BaseTypes.Vector2; type Point3 = BaseTypes.Point3; type Vector3 = BaseTypes.Vector3; type Axis3 = BaseTypes.Axis3; type Axis2 = BaseTypes.Axis2; type Segment2 = BaseTypes.Segment2; type Segment3 = BaseTypes.Segment3; type TrianglePlane3 = BaseTypes.TrianglePlane3; type Triangle3 = BaseTypes.Triangle3; type Mesh3 = BaseTypes.Mesh3; type Plane3 = BaseTypes.Plane3; type BoundingBox = BaseTypes.BoundingBox; type Line2 = BaseTypes.Line2; type Line3 = BaseTypes.Line3; type Polyline3 = BaseTypes.Polyline3; type Polyline2 = BaseTypes.Polyline2; type TransformMatrix3x3 = BaseTypes.TransformMatrix3x3; type TransformMatrixes3x3 = BaseTypes.TransformMatrixes3x3; type TransformMatrix = BaseTypes.TransformMatrix; type TransformMatrixes = BaseTypes.TransformMatrixes; const horizontalAlignEnum: typeof BaseTypes.horizontalAlignEnum; type horizontalAlignEnum = BaseTypes.horizontalAlignEnum; const verticalAlignmentEnum: typeof BaseTypes.verticalAlignmentEnum; type verticalAlignmentEnum = BaseTypes.verticalAlignmentEnum; const topBottomEnum: typeof BaseTypes.topBottomEnum; type topBottomEnum = BaseTypes.topBottomEnum; const basicAlignmentEnum: typeof BaseTypes.basicAlignmentEnum; type basicAlignmentEnum = BaseTypes.basicAlignmentEnum; /** * Defines how colors are mapped to entities when there are more entities than colors. * - firstColorForAll: Uses the first color for all entities (legacy behavior) * - lastColorRemainder: Maps colors 1:1, then uses last color for remaining entities * - repeatColors: Cycles through colors in a repeating pattern * - reversedColors: After exhausting colors, reverses direction (ping-pong pattern) */ enum colorMapStrategyEnum { /** Uses the first color for all entities (legacy behavior) */ firstColorForAll = "firstColorForAll", /** Maps colors 1:1, then uses last color for remaining entities */ lastColorRemainder = "lastColorRemainder", /** Cycles through colors in a repeating pattern */ repeatColors = "repeatColors", /** After exhausting colors, reverses direction (ping-pong pattern) */ reversedColors = "reversedColors" } /** NURBS curve type from verb-nurbs library */ type VerbCurve = { tessellate: (options: any) => any; }; /** NURBS surface type from verb-nurbs library */ type VerbSurface = { tessellate: (options: any) => any; }; }