this.annotMode = true;
this.docViewer.SetOptions({
annotMode: this.annotMode
});
this.docViewer.SetToolMode(CustomTextTool);
var e = $.Event("touchstart");
e.pageX = this.mousePt1.x;
e.pageY = this.mousePt1.y;
e.which = 1;
this.docViewer.GetToolMode().mouseLeftDown(e);
var CustomTextTool = function(docViewer) {
var textTool = docViewer.ToolModes.TextHighlightCreate;
textTool.call(this, docViewer);
};
CustomTextTool.prototype = new this.docViewer.ToolModes.TextHighlightCreate();
// CustomTextTool.prototype.mouseLeftUp = function(e) {
// // console.log('mouse up');
// };
if (this.docViewer.GetToolMode() instanceof this.docViewer.ToolModes.TextHighlightCreate) {
console.log('highlight tool');
}
var canvas = pc.find('#canvas0').get(0);
$('<div>')
.css({
width: '100px',
height: '100px',
'background-color': 'blue',
position: 'absolute',
'z-index': '100',
top: '100px',
left: '500px'
})
.appendTo($('body'));