@drawpro/mcp 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/dist/server.js +2 -2
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -1411,7 +1411,7 @@ function api() {
1411
1411
  return clientInstance;
1412
1412
  }
1413
1413
  var SESSION_ID = Math.random().toString(36).slice(2, 10);
1414
- var VERSION = "0.6.3";
1414
+ var VERSION = "0.6.4";
1415
1415
  var inFlight = [];
1416
1416
  var cachedUser = null;
1417
1417
  async function currentUser() {
@@ -1750,7 +1750,7 @@ tool(
1750
1750
  el.text = edit.replace;
1751
1751
  el.originalText = edit.replace;
1752
1752
  const fontSize = el.fontSize ?? 20;
1753
- const wrapWidth = el.containerId ? el.width : 1e3;
1753
+ const wrapWidth = Math.max(el.width || 0, 80);
1754
1754
  const metrics = measureText(edit.replace, fontSize, wrapWidth);
1755
1755
  el.width = metrics.width;
1756
1756
  el.height = metrics.height;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawpro/mcp",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "MCP server for DrawPro \u2014 read and create end-to-end encrypted Excalidraw diagrams from Claude",
5
5
  "license": "MIT",
6
6
  "repository": {