Canvas: {
    description: string;
    id: string;
    name: string;
    sizes: CanvasSize[];
}

MegaEdit products have various components:

The canvas defines the aspect ratio of the product along with a list of available CanvasSize objects. The canvas and the assigned size together will result in the final Size

Type declaration

  • description: string

    The optional description of the canvas

  • id: string

    The id of the canvas (GUID)

  • name: string

    The name of the canvas

  • sizes: CanvasSize[]

    The list of available sizes for this canvas

Example

{
"name": "Wall Tapestry Portrait",
"description": "",
"id": "c3012fd2-8051-42a3-a5f2-e860c13a8798",
"sizes": [
{
"id": "52bcf395-4684-43a7-8b63-11aaa10e0bb9",
"name": "Default",
"priceFactorBasePrice": 1,
"priceFactorOutputType": 1,
"priceFactorPages": 1,
"dimension": {
"width": 2087.9999999987303,
"height": 2807.9999999983906
}
}
]
}

Generated using TypeDoc