{
  "_doc": "吧唧识别配置。支持 4 种形状: circle (圆) / ellipse (椭圆) / rectangle (圆角长方) / square (圆角正方)。rectangle 和 square 都默认带圆角。",
  "_fields": "circle/square 用 size_mm; ellipse/rectangle 用 w_mm + h_mm。corner_radius_mm 按每条线单独配 (出血线和切割线的圆角通常不一样)。",

  "tolerance_mm": 2,
  "cluster_threshold_mm": 8,

  "sheet": {
    "pet_mm": [750, 530],
    "printable_mm": [740, 510],
    "safety_mm": 1,
    "gap_mm": 3
  },

  "corner_marks": {
    "_doc": "四角对位标记 (套位用)。印刷层 dot_mm 黑色圆点贴角, 白墨层 square_mm 黑色方块与圆点同心。排版避让以方块内沿为准: 标记从印刷区每条边向内伸到 dot_mm/2 + square_mm/2。",
    "dot_mm": 8,
    "square_mm": 12
  },

  "label": {
    "_doc": "大版识别文字。排版时在印刷区 edge 边预留 band_mm 高/宽的空白印刷带 (badge 不进此带), 文字横排居中印在带里, 避开该边两个角标记。band_mm 默认 = 角标记内沿 10mm。size_mm = 实际字形高度(字高), 02_impose 量实际 geometricBounds 反向缩放字号使字高 = size_mm, 不是直接把 font size 设成 size_mm。",
    "edge": "top",
    "size_mm": 6,
    "band_mm": 10
  },

  "rasters": {
    "_doc": "每个吧唧内位图按 z-order 自上而下命名",
    "order": ["印刷层", "白墨层"]
  },

  "badge_types": [
    {
      "id": "圆_100mm",
      "shape": "circle",
      "lines": [
        { "role": "切割线", "shape": "circle", "size_mm": 115 }
      ]
    },
    {
      "id": "圆_75mm",
      "shape": "circle",
      "lines": [
        { "role": "切割线", "shape": "circle", "size_mm": 86 }
      ]
    },
    {
      "id": "圆_65mm",
      "shape": "circle",
      "lines": [
        { "role": "切割线", "shape": "circle", "size_mm": 76 }
      ]
    },
    {
      "id": "圆_58mm",
      "shape": "circle",
      "lines": [
        { "role": "切割线", "shape": "circle", "size_mm": 70 }
      ]
    },
    {
      "id": "圆_32mm",
      "shape": "circle",
      "lines": [
        { "role": "切割线", "shape": "circle", "size_mm": 44 }
      ]
    },
    {
      "id": "圆_25mm",
      "shape": "circle",
      "lines": [
        { "role": "切割线", "shape": "circle", "size_mm": 35 }
      ]
    },
    {
      "id": "大椭圆_63x93mm",
      "shape": "ellipse",
      "lines": [
        { "role": "切割线", "shape": "ellipse", "w_mm": 77, "h_mm": 107 }
      ]
    },
    {
      "id": "小椭圆_44x63mm",
      "shape": "ellipse",
      "lines": [
        { "role": "切割线", "shape": "ellipse", "w_mm": 56, "h_mm": 76 }
      ]
    },
    {
      "id": "大正方_80mm",
      "shape": "square",
      "lines": [
        { "role": "切割线", "shape": "square", "size_mm": 94 }
      ]
    },
    {
      "id": "小正方_50mm",
      "shape": "square",
      "lines": [
        { "role": "切割线", "shape": "square", "size_mm": 63 }
      ]
    },
    {
      "id": "大长方_55x85mm",
      "shape": "rectangle",
      "lines": [
        { "role": "切割线", "shape": "rectangle", "w_mm": 68, "h_mm": 100 }
      ]
    },
    {
      "id": "小长方_44x70mm",
      "shape": "rectangle",
      "lines": [
        { "role": "切割线", "shape": "rectangle", "w_mm": 59, "h_mm": 85 }
      ]
    }
  ]
}
