@bimatrix-aud-platform/aud_mcp_server 1.1.70 → 1.1.72
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/utils/color.d.ts
CHANGED
|
@@ -8,6 +8,14 @@ export interface ColorRGBA {
|
|
|
8
8
|
* "#RRGGBB" 또는 "#RRGGBBAA" → { R, G, B, A }
|
|
9
9
|
*/
|
|
10
10
|
export declare function parseHexColor(hex: string): ColorRGBA;
|
|
11
|
+
/**
|
|
12
|
+
* { R, G, B, A } → "#RRGGBB" 또는 "#RRGGBBAA" (A가 255가 아닌 경우)
|
|
13
|
+
*/
|
|
14
|
+
export declare function rgbaToHex(color: ColorRGBA): string;
|
|
15
|
+
/**
|
|
16
|
+
* Color 값이 hex 문자열이면 RGBA로 변환, 이미 객체면 그대로 반환
|
|
17
|
+
*/
|
|
18
|
+
export declare function normalizeColor(color: any): ColorRGBA | undefined;
|
|
11
19
|
/**
|
|
12
20
|
* "#RRGGBB" → Background 스타일 { ColorR, ColorG, ColorB, ColorA }
|
|
13
21
|
*/
|
package/dist/utils/color.js
CHANGED
|
@@ -9,6 +9,34 @@ export function parseHexColor(hex) {
|
|
|
9
9
|
const a = cleaned.length >= 8 ? (parseInt(cleaned.substring(6, 8), 16) || 0) : 255;
|
|
10
10
|
return { R: r, G: g, B: b, A: a };
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* { R, G, B, A } → "#RRGGBB" 또는 "#RRGGBBAA" (A가 255가 아닌 경우)
|
|
14
|
+
*/
|
|
15
|
+
export function rgbaToHex(color) {
|
|
16
|
+
const r = (color.R || 0).toString(16).padStart(2, "0");
|
|
17
|
+
const g = (color.G || 0).toString(16).padStart(2, "0");
|
|
18
|
+
const b = (color.B || 0).toString(16).padStart(2, "0");
|
|
19
|
+
const a = color.A ?? 255;
|
|
20
|
+
if (a !== 255 && a !== 1) {
|
|
21
|
+
const ah = Math.round(a > 1 ? a : a * 255).toString(16).padStart(2, "0");
|
|
22
|
+
return `#${r}${g}${b}${ah}`;
|
|
23
|
+
}
|
|
24
|
+
return `#${r}${g}${b}`;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Color 값이 hex 문자열이면 RGBA로 변환, 이미 객체면 그대로 반환
|
|
28
|
+
*/
|
|
29
|
+
export function normalizeColor(color) {
|
|
30
|
+
if (color == null)
|
|
31
|
+
return undefined;
|
|
32
|
+
if (typeof color === "string" && color.startsWith("#")) {
|
|
33
|
+
return parseHexColor(color);
|
|
34
|
+
}
|
|
35
|
+
if (typeof color === "object" && color.R !== undefined) {
|
|
36
|
+
return color;
|
|
37
|
+
}
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
12
40
|
/**
|
|
13
41
|
* "#RRGGBB" → Background 스타일 { ColorR, ColorG, ColorB, ColorA }
|
|
14
42
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bimatrix-aud-platform/aud_mcp_server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.72",
|
|
4
4
|
"description": "MCP Server for i-AUD MTSD document validation, generation, schema querying, control info extraction, and database operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -4730,34 +4730,44 @@
|
|
|
4730
4730
|
}
|
|
4731
4731
|
},
|
|
4732
4732
|
"Color": {
|
|
4733
|
-
"
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
"
|
|
4738
|
-
"minimum": 0,
|
|
4739
|
-
"maximum": 255,
|
|
4740
|
-
"description": "Red (0-255)"
|
|
4741
|
-
},
|
|
4742
|
-
"G": {
|
|
4743
|
-
"type": "number",
|
|
4744
|
-
"minimum": 0,
|
|
4745
|
-
"maximum": 255,
|
|
4746
|
-
"description": "Green (0-255)"
|
|
4747
|
-
},
|
|
4748
|
-
"B": {
|
|
4749
|
-
"type": "number",
|
|
4750
|
-
"minimum": 0,
|
|
4751
|
-
"maximum": 255,
|
|
4752
|
-
"description": "Blue (0-255)"
|
|
4733
|
+
"oneOf": [
|
|
4734
|
+
{
|
|
4735
|
+
"type": "string",
|
|
4736
|
+
"pattern": "^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$",
|
|
4737
|
+
"description": "Hex 색상 문자열 (#RRGGBB 또는 #RRGGBBAA)"
|
|
4753
4738
|
},
|
|
4754
|
-
|
|
4755
|
-
"type": "
|
|
4756
|
-
"
|
|
4757
|
-
"
|
|
4758
|
-
|
|
4739
|
+
{
|
|
4740
|
+
"type": "object",
|
|
4741
|
+
"description": "RGBA 색상 객체",
|
|
4742
|
+
"properties": {
|
|
4743
|
+
"R": {
|
|
4744
|
+
"type": "number",
|
|
4745
|
+
"minimum": 0,
|
|
4746
|
+
"maximum": 255,
|
|
4747
|
+
"description": "Red (0-255)"
|
|
4748
|
+
},
|
|
4749
|
+
"G": {
|
|
4750
|
+
"type": "number",
|
|
4751
|
+
"minimum": 0,
|
|
4752
|
+
"maximum": 255,
|
|
4753
|
+
"description": "Green (0-255)"
|
|
4754
|
+
},
|
|
4755
|
+
"B": {
|
|
4756
|
+
"type": "number",
|
|
4757
|
+
"minimum": 0,
|
|
4758
|
+
"maximum": 255,
|
|
4759
|
+
"description": "Blue (0-255)"
|
|
4760
|
+
},
|
|
4761
|
+
"A": {
|
|
4762
|
+
"type": "number",
|
|
4763
|
+
"minimum": 0,
|
|
4764
|
+
"maximum": 255,
|
|
4765
|
+
"description": "Alpha (0-255)"
|
|
4766
|
+
}
|
|
4767
|
+
}
|
|
4759
4768
|
}
|
|
4760
|
-
|
|
4769
|
+
],
|
|
4770
|
+
"description": "색상 — hex 문자열(#RRGGBB) 또는 RGBA 객체({R,G,B,A}). compact 모드에서는 hex 문자열 사용"
|
|
4761
4771
|
},
|
|
4762
4772
|
"MouseState": {
|
|
4763
4773
|
"type": "object",
|