@umengfe/mcp-server-chart 0.0.7 → 0.0.8
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/build/charts/base.d.ts
CHANGED
|
@@ -34,12 +34,12 @@ export declare const MapHeightSchema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
|
34
34
|
export declare const POIsSchema: z.ZodArray<z.ZodString, "atleastone">;
|
|
35
35
|
export declare const LabelFormatterSchema: z.ZodOptional<z.ZodString>;
|
|
36
36
|
export declare const TooltipSchema: z.ZodOptional<z.ZodObject<{
|
|
37
|
-
channel: z.
|
|
37
|
+
channel: z.ZodLiteral<"y">;
|
|
38
38
|
valueFormatter: z.ZodOptional<z.ZodString>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
channel:
|
|
40
|
+
channel: "y";
|
|
41
41
|
valueFormatter?: string | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
channel
|
|
43
|
+
channel: "y";
|
|
44
44
|
valueFormatter?: string | undefined;
|
|
45
45
|
}>>;
|
package/build/charts/base.js
CHANGED
|
@@ -91,8 +91,8 @@ exports.LabelFormatterSchema = zod_1.z
|
|
|
91
91
|
// 帮我添加一个labelFormater的配置项,用于格式化标签, 主要使用d3的format方法,相关知识懂 test.md中获取
|
|
92
92
|
exports.TooltipSchema = zod_1.z
|
|
93
93
|
.object({
|
|
94
|
-
channel: zod_1.z.
|
|
94
|
+
channel: zod_1.z.literal("y"),
|
|
95
95
|
valueFormatter: exports.LabelFormatterSchema,
|
|
96
96
|
})
|
|
97
97
|
.optional()
|
|
98
|
-
.describe("
|
|
98
|
+
.describe("设置默认的tooltip,使用d3格式化方式,尤其涉及百分比,千分位,例如: {channel: 'y', valueFormatter: ',.0f'}");
|
package/build/charts/column.d.ts
CHANGED
|
@@ -53,13 +53,13 @@ export declare const column: {
|
|
|
53
53
|
} | undefined;
|
|
54
54
|
}>>;
|
|
55
55
|
tooltip: z.ZodOptional<z.ZodObject<{
|
|
56
|
-
channel: z.
|
|
56
|
+
channel: z.ZodLiteral<"y">;
|
|
57
57
|
valueFormatter: z.ZodOptional<z.ZodString>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
channel:
|
|
59
|
+
channel: "y";
|
|
60
60
|
valueFormatter?: string | undefined;
|
|
61
61
|
}, {
|
|
62
|
-
channel
|
|
62
|
+
channel: "y";
|
|
63
63
|
valueFormatter?: string | undefined;
|
|
64
64
|
}>>;
|
|
65
65
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umengfe/mcp-server-chart",
|
|
3
3
|
"description": "A Model Context Protocol server for generating charts using AntV. This is a TypeScript-based MCP server that provides chart generation capabilities. It allows you to create various types of charts through MCP tools.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
7
7
|
"exports": {
|