Are there any examples of the packing data for the visualiser?
judgej opened this issue · 2 comments
judgej commented
Without installing the whole package, I would like to see the visualiser in action. Are there any examples of what the data looks like, that it needs, just for demo purposes?
dvdoug commented
Sure, it looks something like this
[
{
"box": {
"reference": "Bundle",
"innerWidth": 75,
"innerLength": 15,
"innerDepth": 15
},
"items": [
{
"x": 0,
"y": 0,
"z": 0,
"width": 12,
"length": 14,
"depth": 2,
"item": {
"description": "Item 1",
"width": 14,
"length": 12,
"depth": 2,
"keepFlat": false
}
},
{
"x": 12,
"y": 0,
"z": 0,
"width": 12,
"length": 14,
"depth": 2,
"item": {
"description": "Item 2",
"width": 14,
"length": 12,
"depth": 2,
"keepFlat": false
}
},
{
"x": 24,
"y": 0,
"z": 0,
"width": 12,
"length": 14,
"depth": 2,
"item": {
"description": "Item 3",
"width": 14,
"length": 12,
"depth": 2,
"keepFlat": false
}
},
{
"x": 36,
"y": 0,
"z": 0,
"width": 12,
"length": 14,
"depth": 2,
"item": {
"description": "Item 4",
"width": 14,
"length": 12,
"depth": 2,
"keepFlat": false
}
},
{
"x": 48,
"y": 0,
"z": 0,
"width": 12,
"length": 14,
"depth": 2,
"item": {
"description": "Item 5",
"width": 14,
"length": 12,
"depth": 2,
"keepFlat": false
}
}
]
}
]
judgej commented
Thank you, that's very useful. These items are presumably stacked upright, along the front of the packaging, sharing one edge along a single axis. Minimal data, but everything that is needed.