@bitbybit-dev/core
Version:
Bit By Bit Developers Core CAD API to Program Geometry
33 lines (32 loc) • 1.75 kB
JavaScript
/* eslint-disable @typescript-eslint/no-namespace */
/**
* Re-export Base namespace from @bitbybit-dev/base and extend with core-specific types.
*/
import { Base as BaseTypes } from "@bitbybit-dev/base";
export var Base;
(function (Base) {
// Re-export enums from base package
Base.horizontalAlignEnum = BaseTypes.horizontalAlignEnum;
Base.verticalAlignmentEnum = BaseTypes.verticalAlignmentEnum;
Base.topBottomEnum = BaseTypes.topBottomEnum;
Base.basicAlignmentEnum = BaseTypes.basicAlignmentEnum;
// Core-specific types and enums
/**
* 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)
*/
let colorMapStrategyEnum;
(function (colorMapStrategyEnum) {
/** Uses the first color for all entities (legacy behavior) */
colorMapStrategyEnum["firstColorForAll"] = "firstColorForAll";
/** Maps colors 1:1, then uses last color for remaining entities */
colorMapStrategyEnum["lastColorRemainder"] = "lastColorRemainder";
/** Cycles through colors in a repeating pattern */
colorMapStrategyEnum["repeatColors"] = "repeatColors";
/** After exhausting colors, reverses direction (ping-pong pattern) */
colorMapStrategyEnum["reversedColors"] = "reversedColors";
})(colorMapStrategyEnum = Base.colorMapStrategyEnum || (Base.colorMapStrategyEnum = {}));
})(Base || (Base = {}));