@xivdyetools/core 2.3.0 → 2.5.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 +3 -12
- package/dist/config/consolidated-ids.d.ts +39 -5
- package/dist/config/consolidated-ids.d.ts.map +1 -1
- package/dist/config/consolidated-ids.js +64 -6
- package/dist/config/consolidated-ids.js.map +1 -1
- package/dist/constants/index.d.ts +1 -12
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/data/colors_xiv.json +161 -161
- package/dist/data/locales/de.json +1 -1
- package/dist/data/locales/en.json +1 -1
- package/dist/data/locales/fr.json +1 -1
- package/dist/data/locales/ja.json +1 -1
- package/dist/data/locales/ko.json +1 -1
- package/dist/data/locales/zh.json +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/services/CharacterColorService.js.map +1 -1
- package/dist/services/color/ColorConverter.d.ts +0 -34
- package/dist/services/color/ColorConverter.d.ts.map +1 -1
- package/dist/services/color/RybColorMixer.d.ts +0 -47
- package/dist/services/color/RybColorMixer.d.ts.map +1 -1
- package/dist/services/dye/DyeDatabase.d.ts +1 -43
- package/dist/services/dye/DyeDatabase.d.ts.map +1 -1
- package/dist/services/dye/DyeDatabase.js.map +1 -1
- package/dist/services/dye/DyeFilter.d.ts +41 -0
- package/dist/services/dye/DyeFilter.d.ts.map +1 -0
- package/dist/services/dye/DyeFilter.js +86 -0
- package/dist/services/dye/DyeFilter.js.map +1 -0
- package/dist/utils/index.d.ts +0 -294
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
package/dist/utils/index.d.ts
CHANGED
|
@@ -162,181 +162,6 @@ export declare class AsyncLRUCache<K, V> {
|
|
|
162
162
|
*/
|
|
163
163
|
get pendingSize(): number;
|
|
164
164
|
}
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
* Clamp a number between min and max values
|
|
168
|
-
*
|
|
169
|
-
* @param value - The value to clamp
|
|
170
|
-
* @param min - Minimum allowed value
|
|
171
|
-
* @param max - Maximum allowed value
|
|
172
|
-
* @returns Clamped value between min and max
|
|
173
|
-
*
|
|
174
|
-
* @example
|
|
175
|
-
* ```typescript
|
|
176
|
-
* clamp(150, 0, 100) // Returns 100
|
|
177
|
-
* clamp(-10, 0, 100) // Returns 0
|
|
178
|
-
* clamp(50, 0, 100) // Returns 50
|
|
179
|
-
* ```
|
|
180
|
-
*
|
|
181
|
-
* Edge cases:
|
|
182
|
-
* - NaN values return NaN
|
|
183
|
-
* - Infinity is clamped to max
|
|
184
|
-
* - -Infinity is clamped to min
|
|
185
|
-
*/
|
|
186
|
-
export declare function clamp(value: number, min: number, max: number): number;
|
|
187
|
-
/**
|
|
188
|
-
* @internal
|
|
189
|
-
* Linear interpolation between two values
|
|
190
|
-
*
|
|
191
|
-
* @param a - Start value
|
|
192
|
-
* @param b - End value
|
|
193
|
-
* @param t - Interpolation factor (0 = a, 1 = b, 0.5 = midpoint)
|
|
194
|
-
* @returns Interpolated value
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* ```typescript
|
|
198
|
-
* lerp(0, 100, 0.5) // Returns 50
|
|
199
|
-
* lerp(0, 100, 0) // Returns 0
|
|
200
|
-
* lerp(0, 100, 1) // Returns 100
|
|
201
|
-
* lerp(10, 20, 0.25) // Returns 12.5
|
|
202
|
-
* ```
|
|
203
|
-
*
|
|
204
|
-
* Edge cases:
|
|
205
|
-
* - t can be outside [0, 1] for extrapolation
|
|
206
|
-
* - NaN values return NaN
|
|
207
|
-
* - Handles Infinity correctly
|
|
208
|
-
*/
|
|
209
|
-
export declare function lerp(a: number, b: number, t: number): number;
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
* Round a number to a specific decimal place
|
|
213
|
-
*
|
|
214
|
-
* @param value - The number to round
|
|
215
|
-
* @param decimals - Number of decimal places (default: 0)
|
|
216
|
-
* @returns Rounded number
|
|
217
|
-
*
|
|
218
|
-
* @example
|
|
219
|
-
* ```typescript
|
|
220
|
-
* round(3.14159, 2) // Returns 3.14
|
|
221
|
-
* round(2.5) // Returns 3 (rounds to nearest integer)
|
|
222
|
-
* round(123.456, 1) // Returns 123.5
|
|
223
|
-
* round(-2.5) // Returns -2
|
|
224
|
-
* ```
|
|
225
|
-
*
|
|
226
|
-
* Edge cases:
|
|
227
|
-
* - NaN returns NaN
|
|
228
|
-
* - Infinity returns Infinity/-Infinity
|
|
229
|
-
* - Negative decimals round to left of decimal point
|
|
230
|
-
*/
|
|
231
|
-
export declare function round(value: number, decimals?: number): number;
|
|
232
|
-
/**
|
|
233
|
-
* @internal
|
|
234
|
-
* Calculate Euclidean distance between two points in 2D space
|
|
235
|
-
*
|
|
236
|
-
* @param x1 - X coordinate of first point
|
|
237
|
-
* @param y1 - Y coordinate of first point
|
|
238
|
-
* @param x2 - X coordinate of second point
|
|
239
|
-
* @param y2 - Y coordinate of second point
|
|
240
|
-
* @returns Distance between the two points (always >= 0)
|
|
241
|
-
*
|
|
242
|
-
* @example
|
|
243
|
-
* ```typescript
|
|
244
|
-
* distance(0, 0, 3, 4) // Returns 5 (Pythagorean theorem)
|
|
245
|
-
* distance(0, 0, 0, 0) // Returns 0 (same point)
|
|
246
|
-
* distance(1, 1, 4, 5) // Returns 5
|
|
247
|
-
* ```
|
|
248
|
-
*
|
|
249
|
-
* Edge cases:
|
|
250
|
-
* - NaN values return NaN
|
|
251
|
-
* - Infinity values may return Infinity
|
|
252
|
-
* - Always returns non-negative value
|
|
253
|
-
*/
|
|
254
|
-
export declare function distance(x1: number, y1: number, x2: number, y2: number): number;
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
* Get unique values from an array
|
|
258
|
-
*
|
|
259
|
-
* @param array - Input array (may contain duplicates)
|
|
260
|
-
* @returns New array with only unique values (preserves first occurrence order)
|
|
261
|
-
*
|
|
262
|
-
* @example
|
|
263
|
-
* ```typescript
|
|
264
|
-
* unique([1, 2, 2, 3, 1]) // Returns [1, 2, 3]
|
|
265
|
-
* unique(['a', 'b', 'a']) // Returns ['a', 'b']
|
|
266
|
-
* unique([]) // Returns []
|
|
267
|
-
* ```
|
|
268
|
-
*
|
|
269
|
-
* Edge cases:
|
|
270
|
-
* - Empty array returns empty array
|
|
271
|
-
* - Uses Set equality (NaN === NaN, +0 === -0)
|
|
272
|
-
* - Preserves object/array references
|
|
273
|
-
*/
|
|
274
|
-
export declare function unique<T>(array: T[]): T[];
|
|
275
|
-
/**
|
|
276
|
-
* @internal
|
|
277
|
-
* Group array items by a key function
|
|
278
|
-
*
|
|
279
|
-
* @param array - Input array to group
|
|
280
|
-
* @param keyFn - Function that extracts grouping key from each item
|
|
281
|
-
* @returns Object with keys as groups and values as arrays of items
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* ```typescript
|
|
285
|
-
* const items = [
|
|
286
|
-
* { type: 'fruit', name: 'apple' },
|
|
287
|
-
* { type: 'fruit', name: 'banana' },
|
|
288
|
-
* { type: 'vegetable', name: 'carrot' }
|
|
289
|
-
* ];
|
|
290
|
-
* groupBy(items, item => item.type)
|
|
291
|
-
* // Returns { fruit: [...], vegetable: [...] }
|
|
292
|
-
* ```
|
|
293
|
-
*
|
|
294
|
-
* Edge cases:
|
|
295
|
-
* - Empty array returns empty object
|
|
296
|
-
* - Handles undefined/null keys as string keys
|
|
297
|
-
*/
|
|
298
|
-
export declare function groupBy<T, K extends string | number>(array: T[], keyFn: (item: T) => K): Record<K, T[]>;
|
|
299
|
-
/**
|
|
300
|
-
* @internal
|
|
301
|
-
* Sort array by property value
|
|
302
|
-
*
|
|
303
|
-
* @param array - Input array to sort
|
|
304
|
-
* @param property - Property key to sort by
|
|
305
|
-
* @param order - Sort order ('asc' or 'desc', default: 'asc')
|
|
306
|
-
* @returns New sorted array (does not mutate original)
|
|
307
|
-
*
|
|
308
|
-
* @example
|
|
309
|
-
* ```typescript
|
|
310
|
-
* const items = [{ age: 30 }, { age: 20 }, { age: 25 }];
|
|
311
|
-
* sortByProperty(items, 'age') // Sorted by age ascending
|
|
312
|
-
* sortByProperty(items, 'age', 'desc') // Sorted by age descending
|
|
313
|
-
* ```
|
|
314
|
-
*
|
|
315
|
-
* Edge cases:
|
|
316
|
-
* - Returns shallow copy of array
|
|
317
|
-
* - Handles undefined properties (sorted to end)
|
|
318
|
-
* - Stable sort (preserves relative order of equal elements)
|
|
319
|
-
*/
|
|
320
|
-
export declare function sortByProperty<T>(array: T[], property: keyof T, order?: 'asc' | 'desc'): T[];
|
|
321
|
-
/**
|
|
322
|
-
* @internal
|
|
323
|
-
* Filter array items, removing null and undefined values
|
|
324
|
-
*
|
|
325
|
-
* @param array - Input array with possibly null/undefined items
|
|
326
|
-
* @returns New array with null and undefined values removed
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
* ```typescript
|
|
330
|
-
* filterNulls([1, null, 2, undefined, 3]) // Returns [1, 2, 3]
|
|
331
|
-
* filterNulls([null, undefined]) // Returns []
|
|
332
|
-
* filterNulls([0, false, '']) // Returns [0, false, ''] (keeps falsy values)
|
|
333
|
-
* ```
|
|
334
|
-
*
|
|
335
|
-
* Edge cases:
|
|
336
|
-
* - Keeps falsy values (0, false, empty string)
|
|
337
|
-
* - Type guard ensures return type doesn't include null|undefined
|
|
338
|
-
*/
|
|
339
|
-
export declare function filterNulls<T>(array: (T | null | undefined)[]): T[];
|
|
340
165
|
/**
|
|
341
166
|
* Validate a hexadecimal color string
|
|
342
167
|
*
|
|
@@ -360,106 +185,6 @@ export declare function filterNulls<T>(array: (T | null | undefined)[]): T[];
|
|
|
360
185
|
* Security: Input length is validated before regex to prevent ReDoS
|
|
361
186
|
*/
|
|
362
187
|
export declare function isValidHexColor(hex: string): boolean;
|
|
363
|
-
/**
|
|
364
|
-
* @internal
|
|
365
|
-
* Validate RGB color values
|
|
366
|
-
*
|
|
367
|
-
* @param r - Red value
|
|
368
|
-
* @param g - Green value
|
|
369
|
-
* @param b - Blue value
|
|
370
|
-
* @returns true if all values are valid (0-255, finite, not NaN), false otherwise
|
|
371
|
-
*
|
|
372
|
-
* @example
|
|
373
|
-
* ```typescript
|
|
374
|
-
* isValidRGB(255, 0, 0) // Returns true
|
|
375
|
-
* isValidRGB(0, 128, 255) // Returns true
|
|
376
|
-
* isValidRGB(256, 0, 0) // Returns false (r > 255)
|
|
377
|
-
* isValidRGB(-1, 0, 0) // Returns false (r < 0)
|
|
378
|
-
* isValidRGB(NaN, 0, 0) // Returns false
|
|
379
|
-
* isValidRGB(Infinity, 0, 0) // Returns false
|
|
380
|
-
* ```
|
|
381
|
-
*
|
|
382
|
-
* Valid range: 0-255 (inclusive) for all channels
|
|
383
|
-
*/
|
|
384
|
-
export declare function isValidRGB(r: number, g: number, b: number): boolean;
|
|
385
|
-
/**
|
|
386
|
-
* @internal
|
|
387
|
-
* Validate HSV color values
|
|
388
|
-
*
|
|
389
|
-
* @param h - Hue value (0-360)
|
|
390
|
-
* @param s - Saturation value (0-100)
|
|
391
|
-
* @param v - Value/brightness (0-100)
|
|
392
|
-
* @returns true if all values are valid (finite, not NaN, within ranges), false otherwise
|
|
393
|
-
*
|
|
394
|
-
* @example
|
|
395
|
-
* ```typescript
|
|
396
|
-
* isValidHSV(180, 50, 100) // Returns true
|
|
397
|
-
* isValidHSV(0, 0, 0) // Returns true
|
|
398
|
-
* isValidHSV(360, 100, 100) // Returns true (edge of range)
|
|
399
|
-
* isValidHSV(361, 50, 50) // Returns false (h > 360)
|
|
400
|
-
* isValidHSV(180, -1, 50) // Returns false (s < 0)
|
|
401
|
-
* isValidHSV(NaN, 50, 50) // Returns false
|
|
402
|
-
* ```
|
|
403
|
-
*
|
|
404
|
-
* Valid ranges:
|
|
405
|
-
* - Hue: 0-360 (degrees)
|
|
406
|
-
* - Saturation: 0-100 (percent)
|
|
407
|
-
* - Value: 0-100 (percent)
|
|
408
|
-
*/
|
|
409
|
-
export declare function isValidHSV(h: number, s: number, v: number): boolean;
|
|
410
|
-
/**
|
|
411
|
-
* @internal
|
|
412
|
-
* Type guard: Check if a value is a string
|
|
413
|
-
*
|
|
414
|
-
* @param value - Value to check
|
|
415
|
-
* @returns true if value is a string, false otherwise
|
|
416
|
-
*
|
|
417
|
-
* @example
|
|
418
|
-
* ```typescript
|
|
419
|
-
* isString('hello') // Returns true
|
|
420
|
-
* isString('') // Returns true (empty string)
|
|
421
|
-
* isString(123) // Returns false
|
|
422
|
-
* isString(new String('')) // Returns false (String object, not primitive)
|
|
423
|
-
* ```
|
|
424
|
-
*/
|
|
425
|
-
export declare function isString(value: unknown): value is string;
|
|
426
|
-
/**
|
|
427
|
-
* @internal
|
|
428
|
-
* Type guard: Check if a value is a finite number (excludes NaN and Infinity)
|
|
429
|
-
*
|
|
430
|
-
* @param value - Value to check
|
|
431
|
-
* @returns true if value is a number and finite (not NaN, not Infinity), false otherwise
|
|
432
|
-
*
|
|
433
|
-
* @example
|
|
434
|
-
* ```typescript
|
|
435
|
-
* isNumber(42) // Returns true
|
|
436
|
-
* isNumber(0) // Returns true
|
|
437
|
-
* isNumber(-3.14) // Returns true
|
|
438
|
-
* isNumber(NaN) // Returns false
|
|
439
|
-
* isNumber(Infinity) // Returns false
|
|
440
|
-
* isNumber('123') // Returns false (string)
|
|
441
|
-
* isNumber(new Number(5)) // Returns false (Number object)
|
|
442
|
-
* ```
|
|
443
|
-
*
|
|
444
|
-
* Note: This excludes NaN and Infinity for safer numeric operations
|
|
445
|
-
*/
|
|
446
|
-
export declare function isNumber(value: unknown): value is number;
|
|
447
|
-
/**
|
|
448
|
-
* @internal
|
|
449
|
-
* Type guard: Check if a value is an array
|
|
450
|
-
*
|
|
451
|
-
* @param value - Value to check
|
|
452
|
-
* @returns true if value is an array, false otherwise
|
|
453
|
-
*
|
|
454
|
-
* @example
|
|
455
|
-
* ```typescript
|
|
456
|
-
* isArray([1, 2, 3]) // Returns true
|
|
457
|
-
* isArray([]) // Returns true
|
|
458
|
-
* isArray('not array') // Returns false
|
|
459
|
-
* isArray({ length: 0 }) // Returns false (array-like object)
|
|
460
|
-
* ```
|
|
461
|
-
*/
|
|
462
|
-
export declare function isArray<T = unknown>(value: unknown): value is T[];
|
|
463
188
|
/**
|
|
464
189
|
* Type guard: Check if a value is a plain object (not array, not null)
|
|
465
190
|
*
|
|
@@ -516,25 +241,6 @@ export declare function isNullish(value: unknown): value is null | undefined;
|
|
|
516
241
|
* Note: Negative values are clamped to 0 (immediate resolution)
|
|
517
242
|
*/
|
|
518
243
|
export declare function sleep(ms: number): Promise<void>;
|
|
519
|
-
/**
|
|
520
|
-
* @internal
|
|
521
|
-
* Check if an error is an AbortError (from AbortController timeout)
|
|
522
|
-
*
|
|
523
|
-
* @param error - Error to check
|
|
524
|
-
* @returns true if error is an AbortError, false otherwise
|
|
525
|
-
*
|
|
526
|
-
* @example
|
|
527
|
-
* ```typescript
|
|
528
|
-
* try {
|
|
529
|
-
* await fetch(url, { signal: controller.signal });
|
|
530
|
-
* } catch (error) {
|
|
531
|
-
* if (isAbortError(error)) {
|
|
532
|
-
* console.log('Request timed out or was aborted');
|
|
533
|
-
* }
|
|
534
|
-
* }
|
|
535
|
-
* ```
|
|
536
|
-
*/
|
|
537
|
-
export declare function isAbortError(error: unknown): boolean;
|
|
538
244
|
/**
|
|
539
245
|
* Retry a function multiple times with exponential backoff
|
|
540
246
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAM1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,QAAQ,CAAC,CAAC,EAAE,CAAC;IACxB,OAAO,CAAC,KAAK,CAAY;IACzB,OAAO,CAAC,OAAO,CAAS;gBAEZ,OAAO,GAAE,MAA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cG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,CAEnE;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG/C;AA6BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAsB,KAAK,CAAC,CAAC,EAC3B,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,WAAW,GAAE,MAAU,EACvB,OAAO,GAAE,MAAa,EACtB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,CAAC,CAsBZ;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAStD"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xivdyetools/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Core color algorithms and dye database for XIV Dye Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"spectral.js": "^3.0.0",
|
|
38
38
|
"@xivdyetools/logger": "1.2.2",
|
|
39
|
-
"@xivdyetools/types": "1.
|
|
39
|
+
"@xivdyetools/types": "1.13.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^25.
|
|
43
|
-
"@vitest/coverage-v8": "^4.1.
|
|
42
|
+
"@types/node": "^25.6.0",
|
|
43
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
44
44
|
"csv-parse": "^6.2.1",
|
|
45
45
|
"tsx": "^4.7.0",
|
|
46
|
-
"typedoc": "^0.28.
|
|
46
|
+
"typedoc": "^0.28.19",
|
|
47
47
|
"typedoc-plugin-markdown": "^4.11.0",
|
|
48
|
-
"vitest": "^4.1.
|
|
48
|
+
"vitest": "^4.1.5",
|
|
49
49
|
"yaml": "^2.8.3"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|