105.0 KiB · text History dc2edab
{
  "cases": [
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "insert rect",
      "ok": true,
      "op": {
        "element": {
          "h": 10,
          "id": "new",
          "type": "rect",
          "w": 10,
          "x": 5,
          "y": 5
        },
        "type": "insert_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          },
          "new": {
            "h": 10,
            "id": "new",
            "label": "",
            "style": {},
            "type": "rect",
            "w": 10,
            "x": 5,
            "y": 5
          }
        },
        "order": [
          "a",
          "b",
          "c",
          "new"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "insert circle",
      "ok": true,
      "op": {
        "element": {
          "cx": 1,
          "cy": 2,
          "id": "new",
          "r": 3,
          "type": "circle"
        },
        "type": "insert_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          },
          "new": {
            "cx": 1,
            "cy": 2,
            "id": "new",
            "label": "",
            "r": 3,
            "style": {},
            "type": "circle"
          }
        },
        "order": [
          "a",
          "b",
          "c",
          "new"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "duplicate_id",
      "name": "insert duplicate id",
      "ok": false,
      "op": {
        "element": {
          "h": 1,
          "id": "a",
          "type": "rect",
          "w": 1,
          "x": 0,
          "y": 0
        },
        "type": "insert_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "invalid_element_geometry",
      "name": "insert invalid geometry",
      "ok": false,
      "op": {
        "element": {
          "h": 1,
          "id": "bad",
          "type": "rect",
          "w": -5,
          "x": 0,
          "y": 0
        },
        "type": "insert_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "invalid_element",
      "name": "insert unknown type",
      "ok": false,
      "op": {
        "element": {
          "h": 1,
          "id": "bad",
          "type": "hexagon",
          "w": 1,
          "x": 0,
          "y": 0
        },
        "type": "insert_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "move element",
      "ok": true,
      "op": {
        "id": "a",
        "patch": {
          "x": 40.5
        },
        "type": "update_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 40.5,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "resize element",
      "ok": true,
      "op": {
        "id": "a",
        "patch": {
          "h": 90,
          "w": 150
        },
        "type": "update_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 90,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 150,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "relabel element",
      "ok": true,
      "op": {
        "id": "a",
        "patch": {
          "label": "Renamed"
        },
        "type": "update_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "Renamed",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "patch one style key",
      "ok": true,
      "op": {
        "id": "a",
        "patch": {
          "style": {
            "fill": "success"
          }
        },
        "type": "update_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "success",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "patch style on an element with none",
      "ok": true,
      "op": {
        "id": "b",
        "patch": {
          "style": {
            "fill": "error"
          }
        },
        "type": "update_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "style": {
              "fill": "error"
            },
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "move circle",
      "ok": true,
      "op": {
        "id": "b",
        "patch": {
          "cx": 250,
          "cy": 150
        },
        "type": "update_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 250,
            "cy": 150,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "not_found",
      "name": "update missing element",
      "ok": false,
      "op": {
        "id": "ghost",
        "patch": {
          "x": 1
        },
        "type": "update_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "invalid_color",
      "name": "update with invalid color",
      "ok": false,
      "op": {
        "id": "a",
        "patch": {
          "style": {
            "fill": "chartreuse"
          }
        },
        "type": "update_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "invalid_element_geometry",
      "name": "update to invalid geometry",
      "ok": false,
      "op": {
        "id": "a",
        "patch": {
          "w": 0
        },
        "type": "update_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "id_immutable",
      "name": "update cannot change id",
      "ok": false,
      "op": {
        "id": "a",
        "patch": {
          "id": "other"
        },
        "type": "update_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "type_immutable",
      "name": "update cannot change type",
      "ok": false,
      "op": {
        "id": "a",
        "patch": {
          "type": "circle"
        },
        "type": "update_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "delete element with connectors",
      "ok": true,
      "op": {
        "id": "b",
        "type": "delete_element"
      },
      "result": {
        "connectors": {},
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          },
          "unconnected": {
            "h": 10,
            "id": "unconnected",
            "type": "rect",
            "w": 10,
            "x": 500,
            "y": 500
          }
        },
        "order": [
          "a",
          "b",
          "c",
          "unconnected"
        ]
      },
      "name": "delete element without connectors",
      "ok": true,
      "op": {
        "id": "unconnected",
        "type": "delete_element"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "not_found",
      "name": "delete missing element",
      "ok": false,
      "op": {
        "id": "ghost",
        "type": "delete_element"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "insert connector",
      "ok": true,
      "op": {
        "connector": {
          "from": {
            "element": "a"
          },
          "id": "k3",
          "to": {
            "element": "c"
          }
        },
        "type": "insert_connector"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          },
          "k3": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "element": "a"
            },
            "id": "k3",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "missing_endpoint",
      "name": "insert connector with a missing endpoint",
      "ok": false,
      "op": {
        "connector": {
          "from": {
            "element": "a"
          },
          "id": "k4",
          "to": {
            "element": "ghost"
          }
        },
        "type": "insert_connector"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "duplicate_id",
      "name": "insert duplicate connector",
      "ok": false,
      "op": {
        "connector": {
          "from": {
            "element": "a"
          },
          "id": "k1",
          "to": {
            "element": "c"
          }
        },
        "type": "insert_connector"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "update connector routing",
      "ok": true,
      "op": {
        "id": "k1",
        "patch": {
          "routing": "straight"
        },
        "type": "update_connector"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "straight",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "update connector anchor",
      "ok": true,
      "op": {
        "id": "k1",
        "patch": {
          "from": {
            "anchor": "n"
          }
        },
        "type": "update_connector"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "n",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "invalid_routing",
      "name": "update connector invalid routing",
      "ok": false,
      "op": {
        "id": "k1",
        "patch": {
          "routing": "zigzag"
        },
        "type": "update_connector"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "update connector unknown anchor",
      "ok": true,
      "op": {
        "id": "k1",
        "patch": {
          "from": {
            "anchor": "northwest"
          }
        },
        "type": "update_connector"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "northwest",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "insert connector with an unknown anchor",
      "ok": true,
      "op": {
        "connector": {
          "from": {
            "anchor": "sideways",
            "element": "a"
          },
          "id": "k5",
          "to": {
            "element": "c"
          }
        },
        "type": "insert_connector"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          },
          "k5": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "sideways",
              "element": "a"
            },
            "id": "k5",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "insert connector with a point anchor missing coordinates",
      "ok": true,
      "op": {
        "connector": {
          "from": {
            "anchor": "point",
            "element": "a"
          },
          "id": "k6",
          "to": {
            "element": "c"
          }
        },
        "type": "insert_connector"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          },
          "k6": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "point",
              "element": "a"
            },
            "id": "k6",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "delete connector",
      "ok": true,
      "op": {
        "id": "k1",
        "type": "delete_connector"
      },
      "result": {
        "connectors": {
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "not_found",
      "name": "delete missing connector",
      "ok": false,
      "op": {
        "id": "ghost",
        "type": "delete_connector"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "name": "reorder",
      "ok": true,
      "op": {
        "order": [
          "c",
          "a",
          "b"
        ],
        "type": "set_z_order"
      },
      "result": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "c",
          "a",
          "b"
        ]
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "order_mismatch",
      "name": "reorder with a missing id",
      "ok": false,
      "op": {
        "order": [
          "a",
          "b"
        ],
        "type": "set_z_order"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "order_mismatch",
      "name": "reorder with an unknown id",
      "ok": false,
      "op": {
        "order": [
          "a",
          "b",
          "c",
          "x"
        ],
        "type": "set_z_order"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "unknown_op",
      "name": "unknown op",
      "ok": false,
      "op": {
        "type": "explode"
      }
    },
    {
      "document": {
        "connectors": {
          "k1": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "e",
              "element": "a"
            },
            "id": "k1",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "orthogonal",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "w",
              "element": "b"
            }
          },
          "k2": {
            "color": "base-content",
            "dash": "solid",
            "end_gap": 6,
            "from": {
              "anchor": "s",
              "element": "b"
            },
            "id": "k2",
            "label": "",
            "marker_end": "arrow",
            "marker_start": "none",
            "routing": "curve",
            "start_gap": 6,
            "stroke_width": 2,
            "to": {
              "anchor": "n",
              "element": "c"
            }
          }
        },
        "elements": {
          "a": {
            "h": 60,
            "id": "a",
            "label": "A",
            "style": {
              "fill": "primary",
              "stroke": "base-content",
              "stroke_width": 2
            },
            "type": "rect",
            "w": 100,
            "x": 0,
            "y": 0
          },
          "b": {
            "cx": 200,
            "cy": 100,
            "id": "b",
            "r": 30,
            "type": "circle"
          },
          "c": {
            "h": 20,
            "id": "c",
            "type": "text",
            "w": 80,
            "x": 10,
            "y": 200
          }
        },
        "order": [
          "a",
          "b",
          "c"
        ]
      },
      "error": "unknown_op",
      "name": "op with no type",
      "ok": false,
      "op": {
        "id": "a"
      }
    }
  ],
  "generated_by": "mix diogramos.android_fixtures"
}