@syncfusion/ej2-pdf-export 35.1.37 → 35.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/ej2-pdf-export.min.js +2 -2
  2. package/dist/ej2-pdf-export.umd.min.js +2 -2
  3. package/dist/ej2-pdf-export.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-pdf-export.es2015.js +430 -2797
  5. package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
  6. package/dist/es6/ej2-pdf-export.es5.js +430 -2797
  7. package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
  8. package/dist/global/ej2-pdf-export.min.js +2 -2
  9. package/dist/global/ej2-pdf-export.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +1 -1
  12. package/src/implementation/actions/action.d.ts +0 -6
  13. package/src/implementation/actions/action.js +2 -8
  14. package/src/implementation/actions/uri-action.js +2 -2
  15. package/src/implementation/annotations/annotation-collection.d.ts +0 -6
  16. package/src/implementation/annotations/annotation-collection.js +1 -7
  17. package/src/implementation/annotations/annotation.d.ts +0 -6
  18. package/src/implementation/annotations/annotation.js +5 -11
  19. package/src/implementation/annotations/document-link-annotation.js +1 -1
  20. package/src/implementation/annotations/link-annotation.js +1 -1
  21. package/src/implementation/annotations/uri-annotation.js +2 -2
  22. package/src/implementation/document/pdf-viewer-preferences.d.ts +0 -2
  23. package/src/implementation/document/pdf-viewer-preferences.js +12 -14
  24. package/src/implementation/general/pdf-destination.d.ts +0 -6
  25. package/src/implementation/general/pdf-destination.js +2 -8
  26. package/src/implementation/graphics/brushes/pdf-brushes.d.ts +10 -4
  27. package/src/implementation/graphics/brushes/pdf-brushes.js +163 -1843
  28. package/src/implementation/graphics/brushes/pdf-gradient-brush.d.ts +0 -5
  29. package/src/implementation/graphics/brushes/pdf-gradient-brush.js +18 -24
  30. package/src/implementation/graphics/figures/pdf-template.d.ts +0 -6
  31. package/src/implementation/graphics/figures/pdf-template.js +7 -14
  32. package/src/implementation/graphics/fonts/pdf-standard-font-metrics-factory.d.ts +15 -1
  33. package/src/implementation/graphics/fonts/pdf-standard-font-metrics-factory.js +45 -161
  34. package/src/implementation/graphics/fonts/pdf-standard-font.d.ts +0 -5
  35. package/src/implementation/graphics/fonts/pdf-standard-font.js +4 -10
  36. package/src/implementation/graphics/fonts/rtl/rtl-bidirectional.d.ts +7 -0
  37. package/src/implementation/graphics/fonts/rtl/rtl-bidirectional.js +31 -461
  38. package/src/implementation/graphics/fonts/rtl/rtl-text-shape.d.ts +12 -0
  39. package/src/implementation/graphics/fonts/rtl/rtl-text-shape.js +32 -76
  40. package/src/implementation/graphics/fonts/unicode-true-type-font.d.ts +0 -5
  41. package/src/implementation/graphics/fonts/unicode-true-type-font.js +37 -43
  42. package/src/implementation/graphics/images/image-decoder.d.ts +0 -6
  43. package/src/implementation/graphics/images/image-decoder.js +14 -21
  44. package/src/implementation/graphics/images/pdf-bitmap.d.ts +0 -6
  45. package/src/implementation/graphics/images/pdf-bitmap.js +0 -7
  46. package/src/implementation/graphics/pdf-graphics.d.ts +0 -5
  47. package/src/implementation/graphics/pdf-graphics.js +0 -6
  48. package/src/implementation/graphics/pdf-resources.js +15 -15
  49. package/src/implementation/graphics/pdf-transparency.d.ts +0 -6
  50. package/src/implementation/graphics/pdf-transparency.js +6 -13
  51. package/src/implementation/input-output/pdf-cross-table.d.ts +0 -6
  52. package/src/implementation/input-output/pdf-cross-table.js +2 -9
  53. package/src/implementation/pages/pdf-page-base.d.ts +0 -7
  54. package/src/implementation/pages/pdf-page-base.js +4 -11
  55. package/src/implementation/pages/pdf-page-layer.d.ts +0 -5
  56. package/src/implementation/pages/pdf-page-layer.js +0 -6
  57. package/src/implementation/pages/pdf-page.js +5 -5
  58. package/src/implementation/pages/pdf-section-collection.d.ts +0 -5
  59. package/src/implementation/pages/pdf-section-collection.js +5 -11
  60. package/src/implementation/pages/pdf-section.d.ts +0 -5
  61. package/src/implementation/pages/pdf-section.js +6 -12
  62. package/src/implementation/primitives/pdf-reference.d.ts +0 -5
  63. package/src/implementation/primitives/pdf-reference.js +1 -7
  64. package/src/implementation/primitives/pdf-stream.js +7 -7
@@ -14,21 +14,11 @@ var PdfBrushes = /** @class */ (function () {
14
14
  function PdfBrushes() {
15
15
  }
16
16
  Object.defineProperty(PdfBrushes, "AliceBlue", {
17
- //Static Properties
18
17
  /**
19
18
  * Gets the AliceBlue brush.
20
19
  * @public
21
20
  */
22
- get: function () {
23
- var brush = null;
24
- if (this.sBrushes.containsKey(KnownColor.AliceBlue)) {
25
- brush = (this.sBrushes.getValue(KnownColor.AliceBlue));
26
- }
27
- if ((brush == null)) {
28
- brush = this.getBrush(KnownColor.AliceBlue);
29
- }
30
- return brush;
31
- },
21
+ get: function () { return this.getBrush(KnownColor.AliceBlue); },
32
22
  enumerable: true,
33
23
  configurable: true
34
24
  });
@@ -37,16 +27,7 @@ var PdfBrushes = /** @class */ (function () {
37
27
  * Gets the antique white brush.
38
28
  * @public
39
29
  */
40
- get: function () {
41
- var brush = null;
42
- if (this.sBrushes.containsKey(KnownColor.AntiqueWhite)) {
43
- brush = (this.sBrushes.getValue(KnownColor.AntiqueWhite));
44
- }
45
- if ((brush == null)) {
46
- brush = this.getBrush(KnownColor.AntiqueWhite);
47
- }
48
- return brush;
49
- },
30
+ get: function () { return this.getBrush(KnownColor.AntiqueWhite); },
50
31
  enumerable: true,
51
32
  configurable: true
52
33
  });
@@ -55,16 +36,7 @@ var PdfBrushes = /** @class */ (function () {
55
36
  * Gets the Aqua default brush.
56
37
  * @public
57
38
  */
58
- get: function () {
59
- var brush = null;
60
- if (this.sBrushes.containsKey(KnownColor.Aqua)) {
61
- brush = (this.sBrushes.getValue(KnownColor.Aqua));
62
- }
63
- if ((brush == null)) {
64
- brush = this.getBrush(KnownColor.Aqua);
65
- }
66
- return brush;
67
- },
39
+ get: function () { return this.getBrush(KnownColor.Aqua); },
68
40
  enumerable: true,
69
41
  configurable: true
70
42
  });
@@ -73,16 +45,7 @@ var PdfBrushes = /** @class */ (function () {
73
45
  * Gets the Aquamarine default brush.
74
46
  * @public
75
47
  */
76
- get: function () {
77
- var brush = null;
78
- if (this.sBrushes.containsKey(KnownColor.Aquamarine)) {
79
- brush = (this.sBrushes.getValue(KnownColor.Aquamarine));
80
- }
81
- if ((brush == null)) {
82
- brush = this.getBrush(KnownColor.Aquamarine);
83
- }
84
- return brush;
85
- },
48
+ get: function () { return this.getBrush(KnownColor.Aquamarine); },
86
49
  enumerable: true,
87
50
  configurable: true
88
51
  });
@@ -91,16 +54,7 @@ var PdfBrushes = /** @class */ (function () {
91
54
  * Gets the Azure default brush.
92
55
  * @public
93
56
  */
94
- get: function () {
95
- var brush = null;
96
- if (this.sBrushes.containsKey(KnownColor.Azure)) {
97
- brush = (this.sBrushes.getValue(KnownColor.Azure));
98
- }
99
- if ((brush == null)) {
100
- brush = this.getBrush(KnownColor.Azure);
101
- }
102
- return brush;
103
- },
57
+ get: function () { return this.getBrush(KnownColor.Azure); },
104
58
  enumerable: true,
105
59
  configurable: true
106
60
  });
@@ -109,16 +63,7 @@ var PdfBrushes = /** @class */ (function () {
109
63
  * Gets the Beige default brush.
110
64
  * @public
111
65
  */
112
- get: function () {
113
- var brush = null;
114
- if (this.sBrushes.containsKey(KnownColor.Beige)) {
115
- brush = (this.sBrushes.getValue(KnownColor.Beige));
116
- }
117
- if ((brush == null)) {
118
- brush = this.getBrush(KnownColor.Beige);
119
- }
120
- return brush;
121
- },
66
+ get: function () { return this.getBrush(KnownColor.Beige); },
122
67
  enumerable: true,
123
68
  configurable: true
124
69
  });
@@ -127,16 +72,7 @@ var PdfBrushes = /** @class */ (function () {
127
72
  * Gets the Bisque default brush.
128
73
  * @public
129
74
  */
130
- get: function () {
131
- var brush = null;
132
- if (this.sBrushes.containsKey(KnownColor.Bisque)) {
133
- brush = (this.sBrushes.getValue(KnownColor.Bisque));
134
- }
135
- if ((brush == null)) {
136
- brush = this.getBrush(KnownColor.Bisque);
137
- }
138
- return brush;
139
- },
75
+ get: function () { return this.getBrush(KnownColor.Bisque); },
140
76
  enumerable: true,
141
77
  configurable: true
142
78
  });
@@ -145,16 +81,7 @@ var PdfBrushes = /** @class */ (function () {
145
81
  * Gets the Black default brush.
146
82
  * @public
147
83
  */
148
- get: function () {
149
- var brush = null;
150
- if (this.sBrushes.containsKey(KnownColor.Black)) {
151
- brush = (this.sBrushes.getValue(KnownColor.Black));
152
- }
153
- if ((brush == null)) {
154
- brush = this.getBrush(KnownColor.Black);
155
- }
156
- return brush;
157
- },
84
+ get: function () { return this.getBrush(KnownColor.Black); },
158
85
  enumerable: true,
159
86
  configurable: true
160
87
  });
@@ -163,16 +90,7 @@ var PdfBrushes = /** @class */ (function () {
163
90
  * Gets the BlanchedAlmond default brush.
164
91
  * @public
165
92
  */
166
- get: function () {
167
- var brush = null;
168
- if (this.sBrushes.containsKey(KnownColor.BlanchedAlmond)) {
169
- brush = (this.sBrushes.getValue(KnownColor.BlanchedAlmond));
170
- }
171
- if ((brush == null)) {
172
- brush = this.getBrush(KnownColor.BlanchedAlmond);
173
- }
174
- return brush;
175
- },
93
+ get: function () { return this.getBrush(KnownColor.BlanchedAlmond); },
176
94
  enumerable: true,
177
95
  configurable: true
178
96
  });
@@ -181,16 +99,7 @@ var PdfBrushes = /** @class */ (function () {
181
99
  * Gets the Blue default brush.
182
100
  * @public
183
101
  */
184
- get: function () {
185
- var brush = null;
186
- if (this.sBrushes.containsKey(KnownColor.Blue)) {
187
- brush = (this.sBrushes.getValue(KnownColor.Blue));
188
- }
189
- if ((brush == null)) {
190
- brush = this.getBrush(KnownColor.Blue);
191
- }
192
- return brush;
193
- },
102
+ get: function () { return this.getBrush(KnownColor.Blue); },
194
103
  enumerable: true,
195
104
  configurable: true
196
105
  });
@@ -199,16 +108,7 @@ var PdfBrushes = /** @class */ (function () {
199
108
  * Gets the BlueViolet default brush.
200
109
  * @public
201
110
  */
202
- get: function () {
203
- var brush = null;
204
- if (this.sBrushes.containsKey(KnownColor.BlueViolet)) {
205
- brush = (this.sBrushes.getValue(KnownColor.BlueViolet));
206
- }
207
- if ((brush == null)) {
208
- brush = this.getBrush(KnownColor.BlueViolet);
209
- }
210
- return brush;
211
- },
111
+ get: function () { return this.getBrush(KnownColor.BlueViolet); },
212
112
  enumerable: true,
213
113
  configurable: true
214
114
  });
@@ -217,16 +117,7 @@ var PdfBrushes = /** @class */ (function () {
217
117
  * Gets the Brown default brush.
218
118
  * @public
219
119
  */
220
- get: function () {
221
- var brush = null;
222
- if (this.sBrushes.containsKey(KnownColor.Brown)) {
223
- brush = (this.sBrushes.getValue(KnownColor.Brown));
224
- }
225
- if ((brush == null)) {
226
- brush = this.getBrush(KnownColor.Brown);
227
- }
228
- return brush;
229
- },
120
+ get: function () { return this.getBrush(KnownColor.Brown); },
230
121
  enumerable: true,
231
122
  configurable: true
232
123
  });
@@ -235,16 +126,7 @@ var PdfBrushes = /** @class */ (function () {
235
126
  * Gets the BurlyWood default brush.
236
127
  * @public
237
128
  */
238
- get: function () {
239
- var brush = null;
240
- if (this.sBrushes.containsKey(KnownColor.BurlyWood)) {
241
- brush = (this.sBrushes.getValue(KnownColor.BurlyWood));
242
- }
243
- if ((brush == null)) {
244
- brush = this.getBrush(KnownColor.BurlyWood);
245
- }
246
- return brush;
247
- },
129
+ get: function () { return this.getBrush(KnownColor.BurlyWood); },
248
130
  enumerable: true,
249
131
  configurable: true
250
132
  });
@@ -253,16 +135,7 @@ var PdfBrushes = /** @class */ (function () {
253
135
  * Gets the CadetBlue default brush.
254
136
  * @public
255
137
  */
256
- get: function () {
257
- var brush = null;
258
- if (this.sBrushes.containsKey(KnownColor.CadetBlue)) {
259
- brush = (this.sBrushes.getValue(KnownColor.CadetBlue));
260
- }
261
- if ((brush == null)) {
262
- brush = this.getBrush(KnownColor.CadetBlue);
263
- }
264
- return brush;
265
- },
138
+ get: function () { return this.getBrush(KnownColor.CadetBlue); },
266
139
  enumerable: true,
267
140
  configurable: true
268
141
  });
@@ -271,16 +144,7 @@ var PdfBrushes = /** @class */ (function () {
271
144
  * Gets the Chartreuse default brush.
272
145
  * @public
273
146
  */
274
- get: function () {
275
- var brush = null;
276
- if (this.sBrushes.containsKey(KnownColor.Chartreuse)) {
277
- brush = (this.sBrushes.getValue(KnownColor.Chartreuse));
278
- }
279
- if ((brush == null)) {
280
- brush = this.getBrush(KnownColor.Chartreuse);
281
- }
282
- return brush;
283
- },
147
+ get: function () { return this.getBrush(KnownColor.Chartreuse); },
284
148
  enumerable: true,
285
149
  configurable: true
286
150
  });
@@ -289,16 +153,7 @@ var PdfBrushes = /** @class */ (function () {
289
153
  * Gets the Chocolate default brush.
290
154
  * @public
291
155
  */
292
- get: function () {
293
- var brush = null;
294
- if (this.sBrushes.containsKey(KnownColor.Chocolate)) {
295
- brush = (this.sBrushes.getValue(KnownColor.Chocolate));
296
- }
297
- if ((brush == null)) {
298
- brush = this.getBrush(KnownColor.Chocolate);
299
- }
300
- return brush;
301
- },
156
+ get: function () { return this.getBrush(KnownColor.Chocolate); },
302
157
  enumerable: true,
303
158
  configurable: true
304
159
  });
@@ -307,16 +162,7 @@ var PdfBrushes = /** @class */ (function () {
307
162
  * Gets the Coral default brush.
308
163
  * @public
309
164
  */
310
- get: function () {
311
- var brush = null;
312
- if (this.sBrushes.containsKey(KnownColor.Coral)) {
313
- brush = (this.sBrushes.getValue(KnownColor.Coral));
314
- }
315
- if ((brush == null)) {
316
- brush = this.getBrush(KnownColor.Coral);
317
- }
318
- return brush;
319
- },
165
+ get: function () { return this.getBrush(KnownColor.Coral); },
320
166
  enumerable: true,
321
167
  configurable: true
322
168
  });
@@ -325,52 +171,25 @@ var PdfBrushes = /** @class */ (function () {
325
171
  * Gets the CornflowerBlue default brush.
326
172
  * @public
327
173
  */
328
- get: function () {
329
- var brush = null;
330
- if (this.sBrushes.containsKey(KnownColor.CornflowerBlue)) {
331
- brush = (this.sBrushes.getValue(KnownColor.CornflowerBlue));
332
- }
333
- if ((brush == null)) {
334
- brush = this.getBrush(KnownColor.CornflowerBlue);
335
- }
336
- return brush;
337
- },
174
+ get: function () { return this.getBrush(KnownColor.CornflowerBlue); },
338
175
  enumerable: true,
339
176
  configurable: true
340
177
  });
341
178
  Object.defineProperty(PdfBrushes, "Cornsilk", {
342
179
  /**
343
- * Gets the Corn silk default brush.
180
+ * Gets the Cornsilk default brush.
344
181
  * @public
345
182
  */
346
- get: function () {
347
- var brush = null;
348
- if (this.sBrushes.containsKey(KnownColor.Cornsilk)) {
349
- brush = (this.sBrushes.getValue(KnownColor.Cornsilk));
350
- }
351
- if ((brush == null)) {
352
- brush = this.getBrush(KnownColor.Cornsilk);
353
- }
354
- return brush;
355
- },
183
+ get: function () { return this.getBrush(KnownColor.Cornsilk); },
356
184
  enumerable: true,
357
185
  configurable: true
358
186
  });
359
187
  Object.defineProperty(PdfBrushes, "Crimson", {
360
188
  /**
361
- * Gets the Crimson default brush.
189
+ * Gets the Crimson default brush.
362
190
  * @public
363
191
  */
364
- get: function () {
365
- var brush = null;
366
- if (this.sBrushes.containsKey(KnownColor.Crimson)) {
367
- brush = (this.sBrushes.getValue(KnownColor.Crimson));
368
- }
369
- if ((brush == null)) {
370
- brush = this.getBrush(KnownColor.Crimson);
371
- }
372
- return brush;
373
- },
192
+ get: function () { return this.getBrush(KnownColor.Crimson); },
374
193
  enumerable: true,
375
194
  configurable: true
376
195
  });
@@ -379,16 +198,7 @@ var PdfBrushes = /** @class */ (function () {
379
198
  * Gets the Cyan default brush.
380
199
  * @public
381
200
  */
382
- get: function () {
383
- var brush = null;
384
- if (this.sBrushes.containsKey(KnownColor.Cyan)) {
385
- brush = (this.sBrushes.getValue(KnownColor.Cyan));
386
- }
387
- if ((brush == null)) {
388
- brush = this.getBrush(KnownColor.Cyan);
389
- }
390
- return brush;
391
- },
201
+ get: function () { return this.getBrush(KnownColor.Cyan); },
392
202
  enumerable: true,
393
203
  configurable: true
394
204
  });
@@ -397,16 +207,7 @@ var PdfBrushes = /** @class */ (function () {
397
207
  * Gets the DarkBlue default brush.
398
208
  * @public
399
209
  */
400
- get: function () {
401
- var brush = null;
402
- if (this.sBrushes.containsKey(KnownColor.DarkBlue)) {
403
- brush = (this.sBrushes.getValue(KnownColor.DarkBlue));
404
- }
405
- if ((brush == null)) {
406
- brush = this.getBrush(KnownColor.DarkBlue);
407
- }
408
- return brush;
409
- },
210
+ get: function () { return this.getBrush(KnownColor.DarkBlue); },
410
211
  enumerable: true,
411
212
  configurable: true
412
213
  });
@@ -415,16 +216,7 @@ var PdfBrushes = /** @class */ (function () {
415
216
  * Gets the DarkCyan default brush.
416
217
  * @public
417
218
  */
418
- get: function () {
419
- var brush = null;
420
- if (this.sBrushes.containsKey(KnownColor.DarkCyan)) {
421
- brush = (this.sBrushes.getValue(KnownColor.DarkCyan));
422
- }
423
- if ((brush == null)) {
424
- brush = this.getBrush(KnownColor.DarkCyan);
425
- }
426
- return brush;
427
- },
219
+ get: function () { return this.getBrush(KnownColor.DarkCyan); },
428
220
  enumerable: true,
429
221
  configurable: true
430
222
  });
@@ -433,16 +225,7 @@ var PdfBrushes = /** @class */ (function () {
433
225
  * Gets the DarkGoldenrod default brush.
434
226
  * @public
435
227
  */
436
- get: function () {
437
- var brush = null;
438
- if (this.sBrushes.containsKey(KnownColor.DarkGoldenrod)) {
439
- brush = (this.sBrushes.getValue(KnownColor.DarkGoldenrod));
440
- }
441
- if ((brush == null)) {
442
- brush = this.getBrush(KnownColor.DarkGoldenrod);
443
- }
444
- return brush;
445
- },
228
+ get: function () { return this.getBrush(KnownColor.DarkGoldenrod); },
446
229
  enumerable: true,
447
230
  configurable: true
448
231
  });
@@ -451,16 +234,7 @@ var PdfBrushes = /** @class */ (function () {
451
234
  * Gets the DarkGray default brush.
452
235
  * @public
453
236
  */
454
- get: function () {
455
- var brush = null;
456
- if (this.sBrushes.containsKey(KnownColor.DarkGray)) {
457
- brush = (this.sBrushes.getValue(KnownColor.DarkGray));
458
- }
459
- if ((brush == null)) {
460
- brush = this.getBrush(KnownColor.DarkGray);
461
- }
462
- return brush;
463
- },
237
+ get: function () { return this.getBrush(KnownColor.DarkGray); },
464
238
  enumerable: true,
465
239
  configurable: true
466
240
  });
@@ -469,16 +243,7 @@ var PdfBrushes = /** @class */ (function () {
469
243
  * Gets the DarkGreen default brush.
470
244
  * @public
471
245
  */
472
- get: function () {
473
- var brush = null;
474
- if (this.sBrushes.containsKey(KnownColor.DarkGreen)) {
475
- brush = (this.sBrushes.getValue(KnownColor.DarkGreen));
476
- }
477
- if ((brush == null)) {
478
- brush = this.getBrush(KnownColor.DarkGreen);
479
- }
480
- return brush;
481
- },
246
+ get: function () { return this.getBrush(KnownColor.DarkGreen); },
482
247
  enumerable: true,
483
248
  configurable: true
484
249
  });
@@ -487,16 +252,7 @@ var PdfBrushes = /** @class */ (function () {
487
252
  * Gets the DarkKhaki default brush.
488
253
  * @public
489
254
  */
490
- get: function () {
491
- var brush = null;
492
- if (this.sBrushes.containsKey(KnownColor.DarkKhaki)) {
493
- brush = (this.sBrushes.getValue(KnownColor.DarkKhaki));
494
- }
495
- if ((brush == null)) {
496
- brush = this.getBrush(KnownColor.DarkKhaki);
497
- }
498
- return brush;
499
- },
255
+ get: function () { return this.getBrush(KnownColor.DarkKhaki); },
500
256
  enumerable: true,
501
257
  configurable: true
502
258
  });
@@ -505,16 +261,7 @@ var PdfBrushes = /** @class */ (function () {
505
261
  * Gets the DarkMagenta default brush.
506
262
  * @public
507
263
  */
508
- get: function () {
509
- var brush = null;
510
- if (this.sBrushes.containsKey(KnownColor.DarkMagenta)) {
511
- brush = (this.sBrushes.getValue(KnownColor.DarkMagenta));
512
- }
513
- if ((brush == null)) {
514
- brush = this.getBrush(KnownColor.DarkMagenta);
515
- }
516
- return brush;
517
- },
264
+ get: function () { return this.getBrush(KnownColor.DarkMagenta); },
518
265
  enumerable: true,
519
266
  configurable: true
520
267
  });
@@ -523,16 +270,7 @@ var PdfBrushes = /** @class */ (function () {
523
270
  * Gets the DarkOliveGreen default brush.
524
271
  * @public
525
272
  */
526
- get: function () {
527
- var brush = null;
528
- if (this.sBrushes.containsKey(KnownColor.DarkOliveGreen)) {
529
- brush = (this.sBrushes.getValue(KnownColor.DarkOliveGreen));
530
- }
531
- if ((brush == null)) {
532
- brush = this.getBrush(KnownColor.DarkOliveGreen);
533
- }
534
- return brush;
535
- },
273
+ get: function () { return this.getBrush(KnownColor.DarkOliveGreen); },
536
274
  enumerable: true,
537
275
  configurable: true
538
276
  });
@@ -541,16 +279,7 @@ var PdfBrushes = /** @class */ (function () {
541
279
  * Gets the DarkOrange default brush.
542
280
  * @public
543
281
  */
544
- get: function () {
545
- var brush = null;
546
- if (this.sBrushes.containsKey(KnownColor.DarkOrange)) {
547
- brush = (this.sBrushes.getValue(KnownColor.DarkOrange));
548
- }
549
- if ((brush == null)) {
550
- brush = this.getBrush(KnownColor.DarkOrange);
551
- }
552
- return brush;
553
- },
282
+ get: function () { return this.getBrush(KnownColor.DarkOrange); },
554
283
  enumerable: true,
555
284
  configurable: true
556
285
  });
@@ -559,16 +288,7 @@ var PdfBrushes = /** @class */ (function () {
559
288
  * Gets the DarkOrchid default brush.
560
289
  * @public
561
290
  */
562
- get: function () {
563
- var brush = null;
564
- if (this.sBrushes.containsKey(KnownColor.DarkOrchid)) {
565
- brush = (this.sBrushes.getValue(KnownColor.DarkOrchid));
566
- }
567
- if ((brush == null)) {
568
- brush = this.getBrush(KnownColor.DarkOrchid);
569
- }
570
- return brush;
571
- },
291
+ get: function () { return this.getBrush(KnownColor.DarkOrchid); },
572
292
  enumerable: true,
573
293
  configurable: true
574
294
  });
@@ -577,16 +297,7 @@ var PdfBrushes = /** @class */ (function () {
577
297
  * Gets the DarkRed default brush.
578
298
  * @public
579
299
  */
580
- get: function () {
581
- var brush = null;
582
- if (this.sBrushes.containsKey(KnownColor.DarkRed)) {
583
- brush = (this.sBrushes.getValue(KnownColor.DarkRed));
584
- }
585
- if ((brush == null)) {
586
- brush = this.getBrush(KnownColor.DarkRed);
587
- }
588
- return brush;
589
- },
300
+ get: function () { return this.getBrush(KnownColor.DarkRed); },
590
301
  enumerable: true,
591
302
  configurable: true
592
303
  });
@@ -595,16 +306,7 @@ var PdfBrushes = /** @class */ (function () {
595
306
  * Gets the DarkSalmon default brush.
596
307
  * @public
597
308
  */
598
- get: function () {
599
- var brush = null;
600
- if (this.sBrushes.containsKey(KnownColor.DarkSalmon)) {
601
- brush = (this.sBrushes.getValue(KnownColor.DarkSalmon));
602
- }
603
- if ((brush == null)) {
604
- brush = this.getBrush(KnownColor.DarkSalmon);
605
- }
606
- return brush;
607
- },
309
+ get: function () { return this.getBrush(KnownColor.DarkSalmon); },
608
310
  enumerable: true,
609
311
  configurable: true
610
312
  });
@@ -613,16 +315,7 @@ var PdfBrushes = /** @class */ (function () {
613
315
  * Gets the DarkSeaGreen default brush.
614
316
  * @public
615
317
  */
616
- get: function () {
617
- var brush = null;
618
- if (this.sBrushes.containsKey(KnownColor.DarkSeaGreen)) {
619
- brush = (this.sBrushes.getValue(KnownColor.DarkSeaGreen));
620
- }
621
- if ((brush == null)) {
622
- brush = this.getBrush(KnownColor.DarkSeaGreen);
623
- }
624
- return brush;
625
- },
318
+ get: function () { return this.getBrush(KnownColor.DarkSeaGreen); },
626
319
  enumerable: true,
627
320
  configurable: true
628
321
  });
@@ -631,16 +324,7 @@ var PdfBrushes = /** @class */ (function () {
631
324
  * Gets the DarkSlateBlue default brush.
632
325
  * @public
633
326
  */
634
- get: function () {
635
- var brush = null;
636
- if (this.sBrushes.containsKey(KnownColor.DarkSlateBlue)) {
637
- brush = (this.sBrushes.getValue(KnownColor.DarkSlateBlue));
638
- }
639
- if ((brush == null)) {
640
- brush = this.getBrush(KnownColor.DarkSlateBlue);
641
- }
642
- return brush;
643
- },
327
+ get: function () { return this.getBrush(KnownColor.DarkSlateBlue); },
644
328
  enumerable: true,
645
329
  configurable: true
646
330
  });
@@ -649,16 +333,7 @@ var PdfBrushes = /** @class */ (function () {
649
333
  * Gets the DarkSlateGray default brush.
650
334
  * @public
651
335
  */
652
- get: function () {
653
- var brush = null;
654
- if (this.sBrushes.containsKey(KnownColor.DarkSlateGray)) {
655
- brush = (this.sBrushes.getValue(KnownColor.DarkSlateGray));
656
- }
657
- if ((brush == null)) {
658
- brush = this.getBrush(KnownColor.DarkSlateGray);
659
- }
660
- return brush;
661
- },
336
+ get: function () { return this.getBrush(KnownColor.DarkSlateGray); },
662
337
  enumerable: true,
663
338
  configurable: true
664
339
  });
@@ -667,16 +342,7 @@ var PdfBrushes = /** @class */ (function () {
667
342
  * Gets the DarkTurquoise default brush.
668
343
  * @public
669
344
  */
670
- get: function () {
671
- var brush = null;
672
- if (this.sBrushes.containsKey(KnownColor.DarkTurquoise)) {
673
- brush = (this.sBrushes.getValue(KnownColor.DarkTurquoise));
674
- }
675
- if ((brush == null)) {
676
- brush = this.getBrush(KnownColor.DarkTurquoise);
677
- }
678
- return brush;
679
- },
345
+ get: function () { return this.getBrush(KnownColor.DarkTurquoise); },
680
346
  enumerable: true,
681
347
  configurable: true
682
348
  });
@@ -685,16 +351,7 @@ var PdfBrushes = /** @class */ (function () {
685
351
  * Gets the DarkViolet default brush.
686
352
  * @public
687
353
  */
688
- get: function () {
689
- var brush = null;
690
- if (this.sBrushes.containsKey(KnownColor.DarkViolet)) {
691
- brush = (this.sBrushes.getValue(KnownColor.DarkViolet));
692
- }
693
- if ((brush == null)) {
694
- brush = this.getBrush(KnownColor.DarkViolet);
695
- }
696
- return brush;
697
- },
354
+ get: function () { return this.getBrush(KnownColor.DarkViolet); },
698
355
  enumerable: true,
699
356
  configurable: true
700
357
  });
@@ -703,16 +360,7 @@ var PdfBrushes = /** @class */ (function () {
703
360
  * Gets the DeepPink default brush.
704
361
  * @public
705
362
  */
706
- get: function () {
707
- var brush = null;
708
- if (this.sBrushes.containsKey(KnownColor.DeepPink)) {
709
- brush = (this.sBrushes.getValue(KnownColor.DeepPink));
710
- }
711
- if ((brush == null)) {
712
- brush = this.getBrush(KnownColor.DeepPink);
713
- }
714
- return brush;
715
- },
363
+ get: function () { return this.getBrush(KnownColor.DeepPink); },
716
364
  enumerable: true,
717
365
  configurable: true
718
366
  });
@@ -721,16 +369,7 @@ var PdfBrushes = /** @class */ (function () {
721
369
  * Gets the DeepSkyBlue default brush.
722
370
  * @public
723
371
  */
724
- get: function () {
725
- var brush = null;
726
- if (this.sBrushes.containsKey(KnownColor.DeepSkyBlue)) {
727
- brush = (this.sBrushes.getValue(KnownColor.DeepSkyBlue));
728
- }
729
- if ((brush == null)) {
730
- brush = this.getBrush(KnownColor.DeepSkyBlue);
731
- }
732
- return brush;
733
- },
372
+ get: function () { return this.getBrush(KnownColor.DeepSkyBlue); },
734
373
  enumerable: true,
735
374
  configurable: true
736
375
  });
@@ -739,16 +378,7 @@ var PdfBrushes = /** @class */ (function () {
739
378
  * Gets the DimGray default brush.
740
379
  * @public
741
380
  */
742
- get: function () {
743
- var brush = null;
744
- if (this.sBrushes.containsKey(KnownColor.DimGray)) {
745
- brush = (this.sBrushes.getValue(KnownColor.DimGray));
746
- }
747
- if ((brush == null)) {
748
- brush = this.getBrush(KnownColor.DimGray);
749
- }
750
- return brush;
751
- },
381
+ get: function () { return this.getBrush(KnownColor.DimGray); },
752
382
  enumerable: true,
753
383
  configurable: true
754
384
  });
@@ -757,16 +387,7 @@ var PdfBrushes = /** @class */ (function () {
757
387
  * Gets the DodgerBlue default brush.
758
388
  * @public
759
389
  */
760
- get: function () {
761
- var brush = null;
762
- if (this.sBrushes.containsKey(KnownColor.DodgerBlue)) {
763
- brush = (this.sBrushes.getValue(KnownColor.DodgerBlue));
764
- }
765
- if ((brush == null)) {
766
- brush = this.getBrush(KnownColor.DodgerBlue);
767
- }
768
- return brush;
769
- },
390
+ get: function () { return this.getBrush(KnownColor.DodgerBlue); },
770
391
  enumerable: true,
771
392
  configurable: true
772
393
  });
@@ -775,16 +396,7 @@ var PdfBrushes = /** @class */ (function () {
775
396
  * Gets the Firebrick default brush.
776
397
  * @public
777
398
  */
778
- get: function () {
779
- var brush = null;
780
- if (this.sBrushes.containsKey(KnownColor.Firebrick)) {
781
- brush = (this.sBrushes.getValue(KnownColor.Firebrick));
782
- }
783
- if ((brush == null)) {
784
- brush = this.getBrush(KnownColor.Firebrick);
785
- }
786
- return brush;
787
- },
399
+ get: function () { return this.getBrush(KnownColor.Firebrick); },
788
400
  enumerable: true,
789
401
  configurable: true
790
402
  });
@@ -793,16 +405,7 @@ var PdfBrushes = /** @class */ (function () {
793
405
  * Gets the FloralWhite default brush.
794
406
  * @public
795
407
  */
796
- get: function () {
797
- var brush = null;
798
- if (this.sBrushes.containsKey(KnownColor.FloralWhite)) {
799
- brush = (this.sBrushes.getValue(KnownColor.FloralWhite));
800
- }
801
- if ((brush == null)) {
802
- brush = this.getBrush(KnownColor.FloralWhite);
803
- }
804
- return brush;
805
- },
408
+ get: function () { return this.getBrush(KnownColor.FloralWhite); },
806
409
  enumerable: true,
807
410
  configurable: true
808
411
  });
@@ -811,16 +414,7 @@ var PdfBrushes = /** @class */ (function () {
811
414
  * Gets the ForestGreen default brush.
812
415
  * @public
813
416
  */
814
- get: function () {
815
- var brush = null;
816
- if (this.sBrushes.containsKey(KnownColor.ForestGreen)) {
817
- brush = (this.sBrushes.getValue(KnownColor.ForestGreen));
818
- }
819
- if ((brush == null)) {
820
- brush = this.getBrush(KnownColor.ForestGreen);
821
- }
822
- return brush;
823
- },
417
+ get: function () { return this.getBrush(KnownColor.ForestGreen); },
824
418
  enumerable: true,
825
419
  configurable: true
826
420
  });
@@ -829,34 +423,16 @@ var PdfBrushes = /** @class */ (function () {
829
423
  * Gets the Fuchsia default brush.
830
424
  * @public
831
425
  */
832
- get: function () {
833
- var brush = null;
834
- if (this.sBrushes.containsKey(KnownColor.Fuchsia)) {
835
- brush = (this.sBrushes.getValue(KnownColor.Fuchsia));
836
- }
837
- if ((brush == null)) {
838
- brush = this.getBrush(KnownColor.Fuchsia);
839
- }
840
- return brush;
841
- },
426
+ get: function () { return this.getBrush(KnownColor.Fuchsia); },
842
427
  enumerable: true,
843
428
  configurable: true
844
429
  });
845
430
  Object.defineProperty(PdfBrushes, "Gainsboro", {
846
431
  /**
847
- * Gets the Gainsborough default brush.
432
+ * Gets the Gainsboro default brush.
848
433
  * @public
849
434
  */
850
- get: function () {
851
- var brush = null;
852
- if (this.sBrushes.containsKey(KnownColor.Gainsboro)) {
853
- brush = (this.sBrushes.getValue(KnownColor.Gainsboro));
854
- }
855
- if ((brush == null)) {
856
- brush = this.getBrush(KnownColor.Gainsboro);
857
- }
858
- return brush;
859
- },
435
+ get: function () { return this.getBrush(KnownColor.Gainsboro); },
860
436
  enumerable: true,
861
437
  configurable: true
862
438
  });
@@ -865,16 +441,7 @@ var PdfBrushes = /** @class */ (function () {
865
441
  * Gets the GhostWhite default brush.
866
442
  * @public
867
443
  */
868
- get: function () {
869
- var brush = null;
870
- if (this.sBrushes.containsKey(KnownColor.GhostWhite)) {
871
- brush = (this.sBrushes.getValue(KnownColor.GhostWhite));
872
- }
873
- if ((brush == null)) {
874
- brush = this.getBrush(KnownColor.GhostWhite);
875
- }
876
- return brush;
877
- },
444
+ get: function () { return this.getBrush(KnownColor.GhostWhite); },
878
445
  enumerable: true,
879
446
  configurable: true
880
447
  });
@@ -883,16 +450,7 @@ var PdfBrushes = /** @class */ (function () {
883
450
  * Gets the Gold default brush.
884
451
  * @public
885
452
  */
886
- get: function () {
887
- var brush = null;
888
- if (this.sBrushes.containsKey(KnownColor.Gold)) {
889
- brush = (this.sBrushes.getValue(KnownColor.Gold));
890
- }
891
- if ((brush == null)) {
892
- brush = this.getBrush(KnownColor.Gold);
893
- }
894
- return brush;
895
- },
453
+ get: function () { return this.getBrush(KnownColor.Gold); },
896
454
  enumerable: true,
897
455
  configurable: true
898
456
  });
@@ -901,16 +459,7 @@ var PdfBrushes = /** @class */ (function () {
901
459
  * Gets the Goldenrod default brush.
902
460
  * @public
903
461
  */
904
- get: function () {
905
- var brush = null;
906
- if (this.sBrushes.containsKey(KnownColor.Goldenrod)) {
907
- brush = (this.sBrushes.getValue(KnownColor.Goldenrod));
908
- }
909
- if ((brush == null)) {
910
- brush = this.getBrush(KnownColor.Goldenrod);
911
- }
912
- return brush;
913
- },
462
+ get: function () { return this.getBrush(KnownColor.Goldenrod); },
914
463
  enumerable: true,
915
464
  configurable: true
916
465
  });
@@ -919,16 +468,7 @@ var PdfBrushes = /** @class */ (function () {
919
468
  * Gets the Gray default brush.
920
469
  * @public
921
470
  */
922
- get: function () {
923
- var brush = null;
924
- if (this.sBrushes.containsKey(KnownColor.Gray)) {
925
- brush = (this.sBrushes.getValue(KnownColor.Gray));
926
- }
927
- if ((brush == null)) {
928
- brush = this.getBrush(KnownColor.Gray);
929
- }
930
- return brush;
931
- },
471
+ get: function () { return this.getBrush(KnownColor.Gray); },
932
472
  enumerable: true,
933
473
  configurable: true
934
474
  });
@@ -937,16 +477,7 @@ var PdfBrushes = /** @class */ (function () {
937
477
  * Gets the Green default brush.
938
478
  * @public
939
479
  */
940
- get: function () {
941
- var brush = null;
942
- if (this.sBrushes.containsKey(KnownColor.Green)) {
943
- brush = (this.sBrushes.getValue(KnownColor.Green));
944
- }
945
- if ((brush == null)) {
946
- brush = this.getBrush(KnownColor.Green);
947
- }
948
- return brush;
949
- },
480
+ get: function () { return this.getBrush(KnownColor.Green); },
950
481
  enumerable: true,
951
482
  configurable: true
952
483
  });
@@ -955,16 +486,7 @@ var PdfBrushes = /** @class */ (function () {
955
486
  * Gets the GreenYellow default brush.
956
487
  * @public
957
488
  */
958
- get: function () {
959
- var brush = null;
960
- if (this.sBrushes.containsKey(KnownColor.GreenYellow)) {
961
- brush = (this.sBrushes.getValue(KnownColor.GreenYellow));
962
- }
963
- if ((brush == null)) {
964
- brush = this.getBrush(KnownColor.GreenYellow);
965
- }
966
- return brush;
967
- },
489
+ get: function () { return this.getBrush(KnownColor.GreenYellow); },
968
490
  enumerable: true,
969
491
  configurable: true
970
492
  });
@@ -973,16 +495,7 @@ var PdfBrushes = /** @class */ (function () {
973
495
  * Gets the Honeydew default brush.
974
496
  * @public
975
497
  */
976
- get: function () {
977
- var brush = null;
978
- if (this.sBrushes.containsKey(KnownColor.Honeydew)) {
979
- brush = (this.sBrushes.getValue(KnownColor.Honeydew));
980
- }
981
- if ((brush == null)) {
982
- brush = this.getBrush(KnownColor.Honeydew);
983
- }
984
- return brush;
985
- },
498
+ get: function () { return this.getBrush(KnownColor.Honeydew); },
986
499
  enumerable: true,
987
500
  configurable: true
988
501
  });
@@ -991,16 +504,7 @@ var PdfBrushes = /** @class */ (function () {
991
504
  * Gets the HotPink default brush.
992
505
  * @public
993
506
  */
994
- get: function () {
995
- var brush = null;
996
- if (this.sBrushes.containsKey(KnownColor.HotPink)) {
997
- brush = (this.sBrushes.getValue(KnownColor.HotPink));
998
- }
999
- if ((brush == null)) {
1000
- brush = this.getBrush(KnownColor.HotPink);
1001
- }
1002
- return brush;
1003
- },
507
+ get: function () { return this.getBrush(KnownColor.HotPink); },
1004
508
  enumerable: true,
1005
509
  configurable: true
1006
510
  });
@@ -1009,16 +513,7 @@ var PdfBrushes = /** @class */ (function () {
1009
513
  * Gets the IndianRed default brush.
1010
514
  * @public
1011
515
  */
1012
- get: function () {
1013
- var brush = null;
1014
- if (this.sBrushes.containsKey(KnownColor.IndianRed)) {
1015
- brush = (this.sBrushes.getValue(KnownColor.IndianRed));
1016
- }
1017
- if ((brush == null)) {
1018
- brush = this.getBrush(KnownColor.IndianRed);
1019
- }
1020
- return brush;
1021
- },
516
+ get: function () { return this.getBrush(KnownColor.IndianRed); },
1022
517
  enumerable: true,
1023
518
  configurable: true
1024
519
  });
@@ -1027,16 +522,7 @@ var PdfBrushes = /** @class */ (function () {
1027
522
  * Gets the Indigo default brush.
1028
523
  * @public
1029
524
  */
1030
- get: function () {
1031
- var brush = null;
1032
- if (this.sBrushes.containsKey(KnownColor.Indigo)) {
1033
- brush = (this.sBrushes.getValue(KnownColor.Indigo));
1034
- }
1035
- if ((brush == null)) {
1036
- brush = this.getBrush(KnownColor.Indigo);
1037
- }
1038
- return brush;
1039
- },
525
+ get: function () { return this.getBrush(KnownColor.Indigo); },
1040
526
  enumerable: true,
1041
527
  configurable: true
1042
528
  });
@@ -1045,16 +531,7 @@ var PdfBrushes = /** @class */ (function () {
1045
531
  * Gets the Ivory default brush.
1046
532
  * @public
1047
533
  */
1048
- get: function () {
1049
- var brush = null;
1050
- if (this.sBrushes.containsKey(KnownColor.Ivory)) {
1051
- brush = (this.sBrushes.getValue(KnownColor.Ivory));
1052
- }
1053
- if ((brush == null)) {
1054
- brush = this.getBrush(KnownColor.Ivory);
1055
- }
1056
- return brush;
1057
- },
534
+ get: function () { return this.getBrush(KnownColor.Ivory); },
1058
535
  enumerable: true,
1059
536
  configurable: true
1060
537
  });
@@ -1063,16 +540,7 @@ var PdfBrushes = /** @class */ (function () {
1063
540
  * Gets the Khaki default brush.
1064
541
  * @public
1065
542
  */
1066
- get: function () {
1067
- var brush = null;
1068
- if (this.sBrushes.containsKey(KnownColor.Khaki)) {
1069
- brush = (this.sBrushes.getValue(KnownColor.Khaki));
1070
- }
1071
- if ((brush == null)) {
1072
- brush = this.getBrush(KnownColor.Khaki);
1073
- }
1074
- return brush;
1075
- },
543
+ get: function () { return this.getBrush(KnownColor.Khaki); },
1076
544
  enumerable: true,
1077
545
  configurable: true
1078
546
  });
@@ -1081,16 +549,7 @@ var PdfBrushes = /** @class */ (function () {
1081
549
  * Gets the Lavender default brush.
1082
550
  * @public
1083
551
  */
1084
- get: function () {
1085
- var brush = null;
1086
- if (this.sBrushes.containsKey(KnownColor.Lavender)) {
1087
- brush = (this.sBrushes.getValue(KnownColor.Lavender));
1088
- }
1089
- if ((brush == null)) {
1090
- brush = this.getBrush(KnownColor.Lavender);
1091
- }
1092
- return brush;
1093
- },
552
+ get: function () { return this.getBrush(KnownColor.Lavender); },
1094
553
  enumerable: true,
1095
554
  configurable: true
1096
555
  });
@@ -1099,16 +558,7 @@ var PdfBrushes = /** @class */ (function () {
1099
558
  * Gets the LavenderBlush default brush.
1100
559
  * @public
1101
560
  */
1102
- get: function () {
1103
- var brush = null;
1104
- if (this.sBrushes.containsKey(KnownColor.LavenderBlush)) {
1105
- brush = (this.sBrushes.getValue(KnownColor.LavenderBlush));
1106
- }
1107
- if ((brush == null)) {
1108
- brush = this.getBrush(KnownColor.LavenderBlush);
1109
- }
1110
- return brush;
1111
- },
561
+ get: function () { return this.getBrush(KnownColor.LavenderBlush); },
1112
562
  enumerable: true,
1113
563
  configurable: true
1114
564
  });
@@ -1117,16 +567,7 @@ var PdfBrushes = /** @class */ (function () {
1117
567
  * Gets the LawnGreen default brush.
1118
568
  * @public
1119
569
  */
1120
- get: function () {
1121
- var brush = null;
1122
- if (this.sBrushes.containsKey(KnownColor.LawnGreen)) {
1123
- brush = (this.sBrushes.getValue(KnownColor.LawnGreen));
1124
- }
1125
- if ((brush == null)) {
1126
- brush = this.getBrush(KnownColor.LawnGreen);
1127
- }
1128
- return brush;
1129
- },
570
+ get: function () { return this.getBrush(KnownColor.LawnGreen); },
1130
571
  enumerable: true,
1131
572
  configurable: true
1132
573
  });
@@ -1135,16 +576,7 @@ var PdfBrushes = /** @class */ (function () {
1135
576
  * Gets the LemonChiffon default brush.
1136
577
  * @public
1137
578
  */
1138
- get: function () {
1139
- var brush = null;
1140
- if (this.sBrushes.containsKey(KnownColor.LemonChiffon)) {
1141
- brush = (this.sBrushes.getValue(KnownColor.LemonChiffon));
1142
- }
1143
- if ((brush == null)) {
1144
- brush = this.getBrush(KnownColor.LemonChiffon);
1145
- }
1146
- return brush;
1147
- },
579
+ get: function () { return this.getBrush(KnownColor.LemonChiffon); },
1148
580
  enumerable: true,
1149
581
  configurable: true
1150
582
  });
@@ -1153,16 +585,7 @@ var PdfBrushes = /** @class */ (function () {
1153
585
  * Gets the LightBlue default brush.
1154
586
  * @public
1155
587
  */
1156
- get: function () {
1157
- var brush = null;
1158
- if (this.sBrushes.containsKey(KnownColor.LightBlue)) {
1159
- brush = (this.sBrushes.getValue(KnownColor.LightBlue));
1160
- }
1161
- if ((brush == null)) {
1162
- brush = this.getBrush(KnownColor.LightBlue);
1163
- }
1164
- return brush;
1165
- },
588
+ get: function () { return this.getBrush(KnownColor.LightBlue); },
1166
589
  enumerable: true,
1167
590
  configurable: true
1168
591
  });
@@ -1171,16 +594,7 @@ var PdfBrushes = /** @class */ (function () {
1171
594
  * Gets the LightCoral default brush.
1172
595
  * @public
1173
596
  */
1174
- get: function () {
1175
- var brush = null;
1176
- if (this.sBrushes.containsKey(KnownColor.LightCoral)) {
1177
- brush = (this.sBrushes.getValue(KnownColor.LightCoral));
1178
- }
1179
- if ((brush == null)) {
1180
- brush = this.getBrush(KnownColor.LightCoral);
1181
- }
1182
- return brush;
1183
- },
597
+ get: function () { return this.getBrush(KnownColor.LightCoral); },
1184
598
  enumerable: true,
1185
599
  configurable: true
1186
600
  });
@@ -1189,16 +603,7 @@ var PdfBrushes = /** @class */ (function () {
1189
603
  * Gets the LightCyan default brush.
1190
604
  * @public
1191
605
  */
1192
- get: function () {
1193
- var brush = null;
1194
- if (this.sBrushes.containsKey(KnownColor.LightCyan)) {
1195
- brush = (this.sBrushes.getValue(KnownColor.LightCyan));
1196
- }
1197
- if ((brush == null)) {
1198
- brush = this.getBrush(KnownColor.LightCyan);
1199
- }
1200
- return brush;
1201
- },
606
+ get: function () { return this.getBrush(KnownColor.LightCyan); },
1202
607
  enumerable: true,
1203
608
  configurable: true
1204
609
  });
@@ -1207,16 +612,7 @@ var PdfBrushes = /** @class */ (function () {
1207
612
  * Gets the LightGoldenrodYellow default brush.
1208
613
  * @public
1209
614
  */
1210
- get: function () {
1211
- var brush = null;
1212
- if (this.sBrushes.containsKey(KnownColor.LightGoldenrodYellow)) {
1213
- brush = (this.sBrushes.getValue(KnownColor.LightGoldenrodYellow));
1214
- }
1215
- if ((brush == null)) {
1216
- brush = this.getBrush(KnownColor.LightGoldenrodYellow);
1217
- }
1218
- return brush;
1219
- },
615
+ get: function () { return this.getBrush(KnownColor.LightGoldenrodYellow); },
1220
616
  enumerable: true,
1221
617
  configurable: true
1222
618
  });
@@ -1225,16 +621,7 @@ var PdfBrushes = /** @class */ (function () {
1225
621
  * Gets the LightGray default brush.
1226
622
  * @public
1227
623
  */
1228
- get: function () {
1229
- var brush = null;
1230
- if (this.sBrushes.containsKey(KnownColor.LightGray)) {
1231
- brush = (this.sBrushes.getValue(KnownColor.LightGray));
1232
- }
1233
- if ((brush == null)) {
1234
- brush = this.getBrush(KnownColor.LightGray);
1235
- }
1236
- return brush;
1237
- },
624
+ get: function () { return this.getBrush(KnownColor.LightGray); },
1238
625
  enumerable: true,
1239
626
  configurable: true
1240
627
  });
@@ -1243,16 +630,7 @@ var PdfBrushes = /** @class */ (function () {
1243
630
  * Gets the LightGreen default brush.
1244
631
  * @public
1245
632
  */
1246
- get: function () {
1247
- var brush = null;
1248
- if (this.sBrushes.containsKey(KnownColor.LightGreen)) {
1249
- brush = (this.sBrushes.getValue(KnownColor.LightGreen));
1250
- }
1251
- if ((brush == null)) {
1252
- brush = this.getBrush(KnownColor.LightGreen);
1253
- }
1254
- return brush;
1255
- },
633
+ get: function () { return this.getBrush(KnownColor.LightGreen); },
1256
634
  enumerable: true,
1257
635
  configurable: true
1258
636
  });
@@ -1261,16 +639,7 @@ var PdfBrushes = /** @class */ (function () {
1261
639
  * Gets the LightPink default brush.
1262
640
  * @public
1263
641
  */
1264
- get: function () {
1265
- var brush = null;
1266
- if (this.sBrushes.containsKey(KnownColor.LightPink)) {
1267
- brush = (this.sBrushes.getValue(KnownColor.LightPink));
1268
- }
1269
- if ((brush == null)) {
1270
- brush = this.getBrush(KnownColor.LightPink);
1271
- }
1272
- return brush;
1273
- },
642
+ get: function () { return this.getBrush(KnownColor.LightPink); },
1274
643
  enumerable: true,
1275
644
  configurable: true
1276
645
  });
@@ -1279,16 +648,7 @@ var PdfBrushes = /** @class */ (function () {
1279
648
  * Gets the LightSalmon default brush.
1280
649
  * @public
1281
650
  */
1282
- get: function () {
1283
- var brush = null;
1284
- if (this.sBrushes.containsKey(KnownColor.LightSalmon)) {
1285
- brush = (this.sBrushes.getValue(KnownColor.LightSalmon));
1286
- }
1287
- if ((brush == null)) {
1288
- brush = this.getBrush(KnownColor.LightSalmon);
1289
- }
1290
- return brush;
1291
- },
651
+ get: function () { return this.getBrush(KnownColor.LightSalmon); },
1292
652
  enumerable: true,
1293
653
  configurable: true
1294
654
  });
@@ -1297,16 +657,7 @@ var PdfBrushes = /** @class */ (function () {
1297
657
  * Gets the LightSeaGreen default brush.
1298
658
  * @public
1299
659
  */
1300
- get: function () {
1301
- var brush = null;
1302
- if (this.sBrushes.containsKey(KnownColor.LightSeaGreen)) {
1303
- brush = (this.sBrushes.getValue(KnownColor.LightSeaGreen));
1304
- }
1305
- if ((brush == null)) {
1306
- brush = this.getBrush(KnownColor.LightSeaGreen);
1307
- }
1308
- return brush;
1309
- },
660
+ get: function () { return this.getBrush(KnownColor.LightSeaGreen); },
1310
661
  enumerable: true,
1311
662
  configurable: true
1312
663
  });
@@ -1315,16 +666,7 @@ var PdfBrushes = /** @class */ (function () {
1315
666
  * Gets the LightSkyBlue default brush.
1316
667
  * @public
1317
668
  */
1318
- get: function () {
1319
- var brush = null;
1320
- if (this.sBrushes.containsKey(KnownColor.LightSkyBlue)) {
1321
- brush = (this.sBrushes.getValue(KnownColor.LightSkyBlue));
1322
- }
1323
- if ((brush == null)) {
1324
- brush = this.getBrush(KnownColor.LightSkyBlue);
1325
- }
1326
- return brush;
1327
- },
669
+ get: function () { return this.getBrush(KnownColor.LightSkyBlue); },
1328
670
  enumerable: true,
1329
671
  configurable: true
1330
672
  });
@@ -1333,16 +675,7 @@ var PdfBrushes = /** @class */ (function () {
1333
675
  * Gets the LightSlateGray default brush.
1334
676
  * @public
1335
677
  */
1336
- get: function () {
1337
- var brush = null;
1338
- if (this.sBrushes.containsKey(KnownColor.LightSlateGray)) {
1339
- brush = (this.sBrushes.getValue(KnownColor.LightSlateGray));
1340
- }
1341
- if ((brush == null)) {
1342
- brush = this.getBrush(KnownColor.LightSlateGray);
1343
- }
1344
- return brush;
1345
- },
678
+ get: function () { return this.getBrush(KnownColor.LightSlateGray); },
1346
679
  enumerable: true,
1347
680
  configurable: true
1348
681
  });
@@ -1351,16 +684,7 @@ var PdfBrushes = /** @class */ (function () {
1351
684
  * Gets the LightSteelBlue default brush.
1352
685
  * @public
1353
686
  */
1354
- get: function () {
1355
- var brush = null;
1356
- if (this.sBrushes.containsKey(KnownColor.LightSteelBlue)) {
1357
- brush = (this.sBrushes.getValue(KnownColor.LightSteelBlue));
1358
- }
1359
- if ((brush == null)) {
1360
- brush = this.getBrush(KnownColor.LightSteelBlue);
1361
- }
1362
- return brush;
1363
- },
687
+ get: function () { return this.getBrush(KnownColor.LightSteelBlue); },
1364
688
  enumerable: true,
1365
689
  configurable: true
1366
690
  });
@@ -1369,16 +693,7 @@ var PdfBrushes = /** @class */ (function () {
1369
693
  * Gets the LightYellow default brush.
1370
694
  * @public
1371
695
  */
1372
- get: function () {
1373
- var brush = null;
1374
- if (this.sBrushes.containsKey(KnownColor.LightYellow)) {
1375
- brush = (this.sBrushes.getValue(KnownColor.LightYellow));
1376
- }
1377
- if ((brush == null)) {
1378
- brush = this.getBrush(KnownColor.LightYellow);
1379
- }
1380
- return brush;
1381
- },
696
+ get: function () { return this.getBrush(KnownColor.LightYellow); },
1382
697
  enumerable: true,
1383
698
  configurable: true
1384
699
  });
@@ -1387,16 +702,7 @@ var PdfBrushes = /** @class */ (function () {
1387
702
  * Gets the Lime default brush.
1388
703
  * @public
1389
704
  */
1390
- get: function () {
1391
- var brush = null;
1392
- if (this.sBrushes.containsKey(KnownColor.Lime)) {
1393
- brush = (this.sBrushes.getValue(KnownColor.Lime));
1394
- }
1395
- if ((brush == null)) {
1396
- brush = this.getBrush(KnownColor.Lime);
1397
- }
1398
- return brush;
1399
- },
705
+ get: function () { return this.getBrush(KnownColor.Lime); },
1400
706
  enumerable: true,
1401
707
  configurable: true
1402
708
  });
@@ -1405,16 +711,7 @@ var PdfBrushes = /** @class */ (function () {
1405
711
  * Gets the LimeGreen default brush.
1406
712
  * @public
1407
713
  */
1408
- get: function () {
1409
- var brush = null;
1410
- if (this.sBrushes.containsKey(KnownColor.LimeGreen)) {
1411
- brush = (this.sBrushes.getValue(KnownColor.LimeGreen));
1412
- }
1413
- if ((brush == null)) {
1414
- brush = this.getBrush(KnownColor.LimeGreen);
1415
- }
1416
- return brush;
1417
- },
714
+ get: function () { return this.getBrush(KnownColor.LimeGreen); },
1418
715
  enumerable: true,
1419
716
  configurable: true
1420
717
  });
@@ -1423,16 +720,7 @@ var PdfBrushes = /** @class */ (function () {
1423
720
  * Gets the Linen default brush.
1424
721
  * @public
1425
722
  */
1426
- get: function () {
1427
- var brush = null;
1428
- if (this.sBrushes.containsKey(KnownColor.Linen)) {
1429
- brush = (this.sBrushes.getValue(KnownColor.Linen));
1430
- }
1431
- if ((brush == null)) {
1432
- brush = this.getBrush(KnownColor.Linen);
1433
- }
1434
- return brush;
1435
- },
723
+ get: function () { return this.getBrush(KnownColor.Linen); },
1436
724
  enumerable: true,
1437
725
  configurable: true
1438
726
  });
@@ -1441,16 +729,7 @@ var PdfBrushes = /** @class */ (function () {
1441
729
  * Gets the Magenta default brush.
1442
730
  * @public
1443
731
  */
1444
- get: function () {
1445
- var brush = null;
1446
- if (this.sBrushes.containsKey(KnownColor.Magenta)) {
1447
- brush = (this.sBrushes.getValue(KnownColor.Magenta));
1448
- }
1449
- if ((brush == null)) {
1450
- brush = this.getBrush(KnownColor.Magenta);
1451
- }
1452
- return brush;
1453
- },
732
+ get: function () { return this.getBrush(KnownColor.Magenta); },
1454
733
  enumerable: true,
1455
734
  configurable: true
1456
735
  });
@@ -1459,16 +738,7 @@ var PdfBrushes = /** @class */ (function () {
1459
738
  * Gets the Maroon default brush.
1460
739
  * @public
1461
740
  */
1462
- get: function () {
1463
- var brush = null;
1464
- if (this.sBrushes.containsKey(KnownColor.Maroon)) {
1465
- brush = (this.sBrushes.getValue(KnownColor.Maroon));
1466
- }
1467
- if ((brush == null)) {
1468
- brush = this.getBrush(KnownColor.Maroon);
1469
- }
1470
- return brush;
1471
- },
741
+ get: function () { return this.getBrush(KnownColor.Maroon); },
1472
742
  enumerable: true,
1473
743
  configurable: true
1474
744
  });
@@ -1477,16 +747,7 @@ var PdfBrushes = /** @class */ (function () {
1477
747
  * Gets the MediumAquamarine default brush.
1478
748
  * @public
1479
749
  */
1480
- get: function () {
1481
- var brush = null;
1482
- if (this.sBrushes.containsKey(KnownColor.MediumAquamarine)) {
1483
- brush = (this.sBrushes.getValue(KnownColor.MediumAquamarine));
1484
- }
1485
- if ((brush == null)) {
1486
- brush = this.getBrush(KnownColor.MediumAquamarine);
1487
- }
1488
- return brush;
1489
- },
750
+ get: function () { return this.getBrush(KnownColor.MediumAquamarine); },
1490
751
  enumerable: true,
1491
752
  configurable: true
1492
753
  });
@@ -1495,16 +756,7 @@ var PdfBrushes = /** @class */ (function () {
1495
756
  * Gets the MediumBlue default brush.
1496
757
  * @public
1497
758
  */
1498
- get: function () {
1499
- var brush = null;
1500
- if (this.sBrushes.containsKey(KnownColor.MediumBlue)) {
1501
- brush = (this.sBrushes.getValue(KnownColor.MediumBlue));
1502
- }
1503
- if ((brush == null)) {
1504
- brush = this.getBrush(KnownColor.MediumBlue);
1505
- }
1506
- return brush;
1507
- },
759
+ get: function () { return this.getBrush(KnownColor.MediumBlue); },
1508
760
  enumerable: true,
1509
761
  configurable: true
1510
762
  });
@@ -1513,16 +765,7 @@ var PdfBrushes = /** @class */ (function () {
1513
765
  * Gets the MediumOrchid default brush.
1514
766
  * @public
1515
767
  */
1516
- get: function () {
1517
- var brush = null;
1518
- if (this.sBrushes.containsKey(KnownColor.MediumOrchid)) {
1519
- brush = (this.sBrushes.getValue(KnownColor.MediumOrchid));
1520
- }
1521
- if ((brush == null)) {
1522
- brush = this.getBrush(KnownColor.MediumOrchid);
1523
- }
1524
- return brush;
1525
- },
768
+ get: function () { return this.getBrush(KnownColor.MediumOrchid); },
1526
769
  enumerable: true,
1527
770
  configurable: true
1528
771
  });
@@ -1531,16 +774,7 @@ var PdfBrushes = /** @class */ (function () {
1531
774
  * Gets the MediumPurple default brush.
1532
775
  * @public
1533
776
  */
1534
- get: function () {
1535
- var brush = null;
1536
- if (this.sBrushes.containsKey(KnownColor.MediumPurple)) {
1537
- brush = (this.sBrushes.getValue(KnownColor.MediumPurple));
1538
- }
1539
- if ((brush == null)) {
1540
- brush = this.getBrush(KnownColor.MediumPurple);
1541
- }
1542
- return brush;
1543
- },
777
+ get: function () { return this.getBrush(KnownColor.MediumPurple); },
1544
778
  enumerable: true,
1545
779
  configurable: true
1546
780
  });
@@ -1549,16 +783,7 @@ var PdfBrushes = /** @class */ (function () {
1549
783
  * Gets the MediumSeaGreen default brush.
1550
784
  * @public
1551
785
  */
1552
- get: function () {
1553
- var brush = null;
1554
- if (this.sBrushes.containsKey(KnownColor.MediumSeaGreen)) {
1555
- brush = (this.sBrushes.getValue(KnownColor.MediumSeaGreen));
1556
- }
1557
- if ((brush == null)) {
1558
- brush = this.getBrush(KnownColor.MediumSeaGreen);
1559
- }
1560
- return brush;
1561
- },
786
+ get: function () { return this.getBrush(KnownColor.MediumSeaGreen); },
1562
787
  enumerable: true,
1563
788
  configurable: true
1564
789
  });
@@ -1567,16 +792,7 @@ var PdfBrushes = /** @class */ (function () {
1567
792
  * Gets the MediumSlateBlue default brush.
1568
793
  * @public
1569
794
  */
1570
- get: function () {
1571
- var brush = null;
1572
- if (this.sBrushes.containsKey(KnownColor.MediumSlateBlue)) {
1573
- brush = (this.sBrushes.getValue(KnownColor.MediumSlateBlue));
1574
- }
1575
- if ((brush == null)) {
1576
- brush = this.getBrush(KnownColor.MediumSlateBlue);
1577
- }
1578
- return brush;
1579
- },
795
+ get: function () { return this.getBrush(KnownColor.MediumSlateBlue); },
1580
796
  enumerable: true,
1581
797
  configurable: true
1582
798
  });
@@ -1585,16 +801,7 @@ var PdfBrushes = /** @class */ (function () {
1585
801
  * Gets the MediumSpringGreen default brush.
1586
802
  * @public
1587
803
  */
1588
- get: function () {
1589
- var brush = null;
1590
- if (this.sBrushes.containsKey(KnownColor.MediumSpringGreen)) {
1591
- brush = (this.sBrushes.getValue(KnownColor.MediumSpringGreen));
1592
- }
1593
- if ((brush == null)) {
1594
- brush = this.getBrush(KnownColor.MediumSpringGreen);
1595
- }
1596
- return brush;
1597
- },
804
+ get: function () { return this.getBrush(KnownColor.MediumSpringGreen); },
1598
805
  enumerable: true,
1599
806
  configurable: true
1600
807
  });
@@ -1603,16 +810,7 @@ var PdfBrushes = /** @class */ (function () {
1603
810
  * Gets the MediumTurquoise default brush.
1604
811
  * @public
1605
812
  */
1606
- get: function () {
1607
- var brush = null;
1608
- if (this.sBrushes.containsKey(KnownColor.MediumTurquoise)) {
1609
- brush = (this.sBrushes.getValue(KnownColor.MediumTurquoise));
1610
- }
1611
- if ((brush == null)) {
1612
- brush = this.getBrush(KnownColor.MediumTurquoise);
1613
- }
1614
- return brush;
1615
- },
813
+ get: function () { return this.getBrush(KnownColor.MediumTurquoise); },
1616
814
  enumerable: true,
1617
815
  configurable: true
1618
816
  });
@@ -1621,16 +819,7 @@ var PdfBrushes = /** @class */ (function () {
1621
819
  * Gets the MediumVioletRed default brush.
1622
820
  * @public
1623
821
  */
1624
- get: function () {
1625
- var brush = null;
1626
- if (this.sBrushes.containsKey(KnownColor.MediumVioletRed)) {
1627
- brush = (this.sBrushes.getValue(KnownColor.MediumVioletRed));
1628
- }
1629
- if ((brush == null)) {
1630
- brush = this.getBrush(KnownColor.MediumVioletRed);
1631
- }
1632
- return brush;
1633
- },
822
+ get: function () { return this.getBrush(KnownColor.MediumVioletRed); },
1634
823
  enumerable: true,
1635
824
  configurable: true
1636
825
  });
@@ -1639,16 +828,7 @@ var PdfBrushes = /** @class */ (function () {
1639
828
  * Gets the MidnightBlue default brush.
1640
829
  * @public
1641
830
  */
1642
- get: function () {
1643
- var brush = null;
1644
- if (this.sBrushes.containsKey(KnownColor.MidnightBlue)) {
1645
- brush = (this.sBrushes.getValue(KnownColor.MidnightBlue));
1646
- }
1647
- if ((brush == null)) {
1648
- brush = this.getBrush(KnownColor.MidnightBlue);
1649
- }
1650
- return brush;
1651
- },
831
+ get: function () { return this.getBrush(KnownColor.MidnightBlue); },
1652
832
  enumerable: true,
1653
833
  configurable: true
1654
834
  });
@@ -1657,16 +837,7 @@ var PdfBrushes = /** @class */ (function () {
1657
837
  * Gets the MintCream default brush.
1658
838
  * @public
1659
839
  */
1660
- get: function () {
1661
- var brush = null;
1662
- if (this.sBrushes.containsKey(KnownColor.MintCream)) {
1663
- brush = (this.sBrushes.getValue(KnownColor.MintCream));
1664
- }
1665
- if ((brush == null)) {
1666
- brush = this.getBrush(KnownColor.MintCream);
1667
- }
1668
- return brush;
1669
- },
840
+ get: function () { return this.getBrush(KnownColor.MintCream); },
1670
841
  enumerable: true,
1671
842
  configurable: true
1672
843
  });
@@ -1675,16 +846,7 @@ var PdfBrushes = /** @class */ (function () {
1675
846
  * Gets the MistyRose default brush.
1676
847
  * @public
1677
848
  */
1678
- get: function () {
1679
- var brush = null;
1680
- if (this.sBrushes.containsKey(KnownColor.MistyRose)) {
1681
- brush = (this.sBrushes.getValue(KnownColor.MistyRose));
1682
- }
1683
- if ((brush == null)) {
1684
- brush = this.getBrush(KnownColor.MistyRose);
1685
- }
1686
- return brush;
1687
- },
849
+ get: function () { return this.getBrush(KnownColor.MistyRose); },
1688
850
  enumerable: true,
1689
851
  configurable: true
1690
852
  });
@@ -1693,16 +855,7 @@ var PdfBrushes = /** @class */ (function () {
1693
855
  * Gets the Moccasin default brush.
1694
856
  * @public
1695
857
  */
1696
- get: function () {
1697
- var brush = null;
1698
- if (this.sBrushes.containsKey(KnownColor.Moccasin)) {
1699
- brush = (this.sBrushes.getValue(KnownColor.Moccasin));
1700
- }
1701
- if ((brush == null)) {
1702
- brush = this.getBrush(KnownColor.Moccasin);
1703
- }
1704
- return brush;
1705
- },
858
+ get: function () { return this.getBrush(KnownColor.Moccasin); },
1706
859
  enumerable: true,
1707
860
  configurable: true
1708
861
  });
@@ -1711,16 +864,7 @@ var PdfBrushes = /** @class */ (function () {
1711
864
  * Gets the NavajoWhite default brush.
1712
865
  * @public
1713
866
  */
1714
- get: function () {
1715
- var brush = null;
1716
- if (this.sBrushes.containsKey(KnownColor.NavajoWhite)) {
1717
- brush = (this.sBrushes.getValue(KnownColor.NavajoWhite));
1718
- }
1719
- if ((brush == null)) {
1720
- brush = this.getBrush(KnownColor.NavajoWhite);
1721
- }
1722
- return brush;
1723
- },
867
+ get: function () { return this.getBrush(KnownColor.NavajoWhite); },
1724
868
  enumerable: true,
1725
869
  configurable: true
1726
870
  });
@@ -1729,16 +873,7 @@ var PdfBrushes = /** @class */ (function () {
1729
873
  * Gets the Navy default brush.
1730
874
  * @public
1731
875
  */
1732
- get: function () {
1733
- var brush = null;
1734
- if (this.sBrushes.containsKey(KnownColor.Navy)) {
1735
- brush = (this.sBrushes.getValue(KnownColor.Navy));
1736
- }
1737
- if ((brush == null)) {
1738
- brush = this.getBrush(KnownColor.Navy);
1739
- }
1740
- return brush;
1741
- },
876
+ get: function () { return this.getBrush(KnownColor.Navy); },
1742
877
  enumerable: true,
1743
878
  configurable: true
1744
879
  });
@@ -1747,16 +882,7 @@ var PdfBrushes = /** @class */ (function () {
1747
882
  * Gets the OldLace default brush.
1748
883
  * @public
1749
884
  */
1750
- get: function () {
1751
- var brush = null;
1752
- if (this.sBrushes.containsKey(KnownColor.OldLace)) {
1753
- brush = (this.sBrushes.getValue(KnownColor.OldLace));
1754
- }
1755
- if ((brush == null)) {
1756
- brush = this.getBrush(KnownColor.OldLace);
1757
- }
1758
- return brush;
1759
- },
885
+ get: function () { return this.getBrush(KnownColor.OldLace); },
1760
886
  enumerable: true,
1761
887
  configurable: true
1762
888
  });
@@ -1765,16 +891,7 @@ var PdfBrushes = /** @class */ (function () {
1765
891
  * Gets the Olive default brush.
1766
892
  * @public
1767
893
  */
1768
- get: function () {
1769
- var brush = null;
1770
- if (this.sBrushes.containsKey(KnownColor.Olive)) {
1771
- brush = (this.sBrushes.getValue(KnownColor.Olive));
1772
- }
1773
- if ((brush == null)) {
1774
- brush = this.getBrush(KnownColor.Olive);
1775
- }
1776
- return brush;
1777
- },
894
+ get: function () { return this.getBrush(KnownColor.Olive); },
1778
895
  enumerable: true,
1779
896
  configurable: true
1780
897
  });
@@ -1783,16 +900,7 @@ var PdfBrushes = /** @class */ (function () {
1783
900
  * Gets the OliveDrab default brush.
1784
901
  * @public
1785
902
  */
1786
- get: function () {
1787
- var brush = null;
1788
- if (this.sBrushes.containsKey(KnownColor.OliveDrab)) {
1789
- brush = (this.sBrushes.getValue(KnownColor.OliveDrab));
1790
- }
1791
- if ((brush == null)) {
1792
- brush = this.getBrush(KnownColor.OliveDrab);
1793
- }
1794
- return brush;
1795
- },
903
+ get: function () { return this.getBrush(KnownColor.OliveDrab); },
1796
904
  enumerable: true,
1797
905
  configurable: true
1798
906
  });
@@ -1801,16 +909,7 @@ var PdfBrushes = /** @class */ (function () {
1801
909
  * Gets the Orange default brush.
1802
910
  * @public
1803
911
  */
1804
- get: function () {
1805
- var brush = null;
1806
- if (this.sBrushes.containsKey(KnownColor.Orange)) {
1807
- brush = (this.sBrushes.getValue(KnownColor.Orange));
1808
- }
1809
- if ((brush == null)) {
1810
- brush = this.getBrush(KnownColor.Orange);
1811
- }
1812
- return brush;
1813
- },
912
+ get: function () { return this.getBrush(KnownColor.Orange); },
1814
913
  enumerable: true,
1815
914
  configurable: true
1816
915
  });
@@ -1818,17 +917,8 @@ var PdfBrushes = /** @class */ (function () {
1818
917
  /**
1819
918
  * Gets the OrangeRed default brush.
1820
919
  * @public
1821
- */
1822
- get: function () {
1823
- var brush = null;
1824
- if (this.sBrushes.containsKey(KnownColor.OrangeRed)) {
1825
- brush = (this.sBrushes.getValue(KnownColor.OrangeRed));
1826
- }
1827
- if ((brush == null)) {
1828
- brush = this.getBrush(KnownColor.OrangeRed);
1829
- }
1830
- return brush;
1831
- },
920
+ */
921
+ get: function () { return this.getBrush(KnownColor.OrangeRed); },
1832
922
  enumerable: true,
1833
923
  configurable: true
1834
924
  });
@@ -1837,16 +927,7 @@ var PdfBrushes = /** @class */ (function () {
1837
927
  * Gets the Orchid default brush.
1838
928
  * @public
1839
929
  */
1840
- get: function () {
1841
- var brush = null;
1842
- if (this.sBrushes.containsKey(KnownColor.Orchid)) {
1843
- brush = (this.sBrushes.getValue(KnownColor.Orchid));
1844
- }
1845
- if ((brush == null)) {
1846
- brush = this.getBrush(KnownColor.Orchid);
1847
- }
1848
- return brush;
1849
- },
930
+ get: function () { return this.getBrush(KnownColor.Orchid); },
1850
931
  enumerable: true,
1851
932
  configurable: true
1852
933
  });
@@ -1855,16 +936,7 @@ var PdfBrushes = /** @class */ (function () {
1855
936
  * Gets the PaleGoldenrod default brush.
1856
937
  * @public
1857
938
  */
1858
- get: function () {
1859
- var brush = null;
1860
- if (this.sBrushes.containsKey(KnownColor.PaleGoldenrod)) {
1861
- brush = (this.sBrushes.getValue(KnownColor.PaleGoldenrod));
1862
- }
1863
- if ((brush == null)) {
1864
- brush = this.getBrush(KnownColor.PaleGoldenrod);
1865
- }
1866
- return brush;
1867
- },
939
+ get: function () { return this.getBrush(KnownColor.PaleGoldenrod); },
1868
940
  enumerable: true,
1869
941
  configurable: true
1870
942
  });
@@ -1873,16 +945,7 @@ var PdfBrushes = /** @class */ (function () {
1873
945
  * Gets the PaleGreen default brush.
1874
946
  * @public
1875
947
  */
1876
- get: function () {
1877
- var brush = null;
1878
- if (this.sBrushes.containsKey(KnownColor.PaleGreen)) {
1879
- brush = (this.sBrushes.getValue(KnownColor.PaleGreen));
1880
- }
1881
- if ((brush == null)) {
1882
- brush = this.getBrush(KnownColor.PaleGreen);
1883
- }
1884
- return brush;
1885
- },
948
+ get: function () { return this.getBrush(KnownColor.PaleGreen); },
1886
949
  enumerable: true,
1887
950
  configurable: true
1888
951
  });
@@ -1891,16 +954,7 @@ var PdfBrushes = /** @class */ (function () {
1891
954
  * Gets the PaleTurquoise default brush.
1892
955
  * @public
1893
956
  */
1894
- get: function () {
1895
- var brush = null;
1896
- if (this.sBrushes.containsKey(KnownColor.PaleTurquoise)) {
1897
- brush = (this.sBrushes.getValue(KnownColor.PaleTurquoise));
1898
- }
1899
- if ((brush == null)) {
1900
- brush = this.getBrush(KnownColor.PaleTurquoise);
1901
- }
1902
- return brush;
1903
- },
957
+ get: function () { return this.getBrush(KnownColor.PaleTurquoise); },
1904
958
  enumerable: true,
1905
959
  configurable: true
1906
960
  });
@@ -1909,16 +963,7 @@ var PdfBrushes = /** @class */ (function () {
1909
963
  * Gets the PaleVioletRed default brush.
1910
964
  * @public
1911
965
  */
1912
- get: function () {
1913
- var brush = null;
1914
- if (this.sBrushes.containsKey(KnownColor.PaleVioletRed)) {
1915
- brush = (this.sBrushes.getValue(KnownColor.PaleVioletRed));
1916
- }
1917
- if ((brush == null)) {
1918
- brush = this.getBrush(KnownColor.PaleVioletRed);
1919
- }
1920
- return brush;
1921
- },
966
+ get: function () { return this.getBrush(KnownColor.PaleVioletRed); },
1922
967
  enumerable: true,
1923
968
  configurable: true
1924
969
  });
@@ -1927,16 +972,7 @@ var PdfBrushes = /** @class */ (function () {
1927
972
  * Gets the PapayaWhip default brush.
1928
973
  * @public
1929
974
  */
1930
- get: function () {
1931
- var brush = null;
1932
- if (this.sBrushes.containsKey(KnownColor.PapayaWhip)) {
1933
- brush = (this.sBrushes.getValue(KnownColor.PapayaWhip));
1934
- }
1935
- if ((brush == null)) {
1936
- brush = this.getBrush(KnownColor.PapayaWhip);
1937
- }
1938
- return brush;
1939
- },
975
+ get: function () { return this.getBrush(KnownColor.PapayaWhip); },
1940
976
  enumerable: true,
1941
977
  configurable: true
1942
978
  });
@@ -1945,16 +981,7 @@ var PdfBrushes = /** @class */ (function () {
1945
981
  * Gets the PeachPuff default brush.
1946
982
  * @public
1947
983
  */
1948
- get: function () {
1949
- var brush = null;
1950
- if (this.sBrushes.containsKey(KnownColor.PeachPuff)) {
1951
- brush = (this.sBrushes.getValue(KnownColor.PeachPuff));
1952
- }
1953
- if ((brush == null)) {
1954
- brush = this.getBrush(KnownColor.PeachPuff);
1955
- }
1956
- return brush;
1957
- },
984
+ get: function () { return this.getBrush(KnownColor.PeachPuff); },
1958
985
  enumerable: true,
1959
986
  configurable: true
1960
987
  });
@@ -1963,16 +990,7 @@ var PdfBrushes = /** @class */ (function () {
1963
990
  * Gets the Peru default brush.
1964
991
  * @public
1965
992
  */
1966
- get: function () {
1967
- var brush = null;
1968
- if (this.sBrushes.containsKey(KnownColor.Peru)) {
1969
- brush = (this.sBrushes.getValue(KnownColor.Peru));
1970
- }
1971
- if ((brush == null)) {
1972
- brush = this.getBrush(KnownColor.Peru);
1973
- }
1974
- return brush;
1975
- },
993
+ get: function () { return this.getBrush(KnownColor.Peru); },
1976
994
  enumerable: true,
1977
995
  configurable: true
1978
996
  });
@@ -1981,16 +999,7 @@ var PdfBrushes = /** @class */ (function () {
1981
999
  * Gets the Pink default brush.
1982
1000
  * @public
1983
1001
  */
1984
- get: function () {
1985
- var brush = null;
1986
- if (this.sBrushes.containsKey(KnownColor.Pink)) {
1987
- brush = (this.sBrushes.getValue(KnownColor.Pink));
1988
- }
1989
- if ((brush == null)) {
1990
- brush = this.getBrush(KnownColor.Pink);
1991
- }
1992
- return brush;
1993
- },
1002
+ get: function () { return this.getBrush(KnownColor.Pink); },
1994
1003
  enumerable: true,
1995
1004
  configurable: true
1996
1005
  });
@@ -1999,16 +1008,7 @@ var PdfBrushes = /** @class */ (function () {
1999
1008
  * Gets the Plum default brush.
2000
1009
  * @public
2001
1010
  */
2002
- get: function () {
2003
- var brush = null;
2004
- if (this.sBrushes.containsKey(KnownColor.Plum)) {
2005
- brush = (this.sBrushes.getValue(KnownColor.Plum));
2006
- }
2007
- if ((brush == null)) {
2008
- brush = this.getBrush(KnownColor.Plum);
2009
- }
2010
- return brush;
2011
- },
1011
+ get: function () { return this.getBrush(KnownColor.Plum); },
2012
1012
  enumerable: true,
2013
1013
  configurable: true
2014
1014
  });
@@ -2017,16 +1017,7 @@ var PdfBrushes = /** @class */ (function () {
2017
1017
  * Gets the PowderBlue default brush.
2018
1018
  * @public
2019
1019
  */
2020
- get: function () {
2021
- var brush = null;
2022
- if (this.sBrushes.containsKey(KnownColor.PowderBlue)) {
2023
- brush = (this.sBrushes.getValue(KnownColor.PowderBlue));
2024
- }
2025
- if ((brush == null)) {
2026
- brush = this.getBrush(KnownColor.PowderBlue);
2027
- }
2028
- return brush;
2029
- },
1020
+ get: function () { return this.getBrush(KnownColor.PowderBlue); },
2030
1021
  enumerable: true,
2031
1022
  configurable: true
2032
1023
  });
@@ -2035,16 +1026,7 @@ var PdfBrushes = /** @class */ (function () {
2035
1026
  * Gets the Purple default brush.
2036
1027
  * @public
2037
1028
  */
2038
- get: function () {
2039
- var brush = null;
2040
- if (this.sBrushes.containsKey(KnownColor.Purple)) {
2041
- brush = (this.sBrushes.getValue(KnownColor.Purple));
2042
- }
2043
- if ((brush == null)) {
2044
- brush = this.getBrush(KnownColor.Purple);
2045
- }
2046
- return brush;
2047
- },
1029
+ get: function () { return this.getBrush(KnownColor.Purple); },
2048
1030
  enumerable: true,
2049
1031
  configurable: true
2050
1032
  });
@@ -2053,16 +1035,7 @@ var PdfBrushes = /** @class */ (function () {
2053
1035
  * Gets the Red default brush.
2054
1036
  * @public
2055
1037
  */
2056
- get: function () {
2057
- var brush = null;
2058
- if (this.sBrushes.containsKey(KnownColor.Red)) {
2059
- brush = (this.sBrushes.getValue(KnownColor.Red));
2060
- }
2061
- if ((brush == null)) {
2062
- brush = this.getBrush(KnownColor.Red);
2063
- }
2064
- return brush;
2065
- },
1038
+ get: function () { return this.getBrush(KnownColor.Red); },
2066
1039
  enumerable: true,
2067
1040
  configurable: true
2068
1041
  });
@@ -2071,16 +1044,7 @@ var PdfBrushes = /** @class */ (function () {
2071
1044
  * Gets the RosyBrown default brush.
2072
1045
  * @public
2073
1046
  */
2074
- get: function () {
2075
- var brush = null;
2076
- if (this.sBrushes.containsKey(KnownColor.RosyBrown)) {
2077
- brush = (this.sBrushes.getValue(KnownColor.RosyBrown));
2078
- }
2079
- if ((brush == null)) {
2080
- brush = this.getBrush(KnownColor.RosyBrown);
2081
- }
2082
- return brush;
2083
- },
1047
+ get: function () { return this.getBrush(KnownColor.RosyBrown); },
2084
1048
  enumerable: true,
2085
1049
  configurable: true
2086
1050
  });
@@ -2089,16 +1053,7 @@ var PdfBrushes = /** @class */ (function () {
2089
1053
  * Gets the RoyalBlue default brush.
2090
1054
  * @public
2091
1055
  */
2092
- get: function () {
2093
- var brush = null;
2094
- if (this.sBrushes.containsKey(KnownColor.RoyalBlue)) {
2095
- brush = (this.sBrushes.getValue(KnownColor.RoyalBlue));
2096
- }
2097
- if ((brush == null)) {
2098
- brush = this.getBrush(KnownColor.RoyalBlue);
2099
- }
2100
- return brush;
2101
- },
1056
+ get: function () { return this.getBrush(KnownColor.RoyalBlue); },
2102
1057
  enumerable: true,
2103
1058
  configurable: true
2104
1059
  });
@@ -2107,16 +1062,7 @@ var PdfBrushes = /** @class */ (function () {
2107
1062
  * Gets the SaddleBrown default brush.
2108
1063
  * @public
2109
1064
  */
2110
- get: function () {
2111
- var brush = null;
2112
- if (this.sBrushes.containsKey(KnownColor.SaddleBrown)) {
2113
- brush = (this.sBrushes.getValue(KnownColor.SaddleBrown));
2114
- }
2115
- if ((brush == null)) {
2116
- brush = this.getBrush(KnownColor.SaddleBrown);
2117
- }
2118
- return brush;
2119
- },
1065
+ get: function () { return this.getBrush(KnownColor.SaddleBrown); },
2120
1066
  enumerable: true,
2121
1067
  configurable: true
2122
1068
  });
@@ -2125,16 +1071,7 @@ var PdfBrushes = /** @class */ (function () {
2125
1071
  * Gets the Salmon default brush.
2126
1072
  * @public
2127
1073
  */
2128
- get: function () {
2129
- var brush = null;
2130
- if (this.sBrushes.containsKey(KnownColor.Salmon)) {
2131
- brush = (this.sBrushes.getValue(KnownColor.Salmon));
2132
- }
2133
- if ((brush == null)) {
2134
- brush = this.getBrush(KnownColor.Salmon);
2135
- }
2136
- return brush;
2137
- },
1074
+ get: function () { return this.getBrush(KnownColor.Salmon); },
2138
1075
  enumerable: true,
2139
1076
  configurable: true
2140
1077
  });
@@ -2143,16 +1080,7 @@ var PdfBrushes = /** @class */ (function () {
2143
1080
  * Gets the SandyBrown default brush.
2144
1081
  * @public
2145
1082
  */
2146
- get: function () {
2147
- var brush = null;
2148
- if (this.sBrushes.containsKey(KnownColor.SandyBrown)) {
2149
- brush = (this.sBrushes.getValue(KnownColor.SandyBrown));
2150
- }
2151
- if ((brush == null)) {
2152
- brush = this.getBrush(KnownColor.SandyBrown);
2153
- }
2154
- return brush;
2155
- },
1083
+ get: function () { return this.getBrush(KnownColor.SandyBrown); },
2156
1084
  enumerable: true,
2157
1085
  configurable: true
2158
1086
  });
@@ -2161,16 +1089,7 @@ var PdfBrushes = /** @class */ (function () {
2161
1089
  * Gets the SeaGreen default brush.
2162
1090
  * @public
2163
1091
  */
2164
- get: function () {
2165
- var brush = null;
2166
- if (this.sBrushes.containsKey(KnownColor.SeaGreen)) {
2167
- brush = (this.sBrushes.getValue(KnownColor.SeaGreen));
2168
- }
2169
- if ((brush == null)) {
2170
- brush = this.getBrush(KnownColor.SeaGreen);
2171
- }
2172
- return brush;
2173
- },
1092
+ get: function () { return this.getBrush(KnownColor.SeaGreen); },
2174
1093
  enumerable: true,
2175
1094
  configurable: true
2176
1095
  });
@@ -2179,16 +1098,7 @@ var PdfBrushes = /** @class */ (function () {
2179
1098
  * Gets the SeaShell default brush.
2180
1099
  * @public
2181
1100
  */
2182
- get: function () {
2183
- var brush = null;
2184
- if (this.sBrushes.containsKey(KnownColor.SeaShell)) {
2185
- brush = (this.sBrushes.getValue(KnownColor.SeaShell));
2186
- }
2187
- if ((brush == null)) {
2188
- brush = this.getBrush(KnownColor.SeaShell);
2189
- }
2190
- return brush;
2191
- },
1101
+ get: function () { return this.getBrush(KnownColor.SeaShell); },
2192
1102
  enumerable: true,
2193
1103
  configurable: true
2194
1104
  });
@@ -2197,16 +1107,7 @@ var PdfBrushes = /** @class */ (function () {
2197
1107
  * Gets the Sienna default brush.
2198
1108
  * @public
2199
1109
  */
2200
- get: function () {
2201
- var brush = null;
2202
- if (this.sBrushes.containsKey(KnownColor.Sienna)) {
2203
- brush = (this.sBrushes.getValue(KnownColor.Sienna));
2204
- }
2205
- if ((brush == null)) {
2206
- brush = this.getBrush(KnownColor.Sienna);
2207
- }
2208
- return brush;
2209
- },
1110
+ get: function () { return this.getBrush(KnownColor.Sienna); },
2210
1111
  enumerable: true,
2211
1112
  configurable: true
2212
1113
  });
@@ -2215,16 +1116,7 @@ var PdfBrushes = /** @class */ (function () {
2215
1116
  * Gets the Silver default brush.
2216
1117
  * @public
2217
1118
  */
2218
- get: function () {
2219
- var brush = null;
2220
- if (this.sBrushes.containsKey(KnownColor.Silver)) {
2221
- brush = (this.sBrushes.getValue(KnownColor.Silver));
2222
- }
2223
- if ((brush == null)) {
2224
- brush = this.getBrush(KnownColor.Silver);
2225
- }
2226
- return brush;
2227
- },
1119
+ get: function () { return this.getBrush(KnownColor.Silver); },
2228
1120
  enumerable: true,
2229
1121
  configurable: true
2230
1122
  });
@@ -2233,16 +1125,7 @@ var PdfBrushes = /** @class */ (function () {
2233
1125
  * Gets the SkyBlue default brush.
2234
1126
  * @public
2235
1127
  */
2236
- get: function () {
2237
- var brush = null;
2238
- if (this.sBrushes.containsKey(KnownColor.SkyBlue)) {
2239
- brush = (this.sBrushes.getValue(KnownColor.SkyBlue));
2240
- }
2241
- if ((brush == null)) {
2242
- brush = this.getBrush(KnownColor.SkyBlue);
2243
- }
2244
- return brush;
2245
- },
1128
+ get: function () { return this.getBrush(KnownColor.SkyBlue); },
2246
1129
  enumerable: true,
2247
1130
  configurable: true
2248
1131
  });
@@ -2251,16 +1134,7 @@ var PdfBrushes = /** @class */ (function () {
2251
1134
  * Gets the SlateBlue default brush.
2252
1135
  * @public
2253
1136
  */
2254
- get: function () {
2255
- var brush = null;
2256
- if (this.sBrushes.containsKey(KnownColor.SlateBlue)) {
2257
- brush = (this.sBrushes.getValue(KnownColor.SlateBlue));
2258
- }
2259
- if ((brush == null)) {
2260
- brush = this.getBrush(KnownColor.SlateBlue);
2261
- }
2262
- return brush;
2263
- },
1137
+ get: function () { return this.getBrush(KnownColor.SlateBlue); },
2264
1138
  enumerable: true,
2265
1139
  configurable: true
2266
1140
  });
@@ -2269,16 +1143,7 @@ var PdfBrushes = /** @class */ (function () {
2269
1143
  * Gets the SlateGray default brush.
2270
1144
  * @public
2271
1145
  */
2272
- get: function () {
2273
- var brush = null;
2274
- if (this.sBrushes.containsKey(KnownColor.SlateGray)) {
2275
- brush = (this.sBrushes.getValue(KnownColor.SlateGray));
2276
- }
2277
- if ((brush == null)) {
2278
- brush = this.getBrush(KnownColor.SlateGray);
2279
- }
2280
- return brush;
2281
- },
1146
+ get: function () { return this.getBrush(KnownColor.SlateGray); },
2282
1147
  enumerable: true,
2283
1148
  configurable: true
2284
1149
  });
@@ -2287,16 +1152,7 @@ var PdfBrushes = /** @class */ (function () {
2287
1152
  * Gets the Snow default brush.
2288
1153
  * @public
2289
1154
  */
2290
- get: function () {
2291
- var brush = null;
2292
- if (this.sBrushes.containsKey(KnownColor.Snow)) {
2293
- brush = (this.sBrushes.getValue(KnownColor.Snow));
2294
- }
2295
- if ((brush == null)) {
2296
- brush = this.getBrush(KnownColor.Snow);
2297
- }
2298
- return brush;
2299
- },
1155
+ get: function () { return this.getBrush(KnownColor.Snow); },
2300
1156
  enumerable: true,
2301
1157
  configurable: true
2302
1158
  });
@@ -2305,16 +1161,7 @@ var PdfBrushes = /** @class */ (function () {
2305
1161
  * Gets the SpringGreen default brush.
2306
1162
  * @public
2307
1163
  */
2308
- get: function () {
2309
- var brush = null;
2310
- if (this.sBrushes.containsKey(KnownColor.SpringGreen)) {
2311
- brush = (this.sBrushes.getValue(KnownColor.SpringGreen));
2312
- }
2313
- if ((brush == null)) {
2314
- brush = this.getBrush(KnownColor.SpringGreen);
2315
- }
2316
- return brush;
2317
- },
1164
+ get: function () { return this.getBrush(KnownColor.SpringGreen); },
2318
1165
  enumerable: true,
2319
1166
  configurable: true
2320
1167
  });
@@ -2323,16 +1170,7 @@ var PdfBrushes = /** @class */ (function () {
2323
1170
  * Gets the SteelBlue default brush.
2324
1171
  * @public
2325
1172
  */
2326
- get: function () {
2327
- var brush = null;
2328
- if (this.sBrushes.containsKey(KnownColor.SteelBlue)) {
2329
- brush = (this.sBrushes.getValue(KnownColor.SteelBlue));
2330
- }
2331
- if ((brush == null)) {
2332
- brush = this.getBrush(KnownColor.SteelBlue);
2333
- }
2334
- return brush;
2335
- },
1173
+ get: function () { return this.getBrush(KnownColor.SteelBlue); },
2336
1174
  enumerable: true,
2337
1175
  configurable: true
2338
1176
  });
@@ -2341,16 +1179,7 @@ var PdfBrushes = /** @class */ (function () {
2341
1179
  * Gets the Tan default brush.
2342
1180
  * @public
2343
1181
  */
2344
- get: function () {
2345
- var brush = null;
2346
- if (this.sBrushes.containsKey(KnownColor.Tan)) {
2347
- brush = (this.sBrushes.getValue(KnownColor.Tan));
2348
- }
2349
- if ((brush == null)) {
2350
- brush = this.getBrush(KnownColor.Tan);
2351
- }
2352
- return brush;
2353
- },
1182
+ get: function () { return this.getBrush(KnownColor.Tan); },
2354
1183
  enumerable: true,
2355
1184
  configurable: true
2356
1185
  });
@@ -2359,16 +1188,7 @@ var PdfBrushes = /** @class */ (function () {
2359
1188
  * Gets the Teal default brush.
2360
1189
  * @public
2361
1190
  */
2362
- get: function () {
2363
- var brush = null;
2364
- if (this.sBrushes.containsKey(KnownColor.Teal)) {
2365
- brush = (this.sBrushes.getValue(KnownColor.Teal));
2366
- }
2367
- if ((brush == null)) {
2368
- brush = this.getBrush(KnownColor.Teal);
2369
- }
2370
- return brush;
2371
- },
1191
+ get: function () { return this.getBrush(KnownColor.Teal); },
2372
1192
  enumerable: true,
2373
1193
  configurable: true
2374
1194
  });
@@ -2377,16 +1197,7 @@ var PdfBrushes = /** @class */ (function () {
2377
1197
  * Gets the Thistle default brush.
2378
1198
  * @public
2379
1199
  */
2380
- get: function () {
2381
- var brush = null;
2382
- if (this.sBrushes.containsKey(KnownColor.Thistle)) {
2383
- brush = (this.sBrushes.getValue(KnownColor.Thistle));
2384
- }
2385
- if ((brush == null)) {
2386
- brush = this.getBrush(KnownColor.Thistle);
2387
- }
2388
- return brush;
2389
- },
1200
+ get: function () { return this.getBrush(KnownColor.Thistle); },
2390
1201
  enumerable: true,
2391
1202
  configurable: true
2392
1203
  });
@@ -2395,16 +1206,7 @@ var PdfBrushes = /** @class */ (function () {
2395
1206
  * Gets the Tomato default brush.
2396
1207
  * @public
2397
1208
  */
2398
- get: function () {
2399
- var brush = null;
2400
- if (this.sBrushes.containsKey(KnownColor.Tomato)) {
2401
- brush = (this.sBrushes.getValue(KnownColor.Tomato));
2402
- }
2403
- if ((brush == null)) {
2404
- brush = this.getBrush(KnownColor.Tomato);
2405
- }
2406
- return brush;
2407
- },
1209
+ get: function () { return this.getBrush(KnownColor.Tomato); },
2408
1210
  enumerable: true,
2409
1211
  configurable: true
2410
1212
  });
@@ -2413,16 +1215,7 @@ var PdfBrushes = /** @class */ (function () {
2413
1215
  * Gets the Transparent default brush.
2414
1216
  * @public
2415
1217
  */
2416
- get: function () {
2417
- var brush = null;
2418
- if (this.sBrushes.containsKey(KnownColor.Transparent)) {
2419
- brush = (this.sBrushes.getValue(KnownColor.Transparent));
2420
- }
2421
- if ((brush == null)) {
2422
- brush = this.getBrush(KnownColor.Transparent);
2423
- }
2424
- return brush;
2425
- },
1218
+ get: function () { return this.getBrush(KnownColor.Transparent); },
2426
1219
  enumerable: true,
2427
1220
  configurable: true
2428
1221
  });
@@ -2431,16 +1224,7 @@ var PdfBrushes = /** @class */ (function () {
2431
1224
  * Gets the Turquoise default brush.
2432
1225
  * @public
2433
1226
  */
2434
- get: function () {
2435
- var brush = null;
2436
- if (this.sBrushes.containsKey(KnownColor.Turquoise)) {
2437
- brush = (this.sBrushes.getValue(KnownColor.Turquoise));
2438
- }
2439
- if ((brush == null)) {
2440
- brush = this.getBrush(KnownColor.Turquoise);
2441
- }
2442
- return brush;
2443
- },
1227
+ get: function () { return this.getBrush(KnownColor.Turquoise); },
2444
1228
  enumerable: true,
2445
1229
  configurable: true
2446
1230
  });
@@ -2449,16 +1233,7 @@ var PdfBrushes = /** @class */ (function () {
2449
1233
  * Gets the Violet default brush.
2450
1234
  * @public
2451
1235
  */
2452
- get: function () {
2453
- var brush = null;
2454
- if (this.sBrushes.containsKey(KnownColor.Violet)) {
2455
- brush = (this.sBrushes.getValue(KnownColor.Violet));
2456
- }
2457
- if ((brush == null)) {
2458
- brush = this.getBrush(KnownColor.Violet);
2459
- }
2460
- return brush;
2461
- },
1236
+ get: function () { return this.getBrush(KnownColor.Violet); },
2462
1237
  enumerable: true,
2463
1238
  configurable: true
2464
1239
  });
@@ -2467,16 +1242,7 @@ var PdfBrushes = /** @class */ (function () {
2467
1242
  * Gets the Wheat default brush.
2468
1243
  * @public
2469
1244
  */
2470
- get: function () {
2471
- var brush = null;
2472
- if (this.sBrushes.containsKey(KnownColor.Wheat)) {
2473
- brush = (this.sBrushes.getValue(KnownColor.Wheat));
2474
- }
2475
- if ((brush == null)) {
2476
- brush = this.getBrush(KnownColor.Wheat);
2477
- }
2478
- return brush;
2479
- },
1245
+ get: function () { return this.getBrush(KnownColor.Wheat); },
2480
1246
  enumerable: true,
2481
1247
  configurable: true
2482
1248
  });
@@ -2485,16 +1251,7 @@ var PdfBrushes = /** @class */ (function () {
2485
1251
  * Gets the White default brush.
2486
1252
  * @public
2487
1253
  */
2488
- get: function () {
2489
- var brush = null;
2490
- if (this.sBrushes.containsKey(KnownColor.White)) {
2491
- brush = (this.sBrushes.getValue(KnownColor.White));
2492
- }
2493
- if ((brush == null)) {
2494
- brush = this.getBrush(KnownColor.White);
2495
- }
2496
- return brush;
2497
- },
1254
+ get: function () { return this.getBrush(KnownColor.White); },
2498
1255
  enumerable: true,
2499
1256
  configurable: true
2500
1257
  });
@@ -2503,16 +1260,7 @@ var PdfBrushes = /** @class */ (function () {
2503
1260
  * Gets the WhiteSmoke default brush.
2504
1261
  * @public
2505
1262
  */
2506
- get: function () {
2507
- var brush = null;
2508
- if (this.sBrushes.containsKey(KnownColor.WhiteSmoke)) {
2509
- brush = (this.sBrushes.getValue(KnownColor.WhiteSmoke));
2510
- }
2511
- if ((brush == null)) {
2512
- brush = this.getBrush(KnownColor.WhiteSmoke);
2513
- }
2514
- return brush;
2515
- },
1263
+ get: function () { return this.getBrush(KnownColor.WhiteSmoke); },
2516
1264
  enumerable: true,
2517
1265
  configurable: true
2518
1266
  });
@@ -2521,16 +1269,7 @@ var PdfBrushes = /** @class */ (function () {
2521
1269
  * Gets the Yellow default brush.
2522
1270
  * @public
2523
1271
  */
2524
- get: function () {
2525
- var brush = null;
2526
- if (this.sBrushes.containsKey(KnownColor.Yellow)) {
2527
- brush = (this.sBrushes.getValue(KnownColor.Yellow));
2528
- }
2529
- if ((brush == null)) {
2530
- brush = this.getBrush(KnownColor.Yellow);
2531
- }
2532
- return brush;
2533
- },
1272
+ get: function () { return this.getBrush(KnownColor.Yellow); },
2534
1273
  enumerable: true,
2535
1274
  configurable: true
2536
1275
  });
@@ -2539,16 +1278,7 @@ var PdfBrushes = /** @class */ (function () {
2539
1278
  * Gets the YellowGreen default brush.
2540
1279
  * @public
2541
1280
  */
2542
- get: function () {
2543
- var brush = null;
2544
- if (this.sBrushes.containsKey(KnownColor.YellowGreen)) {
2545
- brush = (this.sBrushes.getValue(KnownColor.YellowGreen));
2546
- }
2547
- if ((brush == null)) {
2548
- brush = this.getBrush(KnownColor.YellowGreen);
2549
- }
2550
- return brush;
2551
- },
1281
+ get: function () { return this.getBrush(KnownColor.YellowGreen); },
2552
1282
  enumerable: true,
2553
1283
  configurable: true
2554
1284
  });
@@ -2556,442 +1286,25 @@ var PdfBrushes = /** @class */ (function () {
2556
1286
  * Get the brush.
2557
1287
  */
2558
1288
  PdfBrushes.getBrush = function (colorName) {
2559
- var pdfColor = this.getColorValue(colorName);
2560
- var brush = new PdfSolidBrush(pdfColor);
2561
- this.sBrushes.setValue(colorName, brush);
1289
+ var brush = (this.sBrushes.getValue(colorName));
1290
+ if (brush == null) {
1291
+ var pdfColor = this.getColorValue(colorName);
1292
+ brush = new PdfSolidBrush(pdfColor);
1293
+ this.sBrushes.setValue(colorName, brush);
1294
+ }
2562
1295
  return brush;
2563
1296
  };
2564
1297
  /**
2565
1298
  * Get the color value.
2566
1299
  * @param colorName The KnownColor name.
2567
1300
  */
2568
- /* tslint:disable */
1301
+ /* tslint:disable-next-line: max-line-length */
2569
1302
  PdfBrushes.getColorValue = function (colorName) {
2570
1303
  var color = new PdfColor();
2571
- switch (colorName) {
2572
- case KnownColor.Transparent:
2573
- color = new PdfColor(0, 255, 255, 255);
2574
- break;
2575
- case KnownColor.AliceBlue:
2576
- color = new PdfColor(255, 240, 248, 255);
2577
- break;
2578
- case KnownColor.AntiqueWhite:
2579
- color = new PdfColor(255, 250, 235, 215);
2580
- break;
2581
- case KnownColor.Aqua:
2582
- color = new PdfColor(255, 0, 255, 255);
2583
- break;
2584
- case KnownColor.Aquamarine:
2585
- color = new PdfColor(255, 127, 255, 212);
2586
- break;
2587
- case KnownColor.Azure:
2588
- color = new PdfColor(255, 240, 255, 255);
2589
- break;
2590
- case KnownColor.Beige:
2591
- color = new PdfColor(255, 245, 245, 220);
2592
- break;
2593
- case KnownColor.Bisque:
2594
- color = new PdfColor(255, 255, 228, 196);
2595
- break;
2596
- case KnownColor.Black:
2597
- color = new PdfColor(255, 0, 0, 0);
2598
- break;
2599
- case KnownColor.BlanchedAlmond:
2600
- color = new PdfColor(255, 255, 235, 205);
2601
- break;
2602
- case KnownColor.Blue:
2603
- color = new PdfColor(255, 0, 0, 255);
2604
- break;
2605
- case KnownColor.BlueViolet:
2606
- color = new PdfColor(255, 138, 43, 226);
2607
- break;
2608
- case KnownColor.Brown:
2609
- color = new PdfColor(255, 165, 42, 42);
2610
- break;
2611
- case KnownColor.BurlyWood:
2612
- color = new PdfColor(255, 222, 184, 135);
2613
- break;
2614
- case KnownColor.CadetBlue:
2615
- color = new PdfColor(255, 95, 158, 160);
2616
- break;
2617
- case KnownColor.Chartreuse:
2618
- color = new PdfColor(255, 127, 255, 0);
2619
- break;
2620
- case KnownColor.Chocolate:
2621
- color = new PdfColor(255, 210, 105, 30);
2622
- break;
2623
- case KnownColor.Coral:
2624
- color = new PdfColor(255, 255, 127, 80);
2625
- break;
2626
- case KnownColor.CornflowerBlue:
2627
- color = new PdfColor(255, 100, 149, 237);
2628
- break;
2629
- case KnownColor.Cornsilk:
2630
- color = new PdfColor(255, 255, 248, 220);
2631
- break;
2632
- case KnownColor.Crimson:
2633
- color = new PdfColor(255, 220, 20, 60);
2634
- break;
2635
- case KnownColor.Cyan:
2636
- color = new PdfColor(255, 0, 255, 255);
2637
- break;
2638
- case KnownColor.DarkBlue:
2639
- color = new PdfColor(255, 0, 0, 139);
2640
- break;
2641
- case KnownColor.DarkCyan:
2642
- color = new PdfColor(255, 0, 139, 139);
2643
- break;
2644
- case KnownColor.DarkGoldenrod:
2645
- color = new PdfColor(255, 184, 134, 11);
2646
- break;
2647
- case KnownColor.DarkGray:
2648
- color = new PdfColor(255, 169, 169, 169);
2649
- break;
2650
- case KnownColor.DarkGreen:
2651
- color = new PdfColor(255, 0, 100, 0);
2652
- break;
2653
- case KnownColor.DarkKhaki:
2654
- color = new PdfColor(255, 189, 183, 107);
2655
- break;
2656
- case KnownColor.DarkMagenta:
2657
- color = new PdfColor(255, 139, 0, 139);
2658
- break;
2659
- case KnownColor.DarkOliveGreen:
2660
- color = new PdfColor(255, 85, 107, 47);
2661
- break;
2662
- case KnownColor.DarkOrange:
2663
- color = new PdfColor(255, 255, 140, 0);
2664
- break;
2665
- case KnownColor.DarkOrchid:
2666
- color = new PdfColor(255, 153, 50, 204);
2667
- break;
2668
- case KnownColor.DarkRed:
2669
- color = new PdfColor(255, 139, 0, 0);
2670
- break;
2671
- case KnownColor.DarkSalmon:
2672
- color = new PdfColor(255, 233, 150, 122);
2673
- break;
2674
- case KnownColor.DarkSeaGreen:
2675
- color = new PdfColor(255, 143, 188, 139);
2676
- break;
2677
- case KnownColor.DarkSlateBlue:
2678
- color = new PdfColor(255, 72, 61, 139);
2679
- break;
2680
- case KnownColor.DarkSlateGray:
2681
- color = new PdfColor(255, 47, 79, 79);
2682
- break;
2683
- case KnownColor.DarkTurquoise:
2684
- color = new PdfColor(255, 0, 206, 209);
2685
- break;
2686
- case KnownColor.DarkViolet:
2687
- color = new PdfColor(255, 148, 0, 211);
2688
- break;
2689
- case KnownColor.DeepPink:
2690
- color = new PdfColor(255, 255, 20, 147);
2691
- break;
2692
- case KnownColor.DeepSkyBlue:
2693
- color = new PdfColor(255, 0, 191, 255);
2694
- break;
2695
- case KnownColor.DimGray:
2696
- color = new PdfColor(255, 105, 105, 105);
2697
- break;
2698
- case KnownColor.DodgerBlue:
2699
- color = new PdfColor(255, 30, 144, 255);
2700
- break;
2701
- case KnownColor.Firebrick:
2702
- color = new PdfColor(255, 178, 34, 34);
2703
- break;
2704
- case KnownColor.FloralWhite:
2705
- color = new PdfColor(255, 255, 250, 240);
2706
- break;
2707
- case KnownColor.ForestGreen:
2708
- color = new PdfColor(255, 34, 139, 34);
2709
- break;
2710
- case KnownColor.Fuchsia:
2711
- color = new PdfColor(255, 255, 0, 255);
2712
- break;
2713
- case KnownColor.Gainsboro:
2714
- color = new PdfColor(255, 220, 220, 220);
2715
- break;
2716
- case KnownColor.GhostWhite:
2717
- color = new PdfColor(255, 248, 248, 255);
2718
- break;
2719
- case KnownColor.Gold:
2720
- color = new PdfColor(255, 255, 215, 0);
2721
- break;
2722
- case KnownColor.Goldenrod:
2723
- color = new PdfColor(255, 218, 165, 32);
2724
- break;
2725
- case KnownColor.Gray:
2726
- color = new PdfColor(255, 128, 128, 128);
2727
- break;
2728
- case KnownColor.Green:
2729
- color = new PdfColor(255, 0, 128, 0);
2730
- break;
2731
- case KnownColor.GreenYellow:
2732
- color = new PdfColor(255, 173, 255, 47);
2733
- break;
2734
- case KnownColor.Honeydew:
2735
- color = new PdfColor(255, 240, 255, 240);
2736
- break;
2737
- case KnownColor.HotPink:
2738
- color = new PdfColor(255, 255, 105, 180);
2739
- break;
2740
- case KnownColor.IndianRed:
2741
- color = new PdfColor(255, 205, 92, 92);
2742
- break;
2743
- case KnownColor.Indigo:
2744
- color = new PdfColor(255, 75, 0, 130);
2745
- break;
2746
- case KnownColor.Ivory:
2747
- color = new PdfColor(255, 255, 255, 240);
2748
- break;
2749
- case KnownColor.Khaki:
2750
- color = new PdfColor(255, 240, 230, 140);
2751
- break;
2752
- case KnownColor.Lavender:
2753
- color = new PdfColor(255, 230, 230, 250);
2754
- break;
2755
- case KnownColor.LavenderBlush:
2756
- color = new PdfColor(255, 255, 240, 245);
2757
- break;
2758
- case KnownColor.LawnGreen:
2759
- color = new PdfColor(255, 124, 252, 0);
2760
- break;
2761
- case KnownColor.LemonChiffon:
2762
- color = new PdfColor(255, 255, 250, 205);
2763
- break;
2764
- case KnownColor.LightBlue:
2765
- color = new PdfColor(255, 173, 216, 230);
2766
- break;
2767
- case KnownColor.LightCoral:
2768
- color = new PdfColor(255, 240, 128, 128);
2769
- break;
2770
- case KnownColor.LightCyan:
2771
- color = new PdfColor(255, 224, 255, 255);
2772
- break;
2773
- case KnownColor.LightGoldenrodYellow:
2774
- color = new PdfColor(255, 250, 250, 210);
2775
- break;
2776
- case KnownColor.LightGreen:
2777
- color = new PdfColor(255, 144, 238, 144);
2778
- break;
2779
- case KnownColor.LightGray:
2780
- color = new PdfColor(255, 211, 211, 211);
2781
- break;
2782
- case KnownColor.LightPink:
2783
- color = new PdfColor(255, 255, 182, 193);
2784
- break;
2785
- case KnownColor.LightSalmon:
2786
- color = new PdfColor(255, 255, 160, 122);
2787
- break;
2788
- case KnownColor.LightSeaGreen:
2789
- color = new PdfColor(255, 32, 178, 170);
2790
- break;
2791
- case KnownColor.LightSkyBlue:
2792
- color = new PdfColor(255, 135, 206, 250);
2793
- break;
2794
- case KnownColor.LightSlateGray:
2795
- color = new PdfColor(255, 119, 136, 153);
2796
- break;
2797
- case KnownColor.LightSteelBlue:
2798
- color = new PdfColor(255, 176, 196, 222);
2799
- break;
2800
- case KnownColor.LightYellow:
2801
- color = new PdfColor(255, 255, 255, 224);
2802
- break;
2803
- case KnownColor.Lime:
2804
- color = new PdfColor(255, 0, 255, 0);
2805
- break;
2806
- case KnownColor.LimeGreen:
2807
- color = new PdfColor(255, 50, 205, 50);
2808
- break;
2809
- case KnownColor.Linen:
2810
- color = new PdfColor(255, 250, 240, 230);
2811
- break;
2812
- case KnownColor.Magenta:
2813
- color = new PdfColor(255, 255, 0, 255);
2814
- break;
2815
- case KnownColor.Maroon:
2816
- color = new PdfColor(255, 128, 0, 0);
2817
- break;
2818
- case KnownColor.MediumAquamarine:
2819
- color = new PdfColor(255, 102, 205, 170);
2820
- break;
2821
- case KnownColor.MediumBlue:
2822
- color = new PdfColor(255, 0, 0, 205);
2823
- break;
2824
- case KnownColor.MediumOrchid:
2825
- color = new PdfColor(255, 186, 85, 211);
2826
- break;
2827
- case KnownColor.MediumPurple:
2828
- color = new PdfColor(255, 147, 112, 219);
2829
- break;
2830
- case KnownColor.MediumSeaGreen:
2831
- color = new PdfColor(255, 60, 179, 113);
2832
- break;
2833
- case KnownColor.MediumSlateBlue:
2834
- color = new PdfColor(255, 123, 104, 238);
2835
- break;
2836
- case KnownColor.MediumSpringGreen:
2837
- color = new PdfColor(255, 0, 250, 154);
2838
- break;
2839
- case KnownColor.MediumTurquoise:
2840
- color = new PdfColor(255, 72, 209, 204);
2841
- break;
2842
- case KnownColor.MediumVioletRed:
2843
- color = new PdfColor(255, 199, 21, 133);
2844
- break;
2845
- case KnownColor.MidnightBlue:
2846
- color = new PdfColor(255, 25, 25, 112);
2847
- break;
2848
- case KnownColor.MintCream:
2849
- color = new PdfColor(255, 245, 255, 250);
2850
- break;
2851
- case KnownColor.MistyRose:
2852
- color = new PdfColor(255, 255, 228, 225);
2853
- break;
2854
- case KnownColor.Moccasin:
2855
- color = new PdfColor(255, 255, 228, 181);
2856
- break;
2857
- case KnownColor.NavajoWhite:
2858
- color = new PdfColor(255, 255, 222, 173);
2859
- break;
2860
- case KnownColor.Navy:
2861
- color = new PdfColor(255, 0, 0, 128);
2862
- break;
2863
- case KnownColor.OldLace:
2864
- color = new PdfColor(255, 253, 245, 230);
2865
- break;
2866
- case KnownColor.Olive:
2867
- color = new PdfColor(255, 128, 128, 0);
2868
- break;
2869
- case KnownColor.OliveDrab:
2870
- color = new PdfColor(255, 107, 142, 35);
2871
- break;
2872
- case KnownColor.Orange:
2873
- color = new PdfColor(255, 255, 165, 0);
2874
- break;
2875
- case KnownColor.OrangeRed:
2876
- color = new PdfColor(255, 255, 69, 0);
2877
- break;
2878
- case KnownColor.Orchid:
2879
- color = new PdfColor(255, 218, 112, 214);
2880
- break;
2881
- case KnownColor.PaleGoldenrod:
2882
- color = new PdfColor(255, 238, 232, 170);
2883
- break;
2884
- case KnownColor.PaleGreen:
2885
- color = new PdfColor(255, 152, 251, 152);
2886
- break;
2887
- case KnownColor.PaleTurquoise:
2888
- color = new PdfColor(255, 175, 238, 238);
2889
- break;
2890
- case KnownColor.PaleVioletRed:
2891
- color = new PdfColor(255, 219, 112, 147);
2892
- break;
2893
- case KnownColor.PapayaWhip:
2894
- color = new PdfColor(255, 255, 239, 213);
2895
- break;
2896
- case KnownColor.PeachPuff:
2897
- color = new PdfColor(255, 255, 218, 185);
2898
- break;
2899
- case KnownColor.Peru:
2900
- color = new PdfColor(255, 205, 133, 63);
2901
- break;
2902
- case KnownColor.Pink:
2903
- color = new PdfColor(255, 255, 192, 203);
2904
- break;
2905
- case KnownColor.Plum:
2906
- color = new PdfColor(255, 221, 160, 221);
2907
- break;
2908
- case KnownColor.PowderBlue:
2909
- color = new PdfColor(255, 176, 224, 230);
2910
- break;
2911
- case KnownColor.Purple:
2912
- color = new PdfColor(255, 128, 0, 128);
2913
- break;
2914
- case KnownColor.Red:
2915
- color = new PdfColor(255, 255, 0, 0);
2916
- break;
2917
- case KnownColor.RosyBrown:
2918
- color = new PdfColor(255, 188, 143, 143);
2919
- break;
2920
- case KnownColor.RoyalBlue:
2921
- color = new PdfColor(255, 65, 105, 225);
2922
- break;
2923
- case KnownColor.SaddleBrown:
2924
- color = new PdfColor(255, 139, 69, 19);
2925
- break;
2926
- case KnownColor.Salmon:
2927
- color = new PdfColor(255, 250, 128, 114);
2928
- break;
2929
- case KnownColor.SandyBrown:
2930
- color = new PdfColor(255, 244, 164, 96);
2931
- break;
2932
- case KnownColor.SeaGreen:
2933
- color = new PdfColor(255, 46, 139, 87);
2934
- break;
2935
- case KnownColor.SeaShell:
2936
- color = new PdfColor(255, 255, 245, 238);
2937
- break;
2938
- case KnownColor.Sienna:
2939
- color = new PdfColor(255, 160, 82, 45);
2940
- break;
2941
- case KnownColor.Silver:
2942
- color = new PdfColor(255, 192, 192, 192);
2943
- break;
2944
- case KnownColor.SkyBlue:
2945
- color = new PdfColor(255, 135, 206, 235);
2946
- break;
2947
- case KnownColor.SlateBlue:
2948
- color = new PdfColor(255, 106, 90, 205);
2949
- break;
2950
- case KnownColor.SlateGray:
2951
- color = new PdfColor(255, 112, 128, 144);
2952
- break;
2953
- case KnownColor.Snow:
2954
- color = new PdfColor(255, 255, 250, 250);
2955
- break;
2956
- case KnownColor.SpringGreen:
2957
- color = new PdfColor(255, 0, 255, 127);
2958
- break;
2959
- case KnownColor.SteelBlue:
2960
- color = new PdfColor(255, 70, 130, 180);
2961
- break;
2962
- case KnownColor.Tan:
2963
- color = new PdfColor(255, 210, 180, 140);
2964
- break;
2965
- case KnownColor.Teal:
2966
- color = new PdfColor(255, 0, 128, 128);
2967
- break;
2968
- case KnownColor.Thistle:
2969
- color = new PdfColor(255, 216, 191, 216);
2970
- break;
2971
- case KnownColor.Tomato:
2972
- color = new PdfColor(255, 255, 99, 71);
2973
- break;
2974
- case KnownColor.Turquoise:
2975
- color = new PdfColor(255, 64, 224, 208);
2976
- break;
2977
- case KnownColor.Violet:
2978
- color = new PdfColor(255, 238, 130, 238);
2979
- break;
2980
- case KnownColor.Wheat:
2981
- color = new PdfColor(255, 245, 222, 179);
2982
- break;
2983
- case KnownColor.White:
2984
- color = new PdfColor(255, 255, 255, 255);
2985
- break;
2986
- case KnownColor.WhiteSmoke:
2987
- color = new PdfColor(255, 245, 245, 245);
2988
- break;
2989
- case KnownColor.Yellow:
2990
- color = new PdfColor(255, 255, 255, 0);
2991
- break;
2992
- case KnownColor.YellowGreen:
2993
- color = new PdfColor(255, 154, 205, 50);
2994
- break;
1304
+ if (colorName >= KnownColor.Transparent && colorName <= KnownColor.MenuHighlight) {
1305
+ var index = (colorName - KnownColor.Transparent) * 4;
1306
+ var alpha = this.knownColorData.charCodeAt(index + 3) === 0 ? 0 : 255;
1307
+ color = new PdfColor(alpha, this.knownColorData.charCodeAt(index), this.knownColorData.charCodeAt(index + 1), this.knownColorData.charCodeAt(index + 2));
2995
1308
  }
2996
1309
  return color;
2997
1310
  };
@@ -3000,6 +1313,13 @@ var PdfBrushes = /** @class */ (function () {
3000
1313
  * Local variable to store the brushes.
3001
1314
  */
3002
1315
  PdfBrushes.sBrushes = new Dictionary();
1316
+ /**
1317
+ * Packed known color data (in KnownColor enum order, starting at Transparent).
1318
+ * Each color occupies two chars: the first holds the RGB value, the second the alpha flag
1319
+ * (0 - transparent, 1 - opaque).
1320
+ */
1321
+ /* tslint:disable-next-line:max-line-length */
1322
+ PdfBrushes.knownColorData = '\u00ff\u00ff\u00ff\u0000\u00f0\u00f8\u00ff\u0001\u00fa\u00eb\u00d7\u0001\u0000\u00ff\u00ff\u0001\u007f\u00ff\u00d4\u0001\u00f0\u00ff\u00ff\u0001\u00f5\u00f5\u00dc\u0001\u00ff\u00e4\u00c4\u0001\u0000\u0000\u0000\u0001\u00ff\u00eb\u00cd\u0001\u0000\u0000\u00ff\u0001\u008a\u002b\u00e2\u0001\u00a5\u002a\u002a\u0001\u00de\u00b8\u0087\u0001\u005f\u009e\u00a0\u0001\u007f\u00ff\u0000\u0001\u00d2\u0069\u001e\u0001\u00ff\u007f\u0050\u0001\u0064\u0095\u00ed\u0001\u00ff\u00f8\u00dc\u0001\u00dc\u0014\u003c\u0001\u0000\u00ff\u00ff\u0001\u0000\u0000\u008b\u0001\u0000\u008b\u008b\u0001\u00b8\u0086\u000b\u0001\u00a9\u00a9\u00a9\u0001\u0000\u0064\u0000\u0001\u00bd\u00b7\u006b\u0001\u008b\u0000\u008b\u0001\u0055\u006b\u002f\u0001\u00ff\u008c\u0000\u0001\u0099\u0032\u00cc\u0001\u008b\u0000\u0000\u0001\u00e9\u0096\u007a\u0001\u008f\u00bc\u008b\u0001\u0048\u003d\u008b\u0001\u002f\u004f\u004f\u0001\u0000\u00ce\u00d1\u0001\u0094\u0000\u00d3\u0001\u00ff\u0014\u0093\u0001\u0000\u00bf\u00ff\u0001\u0069\u0069\u0069\u0001\u001e\u0090\u00ff\u0001\u00b2\u0022\u0022\u0001\u00ff\u00fa\u00f0\u0001\u0022\u008b\u0022\u0001\u00ff\u0000\u00ff\u0001\u00dc\u00dc\u00dc\u0001\u00f8\u00f8\u00ff\u0001\u00ff\u00d7\u0000\u0001\u00da\u00a5\u0020\u0001\u0080\u0080\u0080\u0001\u0000\u0080\u0000\u0001\u00ad\u00ff\u002f\u0001\u00f0\u00ff\u00f0\u0001\u00ff\u0069\u00b4\u0001\u00cd\u005c\u005c\u0001\u004b\u0000\u0082\u0001\u00ff\u00ff\u00f0\u0001\u00f0\u00e6\u008c\u0001\u00e6\u00e6\u00fa\u0001\u00ff\u00f0\u00f5\u0001\u007c\u00fc\u0000\u0001\u00ff\u00fa\u00cd\u0001\u00ad\u00d8\u00e6\u0001\u00f0\u0080\u0080\u0001\u00e0\u00ff\u00ff\u0001\u00fa\u00fa\u00d2\u0001\u00d3\u00d3\u00d3\u0001\u0090\u00ee\u0090\u0001\u00ff\u00b6\u00c1\u0001\u00ff\u00a0\u007a\u0001\u0020\u00b2\u00aa\u0001\u0087\u00ce\u00fa\u0001\u0077\u0088\u0099\u0001\u00b0\u00c4\u00de\u0001\u00ff\u00ff\u00e0\u0001\u0000\u00ff\u0000\u0001\u0032\u00cd\u0032\u0001\u00fa\u00f0\u00e6\u0001\u00ff\u0000\u00ff\u0001\u0080\u0000\u0000\u0001\u0066\u00cd\u00aa\u0001\u0000\u0000\u00cd\u0001\u00ba\u0055\u00d3\u0001\u0093\u0070\u00db\u0001\u003c\u00b3\u0071\u0001\u007b\u0068\u00ee\u0001\u0000\u00fa\u009a\u0001\u0048\u00d1\u00cc\u0001\u00c7\u0015\u0085\u0001\u0019\u0019\u0070\u0001\u00f5\u00ff\u00fa\u0001\u00ff\u00e4\u00e1\u0001\u00ff\u00e4\u00b5\u0001\u00ff\u00de\u00ad\u0001\u0000\u0000\u0080\u0001\u00fd\u00f5\u00e6\u0001\u0080\u0080\u0000\u0001\u006b\u008e\u0023\u0001\u00ff\u00a5\u0000\u0001\u00ff\u0045\u0000\u0001\u00da\u0070\u00d6\u0001\u00ee\u00e8\u00aa\u0001\u0098\u00fb\u0098\u0001\u00af\u00ee\u00ee\u0001\u00db\u0070\u0093\u0001\u00ff\u00ef\u00d5\u0001\u00ff\u00da\u00b9\u0001\u00cd\u0085\u003f\u0001\u00ff\u00c0\u00cb\u0001\u00dd\u00a0\u00dd\u0001\u00b0\u00e0\u00e6\u0001\u0080\u0000\u0080\u0001\u00ff\u0000\u0000\u0001\u00bc\u008f\u008f\u0001\u0041\u0069\u00e1\u0001\u008b\u0045\u0013\u0001\u00fa\u0080\u0072\u0001\u00f4\u00a4\u0060\u0001\u002e\u008b\u0057\u0001\u00ff\u00f5\u00ee\u0001\u00a0\u0052\u002d\u0001\u00c0\u00c0\u00c0\u0001\u0087\u00ce\u00eb\u0001\u006a\u005a\u00cd\u0001\u0070\u0080\u0090\u0001\u00ff\u00fa\u00fa\u0001\u0000\u00ff\u007f\u0001\u0046\u0082\u00b4\u0001\u00d2\u00b4\u008c\u0001\u0000\u0080\u0080\u0001\u00d8\u00bf\u00d8\u0001\u00ff\u0063\u0047\u0001\u0040\u00e0\u00d0\u0001\u00ee\u0082\u00ee\u0001\u00f5\u00de\u00b3\u0001\u00ff\u00ff\u00ff\u0001\u00f5\u00f5\u00f5\u0001\u00ff\u00ff\u0000\u0001\u009a\u00cd\u0032\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0001';
3003
1323
  return PdfBrushes;
3004
1324
  }());
3005
1325
  export { PdfBrushes };