Skip to content

Commit 2721335

Browse files
authored
Merge pull request #850 from MrRio/pr/800
Pr/800 – Fix typos
2 parents e1d0b90 + 50e028d commit 2721335

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

dist/jspdf.debug.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
/** @preserve
1414
* jsPDF - PDF Document creation from JavaScript
15-
* Version 1.2.61 Built on 2016-09-25T20:14:04.913Z
16-
* CommitID e527636485
15+
* Version 1.2.61 Built on 2016-09-25T22:32:35.622Z
16+
* CommitID 33aab1469e
1717
*
1818
* Copyright (c) 2010-2014 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
1919
* 2010 Aaron Spike, https://github.com/acspike
@@ -2026,7 +2026,7 @@
20262026
* pdfdoc.mymethod() // <- !!!!!!
20272027
*/
20282028
jsPDF.API = { events: [] };
2029-
jsPDF.version = "1.2.61 2016-09-25T20:14:04.913Z:jameshall";
2029+
jsPDF.version = "1.2.61 2016-09-25T22:32:35.622Z:jameshall";
20302030

20312031
if (typeof define === 'function' && define.amd) {
20322032
define('jsPDF', function () {
@@ -2172,7 +2172,7 @@
21722172
var standardFields = !fieldArray;
21732173

21742174
if (!fieldArray) {
2175-
// in case there is no fieldArray specified, we wanna print out the Fields of the AcroForm
2175+
// in case there is no fieldArray specified, we want to print out the Fields of the AcroForm
21762176
// Print out Root
21772177
this.internal.newObjectDeferredBegin(this.acroformPlugin.acroFormDictionaryRoot.objId);
21782178
this.internal.out(this.acroformPlugin.acroFormDictionaryRoot.getString());
@@ -3372,7 +3372,7 @@ Q\n";
33723372
// ############ internal functions
33733373

33743374
/*
3375-
* small workaround for calculating the TextMetric aproximately
3375+
* small workaround for calculating the TextMetric approximately
33763376
* @param text
33773377
* @param fontsize
33783378
* @returns {TextMetrics} (Has Height and Width)
@@ -3944,7 +3944,7 @@ Q\n";
39443944
},
39453945
createDataURIFromElement = function createDataURIFromElement(element, format, angle) {
39463946

3947-
//if element is an image which uses data url defintion, just return the dataurl
3947+
//if element is an image which uses data url definition, just return the dataurl
39483948
if (element.nodeName === 'IMG' && element.hasAttribute('src')) {
39493949
var src = '' + element.getAttribute('src');
39503950
if (!angle && src.indexOf('data:image/') === 0) return src;
@@ -4067,7 +4067,7 @@ Q\n";
40674067
ICC_BASED: 'ICCBased',
40684068
INDEXED: 'Indexed',
40694069
PATTERN: 'Pattern',
4070-
SEPERATION: 'Seperation',
4070+
SEPARATION: 'Separation',
40714071
DEVICE_N: 'DeviceN'
40724072
};
40734073

@@ -4343,7 +4343,7 @@ Q\n";
43434343
if (processMethodNotEnabled(format)) throw new Error('please ensure that the plugin for \'' + format + '\' support is added');
43444344

43454345
/**
4346-
* need to test if it's more efficent to convert all binary strings
4346+
* need to test if it's more efficient to convert all binary strings
43474347
* to TypedArray - or should we just leave and process as string?
43484348
*/
43494349
if (this.supportsArrayBuffer()) {
@@ -4954,7 +4954,7 @@ Q\n";
49544954
this.printHeaderRow(ln, true);
49554955
}
49564956
}
4957-
//We ignore the passed y: the lines may have diferent heights
4957+
//We ignore the passed y: the lines may have different heights
49584958
y = getLastCellPosition().y + getLastCellPosition().h;
49594959
if (pgAdded) y = margin + 10;
49604960
}
@@ -5066,7 +5066,7 @@ Q\n";
50665066
if (config.fontSize) {
50675067
fontSize = config.fontSize;
50685068
}
5069-
if (config.css['font-size']) {
5069+
if (config.css && typeof config.css['font-size'] !== "undefined") {
50705070
fontSize = config.css['font-size'] * 16;
50715071
}
50725072
if (config.margins) {
@@ -7258,7 +7258,7 @@ Q\n";
72587258
renderer.y = oldPosition;
72597259
};
72607260

7261-
//check if footer contains totalPages which shoudl be replace at the disoposal of the document
7261+
//check if footer contains totalPages which should be replace at the disoposal of the document
72627262
var spans = footer.getElementsByTagName('span');
72637263
for (var i = 0; i < spans.length; ++i) {
72647264
if ((" " + spans[i].className + " ").replace(/[\n\t]/g, " ").indexOf(" totalPages ") > -1) {
@@ -7582,13 +7582,13 @@ Q\n";
75827582
}
75837583
this.y += maxLineHeight * fontToUnitRatio;
75847584

7585-
//if some watcher function was executed sucessful, so e.g. margin and widths were changed,
7585+
//if some watcher function was executed successful, so e.g. margin and widths were changed,
75867586
//reset line drawing and calculate position and lines again
75877587
//e.g. to stop text floating around an image
75887588
if (this.executeWatchFunctions(line[0][1]) && lines.length > 0) {
75897589
var localFragments = [];
75907590
var localStyles = [];
7591-
//create fragement array of
7591+
//create fragment array of
75927592
lines.forEach(function (localLine) {
75937593
var i = 0;
75947594
var l = localLine.length;
@@ -8706,7 +8706,7 @@ Q\n";
87068706
/**
87078707
Splits a given string into an array of strings. Uses 'size' value
87088708
(in measurement units declared as default for the jsPDF instance)
8709-
and the font's "widths" and "Kerning" tables, where availabe, to
8709+
and the font's "widths" and "Kerning" tables, where available, to
87108710
determine display length of a given string for a given font.
87118711

87128712
We use character's 100% of unit size (height) as width when Width

dist/jspdf.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ <h2><a href="#">Draw example: rectangles / squares</a></h2>
392392

393393
doc.setDrawColor(0);
394394
doc.setFillColor(255, 255, 255);
395-
doc.roundedRect(140, 20, 10, 10, 3, 3, 'FD'); // Black sqaure with rounded corners
395+
doc.roundedRect(140, 20, 10, 10, 3, 3, 'FD'); // Black square with rounded corners
396396

397397
doc.save('Test.pdf');</pre>
398398
<a href="javascript:demoRectangles()" class="button">Run Code</a></p></div>

examples/js/basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function demoRectangles() {
140140

141141
doc.setDrawColor(0);
142142
doc.setFillColor(255, 255, 255);
143-
doc.roundedRect(140, 20, 10, 10, 3, 3, 'FD'); // Black sqaure with rounded corners
143+
doc.roundedRect(140, 20, 10, 10, 3, 3, 'FD'); // Black square with rounded corners
144144

145145
doc.save('Test.pdf');
146146
}

plugins/acroform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
var standardFields = (!fieldArray);
130130

131131
if (!fieldArray) {
132-
// in case there is no fieldArray specified, we wanna print out the Fields of the AcroForm
132+
// in case there is no fieldArray specified, we want to print out the Fields of the AcroForm
133133
// Print out Root
134134
this.internal.newObjectDeferredBegin(this.acroformPlugin.acroFormDictionaryRoot.objId);
135135
this.internal.out(this.acroformPlugin.acroFormDictionaryRoot.getString());
@@ -1348,7 +1348,7 @@ window["PasswordField"] = AcroForm.PasswordField;
13481348
// ############ internal functions
13491349

13501350
/*
1351-
* small workaround for calculating the TextMetric aproximately
1351+
* small workaround for calculating the TextMetric approximately
13521352
* @param text
13531353
* @param fontsize
13541354
* @returns {TextMetrics} (Has Height and Width)

plugins/addimage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
}
172172
, createDataURIFromElement = function(element, format, angle) {
173173

174-
//if element is an image which uses data url defintion, just return the dataurl
174+
//if element is an image which uses data url definition, just return the dataurl
175175
if (element.nodeName === 'IMG' && element.hasAttribute('src')) {
176176
var src = ''+element.getAttribute('src');
177177
if (!angle && src.indexOf('data:image/') === 0) return src;
@@ -294,7 +294,7 @@
294294
ICC_BASED:'ICCBased',
295295
INDEXED:'Indexed',
296296
PATTERN:'Pattern',
297-
SEPERATION:'Seperation',
297+
SEPARATION:'Separation',
298298
DEVICE_N:'DeviceN'
299299
};
300300

@@ -587,7 +587,7 @@
587587
throw new Error('please ensure that the plugin for \''+format+'\' support is added');
588588

589589
/**
590-
* need to test if it's more efficent to convert all binary strings
590+
* need to test if it's more efficient to convert all binary strings
591591
* to TypedArray - or should we just leave and process as string?
592592
*/
593593
if(this.supportsArrayBuffer()) {

plugins/cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
this.printHeaderRow(ln, true);
124124
}
125125
}
126-
//We ignore the passed y: the lines may have diferent heights
126+
//We ignore the passed y: the lines may have different heights
127127
y = (getLastCellPosition().y + getLastCellPosition().h);
128128
if (pgAdded) y = margin + 10;
129129
}

plugins/from_html.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@
599599
renderer.y = oldPosition;
600600
};
601601

602-
//check if footer contains totalPages which shoudl be replace at the disoposal of the document
602+
//check if footer contains totalPages which should be replace at the disoposal of the document
603603
var spans = footer.getElementsByTagName('span');
604604
for (var i = 0; i < spans.length; ++i) {
605605
if ((" " + spans[i].className + " ").replace(/[\n\t]/g, " ").indexOf(" totalPages ") > -1) {
@@ -964,13 +964,13 @@
964964
}
965965
this.y += maxLineHeight * fontToUnitRatio;
966966

967-
//if some watcher function was executed sucessful, so e.g. margin and widths were changed,
967+
//if some watcher function was executed successful, so e.g. margin and widths were changed,
968968
//reset line drawing and calculate position and lines again
969969
//e.g. to stop text floating around an image
970970
if (this.executeWatchFunctions(line[0][1]) && lines.length > 0) {
971971
var localFragments = [];
972972
var localStyles = [];
973-
//create fragement array of
973+
//create fragment array of
974974
lines.forEach(function(localLine) {
975975
var i = 0;
976976
var l = localLine.length;

plugins/split_text_to_size.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ var splitParagraphIntoLines = function(text, maxlen, options){
230230
/**
231231
Splits a given string into an array of strings. Uses 'size' value
232232
(in measurement units declared as default for the jsPDF instance)
233-
and the font's "widths" and "Kerning" tables, where availabe, to
233+
and the font's "widths" and "Kerning" tables, where available, to
234234
determine display length of a given string for a given font.
235235
236236
We use character's 100% of unit size (height) as width when Width

0 commit comments

Comments
 (0)