@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.
- package/dist/server.js +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.
|
|
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 =
|
|
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;
|