@depict-ai/utilishared 1.0.27 → 1.0.28

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="../jsx.d.ts" />
2
2
  import { EUnavailabilityType } from "@depict-ai/types/api/TrackV2Request";
3
- export const version = "1.0.27";
3
+ export const version = "1.0.28";
4
4
  export const is_debug: boolean;
5
5
  /**
6
6
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
@@ -2435,3 +2435,8 @@ export function hsb_to_rgb(h: number, s: number, b: number): readonly [number, n
2435
2435
  * Source: https://gist.github.com/jfsiii/5641126
2436
2436
  */
2437
2437
  export function relative_luminance_from_rgb(R8bit: number, G8bit: number, B8bit: number): number;
2438
+ /**
2439
+ * Converts a hex string to an RGB array
2440
+ * Source: https://stackoverflow.com/a/39077686
2441
+ */
2442
+ export function hex_to_rgb(hex: string): [number, number, number] | null;