Add a few comments.
This commit is contained in:
parent
9fe5eff905
commit
6aa72f411b
@ -49,6 +49,7 @@ var FontInspector = (function FontInspectorClosure() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
// Poperties/functions needed by PDFBug.
|
||||||
id: 'FontInspector',
|
id: 'FontInspector',
|
||||||
name: 'Font Inspector',
|
name: 'Font Inspector',
|
||||||
panel: null,
|
panel: null,
|
||||||
@ -78,6 +79,7 @@ var FontInspector = (function FontInspectorClosure() {
|
|||||||
removeSelection();
|
removeSelection();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// FontInspector specific functions.
|
||||||
fontAdded: function fontAdded(fontObj, url) {
|
fontAdded: function fontAdded(fontObj, url) {
|
||||||
function properties(obj, list) {
|
function properties(obj, list) {
|
||||||
var moreInfo = document.createElement('table');
|
var moreInfo = document.createElement('table');
|
||||||
@ -125,7 +127,7 @@ var FontInspector = (function FontInspectorClosure() {
|
|||||||
font.appendChild(logIt);
|
font.appendChild(logIt);
|
||||||
font.appendChild(moreInfo);
|
font.appendChild(moreInfo);
|
||||||
fonts.appendChild(font);
|
fonts.appendChild(font);
|
||||||
// Somewhat of a hack, shoudl probably add a hook for when the text layer
|
// Somewhat of a hack, should probably add a hook for when the text layer
|
||||||
// is done rendering.
|
// is done rendering.
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if (this.active)
|
if (this.active)
|
||||||
@ -136,13 +138,14 @@ var FontInspector = (function FontInspectorClosure() {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
// Manages all the page steppers.
|
// Manages all the page steppers.
|
||||||
var Debugger = (function PdfDeuggerClosure() {
|
var Debugger = (function DeuggerClosure() {
|
||||||
var steppers = [];
|
var steppers = [];
|
||||||
var stepperDiv = null;
|
var stepperDiv = null;
|
||||||
var stepperControls = null;
|
var stepperControls = null;
|
||||||
var stepperChooser = null;
|
var stepperChooser = null;
|
||||||
var breakPoints = {};
|
var breakPoints = {};
|
||||||
return {
|
return {
|
||||||
|
// Poperties/functions needed by PDFBug.
|
||||||
id: 'Debugger',
|
id: 'Debugger',
|
||||||
name: 'Debugger',
|
name: 'Debugger',
|
||||||
panel: null,
|
panel: null,
|
||||||
@ -164,6 +167,7 @@ var Debugger = (function PdfDeuggerClosure() {
|
|||||||
},
|
},
|
||||||
enabled: false,
|
enabled: false,
|
||||||
active: false,
|
active: false,
|
||||||
|
// Debugger specific functions.
|
||||||
create: function create(pageNumber) {
|
create: function create(pageNumber) {
|
||||||
var debug = document.createElement('div');
|
var debug = document.createElement('div');
|
||||||
debug.id = 'stepper' + pageNumber;
|
debug.id = 'stepper' + pageNumber;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user