@mlightcad/common 1.2.5 → 1.2.7

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.
@@ -0,0 +1,315 @@
1
+ import { AcCmTransparencyMethod } from './AcCmTransparencyMethod';
2
+ /**
3
+ * Class representing transparency similar to AutoCAD’s `AcCmTransparency`.
4
+ *
5
+ * Stores both method and alpha information.
6
+ */
7
+ var AcCmTransparency = /** @class */ (function () {
8
+ /**
9
+ * Creates a new transparency object.
10
+ *
11
+ * @param alpha
12
+ * When provided, constructs with `ByAlpha` method and sets alpha.
13
+ * Must be between 0 and 255.
14
+ */
15
+ function AcCmTransparency(alpha) {
16
+ if (alpha !== undefined) {
17
+ this._method = AcCmTransparencyMethod.ByAlpha;
18
+ this._alpha = AcCmTransparency.clampAlpha(alpha);
19
+ }
20
+ else {
21
+ this._method = AcCmTransparencyMethod.ByLayer;
22
+ this._alpha = 255;
23
+ }
24
+ }
25
+ Object.defineProperty(AcCmTransparency.prototype, "method", {
26
+ /** Gets the current transparency method */
27
+ get: function () {
28
+ return this._method;
29
+ },
30
+ /**
31
+ * Sets the transparency method.
32
+ * If setting to ByAlpha with no prior alpha, alpha stays 255 (opaque).
33
+ *
34
+ * @param method The new transparency method
35
+ */
36
+ set: function (method) {
37
+ this._method = method;
38
+ },
39
+ enumerable: false,
40
+ configurable: true
41
+ });
42
+ Object.defineProperty(AcCmTransparency.prototype, "alpha", {
43
+ /**
44
+ * Gets the alpha value.
45
+ * Only meaningful if `method === ByAlpha`.
46
+ */
47
+ get: function () {
48
+ return this._alpha;
49
+ },
50
+ /**
51
+ * Sets the alpha value and force the method to `ByAlpha`.
52
+ *
53
+ * @param alpha 0–255 alpha, clamped internally if out of range
54
+ */
55
+ set: function (alpha) {
56
+ this._alpha = AcCmTransparency.clampAlpha(alpha);
57
+ this._method = AcCmTransparencyMethod.ByAlpha;
58
+ },
59
+ enumerable: false,
60
+ configurable: true
61
+ });
62
+ Object.defineProperty(AcCmTransparency.prototype, "percentage", {
63
+ /**
64
+ * Gets the AutoCAD-style transparency percentage.
65
+ *
66
+ * Mapping rules:
67
+ * - 0% = fully opaque (alpha = 255)
68
+ * - 100% = fully transparent (alpha = 0)
69
+ *
70
+ * This matches how AutoCAD displays and stores transparency
71
+ * values in UI and DXF files.
72
+ *
73
+ * If the transparency method is not `ByAlpha`,
74
+ * this method returns `undefined`, because AutoCAD
75
+ * does not define a percentage for ByLayer or ByBlock.
76
+ *
77
+ * @returns Transparency percentage (0–100), or undefined
78
+ */
79
+ get: function () {
80
+ if (this._method !== AcCmTransparencyMethod.ByAlpha) {
81
+ return undefined;
82
+ }
83
+ return Math.round((1 - this._alpha / 255) * 100);
84
+ },
85
+ /**
86
+ * Sets the transparency using an AutoCAD-style percentage.
87
+ *
88
+ * Mapping rules (AutoCAD compatible):
89
+ * - 0% → fully opaque (alpha = 255)
90
+ * - 100% → fully transparent (alpha = 0)
91
+ *
92
+ * Internally, the alpha value is calculated as:
93
+ * alpha = round(255 × (1 − percentage / 100))
94
+ *
95
+ * This method:
96
+ * - Forces the transparency method to `ByAlpha`
97
+ * - Clamps the percentage to the range 0–100
98
+ * - Preserves ObjectARX value semantics
99
+ *
100
+ * @param percentage Transparency percentage (0–100)
101
+ * @returns This instance (for fluent chaining)
102
+ *
103
+ * @example
104
+ * const t = new AcCmTransparency();
105
+ * t.setPercentage(50); // ≈ alpha 128
106
+ *
107
+ * t.setPercentage(0); // alpha = 255 (opaque)
108
+ * t.setPercentage(100); // alpha = 0 (clear)
109
+ */
110
+ set: function (percentage) {
111
+ var p = Math.max(0, Math.min(100, percentage));
112
+ var alpha = Math.round(255 * (1 - p / 100));
113
+ this.alpha = alpha;
114
+ },
115
+ enumerable: false,
116
+ configurable: true
117
+ });
118
+ /**
119
+ * Ensures alpha always stays within 0–255.
120
+ */
121
+ AcCmTransparency.clampAlpha = function (alpha) {
122
+ return Math.max(0, Math.min(255, Math.floor(alpha)));
123
+ };
124
+ Object.defineProperty(AcCmTransparency.prototype, "isByAlpha", {
125
+ /**
126
+ * True if the method is `ByAlpha`.
127
+ */
128
+ get: function () {
129
+ return this._method === AcCmTransparencyMethod.ByAlpha;
130
+ },
131
+ enumerable: false,
132
+ configurable: true
133
+ });
134
+ Object.defineProperty(AcCmTransparency.prototype, "isByBlock", {
135
+ /**
136
+ * True if the method is `ByBlock`.
137
+ */
138
+ get: function () {
139
+ return this._method === AcCmTransparencyMethod.ByBlock;
140
+ },
141
+ enumerable: false,
142
+ configurable: true
143
+ });
144
+ Object.defineProperty(AcCmTransparency.prototype, "isByLayer", {
145
+ /**
146
+ * True if the method is `ByLayer`.
147
+ */
148
+ get: function () {
149
+ return this._method === AcCmTransparencyMethod.ByLayer;
150
+ },
151
+ enumerable: false,
152
+ configurable: true
153
+ });
154
+ Object.defineProperty(AcCmTransparency.prototype, "isClear", {
155
+ /**
156
+ * True if transparency is exactly clear (alpha==0 and ByAlpha).
157
+ */
158
+ get: function () {
159
+ return this.isByAlpha && this._alpha === 0;
160
+ },
161
+ enumerable: false,
162
+ configurable: true
163
+ });
164
+ Object.defineProperty(AcCmTransparency.prototype, "isSolid", {
165
+ /**
166
+ * True if transparency is solid (alpha==255 and ByAlpha).
167
+ */
168
+ get: function () {
169
+ return this.isByAlpha && this._alpha === 255;
170
+ },
171
+ enumerable: false,
172
+ configurable: true
173
+ });
174
+ Object.defineProperty(AcCmTransparency.prototype, "isInvalid", {
175
+ /**
176
+ * True if current state is invalid (ErrorValue).
177
+ */
178
+ get: function () {
179
+ return this._method === AcCmTransparencyMethod.ErrorValue;
180
+ },
181
+ enumerable: false,
182
+ configurable: true
183
+ });
184
+ /**
185
+ * Convert this transparency to an integer suitable for storage.
186
+ * Uses a simple bit-encoding: high­bits for method and low­bits for alpha.
187
+ *
188
+ * 31 24 23 8 7 0
189
+ * +-------------+--------------+------------+
190
+ * | flags | reserved | alpha |
191
+ * +-------------+--------------+------------+
192
+ */
193
+ AcCmTransparency.prototype.serialize = function () {
194
+ var methodVal = this._method;
195
+ return (methodVal << 24) | this._alpha;
196
+ };
197
+ /**
198
+ * Creates a deep copy of this transparency object.
199
+ *
200
+ * This mirrors the value-semantics of ObjectARX `AcCmTransparency`,
201
+ * where copying results in an independent object with the same
202
+ * transparency method and alpha value.
203
+ *
204
+ * @returns A new `AcCmTransparency` instance with identical state.
205
+ */
206
+ AcCmTransparency.prototype.clone = function () {
207
+ var copy = new AcCmTransparency();
208
+ copy._method = this._method;
209
+ copy._alpha = this._alpha;
210
+ return copy;
211
+ };
212
+ /**
213
+ * Compares this transparency with another one for equality.
214
+ *
215
+ * Two `AcCmTransparency` objects are considered equal if:
216
+ * - Their transparency methods are identical
217
+ * - Their alpha values are identical
218
+ *
219
+ * This mirrors the value semantics of ObjectARX
220
+ * `AcCmTransparency`.
221
+ *
222
+ * @param other The transparency to compare with
223
+ * @returns True if both represent the same transparency
224
+ *
225
+ * @example
226
+ * const a = new AcCmTransparency(128);
227
+ * const b = new AcCmTransparency(128);
228
+ * a.equals(b); // true
229
+ */
230
+ AcCmTransparency.prototype.equals = function (other) {
231
+ return this._method === other._method && this._alpha === other._alpha;
232
+ };
233
+ /**
234
+ * Returns a human-readable string representation of the transparency.
235
+ *
236
+ * Behavior:
237
+ * - `"ByLayer"` if transparency is inherited from layer
238
+ * - `"ByBlock"` if transparency is inherited from block
239
+ * - Numeric alpha value (`"0"`–`"255"`) if method is `ByAlpha`
240
+ *
241
+ * This format is intentionally simple and mirrors common
242
+ * AutoCAD UI and DXF text usage.
243
+ *
244
+ * @returns String representation of the transparency
245
+ *
246
+ * @example
247
+ * new AcCmTransparency().toString(); // "ByLayer"
248
+ * new AcCmTransparency(128).toString(); // "128"
249
+ */
250
+ AcCmTransparency.prototype.toString = function () {
251
+ if (this.isByLayer)
252
+ return 'ByLayer';
253
+ if (this.isByBlock)
254
+ return 'ByBlock';
255
+ return this._alpha.toString();
256
+ };
257
+ /**
258
+ * Creates an `AcCmTransparency` instance from a string representation.
259
+ *
260
+ * Accepted formats:
261
+ * - `"ByLayer"` (case-insensitive)
262
+ * - `"ByBlock"` (case-insensitive)
263
+ * - Numeric alpha value `"0"`–`"255"`
264
+ *
265
+ * Invalid or out-of-range values will produce an
266
+ * `ErrorValue` transparency.
267
+ *
268
+ * @param value String to parse
269
+ * @returns Parsed `AcCmTransparency` instance
270
+ *
271
+ * @example
272
+ * AcCmTransparency.fromString("ByLayer");
273
+ * AcCmTransparency.fromString("128");
274
+ * AcCmTransparency.fromString("ByBlock");
275
+ */
276
+ AcCmTransparency.fromString = function (value) {
277
+ var v = value.trim();
278
+ if (/^bylayer$/i.test(v)) {
279
+ var t_1 = new AcCmTransparency();
280
+ t_1._method = AcCmTransparencyMethod.ByLayer;
281
+ return t_1;
282
+ }
283
+ if (/^byblock$/i.test(v)) {
284
+ var t_2 = new AcCmTransparency();
285
+ t_2._method = AcCmTransparencyMethod.ByBlock;
286
+ return t_2;
287
+ }
288
+ var alpha = Number(v);
289
+ if (Number.isInteger(alpha) && alpha >= 0 && alpha <= 255) {
290
+ return new AcCmTransparency(alpha);
291
+ }
292
+ // Invalid input → ErrorValue
293
+ var t = new AcCmTransparency();
294
+ t._method = AcCmTransparencyMethod.ErrorValue;
295
+ return t;
296
+ };
297
+ /**
298
+ * Deserialize an integer back into a transparency object.
299
+ *
300
+ * @param value 32-bit stored transparency representation
301
+ */
302
+ AcCmTransparency.deserialize = function (value) {
303
+ var _a;
304
+ var methodIndex = (value >>> 24) & 0xff;
305
+ var alpha = value & 0xff;
306
+ var method = (_a = Object.values(AcCmTransparencyMethod)[methodIndex]) !== null && _a !== void 0 ? _a : AcCmTransparencyMethod.ErrorValue;
307
+ var t = new AcCmTransparency();
308
+ t._method = method;
309
+ t._alpha = AcCmTransparency.clampAlpha(alpha);
310
+ return t;
311
+ };
312
+ return AcCmTransparency;
313
+ }());
314
+ export { AcCmTransparency };
315
+ //# sourceMappingURL=AcCmTransparency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcCmTransparency.js","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,CAAC,EAAE,CAAC;YACzB,IAAM,GAAC,GAAG,IAAI,gBAAgB,EAAE,CAAA;YAChC,GAAC,CAAC,OAAO,GAAG,sBAAsB,CAAC,OAAO,CAAA;YAC1C,OAAO,GAAC,CAAA;QACV,CAAC;QAED,IAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACvB,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,GAAG,EAAE,CAAC;YAC1D,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAA;QACpC,CAAC;QAED,6BAA6B;QAC7B,IAAM,CAAC,GAAG,IAAI,gBAAgB,EAAE,CAAA;QAChC,CAAC,CAAC,OAAO,GAAG,sBAAsB,CAAC,UAAU,CAAA;QAC7C,OAAO,CAAC,CAAA;IACV,CAAC;IAED;;;;OAIG;IACI,4BAAW,GAAlB,UAAmB,KAAa;;QAC9B,IAAM,WAAW,GAAG,CAAC,KAAK,KAAK,EAAE,CAAC,GAAG,IAAI,CAAA;QACzC,IAAM,KAAK,GAAG,KAAK,GAAG,IAAI,CAAA;QAC1B,IAAM,MAAM,GACV,MAAA,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,WAAW,CAAC,mCAClD,sBAAsB,CAAC,UAAU,CAAA;QACnC,IAAM,CAAC,GAAG,IAAI,gBAAgB,EAAE,CAAA;QAChC,CAAC,CAAC,OAAO,GAAG,MAAgC,CAAA;QAC5C,CAAC,CAAC,MAAM,GAAG,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAC7C,OAAO,CAAC,CAAA;IACV,CAAC;IACH,uBAAC;AAAD,CAAC,AA/SD,IA+SC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Defines how transparency is interpreted.
3
+ *
4
+ * This mirrors the `transparencyMethod` enum from ObjectARX:
5
+ * - ByLayer: Use the layer’s transparency
6
+ * - ByBlock: Use a parent block’s transparency
7
+ * - ByAlpha: Use a specific alpha value
8
+ * - ErrorValue: Invalid transparency state
9
+ */
10
+ export declare enum AcCmTransparencyMethod {
11
+ ByLayer = 0,
12
+ ByBlock = 1,
13
+ ByAlpha = 2,
14
+ ErrorValue = 3
15
+ }
16
+ //# sourceMappingURL=AcCmTransparencyMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcCmTransparencyMethod.d.ts","sourceRoot":"","sources":["../src/AcCmTransparencyMethod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,oBAAY,sBAAsB;IAChC,OAAO,IAAI;IACX,OAAO,IAAI;IACX,OAAO,IAAI;IACX,UAAU,IAAI;CACf"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Defines how transparency is interpreted.
3
+ *
4
+ * This mirrors the `transparencyMethod` enum from ObjectARX:
5
+ * - ByLayer: Use the layer’s transparency
6
+ * - ByBlock: Use a parent block’s transparency
7
+ * - ByAlpha: Use a specific alpha value
8
+ * - ErrorValue: Invalid transparency state
9
+ */
10
+ export var AcCmTransparencyMethod;
11
+ (function (AcCmTransparencyMethod) {
12
+ AcCmTransparencyMethod[AcCmTransparencyMethod["ByLayer"] = 0] = "ByLayer";
13
+ AcCmTransparencyMethod[AcCmTransparencyMethod["ByBlock"] = 1] = "ByBlock";
14
+ AcCmTransparencyMethod[AcCmTransparencyMethod["ByAlpha"] = 2] = "ByAlpha";
15
+ AcCmTransparencyMethod[AcCmTransparencyMethod["ErrorValue"] = 3] = "ErrorValue";
16
+ })(AcCmTransparencyMethod || (AcCmTransparencyMethod = {}));
17
+ //# sourceMappingURL=AcCmTransparencyMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcCmTransparencyMethod.js","sourceRoot":"","sources":["../src/AcCmTransparencyMethod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,yEAAW,CAAA;IACX,yEAAW,CAAA;IACX,yEAAW,CAAA;IACX,+EAAc,CAAA;AAChB,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC"}
package/lib/index.d.ts CHANGED
@@ -1,12 +1,17 @@
1
1
  export * from './AcCmColor';
2
+ export * from './AcCmColorMethod';
3
+ export * from './AcCmColorUtil';
4
+ export * from './AcCmEntityColor';
2
5
  export * from './AcCmErrors';
3
6
  export * from './AcCmEventDispatcher';
4
7
  export * from './AcCmEventManager';
8
+ export * from './AcCmLodashUtils';
5
9
  export * from './AcCmLogUtil';
6
10
  export * from './AcCmObject';
7
11
  export * from './AcCmPerformanceCollector';
8
12
  export * from './AcCmStringUtil';
13
+ export * from './AcCmTransparency';
14
+ export * from './AcCmTransparencyMethod';
9
15
  export * from './AcCmTaskScheduler';
10
- export * from './AcCmLodashUtils';
11
16
  export * from './loader';
12
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA"}
package/lib/index.js CHANGED
@@ -1,12 +1,17 @@
1
1
  export * from './AcCmColor';
2
+ export * from './AcCmColorMethod';
3
+ export * from './AcCmColorUtil';
4
+ export * from './AcCmEntityColor';
2
5
  export * from './AcCmErrors';
3
6
  export * from './AcCmEventDispatcher';
4
7
  export * from './AcCmEventManager';
8
+ export * from './AcCmLodashUtils';
5
9
  export * from './AcCmLogUtil';
6
10
  export * from './AcCmObject';
7
11
  export * from './AcCmPerformanceCollector';
8
12
  export * from './AcCmStringUtil';
13
+ export * from './AcCmTransparency';
14
+ export * from './AcCmTransparencyMethod';
9
15
  export * from './AcCmTaskScheduler';
10
- export * from './AcCmLodashUtils';
11
16
  export * from './loader';
12
17
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@mlightcad/common",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://gitlab.com/mlightcad/realdwg-web"
8
+ "url": "https://github.com/mlightcad/realdwg-web"
9
9
  },
10
10
  "keywords": [
11
11
  "autocad",