Methods
Image
addImage
adds an image to the specified location example usage const image = { height 10, url "https //placehold co/400", width 10, x 0, y 0, }; const imageid = viewer2d addimage(image); parameters image image to add type required object yes properties name type required description height number yes height of the image in pixels id string no user provided id for the image onerror function no function called when error event onload function no function called when load event rotate boolean no image rotates with the model width number yes width of the image in pixels url string yes url of the image x number yes x coordinate of the image in pixels y number yes y coordinate of the image in pixels zindex number no the order of overlapping images return value id of the image type string