Rename annotation_helper.js to annotation_layer.js
This commit is contained in:
parent
e93512f1eb
commit
91274d6d2d
@ -12,7 +12,7 @@
|
|||||||
<script src="../../src/display/pattern_helper.js"></script>
|
<script src="../../src/display/pattern_helper.js"></script>
|
||||||
<script src="../../src/display/font_loader.js"></script>
|
<script src="../../src/display/font_loader.js"></script>
|
||||||
<script src="../../src/display/dom_utils.js"></script>
|
<script src="../../src/display/dom_utils.js"></script>
|
||||||
<script src="../../src/display/annotation_helper.js"></script>
|
<script src="../../src/display/annotation_layer.js"></script>
|
||||||
<script src="../../src/display/text_layer.js"></script>
|
<script src="../../src/display/text_layer.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<script src="../../src/display/pattern_helper.js"></script>
|
<script src="../../src/display/pattern_helper.js"></script>
|
||||||
<script src="../../src/display/font_loader.js"></script>
|
<script src="../../src/display/font_loader.js"></script>
|
||||||
<script src="../../src/display/dom_utils.js"></script>
|
<script src="../../src/display/dom_utils.js"></script>
|
||||||
<script src="../../src/display/annotation_helper.js"></script>
|
<script src="../../src/display/annotation_layer.js"></script>
|
||||||
<script src="../../src/display/text_layer.js"></script>
|
<script src="../../src/display/text_layer.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
2
make.js
2
make.js
@ -531,7 +531,7 @@ target.bundle = function(args) {
|
|||||||
'display/pattern_helper.js',
|
'display/pattern_helper.js',
|
||||||
'display/font_loader.js',
|
'display/font_loader.js',
|
||||||
'display/dom_utils.js',
|
'display/dom_utils.js',
|
||||||
'display/annotation_helper.js',
|
'display/annotation_layer.js',
|
||||||
'display/text_layer.js',
|
'display/text_layer.js',
|
||||||
'display/svg.js'
|
'display/svg.js'
|
||||||
]);
|
]);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
var ANNOT_MIN_SIZE = 10; // px
|
var ANNOT_MIN_SIZE = 10; // px
|
||||||
|
|
||||||
var AnnotationUtils = (function AnnotationUtilsClosure() {
|
var AnnotationLayer = (function AnnotationLayerClosure() {
|
||||||
// TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
|
// TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
|
||||||
function setTextStyles(element, item, fontObj) {
|
function setTextStyles(element, item, fontObj) {
|
||||||
|
|
||||||
@ -286,4 +286,5 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {
|
|||||||
getHtmlElement: getHtmlElement
|
getHtmlElement: getHtmlElement
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
PDFJS.AnnotationUtils = AnnotationUtils;
|
|
||||||
|
PDFJS.AnnotationLayer = AnnotationLayer;
|
@ -36,7 +36,7 @@
|
|||||||
<script src="../../src/core/parser.js"></script>
|
<script src="../../src/core/parser.js"></script>
|
||||||
<script src="../../src/core/ps_parser.js"></script>
|
<script src="../../src/core/ps_parser.js"></script>
|
||||||
<script src="../../src/display/pattern_helper.js"></script>
|
<script src="../../src/display/pattern_helper.js"></script>
|
||||||
<script src="../../src/display/annotation_helper.js"></script>
|
<script src="../../src/display/annotation_layer.js"></script>
|
||||||
<script src="../../src/display/text_layer.js"></script>
|
<script src="../../src/display/text_layer.js"></script>
|
||||||
<script src="../../src/core/stream.js"></script>
|
<script src="../../src/core/stream.js"></script>
|
||||||
<script src="../../src/core/worker.js"></script>
|
<script src="../../src/core/worker.js"></script>
|
||||||
|
@ -26,7 +26,7 @@ limitations under the License.
|
|||||||
<script src="../src/display/pattern_helper.js"></script>
|
<script src="../src/display/pattern_helper.js"></script>
|
||||||
<script src="../src/display/font_loader.js"></script>
|
<script src="../src/display/font_loader.js"></script>
|
||||||
<script src="../src/display/dom_utils.js"></script>
|
<script src="../src/display/dom_utils.js"></script>
|
||||||
<script src="../src/display/annotation_helper.js"></script>
|
<script src="../src/display/annotation_layer.js"></script>
|
||||||
<script src="../src/display/text_layer.js"></script>
|
<script src="../src/display/text_layer.js"></script>
|
||||||
<script src="driver.js"></script>
|
<script src="driver.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<script src="../../src/display/pattern_helper.js"></script>
|
<script src="../../src/display/pattern_helper.js"></script>
|
||||||
<script src="../../src/display/font_loader.js"></script>
|
<script src="../../src/display/font_loader.js"></script>
|
||||||
<script src="../../src/display/dom_utils.js"></script>
|
<script src="../../src/display/dom_utils.js"></script>
|
||||||
<script src="../../src/display/annotation_helper.js"></script>
|
<script src="../../src/display/annotation_layer.js"></script>
|
||||||
<script src="../../src/display/text_layer.js"></script>
|
<script src="../../src/display/text_layer.js"></script>
|
||||||
<script src="../../src/core/stream.js"></script>
|
<script src="../../src/core/stream.js"></script>
|
||||||
<script src="../../src/core/worker.js"></script>
|
<script src="../../src/core/worker.js"></script>
|
||||||
|
@ -105,7 +105,7 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
element = PDFJS.AnnotationUtils.getHtmlElement(data,
|
element = PDFJS.AnnotationLayer.getHtmlElement(data,
|
||||||
pdfPage.commonObjs);
|
pdfPage.commonObjs);
|
||||||
element.setAttribute('data-annotation-id', data.id);
|
element.setAttribute('data-annotation-id', data.id);
|
||||||
if (typeof mozL10n !== 'undefined') {
|
if (typeof mozL10n !== 'undefined') {
|
||||||
|
@ -61,7 +61,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<script src="../src/display/pattern_helper.js"></script>
|
<script src="../src/display/pattern_helper.js"></script>
|
||||||
<script src="../src/display/font_loader.js"></script>
|
<script src="../src/display/font_loader.js"></script>
|
||||||
<script src="../src/display/dom_utils.js"></script>
|
<script src="../src/display/dom_utils.js"></script>
|
||||||
<script src="../src/display/annotation_helper.js"></script>
|
<script src="../src/display/annotation_layer.js"></script>
|
||||||
<script src="../src/display/text_layer.js"></script>
|
<script src="../src/display/text_layer.js"></script>
|
||||||
<script>PDFJS.workerSrc = '../src/worker_loader.js';</script>
|
<script>PDFJS.workerSrc = '../src/worker_loader.js';</script>
|
||||||
<!--#endif-->
|
<!--#endif-->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user