return constructor;
})();
-var JpegStreamIR = (function() {
- function JpegStreamIR(objId, IR, objs) {
+var JpegImage = (function() {
+ function JpegImage(objId, IR, objs) {
var src = 'data:image/jpeg;base64,' + window.btoa(IR);
// create DOM image
this.domImage = img;
}
- JpegStreamIR.prototype = {
+ JpegImage.prototype = {
getImage: function() {
return this.domImage;
}
};
- return JpegStreamIR;
+ return JpegImage;
})();
// A JpegStream can't be read directly. We use the platform to render
switch (objType) {
case 'JpegStream':
var IR = data[2];
- new JpegStreamIR(objId, IR, this.objs);
+ new JpegImage(objId, IR, this.objs);
console.log('got image');
break;
case 'Font':