const currJson0: Record<string, any> = {
  version: '5.3.0',
  objects: [
    {
      type: 'group',
      version: '5.3.0',
      originX: 'left',
      originY: 'top',
      left: 778.0535,
      top: 172.6152,
      width: 48.205,
      height: 48.205,
      fill: 'rgb(0,0,0)',
      stroke: null,
      strokeWidth: 0,
      strokeDashArray: null,
      strokeLineCap: 'butt',
      strokeDashOffset: 0,
      strokeLineJoin: 'miter',
      strokeUniform: false,
      strokeMiterLimit: 4,
      scaleX: 1,
      scaleY: 1,
      angle: 0,
      flipX: false,
      flipY: false,
      opacity: 1,
      shadow: null,
      visible: true,
      backgroundColor: '',
      fillRule: 'nonzero',
      paintFirst: 'fill',
      globalCompositeOperation: 'source-over',
      skewX: 0,
      skewY: 0,
      id: 'f772494d-01de-4a9e-b21d-67faed778e60',
      selectable: true,
      hasControls: true,
      userProperty: {
        modelId: '121',
        status: '0',
        id: '2',
        label: '正常',
        des: '卧室B',
      },
      objects: [
        {
          type: 'circle',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -24.1025,
          top: -24.1025,
          width: 300,
          height: 300,
          fill: 'rgba(44,246,72,0.99)',
          stroke: 'rgba(45,240,230,1)',
          strokeWidth: 10,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1555,
          scaleY: 0.1555,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          radius: 150,
          startAngle: 0,
          endAngle: 360,
          selectable: true,
          hasControls: true,
        },
        {
          type: 'i-text',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -16.7824,
          top: -8.9323,
          width: 160,
          height: 90.4,
          fill: 'rgba(255,255,255,1)',
          stroke: null,
          strokeWidth: 1,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1954,
          scaleY: 0.1954,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          fontFamily: 'arial',
          fontWeight: 'normal',
          fontSize: 80,
          text: '正常',
          underline: false,
          overline: false,
          linethrough: false,
          textAlign: 'left',
          fontStyle: 'normal',
          lineHeight: 1.16,
          textBackgroundColor: '',
          charSpacing: 0,
          styles: [],
          direction: 'ltr',
          path: null,
          pathStartOffset: 0,
          pathSide: 'left',
          pathAlign: 'baseline',
          selectable: true,
          hasControls: true,
        },
      ],
    },
    {
      type: 'group',
      version: '5.3.0',
      originX: 'left',
      originY: 'top',
      left: 384.136,
      top: 153.6373,
      width: 48.205,
      height: 48.205,
      fill: 'rgb(0,0,0)',
      stroke: null,
      strokeWidth: 0,
      strokeDashArray: null,
      strokeLineCap: 'butt',
      strokeDashOffset: 0,
      strokeLineJoin: 'miter',
      strokeUniform: false,
      strokeMiterLimit: 4,
      scaleX: 1,
      scaleY: 1,
      angle: 0,
      flipX: false,
      flipY: false,
      opacity: 1,
      shadow: null,
      visible: true,
      backgroundColor: '',
      fillRule: 'nonzero',
      paintFirst: 'fill',
      globalCompositeOperation: 'source-over',
      skewX: 0,
      skewY: 0,
      id: '3fea9335-b7a3-4b01-bf7b-7d15b4ca6b62',
      selectable: true,
      hasControls: true,
      userProperty: {
        modelId: '120',
        status: '1',
        id: '1',
        label: '异常',
        des: '卧室A',
      },
      objects: [
        {
          type: 'circle',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -24.1025,
          top: -24.1025,
          width: 300,
          height: 300,
          fill: 'rgba(248,9,3,0.94)',
          stroke: 'rgba(255,243,47,1)',
          strokeWidth: 10,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1555,
          scaleY: 0.1555,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          radius: 150,
          startAngle: 0,
          endAngle: 360,
          selectable: true,
          hasControls: true,
        },
        {
          type: 'i-text',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -15.8708,
          top: -8.9298,
          width: 160,
          height: 90.4,
          fill: 'rgba(255,255,255,1)',
          stroke: null,
          strokeWidth: 1,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1954,
          scaleY: 0.1954,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          fontFamily: 'arial',
          fontWeight: 'normal',
          fontSize: 80,
          text: '警告',
          underline: false,
          overline: false,
          linethrough: false,
          textAlign: 'left',
          fontStyle: 'normal',
          lineHeight: 1.16,
          textBackgroundColor: '',
          charSpacing: 0,
          styles: [],
          direction: 'ltr',
          path: null,
          pathStartOffset: 0,
          pathSide: 'left',
          pathAlign: 'baseline',
          selectable: true,
          hasControls: true,
        },
      ],
    },
    {
      type: 'group',
      version: '5.3.0',
      originX: 'left',
      originY: 'top',
      left: 409.6953,
      top: 437.8391,
      width: 48.205,
      height: 48.205,
      fill: 'rgb(0,0,0)',
      stroke: null,
      strokeWidth: 0,
      strokeDashArray: null,
      strokeLineCap: 'butt',
      strokeDashOffset: 0,
      strokeLineJoin: 'miter',
      strokeUniform: false,
      strokeMiterLimit: 4,
      scaleX: 1,
      scaleY: 1,
      angle: 0,
      flipX: false,
      flipY: false,
      opacity: 1,
      shadow: null,
      visible: true,
      backgroundColor: '',
      fillRule: 'nonzero',
      paintFirst: 'fill',
      globalCompositeOperation: 'source-over',
      skewX: 0,
      skewY: 0,
      id: '16c614ab-6172-4d06-b787-75e8ddc33c68',
      selectable: true,
      hasControls: true,
      userProperty: {
        modelId: '122',
        status: '0',
        id: '3',
        label: '正常',
        des: '客厅1',
      },
      objects: [
        {
          type: 'circle',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -24.1025,
          top: -24.1025,
          width: 300,
          height: 300,
          fill: 'rgba(44,246,72,0.99)',
          stroke: 'rgba(45,240,230,1)',
          strokeWidth: 10,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1555,
          scaleY: 0.1555,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          radius: 150,
          startAngle: 0,
          endAngle: 360,
          selectable: true,
          hasControls: true,
        },
        {
          type: 'i-text',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -16.7824,
          top: -8.9323,
          width: 160,
          height: 90.4,
          fill: 'rgba(255,255,255,1)',
          stroke: null,
          strokeWidth: 1,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1954,
          scaleY: 0.1954,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          fontFamily: 'arial',
          fontWeight: 'normal',
          fontSize: 80,
          text: '正常',
          underline: false,
          overline: false,
          linethrough: false,
          textAlign: 'left',
          fontStyle: 'normal',
          lineHeight: 1.16,
          textBackgroundColor: '',
          charSpacing: 0,
          styles: [],
          direction: 'ltr',
          path: null,
          pathStartOffset: 0,
          pathSide: 'left',
          pathAlign: 'baseline',
          selectable: true,
          hasControls: true,
        },
      ],
    },
    {
      type: 'group',
      version: '5.3.0',
      originX: 'left',
      originY: 'top',
      left: 384.136,
      top: 706.1746,
      width: 48.205,
      height: 48.205,
      fill: 'rgb(0,0,0)',
      stroke: null,
      strokeWidth: 0,
      strokeDashArray: null,
      strokeLineCap: 'butt',
      strokeDashOffset: 0,
      strokeLineJoin: 'miter',
      strokeUniform: false,
      strokeMiterLimit: 4,
      scaleX: 1,
      scaleY: 1,
      angle: 0,
      flipX: false,
      flipY: false,
      opacity: 1,
      shadow: null,
      visible: true,
      backgroundColor: '',
      fillRule: 'nonzero',
      paintFirst: 'fill',
      globalCompositeOperation: 'source-over',
      skewX: 0,
      skewY: 0,
      id: '6217576c-4b4a-4916-948a-e99fe9f03bbc',
      selectable: true,
      hasControls: true,
      userProperty: {
        modelId: '124',
        status: '1',
        id: '4',
        label: '异常',
        des: '卧室C',
      },
      objects: [
        {
          type: 'circle',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -24.1025,
          top: -24.1025,
          width: 300,
          height: 300,
          fill: 'rgba(248,9,3,0.94)',
          stroke: 'rgba(255,243,47,1)',
          strokeWidth: 10,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1555,
          scaleY: 0.1555,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          radius: 150,
          startAngle: 0,
          endAngle: 360,
          selectable: true,
          hasControls: true,
        },
        {
          type: 'i-text',
          version: '5.3.0',
          originX: 'left',
          originY: 'top',
          left: -15.8708,
          top: -8.9298,
          width: 160,
          height: 90.4,
          fill: 'rgba(255,255,255,1)',
          stroke: null,
          strokeWidth: 1,
          strokeDashArray: null,
          strokeLineCap: 'butt',
          strokeDashOffset: 0,
          strokeLineJoin: 'miter',
          strokeUniform: false,
          strokeMiterLimit: 4,
          scaleX: 0.1954,
          scaleY: 0.1954,
          angle: 0,
          flipX: false,
          flipY: false,
          opacity: 1,
          shadow: '',
          visible: true,
          backgroundColor: '',
          fillRule: 'nonzero',
          paintFirst: 'fill',
          globalCompositeOperation: 'source-over',
          skewX: 0,
          skewY: 0,
          fontFamily: 'arial',
          fontWeight: 'normal',
          fontSize: 80,
          text: '警告',
          underline: false,
          overline: false,
          linethrough: false,
          textAlign: 'left',
          fontStyle: 'normal',
          lineHeight: 1.16,
          textBackgroundColor: '',
          charSpacing: 0,
          styles: [],
          direction: 'ltr',
          path: null,
          pathStartOffset: 0,
          pathSide: 'left',
          pathAlign: 'baseline',
          selectable: true,
          hasControls: true,
        },
      ],
    },
  ],
  clipPath: {
    type: 'rect',
    version: '5.3.0',
    originX: 'left',
    originY: 'top',
    left: 0,
    top: 0,
    width: 1200,
    height: 900,
    fill: 'rgba(255,255,255,1)',
    stroke: null,
    strokeWidth: 0,
    strokeDashArray: null,
    strokeLineCap: 'butt',
    strokeDashOffset: 0,
    strokeLineJoin: 'miter',
    strokeUniform: false,
    strokeMiterLimit: 4,
    scaleX: 1,
    scaleY: 1,
    angle: 0,
    flipX: false,
    flipY: false,
    opacity: 1,
    shadow: null,
    visible: true,
    backgroundColor: '',
    fillRule: 'nonzero',
    paintFirst: 'fill',
    globalCompositeOperation: 'source-over',
    skewX: 0,
    skewY: 0,
    rx: 0,
    ry: 0,
    selectable: true,
    hasControls: true,
  },
};
let currJson00: Record<string, any> = {
  ...currJson0,
  // objects: [],
};

// 生成100到1100之间的随机整数
// function generateRandomNumber(minNum, maxNum) {
//   // 生成0到1之间的随机小数
//   const randomFraction = Math.random();
  
//   // 将随机小数映射到100到1100之间的范围
//   const randomNumber = Math.floor(randomFraction * (maxNum - minNum + 1) + minNum);
  
//   return randomNumber;
// }
// let startTime = new Date().getTime()
// let endTime = new Date().getTime()

// for (let i = 0; i < 2; i++) {
//   let currObjects = JSON.parse(JSON.stringify(currJson0.objects))
//   currObjects = currObjects.map(item=>{
//     item.left = generateRandomNumber(100, 1100)
//     item.top = generateRandomNumber(100, 800)
//     return item
//   })
//   currJson00.objects = currJson00.objects.concat(currObjects)
// }
// endTime = new Date().getTime()
// console.log(currJson00,'currJson00', endTime-startTime)

export const currJson1 = currJson00;
