StockItem: {
    description: string;
    id: string;
    name: string;
    preview: {
        css: string;
        thumbnail: string;
    };
    settings: {
        micron: number;
        price: number;
    };
}

MegaEdit products have various components:

  • This defines the stock used to produce the output. This is used to calculate weight and thickness, colour etc of the material/stock.

Type declaration

  • description: string

    The optional description of the stock item

  • id: string

    The id of the stock item (GUID)

  • name: string

    The name of the stock item

  • preview: {
        css: string;
        thumbnail: string;
    }

    The preview settings for the stock item

    • css: string

      The CSS value to display the stock items background color

    • thumbnail: string

      The optional thumbnail if we have a textured stock item

  • settings: {
        micron: number;
        price: number;
    }

    The settings for the stock items

    • micron: number

      The thickness of the stock item

    • price: number

      The price factor for the stock item

Example

* {
"id": "e8dc9f6c-f8c3-43f3-9d3f-75ccc3b801b4",
"description": "",
"name": "Canvas",
"settings": {
"price": 0,
"micron": 0
},
"preview": {
"css": "background-color: #ffffff;"
"thumbnail": ""
}
}

Generated using TypeDoc