@drawio/mcp 1.1.7 → 1.1.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/package.json +1 -1
- package/src/index.js +5 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -120,7 +120,12 @@ const tools =
|
|
|
120
120
|
"(2) swimlane style (style=\"swimlane;startSize=30;\") for labeled containers with a title bar - use when the container needs visual borders/headers or when the container itself has connections; " +
|
|
121
121
|
"(3) any shape can be a container by adding container=1 to its style, but also add pointerEvents=0 unless the container itself needs to be connectable. " +
|
|
122
122
|
"Always use pointerEvents=0 on container styles that should not capture connections being rewired between children. " +
|
|
123
|
+
"EDGE LABELS: Do NOT wrap edge labels in HTML markup to reduce font size. The default font size for edge labels is already 11px (vs 12px for vertices), so they are already smaller. Just set the value attribute directly. " +
|
|
123
124
|
"LAYOUT: Align nodes to a grid (multiples of 10). Use consistent spacing (e.g., 200px horizontal, 120px vertical between nodes). " +
|
|
125
|
+
"DARK MODE COLORS: To enable dark mode color adaptation, the mxGraphModel element must include adaptiveColors=\"auto\". " +
|
|
126
|
+
"strokeColor, fillColor, and fontColor default to 'default', which renders as black in light theme and white in dark theme. " +
|
|
127
|
+
"Explicit colors (e.g. fillColor=#DAE8FC) specify the light-mode color; the dark-mode color is computed automatically by inverting RGB values and rotating the hue 180 degrees. " +
|
|
128
|
+
"To specify both colors explicitly, use light-dark(lightColor,darkColor) in the style string, e.g. fontColor=light-dark(#7EA6E0,#FF0000). " +
|
|
124
129
|
"See https://www.drawio.com/doc/faq/drawio-style-reference.html for the complete style reference.",
|
|
125
130
|
inputSchema:
|
|
126
131
|
{
|