Browse Source

Rename annotation_helper.js to annotation_layer.js

Tim van der Meij 10 years ago
parent
commit
91274d6d2d
  1. 2
      examples/acroforms/index.html
  2. 2
      examples/helloworld/index.html
  3. 2
      make.js
  4. 5
      src/display/annotation_layer.js
  5. 2
      test/font/font_test.html
  6. 2
      test/test_slave.html
  7. 2
      test/unit/unit_test.html
  8. 2
      web/annotations_layer_builder.js
  9. 2
      web/viewer.html

2
examples/acroforms/index.html

@ -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
examples/helloworld/index.html

@ -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

@ -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'
]); ]);

5
src/display/annotation_helper.js → src/display/annotation_layer.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;

2
test/font/font_test.html

@ -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>

2
test/test_slave.html

@ -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>

2
test/unit/unit_test.html

@ -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>

2
web/annotations_layer_builder.js

@ -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') {

2
web/viewer.html

@ -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…
Cancel
Save