easyeda 0.0.333 → 0.0.334

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/main.cjs CHANGED
@@ -1026,7 +1026,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
1026
1026
  var package_default = {
1027
1027
  name: "easyeda",
1028
1028
  type: "module",
1029
- version: "0.0.332",
1029
+ version: "0.0.333",
1030
1030
  files: [
1031
1031
  "dist"
1032
1032
  ],
@@ -7677,7 +7677,7 @@ var handleRect = (rect, index) => {
7677
7677
  width,
7678
7678
  height,
7679
7679
  layer,
7680
- stroke_width: mil2mm(rect.lineWidth),
7680
+ stroke_width: mil10ToMm(rect.lineWidth),
7681
7681
  is_filled: rect.fillStyle !== "none",
7682
7682
  has_stroke: rect.lineWidth > 0,
7683
7683
  ccw_rotation: rect.rotation
@@ -8501,7 +8501,7 @@ var ShapeItemSchema = import_zod193.z.object({
8501
8501
  return SVGNodeSchema.parse({ type: "SVGNODE", svgData });
8502
8502
  }
8503
8503
  case "RECT": {
8504
- const [x, y, width, height, lineWidth, id, rotation2, layer, fillStyle] = shape.data.split("~");
8504
+ const [x, y, width, height, layer, id, rotation2, lineWidth, fillStyle] = shape.data.split("~");
8505
8505
  const r = rotation2 ? Number(rotation2) : void 0;
8506
8506
  return RectSchema.parse({
8507
8507
  type: "RECT",