@mlightcad/cad-mcp-server 1.8.0-preview.2 → 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.
@@ -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._hOffset = 0, 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._lineCount == 2 ? this._totalHeight = this.currentMaxFontSize : this._totalHeight = this._totalHeight + this.currentLineHeight, this._maxFontSize = 0, this._maxLayoutFontSize = 0, this._lineHasRenderableChar = !1;
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
- const h = Number.isFinite(this.maxLineWidth) ? this._currentLeftMargin - n.min.x : this._currentLeftMargin;
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 + (this._currentLeftMargin - n.min.x);
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 + (this._currentLeftMargin - n.min.x);
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.2",
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.22",
45
- "@mlightcad/libredwg-converter": "3.15.22",
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.8",
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-agent-core": "1.8.0-preview.2",
52
- "@mlightcad/cad-pdf-core": "1.8.0-preview.2",
53
- "@mlightcad/cad-html-plugin": "1.8.0-preview.2",
54
- "@mlightcad/cad-simple-viewer": "1.8.0-preview.2",
55
- "@mlightcad/pdf-renderer": "1.8.0-preview.2",
56
- "@mlightcad/three-renderer": "1.8.0-preview.2",
57
- "@mlightcad/cad-script-core": "1.8.0-preview.2"
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",