fossasia/knittingpattern

View on GitHub
knittingpattern/test/pattern/row_mapping_pattern.json

Summary

Maintainability
Test Coverage
{
  "type" : "knitting pattern",
  "version" : "0.1",
  "patterns" : [
    {
      "id" : "A.1",
      "name" : "A.1",
      "rows" : [
        {
          "id" : "1.1",
          "instructions" : [
            {"id": "1.1.0"},
            {"id": "1.1.1"},
            {"id": "1.1.2", "type": "yo"},
            {"id": "1.1.3"},
            {"id": "1.1.4"}
          ]
        },
        {
          "id" : "2.1",
          "instructions" : [
            {"id": "2.1.0"},
            {"id": "2.1.1"}
          ]
        },
        {
          "id" : "2.2",
          "instructions" : [
            {"id": "2.2.0"},
            {"id": "2.2.1"}
          ]
        },
        {
          "id" : "3.2",
          "instructions" : [
            {"id": "3.2.0"},
            {"id": "3.2.1"}
          ]
        },
        {
          "id" : "4.1",
          "instructions" : [
            {"id": "4.1.0"},
            {"id": "4.1.1"},
            {"id": "4.1.2", "type": "skp"},
            {"id": "4.1.4"}
          ]
        }
      ],
      "connections" : [
        {
          "from" : {
            "id" : "1.1",
            "start" : 0
          },
          "to" : {
            "id" : "2.1",
            "start" : 0
          },
          "meshes" : 2
        },
        {
          "from" : {
            "id" : "1.1",
            "start" : 3
          },
          "to" : {
            "id" : "2.2",
            "start" : 0
          },
          "meshes" : 2
        },
        {
          "from" : {
            "id" : "2.2",
            "start" : 0
          },
          "to" : {
            "id" : "3.2",
            "start" : 0
          }
        },
        {
          "from" : {
            "id" : "2.1",
            "start" : 0
          },
          "to" : {
            "id" : "4.1",
            "start" : 0
          }
        },
        {
          "from" : {
            "id" : "3.2",
            "start" : 0
          },
          "to" : {
            "id" : "4.1",
            "start" : 3
          }
        }
      ]
    }
  ]
}