@bimatrix-aud-platform/aud_mcp_server 1.1.39 → 1.1.40
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.
|
@@ -4,10 +4,23 @@ export declare function defaultColor(): {
|
|
|
4
4
|
B: number;
|
|
5
5
|
A: number;
|
|
6
6
|
};
|
|
7
|
-
export declare function defaultBackground(): {
|
|
7
|
+
export declare function defaultBackground(): {
|
|
8
|
+
Color: {
|
|
9
|
+
R: number;
|
|
10
|
+
G: number;
|
|
11
|
+
B: number;
|
|
12
|
+
A: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
8
15
|
export declare function defaultBorder(): {
|
|
16
|
+
Color: {
|
|
17
|
+
R: number;
|
|
18
|
+
G: number;
|
|
19
|
+
B: number;
|
|
20
|
+
A: number;
|
|
21
|
+
};
|
|
9
22
|
CornerRadius: string;
|
|
10
|
-
LineType: "
|
|
23
|
+
LineType: "solid";
|
|
11
24
|
Thickness: string;
|
|
12
25
|
};
|
|
13
26
|
export declare function defaultFont(): {
|
|
@@ -56,12 +69,40 @@ export declare function defaultPosition(): {
|
|
|
56
69
|
export declare function defaultStyle(): {
|
|
57
70
|
Type: number;
|
|
58
71
|
BoxStyle: string;
|
|
59
|
-
Background: {
|
|
72
|
+
Background: {
|
|
73
|
+
Color: {
|
|
74
|
+
R: number;
|
|
75
|
+
G: number;
|
|
76
|
+
B: number;
|
|
77
|
+
A: number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
60
80
|
Border: {
|
|
81
|
+
Color: {
|
|
82
|
+
R: number;
|
|
83
|
+
G: number;
|
|
84
|
+
B: number;
|
|
85
|
+
A: number;
|
|
86
|
+
};
|
|
61
87
|
CornerRadius: string;
|
|
62
|
-
LineType: "
|
|
88
|
+
LineType: "solid";
|
|
63
89
|
Thickness: string;
|
|
64
90
|
};
|
|
91
|
+
Font: {
|
|
92
|
+
Color: {
|
|
93
|
+
R: number;
|
|
94
|
+
G: number;
|
|
95
|
+
B: number;
|
|
96
|
+
A: number;
|
|
97
|
+
};
|
|
98
|
+
Size: number;
|
|
99
|
+
Family: string;
|
|
100
|
+
Bold: boolean;
|
|
101
|
+
Italic: boolean;
|
|
102
|
+
UnderLine: boolean;
|
|
103
|
+
HorizontalAlignment: "left";
|
|
104
|
+
VerticalAlignment: "middle";
|
|
105
|
+
};
|
|
65
106
|
};
|
|
66
107
|
export declare function defaultValidator(): {
|
|
67
108
|
ValidateType: number;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
// ---- Base structural defaults ----
|
|
2
2
|
export function defaultColor() {
|
|
3
|
-
return { R:
|
|
3
|
+
return { R: 48, G: 48, B: 49, A: 1 };
|
|
4
4
|
}
|
|
5
5
|
export function defaultBackground() {
|
|
6
|
-
return {
|
|
6
|
+
return {
|
|
7
|
+
Color: { R: 255, G: 255, B: 255, A: 1 },
|
|
8
|
+
};
|
|
7
9
|
}
|
|
8
10
|
export function defaultBorder() {
|
|
9
11
|
return {
|
|
12
|
+
Color: { R: 204, G: 204, B: 204, A: 1 },
|
|
10
13
|
CornerRadius: "0,0,0,0",
|
|
11
|
-
LineType: "
|
|
12
|
-
Thickness: "
|
|
14
|
+
LineType: "solid",
|
|
15
|
+
Thickness: "1,1,1,1",
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
18
|
export function defaultFont() {
|
|
16
19
|
return {
|
|
17
|
-
Color: { R:
|
|
20
|
+
Color: { R: 48, G: 48, B: 49, A: 1 },
|
|
18
21
|
Size: 12,
|
|
19
|
-
Family: "
|
|
22
|
+
Family: "inherit",
|
|
20
23
|
Bold: false,
|
|
21
24
|
Italic: false,
|
|
22
25
|
UnderLine: false,
|
|
@@ -53,6 +56,7 @@ export function defaultStyle() {
|
|
|
53
56
|
BoxStyle: "",
|
|
54
57
|
Background: defaultBackground(),
|
|
55
58
|
Border: defaultBorder(),
|
|
59
|
+
Font: defaultFont(),
|
|
56
60
|
};
|
|
57
61
|
}
|
|
58
62
|
export function defaultValidator() {
|
|
@@ -14,40 +14,36 @@ import { ELEMENT_DEFAULTS_MAP } from "./defaults.js";
|
|
|
14
14
|
// ============================================================
|
|
15
15
|
function emptyBg() {
|
|
16
16
|
return {
|
|
17
|
-
Color: { R:
|
|
18
|
-
ColorR: 0, ColorG: 0, ColorB: 0, ColorA: 0,
|
|
17
|
+
Color: { R: 255, G: 255, B: 255, A: 1 },
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
20
|
function fullBg(hex) {
|
|
22
21
|
const c = parseHexColor(hex);
|
|
23
22
|
return {
|
|
24
|
-
Color: { R: c.R, G: c.G, B: c.B, A: 1 },
|
|
25
|
-
ColorR: c.R, ColorG: c.G, ColorB: c.B, ColorA: 1,
|
|
23
|
+
Color: { R: c.R, G: c.G, B: c.B, A: c.A > 0 ? 1 : 0 },
|
|
26
24
|
};
|
|
27
25
|
}
|
|
28
26
|
function emptyBorder() {
|
|
29
27
|
return {
|
|
30
|
-
Color: { R:
|
|
31
|
-
ColorR: 0, ColorG: 0, ColorB: 0, ColorA: 0,
|
|
28
|
+
Color: { R: 204, G: 204, B: 204, A: 1 },
|
|
32
29
|
CornerRadius: "0,0,0,0",
|
|
33
|
-
LineType: "
|
|
34
|
-
Thickness: "
|
|
30
|
+
LineType: "solid",
|
|
31
|
+
Thickness: "1,1,1,1",
|
|
35
32
|
};
|
|
36
33
|
}
|
|
37
34
|
function fullBorder(opts = {}) {
|
|
38
|
-
const c = opts.color ? parseHexColor(opts.color) : { R:
|
|
35
|
+
const c = opts.color ? parseHexColor(opts.color) : { R: 204, G: 204, B: 204, A: 1 };
|
|
39
36
|
return {
|
|
40
|
-
Color: { R: c.R, G: c.G, B: c.B, A: 1 },
|
|
41
|
-
ColorR: c.R, ColorG: c.G, ColorB: c.B, ColorA: 1,
|
|
37
|
+
Color: { R: c.R, G: c.G, B: c.B, A: c.A > 1 ? 1 : c.A },
|
|
42
38
|
CornerRadius: opts.radius || "0,0,0,0",
|
|
43
39
|
LineType: opts.lineType || "solid",
|
|
44
40
|
Thickness: opts.thickness || "1,1,1,1",
|
|
45
41
|
};
|
|
46
42
|
}
|
|
47
43
|
function fullFont(opts = {}) {
|
|
48
|
-
const c = opts.color ? parseHexColor(opts.color) : { R:
|
|
44
|
+
const c = opts.color ? parseHexColor(opts.color) : { R: 48, G: 48, B: 49, A: 1 };
|
|
49
45
|
return {
|
|
50
|
-
Color: { R: c.R, G: c.G, B: c.B, A: 1 },
|
|
46
|
+
Color: { R: c.R, G: c.G, B: c.B, A: c.A > 1 ? 1 : c.A },
|
|
51
47
|
Size: opts.size ?? 12,
|
|
52
48
|
Family: opts.family ?? "inherit",
|
|
53
49
|
Bold: opts.bold ?? false,
|
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.40",
|
|
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",
|