4 ms·
There's some deprecated gubbins in there mostly having to do with styling the box images. You can set "includeScripts" to "false" to omit them. What's left is a
by cartonzshill 6y ago
There's some deprecated gubbins in there mostly having to do with styling the box images. You can set "includeScripts" to "false" to omit them. What's left is a list of items and what boxes they go in, as well as the SVGs that show how to pack them. Thanks for trying it out!
- cartonzshill 6y agoFor the lazy: curl -X POST -d '{ "includeScripts": false, "itemSets": [{ "refId": 0, "dimensions": {"x": 5.5, "y": 6, "z": 6}, "quantity": 3 }], "boxTypeSets":["fedex"] }' api.paccurate.io/
- adamfeldman 6y agoWhat's the minimal .html file required to turn the contents of the "svgs" key into something I can look at?
- cartonzshill 6y agoThe <figure> element should just work inside a body tag. To pretty it up though you will need some css targeting some of the child elements. For example, to make the container have a dashed border like we have, you would do: line.volume-line { stroke: #666; stroke-dasharray: 2,1; stroke-width: 1; }
- adamfeldman 6y agoThanks. I was also having trouble figuring out how to decode the svg figure element into plaintext I can throw into a text editor and open in the browser. (I don't have any svg experience). I checked the docs and switched the imageFormat to png and was able to see the render. It's awesome that with svg I could style elements of the provided image however I want!
- cartonzshill 6y agoThanks! Yeah you can do some cool things with animating the svgs too, like show animated packing instructions.