@internetarchive/bookreader
Advanced tools
Comparing version 4.20.1-alpha2 to 4.20.1-alpha3
{ | ||
"name": "@internetarchive/bookreader", | ||
"version": "4.20.1-alpha2", | ||
"version": "4.20.1-alpha3", | ||
"description": "The Internet Archive BookReader.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -46,3 +46,2 @@ //@ts-check | ||
dataType: "xml", | ||
error: function (e, x, y) { | ||
@@ -52,3 +51,16 @@ console.log("TEXT SEL ERROR", e, x, y) | ||
return undefined; | ||
} | ||
}, | ||
fail: function (e, x, y) { | ||
console.log("TEXT SEL fail", e, x, y) | ||
debugger; | ||
return undefined; | ||
}, | ||
done: function (e, x, y) { | ||
console.log("TEXT SEL done", e, x, y) | ||
debugger; | ||
return undefined; | ||
}, | ||
}).done((e, x, y) => { | ||
console.log("TEXT SEL done", e, x, y); | ||
debugger; | ||
}).then(xmlMap => { | ||
@@ -74,4 +86,26 @@ console.log("XML MAP", xmlMap); | ||
dataType: "xml", | ||
error: (e) => undefined, | ||
}).then(xmlDoc => xmlDoc && $(xmlDoc).find("OBJECT")[0]); | ||
error: function (e, x, y) { | ||
console.log("getPageTextTEXT SEL ERROR", e, x, y) | ||
debugger; | ||
return undefined; | ||
}, | ||
fail: function (e, x, y) { | ||
console.log("getPageTextTEXT SEL fail", e, x, y) | ||
debugger; | ||
return undefined; | ||
}, | ||
done: function (e, x, y) { | ||
console.log("getPageTextTEXT SEL done", e, x, y) | ||
debugger; | ||
return undefined; | ||
} }) | ||
// .then(xmlDoc => xmlDoc && $(xmlDoc).find("OBJECT")[0]) | ||
.then(xmlMap => { | ||
console.log("XML MAP", xmlMap); | ||
debugger; | ||
return xmlMap && $(xmlMap).find("OBJECT"); | ||
}).always((e, x, y) => { | ||
console.log("TEXT SEL ALWAYS", e, x, y); | ||
debugger; | ||
}); | ||
} else { | ||
@@ -78,0 +112,0 @@ const XMLpagesArr = await this.djvuPagesPromise; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
7890493
47188