Figma Support Forum

What different stroke dash dashPattern and strokeDashes

According to checking with GET/v1/files/:key in developers/api, it is confirmed as strokeDashes instead of dashpattern. What is the difference between the two?

GET/v1/files/:key result like this

  strokes: [
      {
        blendMode: "NORMAL",
        type: "SOLID",
        color: {
          r: 1,
          g: 0,
          b: 0,
          a: 1,
        },
      },
    ],
    strokeWeight: 1,
    strokeAlign: "INSIDE",
    strokeDashes: [2, 2],

The difference is that dashPattern is used in the Plugin API and strokeDashes is used in the REST API.