@mlightcad/cad-mcp-server 1.8.0-preview.3 → 1.8.0-preview.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/LICENSE +21 -21
- package/README.md +220 -220
- package/dist-runner/assets/cad-simple-viewer-AcApSimpleUiChrome-D_0b6okm-BaVPrKIB.js +1 -0
- package/dist-runner/assets/index-CNKb-UUs.js +11433 -0
- package/dist-runner/index.html +12 -12
- package/dist-runner/viewer-runtime.iife.js +258 -258
- package/dist-runner/workers/libredwg-parser-worker.js +20 -20
- package/dist-runner/workers/libredwg-web.wasm +0 -0
- package/dist-runner/workers/mtext-renderer-worker.js +4 -5
- package/package.json +11 -11
- package/dist-runner/assets/index-B6Op0ml8.js +0 -9709
|
Binary file
|
|
@@ -41570,7 +41570,7 @@ class vh {
|
|
|
41570
41570
|
* @param collectBreakIndex When `true`, records a char index for automatic wrapping.
|
|
41571
41571
|
*/
|
|
41572
41572
|
advanceToNextLine(t = !0) {
|
|
41573
|
-
t && this.recordVisualLineBreak(), this.captureCurrentLineAdvance(), this.recordCurrentLineLayout(), this.
|
|
41573
|
+
t && this.recordVisualLineBreak(), this.captureCurrentLineAdvance(), this.recordCurrentLineLayout(), this._lineHasRenderableChar ? this._pendingEmptyLineFontSizeAdjust = void 0 : this._pendingEmptyLineFontSizeAdjust = this.currentFontSize, this.flowDirection == pe.BOTTOM_TO_TOP ? this._vOffset += this.currentLineHeight : this._vOffset -= this.currentLineHeight, this._lineCount++, this.processAlignment(), this._currentLineObjects = [], this._hOffset = 0, this._lineCount == 2 ? this._totalHeight = this.currentMaxFontSize : this._totalHeight = this._totalHeight + this.currentLineHeight, this._maxFontSize = 0, this._maxLayoutFontSize = 0, this._lineHasRenderableChar = !1;
|
|
41574
41574
|
}
|
|
41575
41575
|
/**
|
|
41576
41576
|
* Updates {@link _maxLineAdvance} from the current line's horizontal pen position.
|
|
@@ -41668,8 +41668,7 @@ class vh {
|
|
|
41668
41668
|
this.translateMeshGlyphPlacements(u.placements, h, 0), l.has(u.owner) || (r(u.owner, h), l.add(u.owner));
|
|
41669
41669
|
});
|
|
41670
41670
|
}, o = () => {
|
|
41671
|
-
|
|
41672
|
-
a(h);
|
|
41671
|
+
a(this._currentLeftMargin);
|
|
41673
41672
|
};
|
|
41674
41673
|
switch (this.currentHorizontalAlignment === ut.DEFAULT ? this._options.horizontalAlignment : this.currentHorizontalAlignment) {
|
|
41675
41674
|
case ut.LEFT:
|
|
@@ -41710,12 +41709,12 @@ class vh {
|
|
|
41710
41709
|
apply: (p) => this.translateMeshGlyphPlacements(f.placements, p, 0)
|
|
41711
41710
|
})), l = h.length > 1 ? (this.maxLineWidth - i.x) / (h.length - 1) : 0, u = /* @__PURE__ */ new Set();
|
|
41712
41711
|
h.forEach((f, p) => {
|
|
41713
|
-
const d = l * p +
|
|
41712
|
+
const d = l * p + this._currentLeftMargin;
|
|
41714
41713
|
f.apply(d), u.has(f.owner) || (r(f.owner, d), u.add(f.owner));
|
|
41715
41714
|
}), t.length > 0 && e.forEach((f) => {
|
|
41716
41715
|
const p = h.findIndex(
|
|
41717
41716
|
(x) => x.owner === f.owner || x.owner.parent === f.owner
|
|
41718
|
-
), d = p >= 0 ? p : 0, g = l * d +
|
|
41717
|
+
), d = p >= 0 ? p : 0, g = l * d + this._currentLeftMargin;
|
|
41719
41718
|
this.translateMeshGlyphPlacements(f.placements, g, 0);
|
|
41720
41719
|
});
|
|
41721
41720
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlightcad/cad-mcp-server",
|
|
3
|
-
"version": "1.8.0-preview.
|
|
3
|
+
"version": "1.8.0-preview.4",
|
|
4
4
|
"description": "stdio MCP server for CAD drawings: open_drawing + execute_cad_script (cad-agent-core)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
"mlightcad"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@mlightcad/data-model": "1.15.
|
|
45
|
-
"@mlightcad/libredwg-converter": "3.15.
|
|
44
|
+
"@mlightcad/data-model": "1.15.29",
|
|
45
|
+
"@mlightcad/libredwg-converter": "3.15.29",
|
|
46
46
|
"@mlightcad/mtext-parser": "1.5.7",
|
|
47
|
-
"@mlightcad/mtext-renderer": "0.13.
|
|
47
|
+
"@mlightcad/mtext-renderer": "0.13.9",
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.25.0",
|
|
49
49
|
"playwright": "^1.49.1",
|
|
50
50
|
"zod": "^3.24.0",
|
|
51
|
-
"@mlightcad/cad-html-plugin": "1.8.0-preview.
|
|
52
|
-
"@mlightcad/cad-
|
|
53
|
-
"@mlightcad/cad-
|
|
54
|
-
"@mlightcad/
|
|
55
|
-
"@mlightcad/pdf-renderer": "1.8.0-preview.
|
|
56
|
-
"@mlightcad/
|
|
57
|
-
"@mlightcad/cad-
|
|
51
|
+
"@mlightcad/cad-html-plugin": "1.8.0-preview.4",
|
|
52
|
+
"@mlightcad/cad-agent-core": "1.8.0-preview.4",
|
|
53
|
+
"@mlightcad/cad-simple-viewer": "1.8.0-preview.4",
|
|
54
|
+
"@mlightcad/three-renderer": "1.8.0-preview.4",
|
|
55
|
+
"@mlightcad/pdf-renderer": "1.8.0-preview.4",
|
|
56
|
+
"@mlightcad/cad-script-core": "1.8.0-preview.4",
|
|
57
|
+
"@mlightcad/cad-pdf-core": "1.8.0-preview.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^20.14.9",
|