@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
@@ -2197,8 +2197,8 @@ class PdfStream extends PdfDictionary {
2197
2197
  */
2198
2198
  clearStream() {
2199
2199
  this.internalStream = [];
2200
- if (this.items.containsKey(this.dictionaryProperties.filter)) {
2201
- this.remove(this.dictionaryProperties.filter);
2200
+ if (this.items.containsKey('Filter')) {
2201
+ this.remove('Filter');
2202
2202
  }
2203
2203
  this.bCompress = true;
2204
2204
  this.modify();
@@ -2265,7 +2265,7 @@ class PdfStream extends PdfDictionary {
2265
2265
  sw.write(dataArray, 0, dataArray.length);
2266
2266
  sw.close();
2267
2267
  data = sw.getCompressedString;
2268
- this.addFilter(this.dictionaryProperties.flatedecode);
2268
+ this.addFilter('FlateDecode');
2269
2269
  }
2270
2270
  return data;
2271
2271
  }
@@ -2274,7 +2274,7 @@ class PdfStream extends PdfDictionary {
2274
2274
  * @private
2275
2275
  */
2276
2276
  addFilter(filterName) {
2277
- let obj = this.items.getValue(this.dictionaryProperties.filter);
2277
+ let obj = this.items.getValue('Filter');
2278
2278
  if (obj instanceof PdfReferenceHolder) {
2279
2279
  let rh = obj;
2280
2280
  obj = rh.object;
@@ -2284,11 +2284,11 @@ class PdfStream extends PdfDictionary {
2284
2284
  if (name != null) {
2285
2285
  array = new PdfArray();
2286
2286
  array.insert(0, name);
2287
- this.items.setValue(this.dictionaryProperties.filter, array);
2287
+ this.items.setValue('Filter', array);
2288
2288
  }
2289
2289
  name = new PdfName(filterName);
2290
2290
  if (array == null) {
2291
- this.items.setValue(this.dictionaryProperties.filter, name);
2291
+ this.items.setValue('Filter', name);
2292
2292
  }
2293
2293
  else {
2294
2294
  array.insert(0, name);
@@ -2314,7 +2314,7 @@ class PdfStream extends PdfDictionary {
2314
2314
  }
2315
2315
  data = this.compressContent(data, writer);
2316
2316
  let length = data.length;
2317
- this.items.setValue(this.dictionaryProperties.length, new PdfNumber(length));
2317
+ this.items.setValue('Length', new PdfNumber(length));
2318
2318
  super.save(writer, false);
2319
2319
  writer.write(this.dicPrefix);
2320
2320
  writer.write(Operators.newLine);
@@ -2831,11 +2831,6 @@ class PdfReferenceHolder {
2831
2831
  * @private
2832
2832
  */
2833
2833
  this.objectIndex = -1;
2834
- /**
2835
- * @hidden
2836
- * @private
2837
- */
2838
- this.dictionaryProperties = new DictionaryProperties();
2839
2834
  // if (typeof obj2 === 'undefined') {
2840
2835
  this.initialize(obj1);
2841
2836
  // }
@@ -2998,7 +2993,7 @@ class PdfReferenceHolder {
2998
2993
  */
2999
2994
  // if (Object instanceof PdfDictionary) {
3000
2995
  // // Meaning the referenced page is not available for import.
3001
- // let type : PdfName = new PdfName(this.dictionaryProperties.type);
2996
+ // let type : PdfName = new PdfName('Type');
3002
2997
  // let dict : PdfDictionary = Object as PdfDictionary;
3003
2998
  // if (dict.ContainsKey(type)) {
3004
2999
  // let pageName : PdfName = dict.Items.getValue(type.Value) as PdfName;
@@ -3050,11 +3045,6 @@ class PdfAction {
3050
3045
  * @private
3051
3046
  */
3052
3047
  this.action = null;
3053
- /**
3054
- * Specifies the Internal variable to store `dictionary properties`.
3055
- * @private
3056
- */
3057
- this.dictionaryProperties = new DictionaryProperties();
3058
3048
  // super(); -> Object()
3059
3049
  this.initialize();
3060
3050
  }
@@ -3069,7 +3059,7 @@ class PdfAction {
3069
3059
  set next(value) {
3070
3060
  // if (this.action !== value) {
3071
3061
  this.action = value;
3072
- this.dictionary.items.setValue(this.dictionaryProperties.next, new PdfReferenceHolder(this.action));
3062
+ this.dictionary.items.setValue('Next', new PdfReferenceHolder(this.action));
3073
3063
  // }
3074
3064
  }
3075
3065
  /**
@@ -3088,7 +3078,7 @@ class PdfAction {
3088
3078
  * @private
3089
3079
  */
3090
3080
  initialize() {
3091
- this.dictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.action));
3081
+ this.dictionary.items.setValue('Type', new PdfName('Action'));
3092
3082
  }
3093
3083
  // IPdfWrapper Members
3094
3084
  /**
@@ -3125,7 +3115,7 @@ class PdfUriAction extends PdfAction {
3125
3115
  }
3126
3116
  set uri(value) {
3127
3117
  this.uniformResourceIdentifier = value;
3128
- this.dictionary.items.setValue(this.dictionaryProperties.uri, new PdfString(this.uniformResourceIdentifier));
3118
+ this.dictionary.items.setValue('URI', new PdfString(this.uniformResourceIdentifier));
3129
3119
  }
3130
3120
  // Implementation
3131
3121
  /**
@@ -3134,7 +3124,7 @@ class PdfUriAction extends PdfAction {
3134
3124
  */
3135
3125
  initialize() {
3136
3126
  super.initialize();
3137
- this.dictionary.items.setValue(this.dictionaryProperties.s, new PdfName(this.dictionaryProperties.uri));
3127
+ this.dictionary.items.setValue('S', new PdfName('URI'));
3138
3128
  }
3139
3129
  }
3140
3130
 
@@ -6682,7 +6672,6 @@ class PdfViewerPreferences {
6682
6672
  * ```
6683
6673
  */
6684
6674
  constructor(catalog) {
6685
- this._dictionaryProperties = new DictionaryProperties();
6686
6675
  this._centerWindow = false;
6687
6676
  this._fitWindow = false;
6688
6677
  this._displayTitle = false;
@@ -6727,7 +6716,7 @@ class PdfViewerPreferences {
6727
6716
  */
6728
6717
  set centerWindow(value) {
6729
6718
  this._centerWindow = value;
6730
- this._dictionary.items.setValue(this._dictionaryProperties.centerWindow, new PdfBoolean(this._centerWindow));
6719
+ this._dictionary.items.setValue('CenterWindow', new PdfBoolean(this._centerWindow));
6731
6720
  }
6732
6721
  /**
6733
6722
  * A flag specifying whether the window’s title bar should display the document title taken
@@ -6764,7 +6753,7 @@ class PdfViewerPreferences {
6764
6753
  */
6765
6754
  set displayTitle(value) {
6766
6755
  this._displayTitle = value;
6767
- this._dictionary.items.setValue(this._dictionaryProperties.displayTitle, new PdfBoolean(this._displayTitle));
6756
+ this._dictionary.items.setValue('DisplayTitle', new PdfBoolean(this._displayTitle));
6768
6757
  }
6769
6758
  /**
6770
6759
  * A flag specifying whether to resize the document’s window to fit the size of the first
@@ -6799,7 +6788,7 @@ class PdfViewerPreferences {
6799
6788
  */
6800
6789
  set fitWindow(value) {
6801
6790
  this._fitWindow = value;
6802
- this._dictionary.items.setValue(this._dictionaryProperties.fitWindow, new PdfBoolean(this._fitWindow));
6791
+ this._dictionary.items.setValue('FitWindow', new PdfBoolean(this._fitWindow));
6803
6792
  }
6804
6793
  /**
6805
6794
  * A flag specifying whether to hide the viewer application’s menu bar when the
@@ -6834,7 +6823,7 @@ class PdfViewerPreferences {
6834
6823
  */
6835
6824
  set hideMenuBar(value) {
6836
6825
  this._hideMenuBar = value;
6837
- this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar, new PdfBoolean(this._hideMenuBar));
6826
+ this._dictionary.items.setValue('HideMenubar', new PdfBoolean(this._hideMenuBar));
6838
6827
  }
6839
6828
  /**
6840
6829
  * A flag specifying whether to hide the viewer application’s tool bar when the
@@ -6869,7 +6858,7 @@ class PdfViewerPreferences {
6869
6858
  */
6870
6859
  set hideToolBar(value) {
6871
6860
  this._hideToolBar = value;
6872
- this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar, new PdfBoolean(this._hideToolBar));
6861
+ this._dictionary.items.setValue('HideToolbar', new PdfBoolean(this._hideToolBar));
6873
6862
  }
6874
6863
  /**
6875
6864
  * A flag specifying whether to hide user interface elements in the document’s window
@@ -6904,7 +6893,7 @@ class PdfViewerPreferences {
6904
6893
  */
6905
6894
  set hideWindowUI(value) {
6906
6895
  this._hideWindowUI = value;
6907
- this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI, new PdfBoolean(this._hideWindowUI));
6896
+ this._dictionary.items.setValue('HideWindowUI', new PdfBoolean(this._hideWindowUI));
6908
6897
  }
6909
6898
  /**
6910
6899
  * A name object specifying how the document should be displayed when opened.
@@ -6937,7 +6926,7 @@ class PdfViewerPreferences {
6937
6926
  */
6938
6927
  set pageMode(value) {
6939
6928
  this._pageMode = value;
6940
- this._catalog.items.setValue(this._dictionaryProperties.pageMode, new PdfName(this._mapPageMode(this._pageMode)));
6929
+ this._catalog.items.setValue('PageMode', new PdfName(this._mapPageMode(this._pageMode)));
6941
6930
  }
6942
6931
  /**
6943
6932
  * Gets print duplex mode handling option to use when printing the file from the print dialog.
@@ -6970,7 +6959,7 @@ class PdfViewerPreferences {
6970
6959
  */
6971
6960
  set duplex(value) {
6972
6961
  this._duplex = value;
6973
- this._catalog.items.setValue(this._dictionaryProperties.duplex, new PdfName(this._mapDuplexMode(this._duplex)));
6962
+ this._catalog.items.setValue('Duplex', new PdfName(this._mapDuplexMode(this._duplex)));
6974
6963
  }
6975
6964
  /**
6976
6965
  * A name object specifying the page layout to be used when the document is opened.
@@ -7003,7 +6992,7 @@ class PdfViewerPreferences {
7003
6992
  */
7004
6993
  set pageLayout(value) {
7005
6994
  this._pageLayout = value;
7006
- this._catalog.items.setValue(this._dictionaryProperties.pageLayout, new PdfName(this._mapPageLayout(this._pageLayout)));
6995
+ this._catalog.items.setValue('PageLayout', new PdfName(this._mapPageLayout(this._pageLayout)));
7007
6996
  }
7008
6997
  /**
7009
6998
  * Gets the page scaling option to be selected
@@ -7038,11 +7027,11 @@ class PdfViewerPreferences {
7038
7027
  */
7039
7028
  set pageScaling(value) {
7040
7029
  this._pageScaling = value;
7041
- if (this._pageScaling === PageScalingMode.AppDefault && this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)) {
7042
- this._dictionary.items.remove(this._dictionaryProperties.printScaling);
7030
+ if (this._pageScaling === PageScalingMode.AppDefault && this._dictionary.items.containsKey('PrintScaling')) {
7031
+ this._dictionary.items.remove('PrintScaling');
7043
7032
  }
7044
7033
  else if (this._pageScaling === PageScalingMode.None) {
7045
- this._dictionary.items.setValue(this._dictionaryProperties.printScaling, new PdfName('None'));
7034
+ this._dictionary.items.setValue('PrintScaling', new PdfName('None'));
7046
7035
  }
7047
7036
  }
7048
7037
  /**
@@ -7321,12 +7310,6 @@ class PdfCrossTable {
7321
7310
  * @private
7322
7311
  */
7323
7312
  this.objectCount = 0;
7324
- /**
7325
- * Internal variable for accessing fields from `DictionryProperties` class.
7326
- * @default new PdfDictionaryProperties()
7327
- * @private
7328
- */
7329
- this.dictionaryProperties = new DictionaryProperties();
7330
7313
  }
7331
7314
  //Properties
7332
7315
  /**
@@ -7452,7 +7435,7 @@ class PdfCrossTable {
7452
7435
  writer.write(Operators.trailer + Operators.newLine);
7453
7436
  // Save the dictionary.
7454
7437
  let trailer = this.trailer;
7455
- trailer.items.setValue(this.dictionaryProperties.size, new PdfNumber(this.objectCount + 1));
7438
+ trailer.items.setValue('Size', new PdfNumber(this.objectCount + 1));
7456
7439
  trailer = new PdfDictionary(trailer); // Make it real dictionary.
7457
7440
  trailer.setEncrypt(false);
7458
7441
  trailer.save(writer);
@@ -7645,7 +7628,7 @@ class PdfCrossTable {
7645
7628
  saveIndirectObject(obj, writer) {
7646
7629
  let reference = this.getReference(obj);
7647
7630
  if (obj instanceof PdfCatalog) {
7648
- this.trailer.items.setValue(this.dictionaryProperties.root, reference);
7631
+ this.trailer.items.setValue('Root', reference);
7649
7632
  }
7650
7633
  // NOTE : This is needed for correct string objects encryption.
7651
7634
  this.pdfDocument.currentSavingObj = reference;
@@ -9622,7 +9605,7 @@ class PdfTransparency {
9622
9605
  // * @private
9623
9606
  // */
9624
9607
  // public get stroke() : number {
9625
- // let result : number = this.getNumber(this.dictionaryProperties.CA);
9608
+ // let result : number = this.getNumber('CA');
9626
9609
  // return result;
9627
9610
  // }
9628
9611
  // /**
@@ -9630,7 +9613,7 @@ class PdfTransparency {
9630
9613
  // * @private
9631
9614
  // */
9632
9615
  // public get fill() : number {
9633
- // let result : number = this.getNumber(this.dictionaryProperties.ca);
9616
+ // let result : number = this.getNumber('ca');
9634
9617
  // return result;
9635
9618
  // }
9636
9619
  // /**
@@ -9638,7 +9621,7 @@ class PdfTransparency {
9638
9621
  // * @private
9639
9622
  // */
9640
9623
  // public get mode() : PdfBlendMode {
9641
- // let result : string = this.getName(this.dictionaryProperties.ca);
9624
+ // let result : string = this.getName('ca');
9642
9625
  // return PdfBlendMode.Normal;
9643
9626
  // }
9644
9627
  // Constructors
@@ -9654,15 +9637,9 @@ class PdfTransparency {
9654
9637
  * @private
9655
9638
  */
9656
9639
  this.dictionary = new PdfDictionary();
9657
- /**
9658
- * Internal variable for accessing fields from `DictionryProperties` class.
9659
- * @default new DictionaryProperties()
9660
- * @private
9661
- */
9662
- this.dictionaryProperties = new DictionaryProperties();
9663
- this.dictionary.items.setValue(this.dictionaryProperties.CA, new PdfNumber(stroke));
9664
- this.dictionary.items.setValue(this.dictionaryProperties.ca, new PdfNumber(fill));
9665
- this.dictionary.items.setValue(this.dictionaryProperties.BM, new PdfName(mode.toString()));
9640
+ this.dictionary.items.setValue('CA', new PdfNumber(stroke));
9641
+ this.dictionary.items.setValue('ca', new PdfNumber(fill));
9642
+ this.dictionary.items.setValue('BM', new PdfName(mode.toString()));
9666
9643
  }
9667
9644
  // // Implementation
9668
9645
  // /**
@@ -10184,12 +10161,6 @@ class ImageDecoder {
10184
10161
  * @private
10185
10162
  */
10186
10163
  this.mbitsPerComponent = 8;
10187
- /**
10188
- * Internal variable for accessing fields from `DictionryProperties` class.
10189
- * @hidden
10190
- * @private
10191
- */
10192
- this.dictionaryProperties = new DictionaryProperties();
10193
10164
  this.mStream = stream;
10194
10165
  this.initialize();
10195
10166
  }
@@ -10349,14 +10320,14 @@ class ImageDecoder {
10349
10320
  }
10350
10321
  this.imageStream.data = [decodedString];
10351
10322
  this.imageStream.compress = false;
10352
- this.imageStream.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.xObject));
10353
- this.imageStream.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.image));
10354
- this.imageStream.items.setValue(this.dictionaryProperties.width, new PdfNumber(this.width));
10355
- this.imageStream.items.setValue(this.dictionaryProperties.height, new PdfNumber(this.height));
10356
- this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent, new PdfNumber(this.bitsPerComponent));
10357
- this.imageStream.items.setValue(this.dictionaryProperties.filter, new PdfName(this.dictionaryProperties.dctdecode));
10358
- this.imageStream.items.setValue(this.dictionaryProperties.colorSpace, new PdfName(this.getColorSpace()));
10359
- this.imageStream.items.setValue(this.dictionaryProperties.decodeParms, this.getDecodeParams());
10323
+ this.imageStream.items.setValue('Type', new PdfName('XObject'));
10324
+ this.imageStream.items.setValue('Subtype', new PdfName('Image'));
10325
+ this.imageStream.items.setValue('Width', new PdfNumber(this.width));
10326
+ this.imageStream.items.setValue('Height', new PdfNumber(this.height));
10327
+ this.imageStream.items.setValue('BitsPerComponent', new PdfNumber(this.bitsPerComponent));
10328
+ this.imageStream.items.setValue('Filter', new PdfName('DCTDecode'));
10329
+ this.imageStream.items.setValue('ColorSpace', new PdfName(this.getColorSpace()));
10330
+ this.imageStream.items.setValue('DecodeParms', this.getDecodeParams());
10360
10331
  return this.imageStream;
10361
10332
  }
10362
10333
  else {
@@ -10369,7 +10340,7 @@ class ImageDecoder {
10369
10340
  * @private
10370
10341
  */
10371
10342
  getColorSpace() {
10372
- return this.dictionaryProperties.deviceRgb;
10343
+ return 'DeviceRGB';
10373
10344
  }
10374
10345
  /**
10375
10346
  * Return `decode parameters` of an image.
@@ -10378,11 +10349,11 @@ class ImageDecoder {
10378
10349
  */
10379
10350
  getDecodeParams() {
10380
10351
  let decodeParams = new PdfDictionary();
10381
- decodeParams.items.setValue(this.dictionaryProperties.columns, new PdfNumber(this.width));
10382
- decodeParams.items.setValue(this.dictionaryProperties.blackIs1, new PdfBoolean(true));
10383
- decodeParams.items.setValue(this.dictionaryProperties.k, new PdfNumber(-1));
10384
- decodeParams.items.setValue(this.dictionaryProperties.predictor, new PdfNumber(15));
10385
- decodeParams.items.setValue(this.dictionaryProperties.bitsPerComponent, new PdfNumber(this.bitsPerComponent));
10352
+ decodeParams.items.setValue('Columns', new PdfNumber(this.width));
10353
+ decodeParams.items.setValue('BlackIs1', new PdfBoolean(true));
10354
+ decodeParams.items.setValue('K', new PdfNumber(-1));
10355
+ decodeParams.items.setValue('Predictor', new PdfNumber(15));
10356
+ decodeParams.items.setValue('BitsPerComponent', new PdfNumber(this.bitsPerComponent));
10386
10357
  return decodeParams;
10387
10358
  }
10388
10359
  /**
@@ -10682,12 +10653,6 @@ class PdfBitmap extends PdfImage {
10682
10653
  * @private
10683
10654
  */
10684
10655
  this.imageStatus = true;
10685
- /**
10686
- * Internal variable for accessing fields from `DictionryProperties` class.
10687
- * @hidden
10688
- * @private
10689
- */
10690
- this.dictionaryProperties = new DictionaryProperties();
10691
10656
  this.loadImage(encodedString);
10692
10657
  }
10693
10658
  /**
@@ -12349,11 +12314,6 @@ class UnicodeTrueTypeFont {
12349
12314
  constructor(base64String, size) {
12350
12315
  // Fields
12351
12316
  this.nameString = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
12352
- /**
12353
- * Specifies the Internal variable to store fields of `PdfDictionaryProperties`.
12354
- * @private
12355
- */
12356
- this.dictionaryProperties = new DictionaryProperties();
12357
12317
  /**
12358
12318
  * Indicates whether the font program is compressed or not.
12359
12319
  * @private
@@ -12513,20 +12473,20 @@ class UnicodeTrueTypeFont {
12513
12473
  // Set property used to clone Font every time
12514
12474
  this.descendantFont.isResource = true;
12515
12475
  this.descendantFont.descendantFontBeginSave = new SaveDescendantFontEventHandler(this);
12516
- this.descendantFont.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.font));
12476
+ this.descendantFont.items.setValue('Type', new PdfName('Font'));
12517
12477
  if (this.ttfReader && this.ttfReader._isOpenTypeFont) {
12518
- this.descendantFont.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.cIDFontType0));
12478
+ this.descendantFont.items.setValue('Subtype', new PdfName('CIDFontType0'));
12519
12479
  }
12520
12480
  else {
12521
- this.descendantFont.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.cIDFontType2));
12481
+ this.descendantFont.items.setValue('Subtype', new PdfName('CIDFontType2'));
12522
12482
  }
12523
- this.descendantFont.items.setValue(this.dictionaryProperties.baseFont, new PdfName(this.subsetName));
12524
- this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap, new PdfName(this.dictionaryProperties.identity));
12525
- this.descendantFont.items.setValue(this.dictionaryProperties.dw, new PdfNumber(1000));
12483
+ this.descendantFont.items.setValue('BaseFont', new PdfName(this.subsetName));
12484
+ this.descendantFont.items.setValue('CIDToGIDMap', new PdfName('Identity'));
12485
+ this.descendantFont.items.setValue('DW', new PdfNumber(1000));
12526
12486
  this.fontDescriptor = this.createFontDescriptor();
12527
- this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor, new PdfReferenceHolder(this.fontDescriptor));
12487
+ this.descendantFont.items.setValue('FontDescriptor', new PdfReferenceHolder(this.fontDescriptor));
12528
12488
  let systemInfo = this.createSystemInfo();
12529
- this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo, systemInfo);
12489
+ this.descendantFont.items.setValue('CIDSystemInfo', systemInfo);
12530
12490
  }
12531
12491
  /**
12532
12492
  * Creates font descriptor.
@@ -12536,28 +12496,28 @@ class UnicodeTrueTypeFont {
12536
12496
  let metrics = this.ttfReader.metrics;
12537
12497
  // Set property used to clone Font every time
12538
12498
  descriptor.isResource = true;
12539
- descriptor.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.fontDescriptor));
12540
- descriptor.items.setValue(this.dictionaryProperties.fontName, new PdfName(this.subsetName));
12541
- descriptor.items.setValue(this.dictionaryProperties.flags, new PdfNumber(this.getDescriptorFlags()));
12542
- descriptor.items.setValue(this.dictionaryProperties.fontBBox, PdfArray.fromRectangle(this.getBoundBox()));
12543
- descriptor.items.setValue(this.dictionaryProperties.missingWidth, new PdfNumber(metrics.widthTable[32]));
12544
- descriptor.items.setValue(this.dictionaryProperties.stemV, new PdfNumber(metrics.stemV));
12545
- descriptor.items.setValue(this.dictionaryProperties.italicAngle, new PdfNumber(metrics.italicAngle));
12546
- descriptor.items.setValue(this.dictionaryProperties.capHeight, new PdfNumber(metrics.capHeight));
12547
- descriptor.items.setValue(this.dictionaryProperties.ascent, new PdfNumber(metrics.winAscent));
12548
- descriptor.items.setValue(this.dictionaryProperties.descent, new PdfNumber(metrics.winDescent));
12549
- descriptor.items.setValue(this.dictionaryProperties.leading, new PdfNumber(metrics.leading));
12550
- descriptor.items.setValue(this.dictionaryProperties.avgWidth, new PdfNumber(metrics.widthTable[32]));
12499
+ descriptor.items.setValue('Type', new PdfName('FontDescriptor'));
12500
+ descriptor.items.setValue('FontName', new PdfName(this.subsetName));
12501
+ descriptor.items.setValue('Flags', new PdfNumber(this.getDescriptorFlags()));
12502
+ descriptor.items.setValue('FontBBox', PdfArray.fromRectangle(this.getBoundBox()));
12503
+ descriptor.items.setValue('MissingWidth', new PdfNumber(metrics.widthTable[32]));
12504
+ descriptor.items.setValue('StemV', new PdfNumber(metrics.stemV));
12505
+ descriptor.items.setValue('ItalicAngle', new PdfNumber(metrics.italicAngle));
12506
+ descriptor.items.setValue('CapHeight', new PdfNumber(metrics.capHeight));
12507
+ descriptor.items.setValue('Ascent', new PdfNumber(metrics.winAscent));
12508
+ descriptor.items.setValue('Descent', new PdfNumber(metrics.winDescent));
12509
+ descriptor.items.setValue('Leading', new PdfNumber(metrics.leading));
12510
+ descriptor.items.setValue('AvgWidth', new PdfNumber(metrics.widthTable[32]));
12551
12511
  if (this.ttfReader.metrics.contains) {
12552
- descriptor.items.setValue(this.dictionaryProperties.fontFile3, new PdfReferenceHolder(this.fontProgram));
12553
- this.fontProgram.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.cIDFontType0C));
12512
+ descriptor.items.setValue('FontFile3', new PdfReferenceHolder(this.fontProgram));
12513
+ this.fontProgram.items.setValue('Subtype', new PdfName('CIDFontType0C'));
12554
12514
  }
12555
12515
  else {
12556
- descriptor.items.setValue(this.dictionaryProperties.fontFile2, new PdfReferenceHolder(this.fontProgram));
12516
+ descriptor.items.setValue('FontFile2', new PdfReferenceHolder(this.fontProgram));
12557
12517
  }
12558
- descriptor.items.setValue(this.dictionaryProperties.maxWidth, new PdfNumber(metrics.widthTable[32]));
12559
- descriptor.items.setValue(this.dictionaryProperties.xHeight, new PdfNumber(0));
12560
- descriptor.items.setValue(this.dictionaryProperties.stemH, new PdfNumber(0));
12518
+ descriptor.items.setValue('MaxWidth', new PdfNumber(metrics.widthTable[32]));
12519
+ descriptor.items.setValue('XHeight', new PdfNumber(0));
12520
+ descriptor.items.setValue('StemH', new PdfNumber(0));
12561
12521
  return descriptor;
12562
12522
  }
12563
12523
  /**
@@ -12574,16 +12534,16 @@ class UnicodeTrueTypeFont {
12574
12534
  // Set property used to clone Font every time
12575
12535
  this.fontDictionary.isResource = true;
12576
12536
  this.fontDictionary.fontDictionaryBeginSave = new SaveFontDictionaryEventHandler(this);
12577
- this.fontDictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.font));
12578
- this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont, new PdfName(this.subsetName));
12579
- this.fontDictionary.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.type0));
12580
- this.fontDictionary.items.setValue(this.dictionaryProperties.encoding, new PdfName(this.dictionaryProperties.identityH));
12537
+ this.fontDictionary.items.setValue('Type', new PdfName('Font'));
12538
+ this.fontDictionary.items.setValue('BaseFont', new PdfName(this.subsetName));
12539
+ this.fontDictionary.items.setValue('Subtype', new PdfName('Type0'));
12540
+ this.fontDictionary.items.setValue('Encoding', new PdfName('Identity-H'));
12581
12541
  let descFonts = new PdfArray();
12582
12542
  let reference = new PdfReferenceHolder(this.descendantFont);
12583
12543
  // Set property used to clone Font every time
12584
12544
  descFonts.isFont = true;
12585
12545
  descFonts.add(reference);
12586
- this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts, descFonts);
12546
+ this.fontDictionary.items.setValue('DescendantFonts', descFonts);
12587
12547
  }
12588
12548
  /**
12589
12549
  * Creates font program.
@@ -12597,9 +12557,9 @@ class UnicodeTrueTypeFont {
12597
12557
  */
12598
12558
  createSystemInfo() {
12599
12559
  let systemInfo = new PdfDictionary();
12600
- systemInfo.items.setValue(this.dictionaryProperties.registry, new PdfString('Adobe'));
12601
- systemInfo.items.setValue(this.dictionaryProperties.ordering, new PdfString(this.dictionaryProperties.identity));
12602
- systemInfo.items.setValue(this.dictionaryProperties.supplement, new PdfNumber(0));
12560
+ systemInfo.items.setValue('Registry', new PdfString('Adobe'));
12561
+ systemInfo.items.setValue('Ordering', new PdfString('Identity'));
12562
+ systemInfo.items.setValue('Supplement', new PdfNumber(0));
12603
12563
  return systemInfo;
12604
12564
  }
12605
12565
  /**
@@ -12609,7 +12569,7 @@ class UnicodeTrueTypeFont {
12609
12569
  if (this.usedChars !== null && this.usedChars !== undefined && this.usedChars.size() > 0) {
12610
12570
  let width = this.getDescendantWidth();
12611
12571
  if (width !== null) {
12612
- this.descendantFont.items.setValue(this.dictionaryProperties.w, width);
12572
+ this.descendantFont.items.setValue('W', width);
12613
12573
  }
12614
12574
  }
12615
12575
  }
@@ -12624,8 +12584,8 @@ class UnicodeTrueTypeFont {
12624
12584
  */
12625
12585
  /* tslint:disable */
12626
12586
  fontDictionaryBeginSave() {
12627
- if (this.usedChars !== null && this.usedChars !== undefined && this.usedChars.size() > 0 && !this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)) {
12628
- this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode, new PdfReferenceHolder(this.cmap));
12587
+ if (this.usedChars !== null && this.usedChars !== undefined && this.usedChars.size() > 0 && !this.fontDictionary.containsKey('ToUnicode')) {
12588
+ this.fontDictionary.items.setValue('ToUnicode', new PdfReferenceHolder(this.cmap));
12629
12589
  }
12630
12590
  }
12631
12591
  /* tslint:enable */
@@ -12854,82 +12814,20 @@ class ArabicShapeRenderer {
12854
12814
  //#region Constructor
12855
12815
  constructor() {
12856
12816
  //#region Constants
12857
- this.arabicCharTable = [['\u0621', '\uFE80'], ['\u0622', '\uFE81', '\uFE82'],
12858
- ['\u0623', '\uFE83', '\uFE84'],
12859
- ['\u0624', '\uFE85', '\uFE86'],
12860
- ['\u0625', '\uFE87', '\uFE88'],
12861
- ['\u0626', '\uFE89', '\uFE8A', '\uFE8B', '\uFE8C'],
12862
- ['\u0627', '\uFE8D', '\uFE8E'],
12863
- ['\u0628', '\uFE8F', '\uFE90', '\uFE91', '\uFE92'],
12864
- ['\u0629', '\uFE93', '\uFE94'],
12865
- ['\u062A', '\uFE95', '\uFE96', '\uFE97', '\uFE98'],
12866
- ['\u062B', '\uFE99', '\uFE9A', '\uFE9B', '\uFE9C'],
12867
- ['\u062C', '\uFE9D', '\uFE9E', '\uFE9F', '\uFEA0'],
12868
- ['\u062D', '\uFEA1', '\uFEA2', '\uFEA3', '\uFEA4'],
12869
- ['\u062E', '\uFEA5', '\uFEA6', '\uFEA7', '\uFEA8'],
12870
- ['\u062F', '\uFEA9', '\uFEAA'],
12871
- ['\u0630', '\uFEAB', '\uFEAC'],
12872
- ['\u0631', '\uFEAD', '\uFEAE'],
12873
- ['\u0632', '\uFEAF', '\uFEB0'],
12874
- ['\u0633', '\uFEB1', '\uFEB2', '\uFEB3', '\uFEB4'],
12875
- ['\u0634', '\uFEB5', '\uFEB6', '\uFEB7', '\uFEB8'],
12876
- ['\u0635', '\uFEB9', '\uFEBA', '\uFEBB', '\uFEBC'],
12877
- ['\u0636', '\uFEBD', '\uFEBE', '\uFEBF', '\uFEC0'],
12878
- ['\u0637', '\uFEC1', '\uFEC2', '\uFEC3', '\uFEC4'],
12879
- ['\u0638', '\uFEC5', '\uFEC6', '\uFEC7', '\uFEC8'],
12880
- ['\u0639', '\uFEC9', '\uFECA', '\uFECB', '\uFECC'],
12881
- ['\u063A', '\uFECD', '\uFECE', '\uFECF', '\uFED0'],
12882
- ['\u0640', '\u0640', '\u0640', '\u0640', '\u0640'],
12883
- ['\u0641', '\uFED1', '\uFED2', '\uFED3', '\uFED4'],
12884
- ['\u0642', '\uFED5', '\uFED6', '\uFED7', '\uFED8'],
12885
- ['\u0643', '\uFED9', '\uFEDA', '\uFEDB', '\uFEDC'],
12886
- ['\u0644', '\uFEDD', '\uFEDE', '\uFEDF', '\uFEE0'],
12887
- ['\u0645', '\uFEE1', '\uFEE2', '\uFEE3', '\uFEE4'],
12888
- ['\u0646', '\uFEE5', '\uFEE6', '\uFEE7', '\uFEE8'],
12889
- ['\u0647', '\uFEE9', '\uFEEA', '\uFEEB', '\uFEEC'],
12890
- ['\u0648', '\uFEED', '\uFEEE'],
12891
- ['\u0649', '\uFEEF', '\uFEF0', '\uFBE8', '\uFBE9'],
12892
- ['\u064A', '\uFEF1', '\uFEF2', '\uFEF3', '\uFEF4'],
12893
- ['\u0671', '\uFB50', '\uFB51'],
12894
- ['\u0679', '\uFB66', '\uFB67', '\uFB68', '\uFB69'],
12895
- ['\u067A', '\uFB5E', '\uFB5F', '\uFB60', '\uFB61'],
12896
- ['\u067B', '\uFB52', '\uFB53', '\uFB54', '\uFB55'],
12897
- ['\u067E', '\uFB56', '\uFB57', '\uFB58', '\uFB59'],
12898
- ['\u067F', '\uFB62', '\uFB63', '\uFB64', '\uFB65'],
12899
- ['\u0680', '\uFB5A', '\uFB5B', '\uFB5C', '\uFB5D'],
12900
- ['\u0683', '\uFB76', '\uFB77', '\uFB78', '\uFB79'],
12901
- ['\u0684', '\uFB72', '\uFB73', '\uFB74', '\uFB75'],
12902
- ['\u0686', '\uFB7A', '\uFB7B', '\uFB7C', '\uFB7D'],
12903
- ['\u0687', '\uFB7E', '\uFB7F', '\uFB80', '\uFB81'],
12904
- ['\u0688', '\uFB88', '\uFB89'],
12905
- ['\u068C', '\uFB84', '\uFB85'],
12906
- ['\u068D', '\uFB82', '\uFB83'],
12907
- ['\u068E', '\uFB86', '\uFB87'],
12908
- ['\u0691', '\uFB8C', '\uFB8D'],
12909
- ['\u0698', '\uFB8A', '\uFB8B'],
12910
- ['\u06A4', '\uFB6A', '\uFB6B', '\uFB6C', '\uFB6D'],
12911
- ['\u06A6', '\uFB6E', '\uFB6F', '\uFB70', '\uFB71'],
12912
- ['\u06A9', '\uFB8E', '\uFB8F', '\uFB90', '\uFB91'],
12913
- ['\u06AD', '\uFBD3', '\uFBD4', '\uFBD5', '\uFBD6'],
12914
- ['\u06AF', '\uFB92', '\uFB93', '\uFB94', '\uFB95'],
12915
- ['\u06B1', '\uFB9A', '\uFB9B', '\uFB9C', '\uFB9D'],
12916
- ['\u06B3', '\uFB96', '\uFB97', '\uFB98', '\uFB99'],
12917
- ['\u06BA', '\uFB9E', '\uFB9F'],
12918
- ['\u06BB', '\uFBA0', '\uFBA1', '\uFBA2', '\uFBA3'],
12919
- ['\u06BE', '\uFBAA', '\uFBAB', '\uFBAC', '\uFBAD'],
12920
- ['\u06C0', '\uFBA4', '\uFBA5'],
12921
- ['\u06C1', '\uFBA6', '\uFBA7', '\uFBA8', '\uFBA9'],
12922
- ['\u06C5', '\uFBE0', '\uFBE1'],
12923
- ['\u06C6', '\uFBD9', '\uFBDA'],
12924
- ['\u06C7', '\uFBD7', '\uFBD8'],
12925
- ['\u06C8', '\uFBDB', '\uFBDC'],
12926
- ['\u06C9', '\uFBE2', '\uFBE3'],
12927
- ['\u06CB', '\uFBDE', '\uFBDF'],
12928
- ['\u06CC', '\uFBFC', '\uFBFD', '\uFBFE', '\uFBFF'],
12929
- ['\u06D0', '\uFBE4', '\uFBE5', '\uFBE6', '\uFBE7'],
12930
- ['\u06D2', '\uFBAE', '\uFBAF'],
12931
- ['\u06D3', '\uFBB0', '\uFBB1']
12932
- ];
12817
+ this.arabicCharTable = [];
12818
+ /**
12819
+ * Packed shaping rows with contiguous presentation forms. Each row is packed into three
12820
+ * characters: the base character, the first presentation form and the number of forms.
12821
+ * @private
12822
+ */
12823
+ /* tslint:disable-next-line:max-line-length */
12824
+ this.packedContiguousRows = '\u0621\ufe80\u0002\u0622\ufe81\u0003\u0623\ufe83\u0003\u0624\ufe85\u0003\u0625\ufe87\u0003\u0626\ufe89\u0005\u0627\ufe8d\u0003\u0628\ufe8f\u0005\u0629\ufe93\u0003\u062a\ufe95\u0005\u062b\ufe99\u0005\u062c\ufe9d\u0005\u062d\ufea1\u0005\u062e\ufea5\u0005\u062f\ufea9\u0003\u0630\ufeab\u0003\u0631\ufead\u0003\u0632\ufeaf\u0003\u0633\ufeb1\u0005\u0634\ufeb5\u0005\u0635\ufeb9\u0005\u0636\ufebd\u0005\u0637\ufec1\u0005\u0638\ufec5\u0005\u0639\ufec9\u0005\u063a\ufecd\u0005\u0641\ufed1\u0005\u0642\ufed5\u0005\u0643\ufed9\u0005\u0644\ufedd\u0005\u0645\ufee1\u0005\u0646\ufee5\u0005\u0647\ufee9\u0005\u0648\ufeed\u0003\u064a\ufef1\u0005\u0671\ufb50\u0003\u0679\ufb66\u0005\u067a\ufb5e\u0005\u067b\ufb52\u0005\u067e\ufb56\u0005\u067f\ufb62\u0005\u0680\ufb5a\u0005\u0683\ufb76\u0005\u0684\ufb72\u0005\u0686\ufb7a\u0005\u0687\ufb7e\u0005\u0688\ufb88\u0003\u068c\ufb84\u0003\u068d\ufb82\u0003\u068e\ufb86\u0003\u0691\ufb8c\u0003\u0698\ufb8a\u0003\u06a4\ufb6a\u0005\u06a6\ufb6e\u0005\u06a9\ufb8e\u0005\u06ad\ufbd3\u0005\u06af\ufb92\u0005\u06b1\ufb9a\u0005\u06b3\ufb96\u0005\u06ba\ufb9e\u0003\u06bb\ufba0\u0005\u06be\ufbaa\u0005\u06c0\ufba4\u0003\u06c1\ufba6\u0005\u06c5\ufbe0\u0003\u06c6\ufbd9\u0003\u06c7\ufbd7\u0003\u06c8\ufbdb\u0003\u06c9\ufbe2\u0003\u06cb\ufbde\u0003\u06cc\ufbfc\u0005\u06d0\ufbe4\u0005\u06d2\ufbae\u0003\u06d3\ufbb0\u0003';
12825
+ /**
12826
+ * Packed shaping rows with non-contiguous presentation forms (tatweel and alef maksura).
12827
+ * Each row is packed as its characters concatenated.
12828
+ * @private
12829
+ */
12830
+ this.packedSpecialRows = '\u0640\u0640\u0640\u0640\u0640\u0649\ufeef\ufef0\ufbe8\ufbe9';
12933
12831
  this.alef = '\u0627';
12934
12832
  this.alefHamza = '\u0623';
12935
12833
  this.alefHamzaBelow = '\u0625';
@@ -12958,6 +12856,24 @@ class ArabicShapeRenderer {
12958
12856
  // #endregion
12959
12857
  //#region Fields
12960
12858
  this.arabicMapTable = new Dictionary();
12859
+ let rows = this.packedContiguousRows;
12860
+ for (let i = 0; i < rows.length; i += 3) {
12861
+ let row = [rows.charAt(i)];
12862
+ let firstForm = rows.charCodeAt(i + 1);
12863
+ let formCount = rows.charCodeAt(i + 2);
12864
+ for (let j = 1; j < formCount; j++) {
12865
+ row.push(String.fromCharCode(firstForm + j - 1));
12866
+ }
12867
+ this.arabicCharTable.push(row);
12868
+ }
12869
+ rows = this.packedSpecialRows;
12870
+ for (let i = 0; i < rows.length; i += 5) {
12871
+ let row = [];
12872
+ for (let j = 0; j < 5; j++) {
12873
+ row.push(rows.charAt(i + j));
12874
+ }
12875
+ this.arabicCharTable.push(row);
12876
+ }
12961
12877
  for (let i = 0; i < this.arabicCharTable.length; i++) {
12962
12878
  this.arabicMapTable.setValue(this.arabicCharTable[i][0], this.arabicCharTable[i]);
12963
12879
  }
@@ -13356,325 +13272,22 @@ class Bidi {
13356
13272
  }
13357
13273
  }
13358
13274
  update() {
13359
- this.mirroringShapeCharacters.setValue(40, 41);
13360
- this.mirroringShapeCharacters.setValue(41, 40);
13361
- this.mirroringShapeCharacters.setValue(60, 62);
13362
- this.mirroringShapeCharacters.setValue(62, 60);
13363
- this.mirroringShapeCharacters.setValue(91, 93);
13364
- this.mirroringShapeCharacters.setValue(93, 91);
13365
- this.mirroringShapeCharacters.setValue(123, 125);
13366
- this.mirroringShapeCharacters.setValue(125, 123);
13367
- this.mirroringShapeCharacters.setValue(171, 187);
13368
- this.mirroringShapeCharacters.setValue(187, 171);
13369
- this.mirroringShapeCharacters.setValue(8249, 8250);
13370
- this.mirroringShapeCharacters.setValue(8250, 8249);
13371
- this.mirroringShapeCharacters.setValue(8261, 8262);
13372
- this.mirroringShapeCharacters.setValue(8262, 8261);
13373
- this.mirroringShapeCharacters.setValue(8317, 8318);
13374
- this.mirroringShapeCharacters.setValue(8318, 8317);
13375
- this.mirroringShapeCharacters.setValue(8333, 8334);
13376
- this.mirroringShapeCharacters.setValue(8334, 8333);
13377
- this.mirroringShapeCharacters.setValue(8712, 8715);
13378
- this.mirroringShapeCharacters.setValue(8713, 8716);
13379
- this.mirroringShapeCharacters.setValue(8714, 8717);
13380
- this.mirroringShapeCharacters.setValue(8715, 8712);
13381
- this.mirroringShapeCharacters.setValue(8716, 8713);
13382
- this.mirroringShapeCharacters.setValue(8717, 8714);
13383
- this.mirroringShapeCharacters.setValue(8725, 10741);
13384
- this.mirroringShapeCharacters.setValue(8764, 8765);
13385
- this.mirroringShapeCharacters.setValue(8765, 8764);
13386
- this.mirroringShapeCharacters.setValue(8771, 8909);
13387
- this.mirroringShapeCharacters.setValue(8786, 8787);
13388
- this.mirroringShapeCharacters.setValue(8787, 8786);
13389
- this.mirroringShapeCharacters.setValue(8788, 8789);
13390
- this.mirroringShapeCharacters.setValue(8789, 8788);
13391
- this.mirroringShapeCharacters.setValue(8804, 8805);
13392
- this.mirroringShapeCharacters.setValue(8805, 8804);
13393
- this.mirroringShapeCharacters.setValue(8806, 8807);
13394
- this.mirroringShapeCharacters.setValue(8807, 8806);
13395
- this.mirroringShapeCharacters.setValue(8808, 8809);
13396
- this.mirroringShapeCharacters.setValue(8809, 8808);
13397
- this.mirroringShapeCharacters.setValue(8810, 8811);
13398
- this.mirroringShapeCharacters.setValue(8811, 8810);
13399
- this.mirroringShapeCharacters.setValue(8814, 8815);
13400
- this.mirroringShapeCharacters.setValue(8815, 8814);
13401
- this.mirroringShapeCharacters.setValue(8816, 8817);
13402
- this.mirroringShapeCharacters.setValue(8817, 8816);
13403
- this.mirroringShapeCharacters.setValue(8818, 8819);
13404
- this.mirroringShapeCharacters.setValue(8819, 8818);
13405
- this.mirroringShapeCharacters.setValue(8820, 8821);
13406
- this.mirroringShapeCharacters.setValue(8821, 8820);
13407
- this.mirroringShapeCharacters.setValue(8822, 8823);
13408
- this.mirroringShapeCharacters.setValue(8823, 8822);
13409
- this.mirroringShapeCharacters.setValue(8824, 8825);
13410
- this.mirroringShapeCharacters.setValue(8825, 8824);
13411
- this.mirroringShapeCharacters.setValue(8826, 8827);
13412
- this.mirroringShapeCharacters.setValue(8827, 8826);
13413
- this.mirroringShapeCharacters.setValue(8828, 8829);
13414
- this.mirroringShapeCharacters.setValue(8829, 8828);
13415
- this.mirroringShapeCharacters.setValue(8830, 8831);
13416
- this.mirroringShapeCharacters.setValue(8831, 8830);
13417
- this.mirroringShapeCharacters.setValue(8832, 8833);
13418
- this.mirroringShapeCharacters.setValue(8833, 8832);
13419
- this.mirroringShapeCharacters.setValue(8834, 8835);
13420
- this.mirroringShapeCharacters.setValue(8835, 8834);
13421
- this.mirroringShapeCharacters.setValue(8836, 8837);
13422
- this.mirroringShapeCharacters.setValue(8837, 8836);
13423
- this.mirroringShapeCharacters.setValue(8838, 8839);
13424
- this.mirroringShapeCharacters.setValue(8839, 8838);
13425
- this.mirroringShapeCharacters.setValue(8840, 8841);
13426
- this.mirroringShapeCharacters.setValue(8841, 8840);
13427
- this.mirroringShapeCharacters.setValue(8842, 8843);
13428
- this.mirroringShapeCharacters.setValue(8843, 8842);
13429
- this.mirroringShapeCharacters.setValue(8847, 8848);
13430
- this.mirroringShapeCharacters.setValue(8848, 8847);
13431
- this.mirroringShapeCharacters.setValue(8849, 8850);
13432
- this.mirroringShapeCharacters.setValue(8850, 8849);
13433
- this.mirroringShapeCharacters.setValue(8856, 10680);
13434
- this.mirroringShapeCharacters.setValue(8866, 8867);
13435
- this.mirroringShapeCharacters.setValue(8867, 8866);
13436
- this.mirroringShapeCharacters.setValue(8870, 10974);
13437
- this.mirroringShapeCharacters.setValue(8872, 10980);
13438
- this.mirroringShapeCharacters.setValue(8873, 10979);
13439
- this.mirroringShapeCharacters.setValue(8875, 10981);
13440
- this.mirroringShapeCharacters.setValue(8880, 8881);
13441
- this.mirroringShapeCharacters.setValue(8881, 8880);
13442
- this.mirroringShapeCharacters.setValue(8882, 8883);
13443
- this.mirroringShapeCharacters.setValue(8883, 8882);
13444
- this.mirroringShapeCharacters.setValue(8884, 8885);
13445
- this.mirroringShapeCharacters.setValue(8885, 8884);
13446
- /*tslint:disable:max-func-body-length */
13447
- this.mirroringShapeCharacters.setValue(8886, 8887);
13448
- this.mirroringShapeCharacters.setValue(8887, 8886);
13449
- this.mirroringShapeCharacters.setValue(8905, 8906);
13450
- this.mirroringShapeCharacters.setValue(8906, 8905);
13451
- this.mirroringShapeCharacters.setValue(8907, 8908);
13452
- this.mirroringShapeCharacters.setValue(8908, 8907);
13453
- this.mirroringShapeCharacters.setValue(8909, 8771);
13454
- this.mirroringShapeCharacters.setValue(8912, 8913);
13455
- this.mirroringShapeCharacters.setValue(8913, 8912);
13456
- this.mirroringShapeCharacters.setValue(8918, 8919);
13457
- this.mirroringShapeCharacters.setValue(8919, 8918);
13458
- this.mirroringShapeCharacters.setValue(8920, 8921);
13459
- this.mirroringShapeCharacters.setValue(8921, 8920);
13460
- this.mirroringShapeCharacters.setValue(8922, 8923);
13461
- this.mirroringShapeCharacters.setValue(8923, 8922);
13462
- this.mirroringShapeCharacters.setValue(8924, 8925);
13463
- this.mirroringShapeCharacters.setValue(8925, 8924);
13464
- this.mirroringShapeCharacters.setValue(8926, 8927);
13465
- this.mirroringShapeCharacters.setValue(8927, 8926);
13466
- this.mirroringShapeCharacters.setValue(8928, 8929);
13467
- this.mirroringShapeCharacters.setValue(8929, 8928);
13468
- this.mirroringShapeCharacters.setValue(8930, 8931);
13469
- this.mirroringShapeCharacters.setValue(8931, 8930);
13470
- this.mirroringShapeCharacters.setValue(8932, 8933);
13471
- this.mirroringShapeCharacters.setValue(8933, 8932);
13472
- this.mirroringShapeCharacters.setValue(8934, 8935);
13473
- this.mirroringShapeCharacters.setValue(8935, 8934);
13474
- this.mirroringShapeCharacters.setValue(8936, 8937);
13475
- this.mirroringShapeCharacters.setValue(8937, 8936);
13476
- this.mirroringShapeCharacters.setValue(8938, 8939);
13477
- this.mirroringShapeCharacters.setValue(8939, 8938);
13478
- this.mirroringShapeCharacters.setValue(8940, 8941);
13479
- this.mirroringShapeCharacters.setValue(8941, 8940);
13480
- this.mirroringShapeCharacters.setValue(8944, 8945);
13481
- this.mirroringShapeCharacters.setValue(8945, 8944);
13482
- this.mirroringShapeCharacters.setValue(8946, 8954);
13483
- this.mirroringShapeCharacters.setValue(8947, 8955);
13484
- this.mirroringShapeCharacters.setValue(8948, 8956);
13485
- this.mirroringShapeCharacters.setValue(8950, 8957);
13486
- this.mirroringShapeCharacters.setValue(8951, 8958);
13487
- this.mirroringShapeCharacters.setValue(8954, 8946);
13488
- this.mirroringShapeCharacters.setValue(8955, 8947);
13489
- this.mirroringShapeCharacters.setValue(8956, 8948);
13490
- this.mirroringShapeCharacters.setValue(8957, 8950);
13491
- this.mirroringShapeCharacters.setValue(8958, 8951);
13492
- this.mirroringShapeCharacters.setValue(8968, 8969);
13493
- this.mirroringShapeCharacters.setValue(8969, 8968);
13494
- this.mirroringShapeCharacters.setValue(8970, 8971);
13495
- this.mirroringShapeCharacters.setValue(8971, 8970);
13496
- this.mirroringShapeCharacters.setValue(9001, 9002);
13497
- this.mirroringShapeCharacters.setValue(9002, 9001);
13498
- this.mirroringShapeCharacters.setValue(10088, 10089);
13499
- this.mirroringShapeCharacters.setValue(10089, 10088);
13500
- this.mirroringShapeCharacters.setValue(10090, 10091);
13501
- this.mirroringShapeCharacters.setValue(10091, 10090);
13502
- this.mirroringShapeCharacters.setValue(10092, 10093);
13503
- this.mirroringShapeCharacters.setValue(10093, 10092);
13504
- this.mirroringShapeCharacters.setValue(10094, 10095);
13505
- this.mirroringShapeCharacters.setValue(10095, 10094);
13506
- this.mirroringShapeCharacters.setValue(10096, 10097);
13507
- this.mirroringShapeCharacters.setValue(10097, 10096);
13508
- this.mirroringShapeCharacters.setValue(10098, 10099);
13509
- this.mirroringShapeCharacters.setValue(10099, 10098);
13510
- this.mirroringShapeCharacters.setValue(10100, 10101);
13511
- this.mirroringShapeCharacters.setValue(10101, 10100);
13512
- this.mirroringShapeCharacters.setValue(10197, 10198);
13513
- this.mirroringShapeCharacters.setValue(10198, 10197);
13514
- this.mirroringShapeCharacters.setValue(10205, 10206);
13515
- this.mirroringShapeCharacters.setValue(10206, 10205);
13516
- this.mirroringShapeCharacters.setValue(10210, 10211);
13517
- this.mirroringShapeCharacters.setValue(10211, 10210);
13518
- this.mirroringShapeCharacters.setValue(10212, 10213);
13519
- this.mirroringShapeCharacters.setValue(10213, 10212);
13520
- this.mirroringShapeCharacters.setValue(10214, 10215);
13521
- this.mirroringShapeCharacters.setValue(10215, 10214);
13522
- this.mirroringShapeCharacters.setValue(10216, 10217);
13523
- this.mirroringShapeCharacters.setValue(10217, 10216);
13524
- this.mirroringShapeCharacters.setValue(10218, 10219);
13525
- this.mirroringShapeCharacters.setValue(10219, 10218);
13526
- this.mirroringShapeCharacters.setValue(10627, 10628);
13527
- this.mirroringShapeCharacters.setValue(10628, 10627);
13528
- this.mirroringShapeCharacters.setValue(10629, 10630);
13529
- this.mirroringShapeCharacters.setValue(10630, 10629);
13530
- this.mirroringShapeCharacters.setValue(10631, 10632);
13531
- this.mirroringShapeCharacters.setValue(10632, 10631);
13532
- this.mirroringShapeCharacters.setValue(10633, 10634);
13533
- this.mirroringShapeCharacters.setValue(10634, 10633);
13534
- this.mirroringShapeCharacters.setValue(10635, 10636);
13535
- this.mirroringShapeCharacters.setValue(10636, 10635);
13536
- this.mirroringShapeCharacters.setValue(10637, 10640);
13537
- this.mirroringShapeCharacters.setValue(10638, 10639);
13538
- this.mirroringShapeCharacters.setValue(10639, 10638);
13539
- this.mirroringShapeCharacters.setValue(10640, 10637);
13540
- this.mirroringShapeCharacters.setValue(10641, 10642);
13541
- this.mirroringShapeCharacters.setValue(10642, 10641);
13542
- this.mirroringShapeCharacters.setValue(10643, 10644);
13543
- this.mirroringShapeCharacters.setValue(10644, 10643);
13544
- this.mirroringShapeCharacters.setValue(10645, 10646);
13545
- this.mirroringShapeCharacters.setValue(10646, 10645);
13546
- this.mirroringShapeCharacters.setValue(10647, 10648);
13547
- this.mirroringShapeCharacters.setValue(10648, 10647);
13548
- this.mirroringShapeCharacters.setValue(10680, 8856);
13549
- this.mirroringShapeCharacters.setValue(10688, 10689);
13550
- this.mirroringShapeCharacters.setValue(10689, 10688);
13551
- this.mirroringShapeCharacters.setValue(10692, 10693);
13552
- this.mirroringShapeCharacters.setValue(10693, 10692);
13553
- this.mirroringShapeCharacters.setValue(10703, 10704);
13554
- this.mirroringShapeCharacters.setValue(10704, 10703);
13555
- this.mirroringShapeCharacters.setValue(10705, 10706);
13556
- this.mirroringShapeCharacters.setValue(10706, 10705);
13557
- this.mirroringShapeCharacters.setValue(10708, 10709);
13558
- this.mirroringShapeCharacters.setValue(10709, 10708);
13559
- this.mirroringShapeCharacters.setValue(10712, 10713);
13560
- this.mirroringShapeCharacters.setValue(10713, 10712);
13561
- this.mirroringShapeCharacters.setValue(10714, 10715);
13562
- this.mirroringShapeCharacters.setValue(10715, 10714);
13563
- this.mirroringShapeCharacters.setValue(10741, 8725);
13564
- this.mirroringShapeCharacters.setValue(10744, 10745);
13565
- this.mirroringShapeCharacters.setValue(10745, 10744);
13566
- this.mirroringShapeCharacters.setValue(10748, 10749);
13567
- this.mirroringShapeCharacters.setValue(10749, 10748);
13568
- this.mirroringShapeCharacters.setValue(10795, 10796);
13569
- this.mirroringShapeCharacters.setValue(10796, 10795);
13570
- this.mirroringShapeCharacters.setValue(10797, 10796);
13571
- this.mirroringShapeCharacters.setValue(10798, 10797);
13572
- this.mirroringShapeCharacters.setValue(10804, 10805);
13573
- this.mirroringShapeCharacters.setValue(10805, 10804);
13574
- this.mirroringShapeCharacters.setValue(10812, 10813);
13575
- this.mirroringShapeCharacters.setValue(10813, 10812);
13576
- this.mirroringShapeCharacters.setValue(10852, 10853);
13577
- this.mirroringShapeCharacters.setValue(10853, 10852);
13578
- this.mirroringShapeCharacters.setValue(10873, 10874);
13579
- this.mirroringShapeCharacters.setValue(10874, 10873);
13580
- this.mirroringShapeCharacters.setValue(10877, 10878);
13581
- this.mirroringShapeCharacters.setValue(10878, 10877);
13582
- this.mirroringShapeCharacters.setValue(10879, 10880);
13583
- this.mirroringShapeCharacters.setValue(10880, 10879);
13584
- this.mirroringShapeCharacters.setValue(10881, 10882);
13585
- this.mirroringShapeCharacters.setValue(10882, 10881);
13586
- this.mirroringShapeCharacters.setValue(10883, 10884);
13587
- this.mirroringShapeCharacters.setValue(10884, 10883);
13588
- this.mirroringShapeCharacters.setValue(10891, 10892);
13589
- this.mirroringShapeCharacters.setValue(10892, 10891);
13590
- this.mirroringShapeCharacters.setValue(10897, 10898);
13591
- this.mirroringShapeCharacters.setValue(10898, 10897);
13592
- this.mirroringShapeCharacters.setValue(10899, 10900);
13593
- this.mirroringShapeCharacters.setValue(10900, 10899);
13594
- this.mirroringShapeCharacters.setValue(10901, 10902);
13595
- this.mirroringShapeCharacters.setValue(10902, 10901);
13596
- this.mirroringShapeCharacters.setValue(10903, 10904);
13597
- this.mirroringShapeCharacters.setValue(10904, 10903);
13598
- this.mirroringShapeCharacters.setValue(10905, 10906);
13599
- this.mirroringShapeCharacters.setValue(10906, 10905);
13600
- this.mirroringShapeCharacters.setValue(10907, 10908);
13601
- this.mirroringShapeCharacters.setValue(10908, 10907);
13602
- this.mirroringShapeCharacters.setValue(10913, 10914);
13603
- this.mirroringShapeCharacters.setValue(10914, 10913);
13604
- this.mirroringShapeCharacters.setValue(10918, 10919);
13605
- this.mirroringShapeCharacters.setValue(10919, 10918);
13606
- this.mirroringShapeCharacters.setValue(10920, 10921);
13607
- this.mirroringShapeCharacters.setValue(10921, 10920);
13608
- this.mirroringShapeCharacters.setValue(10922, 10923);
13609
- this.mirroringShapeCharacters.setValue(10923, 10922);
13610
- this.mirroringShapeCharacters.setValue(10924, 10925);
13611
- this.mirroringShapeCharacters.setValue(10925, 10924);
13612
- this.mirroringShapeCharacters.setValue(10927, 10928);
13613
- this.mirroringShapeCharacters.setValue(10928, 10927);
13614
- this.mirroringShapeCharacters.setValue(10931, 10932);
13615
- this.mirroringShapeCharacters.setValue(10932, 10931);
13616
- this.mirroringShapeCharacters.setValue(10939, 10940);
13617
- this.mirroringShapeCharacters.setValue(10940, 10939);
13618
- this.mirroringShapeCharacters.setValue(10941, 10942);
13619
- this.mirroringShapeCharacters.setValue(10942, 10941);
13620
- this.mirroringShapeCharacters.setValue(10943, 10944);
13621
- this.mirroringShapeCharacters.setValue(10944, 10943);
13622
- this.mirroringShapeCharacters.setValue(10945, 10946);
13623
- this.mirroringShapeCharacters.setValue(10946, 10945);
13624
- this.mirroringShapeCharacters.setValue(10947, 10948);
13625
- this.mirroringShapeCharacters.setValue(10948, 10947);
13626
- this.mirroringShapeCharacters.setValue(10949, 10950);
13627
- this.mirroringShapeCharacters.setValue(10950, 10949);
13628
- this.mirroringShapeCharacters.setValue(10957, 10958);
13629
- this.mirroringShapeCharacters.setValue(10958, 10957);
13630
- this.mirroringShapeCharacters.setValue(10959, 10960);
13631
- this.mirroringShapeCharacters.setValue(10960, 10959);
13632
- this.mirroringShapeCharacters.setValue(10961, 10962);
13633
- this.mirroringShapeCharacters.setValue(10962, 10961);
13634
- this.mirroringShapeCharacters.setValue(10963, 10964);
13635
- this.mirroringShapeCharacters.setValue(10964, 10963);
13636
- this.mirroringShapeCharacters.setValue(10965, 10966);
13637
- this.mirroringShapeCharacters.setValue(10966, 10965);
13638
- this.mirroringShapeCharacters.setValue(10974, 8870);
13639
- this.mirroringShapeCharacters.setValue(10979, 8873);
13640
- this.mirroringShapeCharacters.setValue(10980, 8872);
13641
- this.mirroringShapeCharacters.setValue(10981, 8875);
13642
- this.mirroringShapeCharacters.setValue(10988, 10989);
13643
- this.mirroringShapeCharacters.setValue(10989, 10988);
13644
- this.mirroringShapeCharacters.setValue(10999, 11000);
13645
- this.mirroringShapeCharacters.setValue(11000, 10999);
13646
- this.mirroringShapeCharacters.setValue(11001, 11002);
13647
- this.mirroringShapeCharacters.setValue(11002, 11001);
13648
- this.mirroringShapeCharacters.setValue(12296, 12297);
13649
- this.mirroringShapeCharacters.setValue(12297, 12296);
13650
- this.mirroringShapeCharacters.setValue(12298, 12299);
13651
- this.mirroringShapeCharacters.setValue(12299, 12298);
13652
- this.mirroringShapeCharacters.setValue(12300, 12301);
13653
- this.mirroringShapeCharacters.setValue(12301, 12300);
13654
- this.mirroringShapeCharacters.setValue(12302, 12303);
13655
- this.mirroringShapeCharacters.setValue(12303, 12302);
13656
- this.mirroringShapeCharacters.setValue(12304, 12305);
13657
- this.mirroringShapeCharacters.setValue(12305, 12304);
13658
- this.mirroringShapeCharacters.setValue(12308, 12309);
13659
- this.mirroringShapeCharacters.setValue(12309, 12308);
13660
- this.mirroringShapeCharacters.setValue(12310, 12311);
13661
- this.mirroringShapeCharacters.setValue(12311, 12310);
13662
- this.mirroringShapeCharacters.setValue(12312, 12313);
13663
- this.mirroringShapeCharacters.setValue(12313, 12312);
13664
- this.mirroringShapeCharacters.setValue(12314, 12315);
13665
- this.mirroringShapeCharacters.setValue(12315, 12314);
13666
- this.mirroringShapeCharacters.setValue(65288, 65289);
13667
- this.mirroringShapeCharacters.setValue(65289, 65288);
13668
- this.mirroringShapeCharacters.setValue(65308, 65310);
13669
- this.mirroringShapeCharacters.setValue(65310, 65308);
13670
- this.mirroringShapeCharacters.setValue(65339, 65341);
13671
- this.mirroringShapeCharacters.setValue(65341, 65339);
13672
- this.mirroringShapeCharacters.setValue(65371, 65373);
13673
- this.mirroringShapeCharacters.setValue(65373, 65371);
13674
- this.mirroringShapeCharacters.setValue(65375, 65376);
13675
- this.mirroringShapeCharacters.setValue(65376, 65375);
13676
- this.mirroringShapeCharacters.setValue(65378, 65379);
13677
- this.mirroringShapeCharacters.setValue(65379, 65378);
13275
+ // Symmetric mirrored pairs: both (a, b) and (b, a) are mirrored. Each pair is packed
13276
+ // into two chars to keep the emitted code small.
13277
+ /* tslint:disable-next-line:max-line-length */
13278
+ const symmetricPairs = '\u0028\u0029\u003c\u003e\u005b\u005d\u007b\u007d\u00ab\u00bb\u2039\u203a\u2045\u2046\u207d\u207e\u208d\u208e\u2208\u220b\u2209\u220c\u220a\u220d\u2215\u29f5\u223c\u223d\u2243\u22cd\u2252\u2253\u2254\u2255\u2264\u2265\u2266\u2267\u2268\u2269\u226a\u226b\u226e\u226f\u2270\u2271\u2272\u2273\u2274\u2275\u2276\u2277\u2278\u2279\u227a\u227b\u227c\u227d\u227e\u227f\u2280\u2281\u2282\u2283\u2284\u2285\u2286\u2287\u2288\u2289\u228a\u228b\u228f\u2290\u2291\u2292\u2298\u29b8\u22a2\u22a3\u22a6\u2ade\u22a8\u2ae4\u22a9\u2ae3\u22ab\u2ae5\u22b0\u22b1\u22b2\u22b3\u22b4\u22b5\u22b6\u22b7\u22c9\u22ca\u22cb\u22cc\u22d0\u22d1\u22d6\u22d7\u22d8\u22d9\u22da\u22db\u22dc\u22dd\u22de\u22df\u22e0\u22e1\u22e2\u22e3\u22e4\u22e5\u22e6\u22e7\u22e8\u22e9\u22ea\u22eb\u22ec\u22ed\u22f0\u22f1\u22f2\u22fa\u22f3\u22fb\u22f4\u22fc\u22f6\u22fd\u22f7\u22fe\u2308\u2309\u230a\u230b\u2329\u232a\u2768\u2769\u276a\u276b\u276c\u276d\u276e\u276f\u2770\u2771\u2772\u2773\u2774\u2775\u27d5\u27d6\u27dd\u27de\u27e2\u27e3\u27e4\u27e5\u27e6\u27e7\u27e8\u27e9\u27ea\u27eb\u2983\u2984\u2985\u2986\u2987\u2988\u2989\u298a\u298b\u298c\u298d\u2990\u298e\u298f\u2991\u2992\u2993\u2994\u2995\u2996\u2997\u2998\u29c0\u29c1\u29c4\u29c5\u29cf\u29d0\u29d1\u29d2\u29d4\u29d5\u29d8\u29d9\u29da\u29db\u29f8\u29f9\u29fc\u29fd\u2a2b\u2a2c\u2a34\u2a35\u2a3c\u2a3d\u2a64\u2a65\u2a79\u2a7a\u2a7d\u2a7e\u2a7f\u2a80\u2a81\u2a82\u2a83\u2a84\u2a8b\u2a8c\u2a91\u2a92\u2a93\u2a94\u2a95\u2a96\u2a97\u2a98\u2a99\u2a9a\u2a9b\u2a9c\u2aa1\u2aa2\u2aa6\u2aa7\u2aa8\u2aa9\u2aaa\u2aab\u2aac\u2aad\u2aaf\u2ab0\u2ab3\u2ab4\u2abb\u2abc\u2abd\u2abe\u2abf\u2ac0\u2ac1\u2ac2\u2ac3\u2ac4\u2ac5\u2ac6\u2acd\u2ace\u2acf\u2ad0\u2ad1\u2ad2\u2ad3\u2ad4\u2ad5\u2ad6\u2aec\u2aed\u2af7\u2af8\u2af9\u2afa\u3008\u3009\u300a\u300b\u300c\u300d\u300e\u300f\u3010\u3011\u3014\u3015\u3016\u3017\u3018\u3019\u301a\u301b\uff08\uff09\uff1c\uff1e\uff3b\uff3d\uff5b\uff5d\uff5f\uff60\uff62\uff63';
13279
+ for (let i = 0; i < symmetricPairs.length; i += 2) {
13280
+ const a = symmetricPairs.charCodeAt(i);
13281
+ const b = symmetricPairs.charCodeAt(i + 1);
13282
+ this.mirroringShapeCharacters.setValue(a, b);
13283
+ this.mirroringShapeCharacters.setValue(b, a);
13284
+ }
13285
+ // Asymmetric mirrored pairs.
13286
+ /* tslint:disable-next-line:max-line-length */
13287
+ const asymmetricPairs = '\u2a2d\u2a2c\u2a2e\u2a2d';
13288
+ for (let i = 0; i < asymmetricPairs.length; i += 2) {
13289
+ this.mirroringShapeCharacters.setValue(asymmetricPairs.charCodeAt(i), asymmetricPairs.charCodeAt(i + 1));
13290
+ }
13678
13291
  }
13679
13292
  }
13680
13293
  class RtlCharacters {
@@ -13776,148 +13389,7 @@ class RtlCharacters {
13776
13389
  /// <summary>
13777
13390
  /// RTL character types.
13778
13391
  /// </summary>
13779
- this.charTypes = [
13780
- this.L, this.EN, this.BN, this.ES, this.ES, this.S, this.ET, this.ET, this.B, this.AN, this.AN, this.S, this.CS, this.CS,
13781
- this.WS, this.NSM, this.NSM, this.B, this.BN, 27, this.BN, 28, 30, this.B, 31, 31, this.S, 32, 32, this.WS, 33, 34,
13782
- this.ON, 35, 37, this.ET, 38, 42, this.ON, 43, 43, this.ET, 44, 44, this.CS, 45, 45, this.ET, 46, 46, this.CS,
13783
- 47, 47, this.CS, 48, 57, this.EN, 58, 58, this.CS, 59, 64, this.ON, 65, 90, this.L, 91, 96, this.ON, 97, 122, this.L,
13784
- 123, 126, this.ON, 127, 132, this.BN, 133, 133, this.B, 134, 159, this.BN, 160, 160, this.CS,
13785
- 161, 161, this.ON, 162, 165, this.ET, 166, 169, this.ON, 170, 170, this.L, 171, 175, this.ON,
13786
- 176, 177, this.ET, 178, 179, this.EN, 180, 180, this.ON, 181, 181, this.L, 182, 184, this.ON,
13787
- 185, 185, this.EN, 186, 186, this.L, 187, 191, this.ON, 192, 214, this.L, 215, 215, this.ON,
13788
- 216, 246, this.L, 247, 247, this.ON, 248, 696, this.L, 697, 698, this.ON, 699, 705, this.L,
13789
- 706, 719, this.ON, 720, 721, this.L, 722, 735, this.ON, 736, 740, this.L, 741, 749, this.ON,
13790
- 750, 750, this.L, 751, 767, this.ON, 768, 855, this.NSM, 856, 860, this.L, 861, 879, this.NSM,
13791
- 880, 883, this.L, 884, 885, this.ON, 886, 893, this.L, 894, 894, this.ON, 895, 899, this.L,
13792
- 900, 901, this.ON, 902, 902, this.L, 903, 903, this.ON, 904, 1013, this.L, 1014, 1014, this.ON,
13793
- 1015, 1154, this.L, 1155, 1158, this.NSM, 1159, 1159, this.L, 1160, 1161, this.NSM,
13794
- 1162, 1417, this.L, 1418, 1418, this.ON, 1419, 1424, this.L, 1425, 1441, this.NSM,
13795
- 1442, 1442, this.L, 1443, 1465, this.NSM, 1466, 1466, this.L, 1467, 1469, this.NSM,
13796
- 1470, 1470, this.R, 1471, 1471, this.NSM, 1472, 1472, this.R, 1473, 1474, this.NSM,
13797
- 1475, 1475, this.R, 1476, 1476, this.NSM, 1477, 1487, this.L, 1488, 1514, this.R,
13798
- 1515, 1519, this.L, 1520, 1524, this.R, 1525, 1535, this.L, 1536, 1539, this.AL,
13799
- 1540, 1547, this.L, 1548, 1548, this.CS, 1549, 1549, this.AL, 1550, 1551, this.ON,
13800
- 1552, 1557, this.NSM, 1558, 1562, this.L, 1563, 1563, this.AL, 1564, 1566, this.L,
13801
- 1567, 1567, this.AL, 1568, 1568, this.L, 1569, 1594, this.AL, 1595, 1599, this.L,
13802
- 1600, 1610, this.AL, 1611, 1624, this.NSM, 1625, 1631, this.L, 1632, 1641, this.AN,
13803
- 1642, 1642, this.ET, 1643, 1644, this.AN, 1645, 1647, this.AL, 1648, 1648, this.NSM,
13804
- 1649, 1749, this.AL, 1750, 1756, this.NSM, 1757, 1757, this.AL, 1758, 1764, this.NSM,
13805
- 1765, 1766, this.AL, 1767, 1768, this.NSM, 1769, 1769, this.ON, 1770, 1773, this.NSM,
13806
- 1774, 1775, this.AL, 1776, 1785, this.EN, 1786, 1805, this.AL, 1806, 1806, this.L,
13807
- 1807, 1807, this.BN, 1808, 1808, this.AL, 1809, 1809, this.NSM, 1810, 1839, this.AL,
13808
- 1840, 1866, this.NSM, 1867, 1868, this.L, 1869, 1871, this.AL, 1872, 1919, this.L,
13809
- 1920, 1957, this.AL, 1958, 1968, this.NSM, 1969, 1969, this.AL, 1970, 2304, this.L,
13810
- 2305, 2306, this.NSM, 2307, 2363, this.L, 2364, 2364, this.NSM, 2365, 2368, this.L,
13811
- 2369, 2376, this.NSM, 2377, 2380, this.L, 2381, 2381, this.NSM, 2382, 2384, this.L,
13812
- 2385, 2388, this.NSM, 2389, 2401, this.L, 2402, 2403, this.NSM, 2404, 2432, this.L,
13813
- 2433, 2433, this.NSM, 2434, 2491, this.L, 2492, 2492, this.NSM, 2493, 2496, this.L,
13814
- 2497, 2500, this.NSM, 2501, 2508, this.L, 2509, 2509, this.NSM, 2510, 2529, this.L,
13815
- 2530, 2531, this.NSM, 2532, 2545, this.L, 2546, 2547, this.ET, 2548, 2560, this.L,
13816
- 2561, 2562, this.NSM, 2563, 2619, this.L, 2620, 2620, this.NSM, 2621, 2624, this.L,
13817
- 2625, 2626, this.NSM, 2627, 2630, this.L, 2631, 2632, this.NSM, 2633, 2634, this.L,
13818
- 2635, 2637, this.NSM, 2638, 2671, this.L, 2672, 2673, this.NSM, 2674, 2688, this.L,
13819
- 2689, 2690, this.NSM, 2691, 2747, this.L, 2748, 2748, this.NSM, 2749, 2752, this.L,
13820
- 2753, 2757, this.NSM, 2758, 2758, this.L, 2759, 2760, this.NSM, 2761, 2764, this.L,
13821
- 2765, 2765, this.NSM, 2766, 2785, this.L, 2786, 2787, this.NSM, 2788, 2800, this.L,
13822
- 2801, 2801, this.ET, 2802, 2816, this.L, 2817, 2817, this.NSM, 2818, 2875, this.L,
13823
- 2876, 2876, this.NSM, 2877, 2878, this.L, 2879, 2879, this.NSM, 2880, 2880, this.L,
13824
- 2881, 2883, this.NSM, 2884, 2892, this.L, 2893, 2893, this.NSM, 2894, 2901, this.L,
13825
- 2902, 2902, this.NSM, 2903, 2945, this.L, 2946, 2946, this.NSM, 2947, 3007, this.L,
13826
- 3008, 3008, this.NSM, 3009, 3020, this.L, 3021, 3021, this.NSM, 3022, 3058, this.L,
13827
- 3059, 3064, this.ON, 3065, 3065, this.ET, 3066, 3066, this.ON, 3067, 3133, this.L,
13828
- 3134, 3136, this.NSM, 3137, 3141, this.L, 3142, 3144, this.NSM, 3145, 3145, this.L,
13829
- 3146, 3149, this.NSM, 3150, 3156, this.L, 3157, 3158, this.NSM, 3159, 3259, this.L,
13830
- 3260, 3260, this.NSM, 3261, 3275, this.L, 3276, 3277, this.NSM, 3278, 3392, this.L,
13831
- 3393, 3395, this.NSM, 3396, 3404, this.L, 3405, 3405, this.NSM, 3406, 3529, this.L,
13832
- 3530, 3530, this.NSM, 3531, 3537, this.L, 3538, 3540, this.NSM, 3541, 3541, this.L,
13833
- 3542, 3542, this.NSM, 3543, 3632, this.L, 3633, 3633, this.NSM, 3634, 3635, this.L,
13834
- 3636, 3642, this.NSM, 3643, 3646, this.L, 3647, 3647, this.ET, 3648, 3654, this.L,
13835
- 3655, 3662, this.NSM, 3663, 3760, this.L, 3761, 3761, this.NSM, 3762, 3763, this.L,
13836
- 3764, 3769, this.NSM, 3770, 3770, this.L, 3771, 3772, this.NSM, 3773, 3783, this.L,
13837
- 3784, 3789, this.NSM, 3790, 3863, this.L, 3864, 3865, this.NSM, 3866, 3892, this.L,
13838
- 3893, 3893, this.NSM, 3894, 3894, this.L, 3895, 3895, this.NSM, 3896, 3896, this.L,
13839
- 3897, 3897, this.NSM, 3898, 3901, this.ON, 3902, 3952, this.L, 3953, 3966, this.NSM,
13840
- 3967, 3967, this.L, 3968, 3972, this.NSM, 3973, 3973, this.L, 3974, 3975, this.NSM,
13841
- 3976, 3983, this.L, 3984, 3991, this.NSM, 3992, 3992, this.L, 3993, 4028, this.NSM,
13842
- 4029, 4037, this.L, 4038, 4038, this.NSM, 4039, 4140, this.L, 4141, 4144, this.NSM,
13843
- 4145, 4145, this.L, 4146, 4146, this.NSM, 4147, 4149, this.L, 4150, 4151, this.NSM,
13844
- 4152, 4152, this.L, 4153, 4153, this.NSM, 4154, 4183, this.L, 4184, 4185, this.NSM,
13845
- 4186, 5759, this.L, 5760, 5760, this.WS, 5761, 5786, this.L, 5787, 5788, this.ON,
13846
- 5789, 5905, this.L, 5906, 5908, this.NSM, 5909, 5937, this.L, 5938, 5940, this.NSM,
13847
- 5941, 5969, this.L, 5970, 5971, this.NSM, 5972, 6001, this.L, 6002, 6003, this.NSM,
13848
- 6004, 6070, this.L, 6071, 6077, this.NSM, 6078, 6085, this.L, 6086, 6086, this.NSM,
13849
- 6087, 6088, this.L, 6089, 6099, this.NSM, 6100, 6106, this.L, 6107, 6107, this.ET,
13850
- 6108, 6108, this.L, 6109, 6109, this.NSM, 6110, 6127, this.L, 6128, 6137, this.ON,
13851
- 6138, 6143, this.L, 6144, 6154, this.ON, 6155, 6157, this.NSM, 6158, 6158, this.WS,
13852
- 6159, 6312, this.L, 6313, 6313, this.NSM, 6314, 6431, this.L, 6432, 6434, this.NSM,
13853
- 6435, 6438, this.L, 6439, 6443, this.NSM, 6444, 6449, this.L, 6450, 6450, this.NSM,
13854
- 6451, 6456, this.L, 6457, 6459, this.NSM, 6460, 6463, this.L, 6464, 6464, this.ON,
13855
- 6465, 6467, this.L, 6468, 6469, this.ON, 6470, 6623, this.L, 6624, 6655, this.ON,
13856
- 6656, 8124, this.L, 8125, 8125, this.ON, 8126, 8126, this.L, 8127, 8129, this.ON,
13857
- 8130, 8140, this.L, 8141, 8143, this.ON, 8144, 8156, this.L, 8157, 8159, this.ON,
13858
- 8160, 8172, this.L, 8173, 8175, this.ON, 8176, 8188, this.L, 8189, 8190, this.ON,
13859
- 8191, 8191, this.L, 8192, 8202, this.WS, 8203, 8205, this.BN, 8206, 8206, this.L,
13860
- 8207, 8207, this.R, 8208, 8231, this.ON, 8232, 8232, this.WS, 8233, 8233, this.B,
13861
- 8234, 8234, this.LRE, 8235, 8235, this.RLE, 8236, 8236, this.PDF, 8237, 8237, this.LRO,
13862
- 8238, 8238, this.RLO, 8239, 8239, this.WS, 8240, 8244, this.ET, 8245, 8276, this.ON,
13863
- 8277, 8278, this.L, 8279, 8279, this.ON, 8280, 8286, this.L, 8287, 8287, this.WS,
13864
- 8288, 8291, this.BN, 8292, 8297, this.L, 8298, 8303, this.BN, 8304, 8304, this.EN,
13865
- 8305, 8307, this.L, 8308, 8313, this.EN, 8314, 8315, this.ET, 8316, 8318, this.ON,
13866
- 8319, 8319, this.L, 8320, 8329, this.EN, 8330, 8331, this.ET, 8332, 8334, this.ON,
13867
- 8335, 8351, this.L, 8352, 8369, this.ET, 8370, 8399, this.L, 8400, 8426, this.NSM,
13868
- 8427, 8447, this.L, 8448, 8449, this.ON, 8450, 8450, this.L, 8451, 8454, this.ON,
13869
- 8455, 8455, this.L, 8456, 8457, this.ON, 8458, 8467, this.L, 8468, 8468, this.ON,
13870
- 8469, 8469, this.L, 8470, 8472, this.ON, 8473, 8477, this.L, 8478, 8483, this.ON,
13871
- 8484, 8484, this.L, 8485, 8485, this.ON, 8486, 8486, this.L, 8487, 8487, this.ON,
13872
- 8488, 8488, this.L, 8489, 8489, this.ON, 8490, 8493, this.L, 8494, 8494, this.ET,
13873
- 8495, 8497, this.L, 8498, 8498, this.ON, 8499, 8505, this.L, 8506, 8507, this.ON,
13874
- 8508, 8511, this.L, 8512, 8516, this.ON, 8517, 8521, this.L, 8522, 8523, this.ON,
13875
- 8524, 8530, this.L, 8531, 8543, this.ON, 8544, 8591, this.L, 8592, 8721, this.ON,
13876
- 8722, 8723, this.ET, 8724, 9013, this.ON, 9014, 9082, this.L, 9083, 9108, this.ON,
13877
- 9109, 9109, this.L, 9110, 9168, this.ON, 9169, 9215, this.L, 9216, 9254, this.ON,
13878
- 9255, 9279, this.L, 9280, 9290, this.ON, 9291, 9311, this.L, 9312, 9371, this.EN,
13879
- 9372, 9449, this.L, 9450, 9450, this.EN, 9451, 9751, this.ON, 9752, 9752, this.L,
13880
- 9753, 9853, this.ON, 9854, 9855, this.L, 9856, 9873, this.ON, 9874, 9887, this.L,
13881
- 9888, 9889, this.ON, 9890, 9984, this.L, 9985, 9988, this.ON, 9989, 9989, this.L,
13882
- 9990, 9993, this.ON, 9994, 9995, this.L, 9996, 10023, this.ON, 10024, 10024, this.L,
13883
- 10025, 10059, this.ON, 10060, 10060, this.L, 10061, 10061, this.ON, 10062, 10062, this.L,
13884
- 10063, 10066, this.ON, 10067, 10069, this.L, 10070, 10070, this.ON, 10071, 10071, this.L,
13885
- 10072, 10078, this.ON, 10079, 10080, this.L, 10081, 10132, this.ON, 10133, 10135, this.L,
13886
- 10136, 10159, this.ON, 10160, 10160, this.L, 10161, 10174, this.ON, 10175, 10191, this.L,
13887
- 10192, 10219, this.ON, 10220, 10223, this.L, 10224, 11021, this.ON, 11022, 11903, this.L,
13888
- 11904, 11929, this.ON, 11930, 11930, this.L, 11931, 12019, this.ON, 12020, 12031, this.L,
13889
- 12032, 12245, this.ON, 12246, 12271, this.L, 12272, 12283, this.ON, 12284, 12287, this.L,
13890
- 12288, 12288, this.WS, 12289, 12292, this.ON, 12293, 12295, this.L, 12296, 12320, this.ON,
13891
- 12321, 12329, this.L, 12330, 12335, this.NSM, 12336, 12336, this.ON, 12337, 12341, this.L,
13892
- 12342, 12343, this.ON, 12344, 12348, this.L, 12349, 12351, this.ON, 12352, 12440, this.L,
13893
- 12441, 12442, this.NSM, 12443, 12444, this.ON, 12445, 12447, this.L, 12448, 12448, this.ON,
13894
- 12449, 12538, this.L, 12539, 12539, this.ON, 12540, 12828, this.L, 12829, 12830, this.ON,
13895
- 12831, 12879, this.L, 12880, 12895, this.ON, 12896, 12923, this.L, 12924, 12925, this.ON,
13896
- 12926, 12976, this.L, 12977, 12991, this.ON, 12992, 13003, this.L, 13004, 13007, this.ON,
13897
- 13008, 13174, this.L, 13175, 13178, this.ON, 13179, 13277, this.L, 13278, 13279, this.ON,
13898
- 13280, 13310, this.L, 13311, 13311, this.ON, 13312, 19903, this.L, 19904, 19967, this.ON,
13899
- 19968, 42127, this.L, 42128, 42182, this.ON, 42183, 64284, this.L, 64285, 64285, this.R,
13900
- 64286, 64286, this.NSM, 64287, 64296, this.R, 64297, 64297, this.ET, 64298, 64310, this.R,
13901
- 64311, 64311, this.L, 64312, 64316, this.R, 64317, 64317, this.L, 64318, 64318, this.R,
13902
- 64319, 64319, this.L, 64320, 64321, this.R, 64322, 64322, this.L, 64323, 64324, this.R,
13903
- 64325, 64325, this.L, 64326, 64335, this.R, 64336, 64433, this.AL, 64434, 64466, this.L,
13904
- 64467, 64829, this.AL, 64830, 64831, this.ON, 64832, 64847, this.L, 64848, 64911, this.AL,
13905
- 64912, 64913, this.L, 64914, 64967, this.AL, 64968, 65007, this.L, 65008, 65020, this.AL,
13906
- 65021, 65021, this.ON, 65022, 65023, this.L, 65024, 65039, this.NSM, 65040, 65055, this.L,
13907
- 65056, 65059, this.NSM, 65060, 65071, this.L, 65072, 65103, this.ON, 65104, 65104, this.CS,
13908
- 65105, 65105, this.ON, 65106, 65106, this.CS, 65107, 65107, this.L, 65108, 65108, this.ON,
13909
- 65109, 65109, this.CS, 65110, 65118, this.ON, 65119, 65119, this.ET, 65120, 65121, this.ON,
13910
- 65122, 65123, this.ET, 65124, 65126, this.ON, 65127, 65127, this.L, 65128, 65128, this.ON,
13911
- 65129, 65130, this.ET, 65131, 65131, this.ON, 65132, 65135, this.L, 65136, 65140, this.AL,
13912
- 65141, 65141, this.L, 65142, 65276, this.AL, 65277, 65278, this.L, 65279, 65279, this.BN,
13913
- 65280, 65280, this.L, 65281, 65282, this.ON, 65283, 65285, this.ET, 65286, 65290, this.ON,
13914
- 65291, 65291, this.ET, 65292, 65292, this.CS, 65293, 65293, this.ET, 65294, 65294, this.CS,
13915
- 65295, 65295, this.ES, 65296, 65305, this.EN, 65306, 65306, this.CS, 65307, 65312, this.ON,
13916
- 65313, 65338, this.L, 65339, 65344, this.ON, 65345, 65370, this.L, 65371, 65381, this.ON,
13917
- 65382, 65503, this.L, 65504, 65505, this.ET, 65506, 65508, this.ON, 65509, 65510, this.ET,
13918
- 65511, 65511, this.L, 65512, 65518, this.ON, 65519, 65528, this.L, 65529, 65531, this.BN,
13919
- 65532, 65533, this.ON, 65534, 65535, this.L
13920
- ];
13392
+ this.charTypes = RtlCharacters.decodeCharTypes(RtlCharacters.charTypesData);
13921
13393
  for (let i = 0; i < this.charTypes.length; ++i) {
13922
13394
  let start = this.charTypes[i];
13923
13395
  let end = this.charTypes[++i];
@@ -13929,6 +13401,13 @@ class RtlCharacters {
13929
13401
  }
13930
13402
  //#endregion
13931
13403
  //#region implementation
13404
+ static decodeCharTypes(data) {
13405
+ let values = [];
13406
+ for (let i = 0; i < data.length; i++) {
13407
+ values.push(data.charCodeAt(i));
13408
+ }
13409
+ return values;
13410
+ }
13932
13411
  getVisualOrder(inputText, isRtl) {
13933
13412
  this.types = this.getCharacterCode(inputText);
13934
13413
  this.textOrder = isRtl ? this.LRE : this.L;
@@ -14198,6 +13677,13 @@ class RtlCharacters {
14198
13677
  }
14199
13678
  }
14200
13679
  }
13680
+ /**
13681
+ * Packed character type ranges. Each range is packed into three characters: start code,
13682
+ * end code and the character type.
13683
+ * @private
13684
+ */
13685
+ /* tslint:disable-next-line:max-line-length */
13686
+ RtlCharacters.charTypesData = '\u0000\u0008\u000e\u0009\u0009\u0010\u000a\u000a\u000f\u000b\u000b\u0010\u000c\u000c\u0011\u000d\u000d\u000f\u000e\u001b\u000e\u001c\u001e\u000f\u001f\u001f\u0010\u0020\u0020\u0011\u0021\u0022\u0012\u0023\u0025\u000a\u0026\u002a\u0012\u002b\u002b\u000a\u002c\u002c\u000c\u002d\u002d\u000a\u002e\u002e\u000c\u002f\u002f\u000c\u0030\u0039\u0008\u003a\u003a\u000c\u003b\u0040\u0012\u0041\u005a\u0000\u005b\u0060\u0012\u0061\u007a\u0000\u007b\u007e\u0012\u007f\u0084\u000e\u0085\u0085\u000f\u0086\u009f\u000e\u00a0\u00a0\u000c\u00a1\u00a1\u0012\u00a2\u00a5\u000a\u00a6\u00a9\u0012\u00aa\u00aa\u0000\u00ab\u00af\u0012\u00b0\u00b1\u000a\u00b2\u00b3\u0008\u00b4\u00b4\u0012\u00b5\u00b5\u0000\u00b6\u00b8\u0012\u00b9\u00b9\u0008\u00ba\u00ba\u0000\u00bb\u00bf\u0012\u00c0\u00d6\u0000\u00d7\u00d7\u0012\u00d8\u00f6\u0000\u00f7\u00f7\u0012\u00f8\u02b8\u0000\u02b9\u02ba\u0012\u02bb\u02c1\u0000\u02c2\u02cf\u0012\u02d0\u02d1\u0000\u02d2\u02df\u0012\u02e0\u02e4\u0000\u02e5\u02ed\u0012\u02ee\u02ee\u0000\u02ef\u02ff\u0012\u0300\u0357\u000d\u0358\u035c\u0000\u035d\u036f\u000d\u0370\u0373\u0000\u0374\u0375\u0012\u0376\u037d\u0000\u037e\u037e\u0012\u037f\u0383\u0000\u0384\u0385\u0012\u0386\u0386\u0000\u0387\u0387\u0012\u0388\u03f5\u0000\u03f6\u03f6\u0012\u03f7\u0482\u0000\u0483\u0486\u000d\u0487\u0487\u0000\u0488\u0489\u000d\u048a\u0589\u0000\u058a\u058a\u0012\u058b\u0590\u0000\u0591\u05a1\u000d\u05a2\u05a2\u0000\u05a3\u05b9\u000d\u05ba\u05ba\u0000\u05bb\u05bd\u000d\u05be\u05be\u0003\u05bf\u05bf\u000d\u05c0\u05c0\u0003\u05c1\u05c2\u000d\u05c3\u05c3\u0003\u05c4\u05c4\u000d\u05c5\u05cf\u0000\u05d0\u05ea\u0003\u05eb\u05ef\u0000\u05f0\u05f4\u0003\u05f5\u05ff\u0000\u0600\u0603\u0004\u0604\u060b\u0000\u060c\u060c\u000c\u060d\u060d\u0004\u060e\u060f\u0012\u0610\u0615\u000d\u0616\u061a\u0000\u061b\u061b\u0004\u061c\u061e\u0000\u061f\u061f\u0004\u0620\u0620\u0000\u0621\u063a\u0004\u063b\u063f\u0000\u0640\u064a\u0004\u064b\u0658\u000d\u0659\u065f\u0000\u0660\u0669\u000b\u066a\u066a\u000a\u066b\u066c\u000b\u066d\u066f\u0004\u0670\u0670\u000d\u0671\u06d5\u0004\u06d6\u06dc\u000d\u06dd\u06dd\u0004\u06de\u06e4\u000d\u06e5\u06e6\u0004\u06e7\u06e8\u000d\u06e9\u06e9\u0012\u06ea\u06ed\u000d\u06ee\u06ef\u0004\u06f0\u06f9\u0008\u06fa\u070d\u0004\u070e\u070e\u0000\u070f\u070f\u000e\u0710\u0710\u0004\u0711\u0711\u000d\u0712\u072f\u0004\u0730\u074a\u000d\u074b\u074c\u0000\u074d\u074f\u0004\u0750\u077f\u0000\u0780\u07a5\u0004\u07a6\u07b0\u000d\u07b1\u07b1\u0004\u07b2\u0900\u0000\u0901\u0902\u000d\u0903\u093b\u0000\u093c\u093c\u000d\u093d\u0940\u0000\u0941\u0948\u000d\u0949\u094c\u0000\u094d\u094d\u000d\u094e\u0950\u0000\u0951\u0954\u000d\u0955\u0961\u0000\u0962\u0963\u000d\u0964\u0980\u0000\u0981\u0981\u000d\u0982\u09bb\u0000\u09bc\u09bc\u000d\u09bd\u09c0\u0000\u09c1\u09c4\u000d\u09c5\u09cc\u0000\u09cd\u09cd\u000d\u09ce\u09e1\u0000\u09e2\u09e3\u000d\u09e4\u09f1\u0000\u09f2\u09f3\u000a\u09f4\u0a00\u0000\u0a01\u0a02\u000d\u0a03\u0a3b\u0000\u0a3c\u0a3c\u000d\u0a3d\u0a40\u0000\u0a41\u0a42\u000d\u0a43\u0a46\u0000\u0a47\u0a48\u000d\u0a49\u0a4a\u0000\u0a4b\u0a4d\u000d\u0a4e\u0a6f\u0000\u0a70\u0a71\u000d\u0a72\u0a80\u0000\u0a81\u0a82\u000d\u0a83\u0abb\u0000\u0abc\u0abc\u000d\u0abd\u0ac0\u0000\u0ac1\u0ac5\u000d\u0ac6\u0ac6\u0000\u0ac7\u0ac8\u000d\u0ac9\u0acc\u0000\u0acd\u0acd\u000d\u0ace\u0ae1\u0000\u0ae2\u0ae3\u000d\u0ae4\u0af0\u0000\u0af1\u0af1\u000a\u0af2\u0b00\u0000\u0b01\u0b01\u000d\u0b02\u0b3b\u0000\u0b3c\u0b3c\u000d\u0b3d\u0b3e\u0000\u0b3f\u0b3f\u000d\u0b40\u0b40\u0000\u0b41\u0b43\u000d\u0b44\u0b4c\u0000\u0b4d\u0b4d\u000d\u0b4e\u0b55\u0000\u0b56\u0b56\u000d\u0b57\u0b81\u0000\u0b82\u0b82\u000d\u0b83\u0bbf\u0000\u0bc0\u0bc0\u000d\u0bc1\u0bcc\u0000\u0bcd\u0bcd\u000d\u0bce\u0bf2\u0000\u0bf3\u0bf8\u0012\u0bf9\u0bf9\u000a\u0bfa\u0bfa\u0012\u0bfb\u0c3d\u0000\u0c3e\u0c40\u000d\u0c41\u0c45\u0000\u0c46\u0c48\u000d\u0c49\u0c49\u0000\u0c4a\u0c4d\u000d\u0c4e\u0c54\u0000\u0c55\u0c56\u000d\u0c57\u0cbb\u0000\u0cbc\u0cbc\u000d\u0cbd\u0ccb\u0000\u0ccc\u0ccd\u000d\u0cce\u0d40\u0000\u0d41\u0d43\u000d\u0d44\u0d4c\u0000\u0d4d\u0d4d\u000d\u0d4e\u0dc9\u0000\u0dca\u0dca\u000d\u0dcb\u0dd1\u0000\u0dd2\u0dd4\u000d\u0dd5\u0dd5\u0000\u0dd6\u0dd6\u000d\u0dd7\u0e30\u0000\u0e31\u0e31\u000d\u0e32\u0e33\u0000\u0e34\u0e3a\u000d\u0e3b\u0e3e\u0000\u0e3f\u0e3f\u000a\u0e40\u0e46\u0000\u0e47\u0e4e\u000d\u0e4f\u0eb0\u0000\u0eb1\u0eb1\u000d\u0eb2\u0eb3\u0000\u0eb4\u0eb9\u000d\u0eba\u0eba\u0000\u0ebb\u0ebc\u000d\u0ebd\u0ec7\u0000\u0ec8\u0ecd\u000d\u0ece\u0f17\u0000\u0f18\u0f19\u000d\u0f1a\u0f34\u0000\u0f35\u0f35\u000d\u0f36\u0f36\u0000\u0f37\u0f37\u000d\u0f38\u0f38\u0000\u0f39\u0f39\u000d\u0f3a\u0f3d\u0012\u0f3e\u0f70\u0000\u0f71\u0f7e\u000d\u0f7f\u0f7f\u0000\u0f80\u0f84\u000d\u0f85\u0f85\u0000\u0f86\u0f87\u000d\u0f88\u0f8f\u0000\u0f90\u0f97\u000d\u0f98\u0f98\u0000\u0f99\u0fbc\u000d\u0fbd\u0fc5\u0000\u0fc6\u0fc6\u000d\u0fc7\u102c\u0000\u102d\u1030\u000d\u1031\u1031\u0000\u1032\u1032\u000d\u1033\u1035\u0000\u1036\u1037\u000d\u1038\u1038\u0000\u1039\u1039\u000d\u103a\u1057\u0000\u1058\u1059\u000d\u105a\u167f\u0000\u1680\u1680\u0011\u1681\u169a\u0000\u169b\u169c\u0012\u169d\u1711\u0000\u1712\u1714\u000d\u1715\u1731\u0000\u1732\u1734\u000d\u1735\u1751\u0000\u1752\u1753\u000d\u1754\u1771\u0000\u1772\u1773\u000d\u1774\u17b6\u0000\u17b7\u17bd\u000d\u17be\u17c5\u0000\u17c6\u17c6\u000d\u17c7\u17c8\u0000\u17c9\u17d3\u000d\u17d4\u17da\u0000\u17db\u17db\u000a\u17dc\u17dc\u0000\u17dd\u17dd\u000d\u17de\u17ef\u0000\u17f0\u17f9\u0012\u17fa\u17ff\u0000\u1800\u180a\u0012\u180b\u180d\u000d\u180e\u180e\u0011\u180f\u18a8\u0000\u18a9\u18a9\u000d\u18aa\u191f\u0000\u1920\u1922\u000d\u1923\u1926\u0000\u1927\u192b\u000d\u192c\u1931\u0000\u1932\u1932\u000d\u1933\u1938\u0000\u1939\u193b\u000d\u193c\u193f\u0000\u1940\u1940\u0012\u1941\u1943\u0000\u1944\u1945\u0012\u1946\u19df\u0000\u19e0\u19ff\u0012\u1a00\u1fbc\u0000\u1fbd\u1fbd\u0012\u1fbe\u1fbe\u0000\u1fbf\u1fc1\u0012\u1fc2\u1fcc\u0000\u1fcd\u1fcf\u0012\u1fd0\u1fdc\u0000\u1fdd\u1fdf\u0012\u1fe0\u1fec\u0000\u1fed\u1fef\u0012\u1ff0\u1ffc\u0000\u1ffd\u1ffe\u0012\u1fff\u1fff\u0000\u2000\u200a\u0011\u200b\u200d\u000e\u200e\u200e\u0000\u200f\u200f\u0003\u2010\u2027\u0012\u2028\u2028\u0011\u2029\u2029\u000f\u202a\u202a\u0001\u202b\u202b\u0005\u202c\u202c\u0007\u202d\u202d\u0002\u202e\u202e\u0006\u202f\u202f\u0011\u2030\u2034\u000a\u2035\u2054\u0012\u2055\u2056\u0000\u2057\u2057\u0012\u2058\u205e\u0000\u205f\u205f\u0011\u2060\u2063\u000e\u2064\u2069\u0000\u206a\u206f\u000e\u2070\u2070\u0008\u2071\u2073\u0000\u2074\u2079\u0008\u207a\u207b\u000a\u207c\u207e\u0012\u207f\u207f\u0000\u2080\u2089\u0008\u208a\u208b\u000a\u208c\u208e\u0012\u208f\u209f\u0000\u20a0\u20b1\u000a\u20b2\u20cf\u0000\u20d0\u20ea\u000d\u20eb\u20ff\u0000\u2100\u2101\u0012\u2102\u2102\u0000\u2103\u2106\u0012\u2107\u2107\u0000\u2108\u2109\u0012\u210a\u2113\u0000\u2114\u2114\u0012\u2115\u2115\u0000\u2116\u2118\u0012\u2119\u211d\u0000\u211e\u2123\u0012\u2124\u2124\u0000\u2125\u2125\u0012\u2126\u2126\u0000\u2127\u2127\u0012\u2128\u2128\u0000\u2129\u2129\u0012\u212a\u212d\u0000\u212e\u212e\u000a\u212f\u2131\u0000\u2132\u2132\u0012\u2133\u2139\u0000\u213a\u213b\u0012\u213c\u213f\u0000\u2140\u2144\u0012\u2145\u2149\u0000\u214a\u214b\u0012\u214c\u2152\u0000\u2153\u215f\u0012\u2160\u218f\u0000\u2190\u2211\u0012\u2212\u2213\u000a\u2214\u2335\u0012\u2336\u237a\u0000\u237b\u2394\u0012\u2395\u2395\u0000\u2396\u23d0\u0012\u23d1\u23ff\u0000\u2400\u2426\u0012\u2427\u243f\u0000\u2440\u244a\u0012\u244b\u245f\u0000\u2460\u249b\u0008\u249c\u24e9\u0000\u24ea\u24ea\u0008\u24eb\u2617\u0012\u2618\u2618\u0000\u2619\u267d\u0012\u267e\u267f\u0000\u2680\u2691\u0012\u2692\u269f\u0000\u26a0\u26a1\u0012\u26a2\u2700\u0000\u2701\u2704\u0012\u2705\u2705\u0000\u2706\u2709\u0012\u270a\u270b\u0000\u270c\u2727\u0012\u2728\u2728\u0000\u2729\u274b\u0012\u274c\u274c\u0000\u274d\u274d\u0012\u274e\u274e\u0000\u274f\u2752\u0012\u2753\u2755\u0000\u2756\u2756\u0012\u2757\u2757\u0000\u2758\u275e\u0012\u275f\u2760\u0000\u2761\u2794\u0012\u2795\u2797\u0000\u2798\u27af\u0012\u27b0\u27b0\u0000\u27b1\u27be\u0012\u27bf\u27cf\u0000\u27d0\u27eb\u0012\u27ec\u27ef\u0000\u27f0\u2b0d\u0012\u2b0e\u2e7f\u0000\u2e80\u2e99\u0012\u2e9a\u2e9a\u0000\u2e9b\u2ef3\u0012\u2ef4\u2eff\u0000\u2f00\u2fd5\u0012\u2fd6\u2fef\u0000\u2ff0\u2ffb\u0012\u2ffc\u2fff\u0000\u3000\u3000\u0011\u3001\u3004\u0012\u3005\u3007\u0000\u3008\u3020\u0012\u3021\u3029\u0000\u302a\u302f\u000d\u3030\u3030\u0012\u3031\u3035\u0000\u3036\u3037\u0012\u3038\u303c\u0000\u303d\u303f\u0012\u3040\u3098\u0000\u3099\u309a\u000d\u309b\u309c\u0012\u309d\u309f\u0000\u30a0\u30a0\u0012\u30a1\u30fa\u0000\u30fb\u30fb\u0012\u30fc\u321c\u0000\u321d\u321e\u0012\u321f\u324f\u0000\u3250\u325f\u0012\u3260\u327b\u0000\u327c\u327d\u0012\u327e\u32b0\u0000\u32b1\u32bf\u0012\u32c0\u32cb\u0000\u32cc\u32cf\u0012\u32d0\u3376\u0000\u3377\u337a\u0012\u337b\u33dd\u0000\u33de\u33df\u0012\u33e0\u33fe\u0000\u33ff\u33ff\u0012\u3400\u4dbf\u0000\u4dc0\u4dff\u0012\u4e00\ua48f\u0000\ua490\ua4c6\u0012\ua4c7\ufb1c\u0000\ufb1d\ufb1d\u0003\ufb1e\ufb1e\u000d\ufb1f\ufb28\u0003\ufb29\ufb29\u000a\ufb2a\ufb36\u0003\ufb37\ufb37\u0000\ufb38\ufb3c\u0003\ufb3d\ufb3d\u0000\ufb3e\ufb3e\u0003\ufb3f\ufb3f\u0000\ufb40\ufb41\u0003\ufb42\ufb42\u0000\ufb43\ufb44\u0003\ufb45\ufb45\u0000\ufb46\ufb4f\u0003\ufb50\ufbb1\u0004\ufbb2\ufbd2\u0000\ufbd3\ufd3d\u0004\ufd3e\ufd3f\u0012\ufd40\ufd4f\u0000\ufd50\ufd8f\u0004\ufd90\ufd91\u0000\ufd92\ufdc7\u0004\ufdc8\ufdef\u0000\ufdf0\ufdfc\u0004\ufdfd\ufdfd\u0012\ufdfe\ufdff\u0000\ufe00\ufe0f\u000d\ufe10\ufe1f\u0000\ufe20\ufe23\u000d\ufe24\ufe2f\u0000\ufe30\ufe4f\u0012\ufe50\ufe50\u000c\ufe51\ufe51\u0012\ufe52\ufe52\u000c\ufe53\ufe53\u0000\ufe54\ufe54\u0012\ufe55\ufe55\u000c\ufe56\ufe5e\u0012\ufe5f\ufe5f\u000a\ufe60\ufe61\u0012\ufe62\ufe63\u000a\ufe64\ufe66\u0012\ufe67\ufe67\u0000\ufe68\ufe68\u0012\ufe69\ufe6a\u000a\ufe6b\ufe6b\u0012\ufe6c\ufe6f\u0000\ufe70\ufe74\u0004\ufe75\ufe75\u0000\ufe76\ufefc\u0004\ufefd\ufefe\u0000\ufeff\ufeff\u000e\uff00\uff00\u0000\uff01\uff02\u0012\uff03\uff05\u000a\uff06\uff0a\u0012\uff0b\uff0b\u000a\uff0c\uff0c\u000c\uff0d\uff0d\u000a\uff0e\uff0e\u000c\uff0f\uff0f\u0009\uff10\uff19\u0008\uff1a\uff1a\u000c\uff1b\uff20\u0012\uff21\uff3a\u0000\uff3b\uff40\u0012\uff41\uff5a\u0000\uff5b\uff65\u0012\uff66\uffdf\u0000\uffe0\uffe1\u000a\uffe2\uffe4\u0012\uffe5\uffe6\u000a\uffe7\uffe7\u0000\uffe8\uffee\u0012\uffef\ufff8\u0000\ufff9\ufffb\u000e\ufffc\ufffd\u0012\ufffe\uffff\u0000';
14201
13687
 
14202
13688
  /**
14203
13689
  * `Metrics` of the font.
@@ -14548,14 +14034,9 @@ class PdfGradientBrush extends PdfBrush {
14548
14034
  * @private
14549
14035
  */
14550
14036
  this.mfunction = null;
14551
- /**
14552
- * Local variable to store the DictionaryProperties.
14553
- * @private
14554
- */
14555
- this.dictionaryProperties = new DictionaryProperties();
14556
14037
  this.mpatternDictionary = new PdfDictionary();
14557
- this.mpatternDictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.pattern));
14558
- this.mpatternDictionary.items.setValue(this.dictionaryProperties.patternType, new PdfNumber(2));
14038
+ this.mpatternDictionary.items.setValue('Type', new PdfName('Pattern'));
14039
+ this.mpatternDictionary.items.setValue('PatternType', new PdfNumber(2));
14559
14040
  this.shading = shading;
14560
14041
  this.colorSpace = PdfColorSpace.Rgb;
14561
14042
  }
@@ -14571,10 +14052,10 @@ class PdfGradientBrush extends PdfBrush {
14571
14052
  this.mbackground = value;
14572
14053
  let sh = this.shading;
14573
14054
  if (value.isEmpty) {
14574
- sh.remove(this.dictionaryProperties.background);
14055
+ sh.remove('Background');
14575
14056
  }
14576
14057
  else {
14577
- sh.items.setValue(this.dictionaryProperties.background, value.toArray(this.colorSpace));
14058
+ sh.items.setValue('Background', value.toArray(this.colorSpace));
14578
14059
  }
14579
14060
  }
14580
14061
  /**
@@ -14583,15 +14064,15 @@ class PdfGradientBrush extends PdfBrush {
14583
14064
  */
14584
14065
  get antiAlias() {
14585
14066
  let sh = this.shading;
14586
- let aa = (sh.items.getValue(this.dictionaryProperties.antiAlias));
14067
+ let aa = (sh.items.getValue('AntiAlias'));
14587
14068
  return aa.value;
14588
14069
  }
14589
14070
  set antiAlias(value) {
14590
14071
  let sh = this.shading;
14591
- let aa = (sh.items.getValue(this.dictionaryProperties.antiAlias));
14072
+ let aa = (sh.items.getValue('AntiAlias'));
14592
14073
  if ((aa == null && typeof aa === 'undefined')) {
14593
14074
  aa = new PdfBoolean(value);
14594
- sh.items.setValue(this.dictionaryProperties.antiAlias, aa);
14075
+ sh.items.setValue('AntiAlias', aa);
14595
14076
  }
14596
14077
  else {
14597
14078
  aa.value = value;
@@ -14607,10 +14088,10 @@ class PdfGradientBrush extends PdfBrush {
14607
14088
  set function(value) {
14608
14089
  this.mfunction = value;
14609
14090
  if (value != null && typeof value !== 'undefined') {
14610
- this.shading.items.setValue(this.dictionaryProperties.function, new PdfReferenceHolder(this.mfunction));
14091
+ this.shading.items.setValue('Function', new PdfReferenceHolder(this.mfunction));
14611
14092
  }
14612
14093
  else {
14613
- this.shading.remove(this.dictionaryProperties.function);
14094
+ this.shading.remove('Function');
14614
14095
  }
14615
14096
  }
14616
14097
  /**
@@ -14619,16 +14100,16 @@ class PdfGradientBrush extends PdfBrush {
14619
14100
  */
14620
14101
  get bBox() {
14621
14102
  let sh = this.shading;
14622
- let box = (sh.items.getValue(this.dictionaryProperties.bBox));
14103
+ let box = (sh.items.getValue('BBox'));
14623
14104
  return box;
14624
14105
  }
14625
14106
  set bBox(value) {
14626
14107
  let sh = this.shading;
14627
14108
  if (value == null && typeof value === 'undefined') {
14628
- sh.remove(this.dictionaryProperties.bBox);
14109
+ sh.remove('BBox');
14629
14110
  }
14630
14111
  else {
14631
- sh.items.setValue(this.dictionaryProperties.bBox, value);
14112
+ sh.items.setValue('BBox', value);
14632
14113
  }
14633
14114
  }
14634
14115
  /**
@@ -14639,11 +14120,11 @@ class PdfGradientBrush extends PdfBrush {
14639
14120
  return this.mcolorSpace;
14640
14121
  }
14641
14122
  set colorSpace(value) {
14642
- let colorSpace = this.shading.items.getValue(this.dictionaryProperties.colorSpace);
14123
+ let colorSpace = this.shading.items.getValue('ColorSpace');
14643
14124
  if ((value !== this.mcolorSpace) || (colorSpace == null)) {
14644
14125
  this.mcolorSpace = value;
14645
14126
  let csValue = this.colorSpaceToDeviceName(value);
14646
- this.shading.items.setValue(this.dictionaryProperties.colorSpace, new PdfName(csValue));
14127
+ this.shading.items.setValue('ColorSpace', new PdfName(csValue));
14647
14128
  }
14648
14129
  }
14649
14130
  /**
@@ -14679,7 +14160,7 @@ class PdfGradientBrush extends PdfBrush {
14679
14160
  }
14680
14161
  if (value !== this.mshading) {
14681
14162
  this.mshading = value;
14682
- this.patternDictionary.items.setValue(this.dictionaryProperties.shading, new PdfReferenceHolder(this.mshading));
14163
+ this.patternDictionary.items.setValue('Shading', new PdfReferenceHolder(this.mshading));
14683
14164
  }
14684
14165
  }
14685
14166
  /**
@@ -14696,7 +14177,7 @@ class PdfGradientBrush extends PdfBrush {
14696
14177
  if (value !== this.mmatrix) {
14697
14178
  this.mmatrix = value.clone();
14698
14179
  let m = new PdfArray(this.mmatrix.matrix.elements);
14699
- this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix, m);
14180
+ this.mpatternDictionary.items.setValue('Matrix', m);
14700
14181
  }
14701
14182
  }
14702
14183
  //Overrides
@@ -14764,9 +14245,9 @@ class PdfGradientBrush extends PdfBrush {
14764
14245
  throw new Error('ArgumentNullException : brush');
14765
14246
  }
14766
14247
  let sh = this.shading;
14767
- let aa = (sh.items.getValue(this.dictionaryProperties.antiAlias));
14248
+ let aa = (sh.items.getValue('AntiAlias'));
14768
14249
  if ((aa != null)) {
14769
- brush.shading.items.setValue(this.dictionaryProperties.antiAlias, new PdfBoolean(aa.value));
14250
+ brush.shading.items.setValue('AntiAlias', new PdfBoolean(aa.value));
14770
14251
  }
14771
14252
  }
14772
14253
  /**
@@ -14799,12 +14280,6 @@ class PdfGradientBrush extends PdfBrush {
14799
14280
  */
14800
14281
  class PdfTemplate {
14801
14282
  constructor(arg1, arg2) {
14802
- /**
14803
- * Initialize an instance for `DictionaryProperties` class.
14804
- * @private
14805
- * @hidden
14806
- */
14807
- this.dictionaryProperties = new DictionaryProperties();
14808
14283
  /**
14809
14284
  * Checks whether the transformation 'is performed'.
14810
14285
  * @default true
@@ -14865,7 +14340,7 @@ class PdfTemplate {
14865
14340
  getResources() {
14866
14341
  if (this.resources == null) {
14867
14342
  this.resources = new PdfResources();
14868
- this.content.items.setValue(this.dictionaryProperties.resources, this.resources);
14343
+ this.content.items.setValue('Resources', this.resources);
14869
14344
  }
14870
14345
  return this.resources;
14871
14346
  }
@@ -14883,22 +14358,22 @@ class PdfTemplate {
14883
14358
  * @private
14884
14359
  */
14885
14360
  addType() {
14886
- let value = new PdfName(this.dictionaryProperties.xObject);
14887
- this.content.items.setValue(this.dictionaryProperties.type, value);
14361
+ let value = new PdfName('XObject');
14362
+ this.content.items.setValue('Type', value);
14888
14363
  }
14889
14364
  /**
14890
14365
  * `Adds SubType key`.
14891
14366
  * @private
14892
14367
  */
14893
14368
  addSubType() {
14894
- let value = new PdfName(this.dictionaryProperties.form);
14895
- this.content.items.setValue(this.dictionaryProperties.subtype, value);
14369
+ let value = new PdfName('Form');
14370
+ this.content.items.setValue('Subtype', value);
14896
14371
  }
14897
14372
  reset(size) {
14898
14373
  if (typeof size === 'undefined') {
14899
14374
  if (this.resources != null) {
14900
14375
  this.resources = null;
14901
- this.content.remove(this.dictionaryProperties.resources);
14376
+ this.content.remove('Resources');
14902
14377
  }
14903
14378
  if (this.graphics != null) {
14904
14379
  this.graphics.reset(this.size);
@@ -14916,7 +14391,7 @@ class PdfTemplate {
14916
14391
  setSize(size) {
14917
14392
  let rect = new RectangleF(new PointF(0, 0), size);
14918
14393
  let val = PdfArray.fromRectangle(rect);
14919
- this.content.items.setValue(this.dictionaryProperties.bBox, val);
14394
+ this.content.items.setValue('BBox', val);
14920
14395
  this.templateSize = size;
14921
14396
  }
14922
14397
  // /**
@@ -15021,7 +14496,7 @@ class PdfResources extends PdfDictionary {
15021
14496
  if (this.pdfNames == null) {
15022
14497
  this.pdfNames = new TemporaryDictionary();
15023
14498
  }
15024
- let fonts = this.items.getValue(this.dictionaryProperties.font);
14499
+ let fonts = this.items.getValue('Font');
15025
14500
  if (fonts != null) {
15026
14501
  let dictionary = fonts;
15027
14502
  dictionary = PdfCrossTable.dereference(fonts);
@@ -15036,10 +14511,10 @@ class PdfResources extends PdfDictionary {
15036
14511
  if (procedureSetName == null) {
15037
14512
  throw new Error('ArgumentNullException:procedureSetName');
15038
14513
  }
15039
- let procSets = this.items.getValue(this.dictionaryProperties.procset);
14514
+ let procSets = this.items.getValue('ProcSet');
15040
14515
  if (procSets == null) {
15041
14516
  procSets = new PdfArray();
15042
- this.items.setValue(this.dictionaryProperties.procset, procSets);
14517
+ this.items.setValue('ProcSet', procSets);
15043
14518
  }
15044
14519
  let name = new PdfName(procedureSetName);
15045
14520
  if (!procSets.contains(name)) {
@@ -15075,24 +14550,24 @@ class PdfResources extends PdfDictionary {
15075
14550
  add(arg1, arg2) {
15076
14551
  if (arg1 instanceof PdfFont) {
15077
14552
  let dictionary = null;
15078
- let fonts = this.items.getValue(this.dictionaryProperties.font);
14553
+ let fonts = this.items.getValue('Font');
15079
14554
  if (fonts != null) {
15080
14555
  dictionary = fonts;
15081
14556
  dictionary = fonts;
15082
14557
  }
15083
14558
  else {
15084
14559
  dictionary = new PdfDictionary();
15085
- this.items.setValue(this.dictionaryProperties.font, dictionary);
14560
+ this.items.setValue('Font', dictionary);
15086
14561
  }
15087
14562
  dictionary.items.setValue(arg2.value, new PdfReferenceHolder(arg1.element));
15088
14563
  }
15089
14564
  else if (arg1 instanceof PdfTemplate) {
15090
14565
  let xobjects;
15091
- xobjects = this.items.getValue(this.dictionaryProperties.xObject);
14566
+ xobjects = this.items.getValue('XObject');
15092
14567
  // Create fonts dictionary.
15093
14568
  if (xobjects == null) {
15094
14569
  xobjects = new PdfDictionary();
15095
- this.items.setValue(this.dictionaryProperties.xObject, xobjects);
14570
+ this.items.setValue('XObject', xobjects);
15096
14571
  }
15097
14572
  xobjects.items.setValue(arg2.value, new PdfReferenceHolder(arg1.element));
15098
14573
  }
@@ -15100,11 +14575,11 @@ class PdfResources extends PdfDictionary {
15100
14575
  if (arg1 instanceof PdfGradientBrush || arg1 instanceof PdfTilingBrush) {
15101
14576
  let savable = arg1.element;
15102
14577
  if (savable != null) {
15103
- let pattern = this.items.getValue(this.dictionaryProperties.pattern);
14578
+ let pattern = this.items.getValue('Pattern');
15104
14579
  // Create a new pattern dictionary.
15105
14580
  if (pattern == null) {
15106
14581
  pattern = new PdfDictionary();
15107
- this.items.setValue(this.dictionaryProperties.pattern, pattern);
14582
+ this.items.setValue('Pattern', pattern);
15108
14583
  }
15109
14584
  pattern.items.setValue(arg2.value, new PdfReferenceHolder(savable));
15110
14585
  }
@@ -15113,27 +14588,27 @@ class PdfResources extends PdfDictionary {
15113
14588
  else if (arg1 instanceof PdfTransparency) {
15114
14589
  let savable = arg1.element;
15115
14590
  let transDic = null;
15116
- transDic = this.items.getValue(this.dictionaryProperties.extGState);
14591
+ transDic = this.items.getValue('ExtGState');
15117
14592
  // Create a new pattern dictionary.
15118
14593
  if (transDic == null) {
15119
14594
  transDic = new PdfDictionary();
15120
- this.items.setValue(this.dictionaryProperties.extGState, transDic);
14595
+ this.items.setValue('ExtGState', transDic);
15121
14596
  }
15122
14597
  transDic.items.setValue(arg2.value, new PdfReferenceHolder(savable));
15123
14598
  }
15124
14599
  else {
15125
14600
  /* tslint:disable */
15126
- let xobjects = this.Dictionary.items.getValue(this.dictionaryProperties.xObject);
14601
+ let xobjects = this.Dictionary.items.getValue('XObject');
15127
14602
  let parentXObjects;
15128
14603
  if (typeof this.pdfDocument !== 'undefined') {
15129
- parentXObjects = this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject);
14604
+ parentXObjects = this.pdfDocument.sections.element.items.getValue('Resources').items.getValue('XObject');
15130
14605
  }
15131
14606
  let values = this.Dictionary.items.values();
15132
14607
  let hasSameImageStream = false;
15133
14608
  let oldReference;
15134
14609
  if (typeof this.pdfDocument !== 'undefined' && (typeof parentXObjects === undefined || parentXObjects == null)) {
15135
14610
  parentXObjects = new PdfDictionary();
15136
- this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject, parentXObjects);
14611
+ this.pdfDocument.sections.element.items.getValue('Resources').items.setValue('XObject', parentXObjects);
15137
14612
  }
15138
14613
  else if (typeof this.pdfDocument !== 'undefined') {
15139
14614
  let values = parentXObjects.items.values();
@@ -15148,7 +14623,7 @@ class PdfResources extends PdfDictionary {
15148
14623
  }
15149
14624
  if (xobjects == null) {
15150
14625
  xobjects = new PdfDictionary();
15151
- this.Dictionary.items.setValue(this.dictionaryProperties.xObject, xobjects);
14626
+ this.Dictionary.items.setValue('XObject', xobjects);
15152
14627
  }
15153
14628
  if (hasSameImageStream && typeof oldReference !== 'undefined') {
15154
14629
  xobjects.items.setValue(arg2.value, oldReference);
@@ -15529,11 +15004,6 @@ class PdfGraphics {
15529
15004
  * @private
15530
15005
  */
15531
15006
  this.colorSpaceChanged = false;
15532
- /**
15533
- * Stores an instance of `DictionaryProperties`.
15534
- * @private
15535
- */
15536
- this.dictionaryProperties = new DictionaryProperties();
15537
15007
  /**
15538
15008
  * Checks whether the x co-ordinate is need to set as client size or not.
15539
15009
  * @hidden
@@ -17444,11 +16914,6 @@ class PdfPageLayer {
17444
16914
  * @private
17445
16915
  */
17446
16916
  this.contentLength = 0;
17447
- /**
17448
- * Instance for `PdfDictionaryProperties` Class.
17449
- * @private
17450
- */
17451
- this.dictionaryProperties = new DictionaryProperties();
17452
16917
  if (page === null) {
17453
16918
  throw new Error('ArgumentNullException:page');
17454
16919
  }
@@ -17950,12 +17415,6 @@ class PdfPageBase {
17950
17415
  * @private
17951
17416
  */
17952
17417
  this.modified = false;
17953
- /**
17954
- * Instance of `DictionaryProperties` class.
17955
- * @hidden
17956
- * @private
17957
- */
17958
- this.dictionaryProperties = new DictionaryProperties();
17959
17418
  this.pageDictionary = dictionary;
17960
17419
  }
17961
17420
  //Properties
@@ -18024,7 +17483,7 @@ class PdfPageBase {
18024
17483
  getResources() {
18025
17484
  if (this.resources == null) {
18026
17485
  this.resources = new PdfResources();
18027
- this.dictionary.items.setValue(this.dictionaryProperties.resources, this.resources);
17486
+ this.dictionary.items.setValue('Resources', this.resources);
18028
17487
  }
18029
17488
  return this.resources;
18030
17489
  }
@@ -18033,11 +17492,11 @@ class PdfPageBase {
18033
17492
  * @private
18034
17493
  */
18035
17494
  get contents() {
18036
- let obj = this.pageDictionary.items.getValue(this.dictionaryProperties.contents);
17495
+ let obj = this.pageDictionary.items.getValue('Contents');
18037
17496
  let contents = obj;
18038
17497
  if (contents == null) {
18039
17498
  contents = new PdfArray();
18040
- this.pageDictionary.items.setValue(this.dictionaryProperties.contents, contents);
17499
+ this.pageDictionary.items.setValue('Contents', contents);
18041
17500
  }
18042
17501
  return contents;
18043
17502
  }
@@ -18060,7 +17519,7 @@ class PdfPageBase {
18060
17519
  */
18061
17520
  setResources(res) {
18062
17521
  this.resources = res;
18063
- this.dictionary.items.setValue(this.dictionaryProperties.resources, this.resources);
17522
+ this.dictionary.items.setValue('Resources', this.resources);
18064
17523
  this.modified = true;
18065
17524
  }
18066
17525
  }
@@ -18082,11 +17541,6 @@ class PdfAnnotationCollection {
18082
17541
  * @private
18083
17542
  */
18084
17543
  this.missingAnnotationException = 'Annotation is not contained in collection.';
18085
- /**
18086
- * Specifies the Internal variable to store fields of `PdfDictionaryProperties`.
18087
- * @private
18088
- */
18089
- this.dictionaryProperties = new DictionaryProperties();
18090
17544
  /**
18091
17545
  * Array of the `annotations`.
18092
17546
  * @private
@@ -18189,7 +17643,7 @@ class PdfAnnotationCollection {
18189
17643
  setColor(annotation) {
18190
17644
  let cs = PdfColorSpace.Rgb;
18191
17645
  let colours = annotation.color.toArray(cs);
18192
- annotation.dictionary.items.setValue(this.dictionaryProperties.c, colours);
17646
+ annotation.dictionary.items.setValue('C', colours);
18193
17647
  }
18194
17648
  // IPdfWrapper Members
18195
17649
  /**
@@ -18318,10 +17772,10 @@ class PdfPage extends PdfPageBase {
18318
17772
  get annotations() {
18319
17773
  if (this.annotationCollection == null) {
18320
17774
  this.annotationCollection = new PdfAnnotationCollection(this);
18321
- // if (!this.Dictionary.ContainsKey(this.dictionaryProperties.annots)) {
18322
- this.dictionary.items.setValue(this.dictionaryProperties.annots, this.annotationCollection.element);
17775
+ // if (!this.Dictionary.ContainsKey('Annots')) {
17776
+ this.dictionary.items.setValue('Annots', this.annotationCollection.element);
18323
17777
  // }
18324
- this.annotationCollection.annotations = this.dictionary.items.getValue(this.dictionaryProperties.annots);
17778
+ this.annotationCollection.annotations = this.dictionary.items.getValue('Annots');
18325
17779
  }
18326
17780
  return this.annotationCollection;
18327
17781
  }
@@ -18331,7 +17785,7 @@ class PdfPage extends PdfPageBase {
18331
17785
  * @private
18332
17786
  */
18333
17787
  initialize() {
18334
- this.dictionary.items.setValue(this.dictionaryProperties.type, new PdfName('Page'));
17788
+ this.dictionary.items.setValue('Type', new PdfName('Page'));
18335
17789
  this.dictionary.pageBeginDrawTemplate = new SaveTemplateEventHandler(this);
18336
17790
  }
18337
17791
  /**
@@ -18340,7 +17794,7 @@ class PdfPage extends PdfPageBase {
18340
17794
  */
18341
17795
  setSection(section) {
18342
17796
  this.section = section;
18343
- this.dictionary.items.setValue(this.dictionaryProperties.parent, new PdfReferenceHolder(section));
17797
+ this.dictionary.items.setValue('Parent', new PdfReferenceHolder(section));
18344
17798
  }
18345
17799
  /**
18346
17800
  * `Resets the progress`.
@@ -18830,11 +18284,6 @@ class PdfSection {
18830
18284
  * @private
18831
18285
  */
18832
18286
  this.pdfPages = [];
18833
- /**
18834
- * @hidden
18835
- * @private
18836
- */
18837
- this.dictionaryProperties = new DictionaryProperties();
18838
18287
  this.pdfDocument = document;
18839
18288
  if (typeof pageSettings === 'undefined') {
18840
18289
  this.settings = document.pageSettings.clone();
@@ -18856,7 +18305,7 @@ class PdfSection {
18856
18305
  }
18857
18306
  set parent(value) {
18858
18307
  this.sectionCollection = value;
18859
- this.section.items.setValue(this.dictionaryProperties.parent, new PdfReferenceHolder(value));
18308
+ this.section.items.setValue('Parent', new PdfReferenceHolder(value));
18860
18309
  }
18861
18310
  /**
18862
18311
  * Gets the `parent document`.
@@ -18964,9 +18413,9 @@ class PdfSection {
18964
18413
  this.state = new PageSettingsState(this.pdfDocument);
18965
18414
  this.section.sectionBeginSave = new SaveSectionEventHandler(this, this.state);
18966
18415
  this.pageCount = new PdfNumber(0);
18967
- this.section.items.setValue(this.dictionaryProperties.count, this.pageCount);
18968
- this.section.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.pages));
18969
- this.section.items.setValue(this.dictionaryProperties.kids, this.pagesReferences);
18416
+ this.section.items.setValue('Count', this.pageCount);
18417
+ this.section.items.setValue('Type', new PdfName('Pages'));
18418
+ this.section.items.setValue('Kids', this.pagesReferences);
18970
18419
  }
18971
18420
  /**
18972
18421
  * Checks whether any template should be printed on this layer.
@@ -19245,11 +18694,11 @@ class PdfSection {
19245
18694
  */
19246
18695
  applyPageSettings(container, parentSettings, state) {
19247
18696
  let bounds = new RectangleF(state.origin, state.size);
19248
- container.items.setValue(this.dictionaryProperties.mediaBox, PdfArray.fromRectangle(bounds));
18697
+ container.items.setValue('MediaBox', PdfArray.fromRectangle(bounds));
19249
18698
  let rotate = 0;
19250
18699
  rotate = PdfSectionCollection.rotateFactor * state.rotate;
19251
18700
  let angle = new PdfNumber(rotate);
19252
- container.items.setValue(this.dictionaryProperties.rotate, angle);
18701
+ container.items.setValue('Rotate', angle);
19253
18702
  }
19254
18703
  /**
19255
18704
  * Catches the Save event of the dictionary.
@@ -19355,11 +18804,6 @@ class PdfSectionCollection {
19355
18804
  * @private
19356
18805
  */
19357
18806
  this.sections = [];
19358
- /**
19359
- * @hidden
19360
- * @private
19361
- */
19362
- this.dictionaryProperties = new DictionaryProperties();
19363
18807
  // if (document === null) {
19364
18808
  // throw new Error('ArgumentNullException : document');
19365
18809
  // }
@@ -19404,10 +18848,10 @@ class PdfSectionCollection {
19404
18848
  this.sectionCollection = new PdfArray();
19405
18849
  this.pages = new PdfDictionary();
19406
18850
  this.pages.beginSave = new SaveSectionCollectionEventHandler(this);
19407
- this.pages.items.setValue(this.dictionaryProperties.type, new PdfName('Pages'));
19408
- this.pages.items.setValue(this.dictionaryProperties.kids, this.sectionCollection);
19409
- this.pages.items.setValue(this.dictionaryProperties.count, this.sectionCount);
19410
- this.pages.items.setValue(this.dictionaryProperties.resources, new PdfDictionary());
18851
+ this.pages.items.setValue('Type', new PdfName('Pages'));
18852
+ this.pages.items.setValue('Kids', this.sectionCollection);
18853
+ this.pages.items.setValue('Count', this.sectionCount);
18854
+ this.pages.items.setValue('Resources', new PdfDictionary());
19411
18855
  this.setPageSettings(this.pages, this.pdfDocument.pageSettings);
19412
18856
  }
19413
18857
  /**
@@ -19432,7 +18876,7 @@ class PdfSectionCollection {
19432
18876
  // throw new Error('ArgumentNullException : pageSettings');
19433
18877
  // }
19434
18878
  let bounds = new RectangleF(new PointF(), pageSettings.size);
19435
- container.items.setValue(this.dictionaryProperties.mediaBox, PdfArray.fromRectangle(bounds));
18879
+ container.items.setValue('MediaBox', PdfArray.fromRectangle(bounds));
19436
18880
  }
19437
18881
  /**
19438
18882
  * `Adds` the specified section.
@@ -20040,6 +19484,28 @@ PdfDocument.isCacheEnabled = true;
20040
19484
  * `Factory of the standard fonts metrics`.
20041
19485
  */
20042
19486
  class PdfStandardFontMetricsFactory {
19487
+ /**
19488
+ * Decodes a packed width table into a numeric array.
19489
+ * @private
19490
+ */
19491
+ static decodeWidths(packed, offset) {
19492
+ let widths = [];
19493
+ for (let i = 0; i < packed.length; i++) {
19494
+ widths.push(packed.charCodeAt(i) - offset);
19495
+ }
19496
+ return widths;
19497
+ }
19498
+ /**
19499
+ * Creates the fixed-width (Courier) table: every glyph is 600 units wide.
19500
+ * @private
19501
+ */
19502
+ static createFixedWidth() {
19503
+ let widths = [];
19504
+ for (let i = 0; i < 224; i++) {
19505
+ widths.push(600);
19506
+ }
19507
+ return widths;
19508
+ }
20043
19509
  /**
20044
19510
  * Returns `metrics` of the font.
20045
19511
  * @private
@@ -20083,7 +19549,7 @@ class PdfStandardFontMetricsFactory {
20083
19549
  metrics.descent = this.helveticaBoldItalicDescent;
20084
19550
  metrics.postScriptName = this.helveticaBoldItalicName;
20085
19551
  metrics.size = size;
20086
- metrics.widthTable = new StandardWidthTable(this.arialBoldWidth);
19552
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialBoldWidth, 0));
20087
19553
  metrics.height = metrics.ascent - metrics.descent;
20088
19554
  }
20089
19555
  else if ((fontStyle & PdfFontStyle.Bold) > 0) {
@@ -20091,7 +19557,7 @@ class PdfStandardFontMetricsFactory {
20091
19557
  metrics.descent = this.helveticaBoldDescent;
20092
19558
  metrics.postScriptName = this.helveticaBoldName;
20093
19559
  metrics.size = size;
20094
- metrics.widthTable = new StandardWidthTable(this.arialBoldWidth);
19560
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialBoldWidth, 0));
20095
19561
  metrics.height = metrics.ascent - metrics.descent;
20096
19562
  }
20097
19563
  else if ((fontStyle & PdfFontStyle.Italic) > 0) {
@@ -20099,7 +19565,7 @@ class PdfStandardFontMetricsFactory {
20099
19565
  metrics.descent = this.helveticaItalicDescent;
20100
19566
  metrics.postScriptName = this.helveticaItalicName;
20101
19567
  metrics.size = size;
20102
- metrics.widthTable = new StandardWidthTable(this.arialWidth);
19568
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialWidth, 0));
20103
19569
  metrics.height = metrics.ascent - metrics.descent;
20104
19570
  }
20105
19571
  else {
@@ -20107,7 +19573,7 @@ class PdfStandardFontMetricsFactory {
20107
19573
  metrics.descent = this.helveticaDescent;
20108
19574
  metrics.postScriptName = this.helveticaName;
20109
19575
  metrics.size = size;
20110
- metrics.widthTable = new StandardWidthTable(this.arialWidth);
19576
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.arialWidth, 0));
20111
19577
  metrics.height = metrics.ascent - metrics.descent;
20112
19578
  }
20113
19579
  return metrics;
@@ -20163,7 +19629,7 @@ class PdfStandardFontMetricsFactory {
20163
19629
  metrics.descent = this.timesBoldItalicDescent;
20164
19630
  metrics.postScriptName = this.timesBoldItalicName;
20165
19631
  metrics.size = size;
20166
- metrics.widthTable = new StandardWidthTable(this.timesRomanBoldItalicWidths);
19632
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanBoldItalicWidths, 0));
20167
19633
  metrics.height = metrics.ascent - metrics.descent;
20168
19634
  }
20169
19635
  else if ((fontStyle & PdfFontStyle.Bold) > 0) {
@@ -20171,7 +19637,7 @@ class PdfStandardFontMetricsFactory {
20171
19637
  metrics.descent = this.timesBoldDescent;
20172
19638
  metrics.postScriptName = this.timesBoldName;
20173
19639
  metrics.size = size;
20174
- metrics.widthTable = new StandardWidthTable(this.timesRomanBoldWidth);
19640
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanBoldWidth, 0));
20175
19641
  metrics.height = metrics.ascent - metrics.descent;
20176
19642
  }
20177
19643
  else if ((fontStyle & PdfFontStyle.Italic) > 0) {
@@ -20179,7 +19645,7 @@ class PdfStandardFontMetricsFactory {
20179
19645
  metrics.descent = this.timesItalicDescent;
20180
19646
  metrics.postScriptName = this.timesItalicName;
20181
19647
  metrics.size = size;
20182
- metrics.widthTable = new StandardWidthTable(this.timesRomanItalicWidth);
19648
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanItalicWidth, 0));
20183
19649
  metrics.height = metrics.ascent - metrics.descent;
20184
19650
  }
20185
19651
  else {
@@ -20187,7 +19653,7 @@ class PdfStandardFontMetricsFactory {
20187
19653
  metrics.descent = this.timesDescent;
20188
19654
  metrics.postScriptName = this.timesName;
20189
19655
  metrics.size = size;
20190
- metrics.widthTable = new StandardWidthTable(this.timesRomanWidth);
19656
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.timesRomanWidth, 0));
20191
19657
  metrics.height = metrics.ascent - metrics.descent;
20192
19658
  }
20193
19659
  return metrics;
@@ -20202,7 +19668,7 @@ class PdfStandardFontMetricsFactory {
20202
19668
  metrics.descent = this.symbolDescent;
20203
19669
  metrics.postScriptName = this.symbolName;
20204
19670
  metrics.size = size;
20205
- metrics.widthTable = new StandardWidthTable(this.symbolWidth);
19671
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.symbolWidth, 1));
20206
19672
  metrics.height = metrics.ascent - metrics.descent;
20207
19673
  return metrics;
20208
19674
  }
@@ -20216,7 +19682,7 @@ class PdfStandardFontMetricsFactory {
20216
19682
  metrics.descent = this.zapfDingbatsDescent;
20217
19683
  metrics.postScriptName = this.zapfDingbatsName;
20218
19684
  metrics.size = size;
20219
- metrics.widthTable = new StandardWidthTable(this.zapfDingbatsWidth);
19685
+ metrics.widthTable = new StandardWidthTable(this.decodeWidths(this.zapfDingbatsWidth, 0));
20220
19686
  metrics.height = metrics.ascent - metrics.descent;
20221
19687
  return metrics;
20222
19688
  }
@@ -20440,189 +19906,51 @@ PdfStandardFontMetricsFactory.zapfDingbatsName = 'ZapfDingbats';
20440
19906
  * `Arial` widths table.
20441
19907
  * @private
20442
19908
  */
20443
- PdfStandardFontMetricsFactory.arialWidth = [
20444
- 278, 278, 355, 556, 556, 889, 667, 191, 333, 333, 389, 584, 278, 333,
20445
- 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584,
20446
- 584, 556, 1015, 667, 667, 722, 722, 667, 611, 778, 722, 278, 500, 667, 556, 833,
20447
- 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 278, 278, 278,
20448
- 469, 556, 333, 556, 556, 500, 556, 556, 278, 556, 556, 222, 222, 500, 222, 833,
20449
- 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500, 500, 334, 260, 334,
20450
- 584, 0, 556, 0, 222, 556, 333, 1000, 556, 556, 333, 1000, 667, 333, 1000, 0,
20451
- 611, 0, 0, 222, 222, 333, 333, 350, 556, 1000, 333, 1000, 500, 333, 944, 0,
20452
- 500, 667, 0, 333, 556, 556, 556, 556, 260, 556, 333, 737, 370, 556, 584, 0,
20453
- 737, 333, 400, 584, 333, 333, 333, 556, 537, 278, 333, 333, 365, 556, 834, 834,
20454
- 834, 611, 667, 667, 667, 667, 667, 667, 1000, 722, 667, 667, 667, 667, 278, 278,
20455
- 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667,
20456
- 667, 611, 556, 556, 556, 556, 556, 556, 889, 500, 556, 556, 556, 556, 278, 278,
20457
- 278, 278, 556, 556, 556, 556, 556, 556, 556, 584, 611, 556, 556, 556, 556, 500,
20458
- 556, 500
20459
- ];
19909
+ PdfStandardFontMetricsFactory.arialWidth = '\u0116\u0116\u0163\u022c\u022c\u0379\u029b\u00bf\u014d\u014d\u0185\u0248\u0116\u014d\u0116\u0116\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u0116\u0116\u0248\u0248\u0248\u022c\u03f7\u029b\u029b\u02d2\u02d2\u029b\u0263\u030a\u02d2\u0116\u01f4\u029b\u022c\u0341\u02d2\u030a\u029b\u030a\u02d2\u029b\u0263\u02d2\u029b\u03b0\u029b\u029b\u0263\u0116\u0116\u0116\u01d5\u022c\u014d\u022c\u022c\u01f4\u022c\u022c\u0116\u022c\u022c\u00de\u00de\u01f4\u00de\u0341\u022c\u022c\u022c\u022c\u014d\u01f4\u0116\u022c\u01f4\u02d2\u01f4\u01f4\u01f4\u014e\u0104\u014e\u0248\u0000\u022c\u0000\u00de\u022c\u014d\u03e8\u022c\u022c\u014d\u03e8\u029b\u014d\u03e8\u0000\u0263\u0000\u0000\u00de\u00de\u014d\u014d\u015e\u022c\u03e8\u014d\u03e8\u01f4\u014d\u03b0\u0000\u01f4\u029b\u0000\u014d\u022c\u022c\u022c\u022c\u0104\u022c\u014d\u02e1\u0172\u022c\u0248\u0000\u02e1\u014d\u0190\u0248\u014d\u014d\u014d\u022c\u0219\u0116\u014d\u014d\u016d\u022c\u0342\u0342\u0342\u0263\u029b\u029b\u029b\u029b\u029b\u029b\u03e8\u02d2\u029b\u029b\u029b\u029b\u0116\u0116\u0116\u0116\u02d2\u02d2\u030a\u030a\u030a\u030a\u030a\u0248\u030a\u02d2\u02d2\u02d2\u02d2\u029b\u029b\u0263\u022c\u022c\u022c\u022c\u022c\u022c\u0379\u01f4\u022c\u022c\u022c\u022c\u0116\u0116\u0116\u0116\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u0248\u0263\u022c\u022c\u022c\u022c\u01f4\u022c\u01f4';
20460
19910
  /**
20461
19911
  * `Arial bold` widths table.
20462
19912
  * @private
20463
19913
  */
20464
- PdfStandardFontMetricsFactory.arialBoldWidth = [
20465
- 278, 333, 474, 556, 556, 889, 722, 238, 333, 333, 389, 584, 278, 333,
20466
- 278, 278, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 333, 333, 584, 584,
20467
- 584, 611, 975, 722, 722, 722, 722, 667, 611, 778, 722, 278, 556, 722, 611, 833,
20468
- 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667, 667, 611, 333, 278, 333,
20469
- 584, 556, 333, 556, 611, 556, 611, 556, 333, 611, 611, 278, 278, 556, 278, 889,
20470
- 611, 611, 611, 611, 389, 556, 333, 611, 556, 778, 556, 556, 500, 389, 280, 389,
20471
- 584, 0, 556, 0, 278, 556, 500, 1000, 556, 556, 333, 1000, 667, 333, 1000, 0,
20472
- 611, 0, 0, 278, 278, 500, 500, 350, 556, 1000, 333, 1000, 556, 333, 944, 0,
20473
- 500, 667, 0, 333, 556, 556, 556, 556, 280, 556, 333, 737, 370, 556, 584, 0,
20474
- 737, 333, 400, 584, 333, 333, 333, 611, 556, 278, 333, 333, 365, 556, 834, 834,
20475
- 834, 611, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 278, 278,
20476
- 278, 278, 722, 722, 778, 778, 778, 778, 778, 584, 778, 722, 722, 722, 722, 667,
20477
- 667, 611, 556, 556, 556, 556, 556, 556, 889, 556, 556, 556, 556, 556, 278, 278,
20478
- 278, 278, 611, 611, 611, 611, 611, 611, 611, 584, 611, 611, 611, 611, 611, 556,
20479
- 611, 556
20480
- ];
19914
+ PdfStandardFontMetricsFactory.arialBoldWidth = '\u0116\u014d\u01da\u022c\u022c\u0379\u02d2\u00ee\u014d\u014d\u0185\u0248\u0116\u014d\u0116\u0116\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u022c\u014d\u014d\u0248\u0248\u0248\u0263\u03cf\u02d2\u02d2\u02d2\u02d2\u029b\u0263\u030a\u02d2\u0116\u022c\u02d2\u0263\u0341\u02d2\u030a\u029b\u030a\u02d2\u029b\u0263\u02d2\u029b\u03b0\u029b\u029b\u0263\u014d\u0116\u014d\u0248\u022c\u014d\u022c\u0263\u022c\u0263\u022c\u014d\u0263\u0263\u0116\u0116\u022c\u0116\u0379\u0263\u0263\u0263\u0263\u0185\u022c\u014d\u0263\u022c\u030a\u022c\u022c\u01f4\u0185\u0118\u0185\u0248\u0000\u022c\u0000\u0116\u022c\u01f4\u03e8\u022c\u022c\u014d\u03e8\u029b\u014d\u03e8\u0000\u0263\u0000\u0000\u0116\u0116\u01f4\u01f4\u015e\u022c\u03e8\u014d\u03e8\u022c\u014d\u03b0\u0000\u01f4\u029b\u0000\u014d\u022c\u022c\u022c\u022c\u0118\u022c\u014d\u02e1\u0172\u022c\u0248\u0000\u02e1\u014d\u0190\u0248\u014d\u014d\u014d\u0263\u022c\u0116\u014d\u014d\u016d\u022c\u0342\u0342\u0342\u0263\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u03e8\u02d2\u029b\u029b\u029b\u029b\u0116\u0116\u0116\u0116\u02d2\u02d2\u030a\u030a\u030a\u030a\u030a\u0248\u030a\u02d2\u02d2\u02d2\u02d2\u029b\u029b\u0263\u022c\u022c\u022c\u022c\u022c\u022c\u0379\u022c\u022c\u022c\u022c\u022c\u0116\u0116\u0116\u0116\u0263\u0263\u0263\u0263\u0263\u0263\u0263\u0248\u0263\u0263\u0263\u0263\u0263\u022c\u0263\u022c';
20481
19915
  /**
20482
19916
  * `Fixed` widths table.
20483
19917
  * @private
20484
19918
  */
20485
- PdfStandardFontMetricsFactory.fixedWidth = [
20486
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20487
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20488
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20489
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20490
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20491
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20492
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20493
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20494
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20495
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20496
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20497
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20498
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
20499
- 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600
20500
- ];
19919
+ /**
19920
+ * `Fixed` widths table (every glyph is 600 units wide).
19921
+ * @private
19922
+ */
19923
+ PdfStandardFontMetricsFactory.fixedWidth = PdfStandardFontMetricsFactory.createFixedWidth();
20501
19924
  /**
20502
19925
  * `Times` widths table.
20503
19926
  * @private
20504
19927
  */
20505
- PdfStandardFontMetricsFactory.timesRomanWidth = [
20506
- 250, 333, 408, 500, 500, 833, 778, 180, 333, 333, 500, 564, 250, 333,
20507
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278, 564, 564,
20508
- 564, 444, 921, 722, 667, 667, 722, 611, 556, 722, 722, 333, 389, 722, 611, 889,
20509
- 722, 722, 556, 722, 667, 556, 611, 722, 722, 944, 722, 722, 611, 333, 278, 333,
20510
- 469, 500, 333, 444, 500, 444, 500, 444, 333, 500, 500, 278, 278, 500, 278, 778,
20511
- 500, 500, 500, 500, 333, 389, 278, 500, 500, 722, 500, 500, 444, 480, 200, 480,
20512
- 541, 0, 500, 0, 333, 500, 444, 1000, 500, 500, 333, 1000, 556, 333, 889, 0,
20513
- 611, 0, 0, 333, 333, 444, 444, 350, 500, 1000, 333, 980, 389, 333, 722, 0,
20514
- 444, 722, 0, 333, 500, 500, 500, 500, 200, 500, 333, 760, 276, 500, 564, 0,
20515
- 760, 333, 400, 564, 300, 300, 333, 500, 453, 250, 333, 300, 310, 500, 750, 750,
20516
- 750, 444, 722, 722, 722, 722, 722, 722, 889, 667, 611, 611, 611, 611, 333, 333,
20517
- 333, 333, 722, 722, 722, 722, 722, 722, 722, 564, 722, 722, 722, 722, 722, 722,
20518
- 556, 500, 444, 444, 444, 444, 444, 444, 667, 444, 444, 444, 444, 444, 278, 278,
20519
- 278, 278, 500, 500, 500, 500, 500, 500, 500, 564, 500, 500, 500, 500, 500, 500,
20520
- 500, 500
20521
- ];
19928
+ PdfStandardFontMetricsFactory.timesRomanWidth = '\u00fa\u014d\u0198\u01f4\u01f4\u0341\u030a\u00b4\u014d\u014d\u01f4\u0234\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u0116\u0116\u0234\u0234\u0234\u01bc\u0399\u02d2\u029b\u029b\u02d2\u0263\u022c\u02d2\u02d2\u014d\u0185\u02d2\u0263\u0379\u02d2\u02d2\u022c\u02d2\u029b\u022c\u0263\u02d2\u02d2\u03b0\u02d2\u02d2\u0263\u014d\u0116\u014d\u01d5\u01f4\u014d\u01bc\u01f4\u01bc\u01f4\u01bc\u014d\u01f4\u01f4\u0116\u0116\u01f4\u0116\u030a\u01f4\u01f4\u01f4\u01f4\u014d\u0185\u0116\u01f4\u01f4\u02d2\u01f4\u01f4\u01bc\u01e0\u00c8\u01e0\u021d\u0000\u01f4\u0000\u014d\u01f4\u01bc\u03e8\u01f4\u01f4\u014d\u03e8\u022c\u014d\u0379\u0000\u0263\u0000\u0000\u014d\u014d\u01bc\u01bc\u015e\u01f4\u03e8\u014d\u03d4\u0185\u014d\u02d2\u0000\u01bc\u02d2\u0000\u014d\u01f4\u01f4\u01f4\u01f4\u00c8\u01f4\u014d\u02f8\u0114\u01f4\u0234\u0000\u02f8\u014d\u0190\u0234\u012c\u012c\u014d\u01f4\u01c5\u00fa\u014d\u012c\u0136\u01f4\u02ee\u02ee\u02ee\u01bc\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u0379\u029b\u0263\u0263\u0263\u0263\u014d\u014d\u014d\u014d\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u0234\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u022c\u01f4\u01bc\u01bc\u01bc\u01bc\u01bc\u01bc\u029b\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u0234\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4';
20522
19929
  /**
20523
19930
  * `Times bold` widths table.
20524
19931
  * @private
20525
19932
  */
20526
- PdfStandardFontMetricsFactory.timesRomanBoldWidth = [
20527
- 250, 333, 555, 500, 500, 1000, 833, 278, 333, 333, 500, 570, 250, 333,
20528
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 570, 570,
20529
- 570, 500, 930, 722, 667, 722, 722, 667, 611, 778, 778, 389, 500, 778, 667, 944,
20530
- 722, 778, 611, 778, 722, 556, 667, 722, 722, 1000, 722, 722, 667, 333, 278, 333,
20531
- 581, 500, 333, 500, 556, 444, 556, 444, 333, 500, 556, 278, 333, 556, 278, 833,
20532
- 556, 500, 556, 556, 444, 389, 333, 556, 500, 722, 500, 500, 444, 394, 220, 394,
20533
- 520, 0, 500, 0, 333, 500, 500, 1000, 500, 500, 333, 1000, 556, 333, 1000, 0,
20534
- 667, 0, 0, 333, 333, 500, 500, 350, 500, 1000, 333, 1000, 389, 333, 722, 0,
20535
- 444, 722, 0, 333, 500, 500, 500, 500, 220, 500, 333, 747, 300, 500, 570, 0,
20536
- 747, 333, 400, 570, 300, 300, 333, 556, 540, 250, 333, 300, 330, 500, 750, 750,
20537
- 750, 500, 722, 722, 722, 722, 722, 722, 1000, 722, 667, 667, 667, 667, 389, 389,
20538
- 389, 389, 722, 722, 778, 778, 778, 778, 778, 570, 778, 722, 722, 722, 722, 722,
20539
- 611, 556, 500, 500, 500, 500, 500, 500, 722, 444, 444, 444, 444, 444, 278, 278,
20540
- 278, 278, 500, 556, 500, 500, 500, 500, 500, 570, 500, 556, 556, 556, 556, 500,
20541
- 556, 500
20542
- ];
19933
+ PdfStandardFontMetricsFactory.timesRomanBoldWidth = '\u00fa\u014d\u022b\u01f4\u01f4\u03e8\u0341\u0116\u014d\u014d\u01f4\u023a\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u014d\u014d\u023a\u023a\u023a\u01f4\u03a2\u02d2\u029b\u02d2\u02d2\u029b\u0263\u030a\u030a\u0185\u01f4\u030a\u029b\u03b0\u02d2\u030a\u0263\u030a\u02d2\u022c\u029b\u02d2\u02d2\u03e8\u02d2\u02d2\u029b\u014d\u0116\u014d\u0245\u01f4\u014d\u01f4\u022c\u01bc\u022c\u01bc\u014d\u01f4\u022c\u0116\u014d\u022c\u0116\u0341\u022c\u01f4\u022c\u022c\u01bc\u0185\u014d\u022c\u01f4\u02d2\u01f4\u01f4\u01bc\u018a\u00dc\u018a\u0208\u0000\u01f4\u0000\u014d\u01f4\u01f4\u03e8\u01f4\u01f4\u014d\u03e8\u022c\u014d\u03e8\u0000\u029b\u0000\u0000\u014d\u014d\u01f4\u01f4\u015e\u01f4\u03e8\u014d\u03e8\u0185\u014d\u02d2\u0000\u01bc\u02d2\u0000\u014d\u01f4\u01f4\u01f4\u01f4\u00dc\u01f4\u014d\u02eb\u012c\u01f4\u023a\u0000\u02eb\u014d\u0190\u023a\u012c\u012c\u014d\u022c\u021c\u00fa\u014d\u012c\u014a\u01f4\u02ee\u02ee\u02ee\u01f4\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u03e8\u02d2\u029b\u029b\u029b\u029b\u0185\u0185\u0185\u0185\u02d2\u02d2\u030a\u030a\u030a\u030a\u030a\u023a\u030a\u02d2\u02d2\u02d2\u02d2\u02d2\u0263\u022c\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u02d2\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u022c\u01f4\u01f4\u01f4\u01f4\u01f4\u023a\u01f4\u022c\u022c\u022c\u022c\u01f4\u022c\u01f4';
20543
19934
  /**
20544
19935
  * `Times italic` widths table.
20545
19936
  * @private
20546
19937
  */
20547
- PdfStandardFontMetricsFactory.timesRomanItalicWidth = [
20548
- 250, 333, 420, 500, 500, 833, 778, 214, 333, 333, 500, 675, 250, 333,
20549
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 675, 675,
20550
- 675, 500, 920, 611, 611, 667, 722, 611, 611, 722, 722, 333, 444, 667, 556, 833,
20551
- 667, 722, 611, 722, 611, 500, 556, 722, 611, 833, 611, 556, 556, 389, 278, 389,
20552
- 422, 500, 333, 500, 500, 444, 500, 444, 278, 500, 500, 278, 278, 444, 278, 722,
20553
- 500, 500, 500, 500, 389, 389, 278, 500, 444, 667, 444, 444, 389, 400, 275, 400,
20554
- 541, 0, 500, 0, 333, 500, 556, 889, 500, 500, 333, 1000, 500, 333, 944, 0,
20555
- 556, 0, 0, 333, 333, 556, 556, 350, 500, 889, 333, 980, 389, 333, 667, 0,
20556
- 389, 556, 0, 389, 500, 500, 500, 500, 275, 500, 333, 760, 276, 500, 675, 0,
20557
- 760, 333, 400, 675, 300, 300, 333, 500, 523, 250, 333, 300, 310, 500, 750, 750,
20558
- 750, 500, 611, 611, 611, 611, 611, 611, 889, 667, 611, 611, 611, 611, 333, 333,
20559
- 333, 333, 722, 667, 722, 722, 722, 722, 722, 675, 722, 722, 722, 722, 722, 556,
20560
- 611, 500, 500, 500, 500, 500, 500, 500, 667, 444, 444, 444, 444, 444, 278, 278,
20561
- 278, 278, 500, 500, 500, 500, 500, 500, 500, 675, 500, 500, 500, 500, 500, 444,
20562
- 500, 444
20563
- ];
19938
+ PdfStandardFontMetricsFactory.timesRomanItalicWidth = '\u00fa\u014d\u01a4\u01f4\u01f4\u0341\u030a\u00d6\u014d\u014d\u01f4\u02a3\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u014d\u014d\u02a3\u02a3\u02a3\u01f4\u0398\u0263\u0263\u029b\u02d2\u0263\u0263\u02d2\u02d2\u014d\u01bc\u029b\u022c\u0341\u029b\u02d2\u0263\u02d2\u0263\u01f4\u022c\u02d2\u0263\u0341\u0263\u022c\u022c\u0185\u0116\u0185\u01a6\u01f4\u014d\u01f4\u01f4\u01bc\u01f4\u01bc\u0116\u01f4\u01f4\u0116\u0116\u01bc\u0116\u02d2\u01f4\u01f4\u01f4\u01f4\u0185\u0185\u0116\u01f4\u01bc\u029b\u01bc\u01bc\u0185\u0190\u0113\u0190\u021d\u0000\u01f4\u0000\u014d\u01f4\u022c\u0379\u01f4\u01f4\u014d\u03e8\u01f4\u014d\u03b0\u0000\u022c\u0000\u0000\u014d\u014d\u022c\u022c\u015e\u01f4\u0379\u014d\u03d4\u0185\u014d\u029b\u0000\u0185\u022c\u0000\u0185\u01f4\u01f4\u01f4\u01f4\u0113\u01f4\u014d\u02f8\u0114\u01f4\u02a3\u0000\u02f8\u014d\u0190\u02a3\u012c\u012c\u014d\u01f4\u020b\u00fa\u014d\u012c\u0136\u01f4\u02ee\u02ee\u02ee\u01f4\u0263\u0263\u0263\u0263\u0263\u0263\u0379\u029b\u0263\u0263\u0263\u0263\u014d\u014d\u014d\u014d\u02d2\u029b\u02d2\u02d2\u02d2\u02d2\u02d2\u02a3\u02d2\u02d2\u02d2\u02d2\u02d2\u022c\u0263\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u029b\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u02a3\u01f4\u01f4\u01f4\u01f4\u01f4\u01bc\u01f4\u01bc';
20564
19939
  /**
20565
19940
  * `Times bold italic` widths table.
20566
19941
  * @private
20567
19942
  */
20568
- PdfStandardFontMetricsFactory.timesRomanBoldItalicWidths = [
20569
- 250, 389, 555, 500, 500, 833, 778, 278, 333, 333, 500, 570, 250, 333,
20570
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 333, 333, 570, 570,
20571
- 570, 500, 832, 667, 667, 667, 722, 667, 667, 722, 778, 389, 500, 667, 611, 889,
20572
- 722, 722, 611, 722, 667, 556, 611, 722, 667, 889, 667, 611, 611, 333, 278, 333,
20573
- 570, 500, 333, 500, 500, 444, 500, 444, 333, 500, 556, 278, 278, 500, 278, 778,
20574
- 556, 500, 500, 500, 389, 389, 278, 556, 444, 667, 500, 444, 389, 348, 220, 348,
20575
- 570, 0, 500, 0, 333, 500, 500, 1000, 500, 500, 333, 1000, 556, 333, 944, 0,
20576
- 611, 0, 0, 333, 333, 500, 500, 350, 500, 1000, 333, 1000, 389, 333, 722, 0,
20577
- 389, 611, 0, 389, 500, 500, 500, 500, 220, 500, 333, 747, 266, 500, 606, 0,
20578
- 747, 333, 400, 570, 300, 300, 333, 576, 500, 250, 333, 300, 300, 500, 750, 750,
20579
- 750, 500, 667, 667, 667, 667, 667, 667, 944, 667, 667, 667, 667, 667, 389, 389,
20580
- 389, 389, 722, 722, 722, 722, 722, 722, 722, 570, 722, 722, 722, 722, 722, 611,
20581
- 611, 500, 500, 500, 500, 500, 500, 500, 722, 444, 444, 444, 444, 444, 278, 278,
20582
- 278, 278, 500, 556, 500, 500, 500, 500, 500, 570, 500, 556, 556, 556, 556, 444,
20583
- 500, 444
20584
- ];
19943
+ PdfStandardFontMetricsFactory.timesRomanBoldItalicWidths = '\u00fa\u0185\u022b\u01f4\u01f4\u0341\u030a\u0116\u014d\u014d\u01f4\u023a\u00fa\u014d\u00fa\u0116\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u014d\u014d\u023a\u023a\u023a\u01f4\u0340\u029b\u029b\u029b\u02d2\u029b\u029b\u02d2\u030a\u0185\u01f4\u029b\u0263\u0379\u02d2\u02d2\u0263\u02d2\u029b\u022c\u0263\u02d2\u029b\u0379\u029b\u0263\u0263\u014d\u0116\u014d\u023a\u01f4\u014d\u01f4\u01f4\u01bc\u01f4\u01bc\u014d\u01f4\u022c\u0116\u0116\u01f4\u0116\u030a\u022c\u01f4\u01f4\u01f4\u0185\u0185\u0116\u022c\u01bc\u029b\u01f4\u01bc\u0185\u015c\u00dc\u015c\u023a\u0000\u01f4\u0000\u014d\u01f4\u01f4\u03e8\u01f4\u01f4\u014d\u03e8\u022c\u014d\u03b0\u0000\u0263\u0000\u0000\u014d\u014d\u01f4\u01f4\u015e\u01f4\u03e8\u014d\u03e8\u0185\u014d\u02d2\u0000\u0185\u0263\u0000\u0185\u01f4\u01f4\u01f4\u01f4\u00dc\u01f4\u014d\u02eb\u010a\u01f4\u025e\u0000\u02eb\u014d\u0190\u023a\u012c\u012c\u014d\u0240\u01f4\u00fa\u014d\u012c\u012c\u01f4\u02ee\u02ee\u02ee\u01f4\u029b\u029b\u029b\u029b\u029b\u029b\u03b0\u029b\u029b\u029b\u029b\u029b\u0185\u0185\u0185\u0185\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u02d2\u023a\u02d2\u02d2\u02d2\u02d2\u02d2\u0263\u0263\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u01f4\u02d2\u01bc\u01bc\u01bc\u01bc\u01bc\u0116\u0116\u0116\u0116\u01f4\u022c\u01f4\u01f4\u01f4\u01f4\u01f4\u023a\u01f4\u022c\u022c\u022c\u022c\u01bc\u01f4\u01bc';
20585
19944
  /**
20586
19945
  * `Symbol` widths table.
20587
19946
  * @private
20588
19947
  */
20589
- PdfStandardFontMetricsFactory.symbolWidth = [
20590
- 250, 333, 713, 500, 549, 833, 778, 439, 333, 333, 500, 549, 250, 549,
20591
- 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278,
20592
- 549, 549, 549, 444, 549, 722, 667, 722, 612, 611, 763, 603, 722, 333,
20593
- 631, 722, 686, 889, 722, 722, 768, 741, 556, 592, 611, 690, 439, 768,
20594
- 645, 795, 611, 333, 863, 333, 658, 500, 500, 631, 549, 549, 494, 439,
20595
- 521, 411, 603, 329, 603, 549, 549, 576, 521, 549, 549, 521, 549, 603,
20596
- 439, 576, 713, 686, 493, 686, 494, 480, 200, 480, 549, 750, 620, 247,
20597
- 549, 167, 713, 500, 753, 753, 753, 753, 1042, 987, 603, 987, 603, 400,
20598
- 549, 411, 549, 549, 713, 494, 460, 549, 549, 549, 549, 1000, 603, 1000,
20599
- 658, 823, 686, 795, 987, 768, 768, 823, 768, 768, 713, 713, 713, 713,
20600
- 713, 713, 713, 768, 713, 790, 790, 890, 823, 549, 250, 713, 603, 603,
20601
- 1042, 987, 603, 987, 603, 494, 329, 790, 790, 786, 713, 384, 384, 384,
20602
- 384, 384, 384, 494, 494, 494, 494, 329, 274, 686, 686, 686, 384, 384,
20603
- 384, 384, 384, 384, 494, 494, 494, -1
20604
- ];
19948
+ PdfStandardFontMetricsFactory.symbolWidth = '\u00fb\u014e\u02ca\u01f5\u0226\u0342\u030b\u01b8\u014e\u014e\u01f5\u0226\u00fb\u0226\u00fb\u0117\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u01f5\u0117\u0117\u0226\u0226\u0226\u01bd\u0226\u02d3\u029c\u02d3\u0265\u0264\u02fc\u025c\u02d3\u014e\u0278\u02d3\u02af\u037a\u02d3\u02d3\u0301\u02e6\u022d\u0251\u0264\u02b3\u01b8\u0301\u0286\u031c\u0264\u014e\u0360\u014e\u0293\u01f5\u01f5\u0278\u0226\u0226\u01ef\u01b8\u020a\u019c\u025c\u014a\u025c\u0226\u0226\u0241\u020a\u0226\u0226\u020a\u0226\u025c\u01b8\u0241\u02ca\u02af\u01ee\u02af\u01ef\u01e1\u00c9\u01e1\u0226\u02ef\u026d\u00f8\u0226\u00a8\u02ca\u01f5\u02f2\u02f2\u02f2\u02f2\u0413\u03dc\u025c\u03dc\u025c\u0191\u0226\u019c\u0226\u0226\u02ca\u01ef\u01cd\u0226\u0226\u0226\u0226\u03e9\u025c\u03e9\u0293\u0338\u02af\u031c\u03dc\u0301\u0301\u0338\u0301\u0301\u02ca\u02ca\u02ca\u02ca\u02ca\u02ca\u02ca\u0301\u02ca\u0317\u0317\u037b\u0338\u0226\u00fb\u02ca\u025c\u025c\u0413\u03dc\u025c\u03dc\u025c\u01ef\u014a\u0317\u0317\u0313\u02ca\u0181\u0181\u0181\u0181\u0181\u0181\u01ef\u01ef\u01ef\u01ef\u014a\u0113\u02af\u02af\u02af\u0181\u0181\u0181\u0181\u0181\u0181\u01ef\u01ef\u01ef\u0000';
20605
19949
  /**
20606
19950
  * `Zip dingbats` widths table.
20607
19951
  * @private
20608
19952
  */
20609
- PdfStandardFontMetricsFactory.zapfDingbatsWidth = [
20610
- 278, 974, 961, 974, 980, 719, 789, 790, 791, 690, 960, 939, 549, 855,
20611
- 911, 933, 911, 945, 974, 755, 846, 762, 761, 571, 677, 763, 760, 759,
20612
- 754, 494, 552, 537, 577, 692, 786, 788, 788, 790, 793, 794, 816, 823,
20613
- 789, 841, 823, 833, 816, 831, 923, 744, 723, 749, 790, 792, 695, 776,
20614
- 768, 792, 759, 707, 708, 682, 701, 826, 815, 789, 789, 707, 687, 696,
20615
- 689, 786, 787, 713, 791, 785, 791, 873, 761, 762, 762, 759, 759, 892,
20616
- 892, 788, 784, 438, 138, 277, 415, 392, 392, 668, 668, 390, 390, 317,
20617
- 317, 276, 276, 509, 509, 410, 410, 234, 234, 334, 334, 732, 544, 544,
20618
- 910, 667, 760, 760, 776, 595, 694, 626, 788, 788, 788, 788, 788, 788,
20619
- 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
20620
- 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788, 788,
20621
- 788, 788, 788, 788, 788, 788, 894, 838, 1016, 458, 748, 924, 748, 918,
20622
- 927, 928, 928, 834, 873, 828, 924, 924, 917, 930, 931, 463, 883, 836,
20623
- 836, 867, 867, 696, 696, 874, 874, 760, 946, 771, 865, 771, 888, 967,
20624
- 888, 831, 873, 927, 970, 918
20625
- ];
19953
+ PdfStandardFontMetricsFactory.zapfDingbatsWidth = '\u0116\u03ce\u03c1\u03ce\u03d4\u02cf\u0315\u0316\u0317\u02b2\u03c0\u03ab\u0225\u0357\u038f\u03a5\u038f\u03b1\u03ce\u02f3\u034e\u02fa\u02f9\u023b\u02a5\u02fb\u02f8\u02f7\u02f2\u01ee\u0228\u0219\u0241\u02b4\u0312\u0314\u0314\u0316\u0319\u031a\u0330\u0337\u0315\u0349\u0337\u0341\u0330\u033f\u039b\u02e8\u02d3\u02ed\u0316\u0318\u02b7\u0308\u0300\u0318\u02f7\u02c3\u02c4\u02aa\u02bd\u033a\u032f\u0315\u0315\u02c3\u02af\u02b8\u02b1\u0312\u0313\u02c9\u0317\u0311\u0317\u0369\u02f9\u02fa\u02fa\u02f7\u02f7\u037c\u037c\u0314\u0310\u01b6\u008a\u0115\u019f\u0188\u0188\u029c\u029c\u0186\u0186\u013d\u013d\u0114\u0114\u01fd\u01fd\u019a\u019a\u00ea\u00ea\u014e\u014e\u02dc\u0220\u0220\u038e\u029b\u02f8\u02f8\u0308\u0253\u02b6\u0272\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u0314\u037e\u0346\u03f8\u01ca\u02ec\u039c\u02ec\u0396\u039f\u03a0\u03a0\u0342\u0369\u033c\u039c\u039c\u0395\u03a2\u03a3\u01cf\u0373\u0344\u0344\u0363\u0363\u02b8\u02b8\u036a\u036a\u02f8\u03b2\u0303\u0361\u0303\u0378\u03c7\u0378\u033f\u0369\u039f\u03ca\u0396';
20626
19954
 
20627
19955
  /**
20628
19956
  * Represents one of the 14 standard fonts.
@@ -20649,11 +19977,6 @@ PdfStandardFontMetricsFactory.zapfDingbatsWidth = [
20649
19977
  class PdfStandardFont extends PdfFont {
20650
19978
  constructor(fontFamilyPrototype, size, style) {
20651
19979
  super(size, (typeof style === 'undefined') ? ((fontFamilyPrototype instanceof PdfStandardFont) ? fontFamilyPrototype.style : PdfFontStyle.Regular) : style);
20652
- /**
20653
- * Gets `ascent` of the font.
20654
- * @private
20655
- */
20656
- this.dictionaryProperties = new DictionaryProperties();
20657
19980
  /**
20658
19981
  * Gets `encodings` for internal class use.
20659
19982
  * @hidden
@@ -20753,12 +20076,12 @@ class PdfStandardFont extends PdfFont {
20753
20076
  */
20754
20077
  createInternals() {
20755
20078
  let dictionary = new PdfDictionary();
20756
- dictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.font));
20757
- dictionary.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.type1));
20758
- dictionary.items.setValue(this.dictionaryProperties.baseFont, new PdfName(this.metrics.postScriptName));
20079
+ dictionary.items.setValue('Type', new PdfName('Font'));
20080
+ dictionary.items.setValue('Subtype', new PdfName('Type1'));
20081
+ dictionary.items.setValue('BaseFont', new PdfName(this.metrics.postScriptName));
20759
20082
  if (this.fontFamily !== PdfFontFamily.Symbol && this.fontFamily !== PdfFontFamily.ZapfDingbats) {
20760
20083
  let encoding = this.encodings[FontEncoding.WinAnsiEncoding];
20761
- dictionary.items.setValue(this.dictionaryProperties.encoding, new PdfName(encoding));
20084
+ dictionary.items.setValue('Encoding', new PdfName(encoding));
20762
20085
  }
20763
20086
  return dictionary;
20764
20087
  }
@@ -20802,11 +20125,6 @@ PdfStandardFont.charOffset = 32;
20802
20125
  class PdfAnnotation {
20803
20126
  constructor(arg1) {
20804
20127
  // Fields
20805
- /**
20806
- * Specifies the Internal variable to store fields of `PdfDictionaryProperties`.
20807
- * @private
20808
- */
20809
- this.dictionaryProperties = new DictionaryProperties();
20810
20128
  /**
20811
20129
  * `Color` of the annotation
20812
20130
  * @private
@@ -20946,7 +20264,7 @@ class PdfAnnotation {
20946
20264
  }
20947
20265
  set text(value) {
20948
20266
  this.content = value;
20949
- this.dictionary.items.setValue(this.dictionaryProperties.contents, new PdfString(this.content));
20267
+ this.dictionary.items.setValue('Contents', new PdfString(this.content));
20950
20268
  }
20951
20269
  /**
20952
20270
  * Internal variable to store `dictionary`.
@@ -20965,7 +20283,7 @@ class PdfAnnotation {
20965
20283
  */
20966
20284
  initialize() {
20967
20285
  this.pdfDictionary.annotationBeginSave = new SaveAnnotationEventHandler(this);
20968
- this.pdfDictionary.items.setValue(this.dictionaryProperties.type, new PdfName(this.dictionaryProperties.annot));
20286
+ this.pdfDictionary.items.setValue('Type', new PdfName('Annot'));
20969
20287
  }
20970
20288
  /**
20971
20289
  * Sets related `page` of the annotation.
@@ -20973,7 +20291,7 @@ class PdfAnnotation {
20973
20291
  */
20974
20292
  setPage(page) {
20975
20293
  this.pdfPage = page;
20976
- this.pdfDictionary.items.setValue(this.dictionaryProperties.p, new PdfReferenceHolder(this.pdfPage));
20294
+ this.pdfDictionary.items.setValue('P', new PdfReferenceHolder(this.pdfPage));
20977
20295
  }
20978
20296
  /**
20979
20297
  * Handles the `BeginSave` event of the Dictionary.
@@ -20996,8 +20314,8 @@ class PdfAnnotation {
20996
20314
  nativeRectangle.width = tempLoacation.x + nativeRectangle.width;
20997
20315
  nativeRectangle.y = (tempLoacation.y - this.page.document.pageSettings.margins.top);
20998
20316
  nativeRectangle.height = nativeRectangle.y - initialHeight;
20999
- this.pdfDictionary.items.setValue(this.dictionaryProperties.rect, PdfArray.fromRectangle(nativeRectangle));
21000
- this.dictionary.items.setValue(this.dictionaryProperties.ca, new PdfNumber(this.darkness));
20317
+ this.pdfDictionary.items.setValue('Rect', PdfArray.fromRectangle(nativeRectangle));
20318
+ this.dictionary.items.setValue('ca', new PdfNumber(this.darkness));
21001
20319
  }
21002
20320
  /* tslint:enable */
21003
20321
  // IPdfWrapper Members
@@ -21025,7 +20343,7 @@ class PdfLinkAnnotation extends PdfAnnotation {
21025
20343
  */
21026
20344
  initialize() {
21027
20345
  super.initialize();
21028
- this.dictionary.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.link));
20346
+ this.dictionary.items.setValue('Subtype', new PdfName('Link'));
21029
20347
  }
21030
20348
  }
21031
20349
 
@@ -21152,7 +20470,7 @@ class PdfDocumentLinkAnnotation extends PdfLinkAnnotation {
21152
20470
  save() {
21153
20471
  super.save();
21154
20472
  if (this.pdfDestination != null) {
21155
- this.dictionary.items.setValue(this.dictionaryProperties.dest, this.pdfDestination.element);
20473
+ this.dictionary.items.setValue('Dest', this.pdfDestination.element);
21156
20474
  }
21157
20475
  }
21158
20476
  /**
@@ -22175,9 +21493,9 @@ class PdfUriAnnotation extends PdfActionLinkAnnotation {
22175
21493
  */
22176
21494
  initialize() {
22177
21495
  super.initialize();
22178
- this.dictionary.items.setValue(this.dictionaryProperties.subtype, new PdfName(this.dictionaryProperties.link));
21496
+ this.dictionary.items.setValue('Subtype', new PdfName('Link'));
22179
21497
  let tempPrimitive = this.uriAction.element;
22180
- this.dictionary.items.setValue(this.dictionaryProperties.a, this.uriAction.element);
21498
+ this.dictionary.items.setValue('A', this.uriAction.element);
22181
21499
  }
22182
21500
  }
22183
21501
 
@@ -22909,11 +22227,6 @@ var PdfDestinationMode;
22909
22227
  class PdfDestination {
22910
22228
  constructor(arg1, arg2) {
22911
22229
  // Fields
22912
- /**
22913
- * Internal variable for accessing fields from `DictionryProperties` class.
22914
- * @private
22915
- */
22916
- this.dictionaryProperties = new DictionaryProperties();
22917
22230
  /**
22918
22231
  * Type of the `destination`.
22919
22232
  * @private
@@ -23017,13 +22330,13 @@ class PdfDestination {
23017
22330
  let simplePage = this.pdfPage;
23018
22331
  let point = new PointF();
23019
22332
  point = this.pointToNativePdf(simplePage, this.destinationLocation);
23020
- this.array.add(new PdfName(this.dictionaryProperties.xyz));
22333
+ this.array.add(new PdfName('XYZ'));
23021
22334
  this.array.add(new PdfNumber(point.x));
23022
22335
  this.array.add(new PdfNumber(point.y));
23023
22336
  this.array.add(new PdfNumber(this.zoomFactor));
23024
22337
  break;
23025
22338
  case PdfDestinationMode.FitToPage:
23026
- this.array.add(new PdfName(this.dictionaryProperties.fit));
22339
+ this.array.add(new PdfName('Fit'));
23027
22340
  break;
23028
22341
  }
23029
22342
  }
@@ -23394,2421 +22707,734 @@ var KnownColor;
23394
22707
  * @private
23395
22708
  */
23396
22709
  class PdfBrushes {
23397
- //Static Properties
23398
22710
  /**
23399
22711
  * Gets the AliceBlue brush.
23400
22712
  * @public
23401
22713
  */
23402
- static get AliceBlue() {
23403
- let brush = null;
23404
- if (this.sBrushes.containsKey(KnownColor.AliceBlue)) {
23405
- brush = (this.sBrushes.getValue(KnownColor.AliceBlue));
23406
- }
23407
- if ((brush == null)) {
23408
- brush = this.getBrush(KnownColor.AliceBlue);
23409
- }
23410
- return brush;
23411
- }
22714
+ static get AliceBlue() { return this.getBrush(KnownColor.AliceBlue); }
23412
22715
  /**
23413
22716
  * Gets the antique white brush.
23414
22717
  * @public
23415
22718
  */
23416
- static get AntiqueWhite() {
23417
- let brush = null;
23418
- if (this.sBrushes.containsKey(KnownColor.AntiqueWhite)) {
23419
- brush = (this.sBrushes.getValue(KnownColor.AntiqueWhite));
23420
- }
23421
- if ((brush == null)) {
23422
- brush = this.getBrush(KnownColor.AntiqueWhite);
23423
- }
23424
- return brush;
23425
- }
22719
+ static get AntiqueWhite() { return this.getBrush(KnownColor.AntiqueWhite); }
23426
22720
  /**
23427
22721
  * Gets the Aqua default brush.
23428
22722
  * @public
23429
22723
  */
23430
- static get Aqua() {
23431
- let brush = null;
23432
- if (this.sBrushes.containsKey(KnownColor.Aqua)) {
23433
- brush = (this.sBrushes.getValue(KnownColor.Aqua));
23434
- }
23435
- if ((brush == null)) {
23436
- brush = this.getBrush(KnownColor.Aqua);
23437
- }
23438
- return brush;
23439
- }
22724
+ static get Aqua() { return this.getBrush(KnownColor.Aqua); }
23440
22725
  /**
23441
22726
  * Gets the Aquamarine default brush.
23442
22727
  * @public
23443
22728
  */
23444
- static get Aquamarine() {
23445
- let brush = null;
23446
- if (this.sBrushes.containsKey(KnownColor.Aquamarine)) {
23447
- brush = (this.sBrushes.getValue(KnownColor.Aquamarine));
23448
- }
23449
- if ((brush == null)) {
23450
- brush = this.getBrush(KnownColor.Aquamarine);
23451
- }
23452
- return brush;
23453
- }
22729
+ static get Aquamarine() { return this.getBrush(KnownColor.Aquamarine); }
23454
22730
  /**
23455
22731
  * Gets the Azure default brush.
23456
22732
  * @public
23457
22733
  */
23458
- static get Azure() {
23459
- let brush = null;
23460
- if (this.sBrushes.containsKey(KnownColor.Azure)) {
23461
- brush = (this.sBrushes.getValue(KnownColor.Azure));
23462
- }
23463
- if ((brush == null)) {
23464
- brush = this.getBrush(KnownColor.Azure);
23465
- }
23466
- return brush;
23467
- }
22734
+ static get Azure() { return this.getBrush(KnownColor.Azure); }
23468
22735
  /**
23469
22736
  * Gets the Beige default brush.
23470
22737
  * @public
23471
22738
  */
23472
- static get Beige() {
23473
- let brush = null;
23474
- if (this.sBrushes.containsKey(KnownColor.Beige)) {
23475
- brush = (this.sBrushes.getValue(KnownColor.Beige));
23476
- }
23477
- if ((brush == null)) {
23478
- brush = this.getBrush(KnownColor.Beige);
23479
- }
23480
- return brush;
23481
- }
22739
+ static get Beige() { return this.getBrush(KnownColor.Beige); }
23482
22740
  /**
23483
22741
  * Gets the Bisque default brush.
23484
22742
  * @public
23485
22743
  */
23486
- static get Bisque() {
23487
- let brush = null;
23488
- if (this.sBrushes.containsKey(KnownColor.Bisque)) {
23489
- brush = (this.sBrushes.getValue(KnownColor.Bisque));
23490
- }
23491
- if ((brush == null)) {
23492
- brush = this.getBrush(KnownColor.Bisque);
23493
- }
23494
- return brush;
23495
- }
22744
+ static get Bisque() { return this.getBrush(KnownColor.Bisque); }
23496
22745
  /**
23497
22746
  * Gets the Black default brush.
23498
22747
  * @public
23499
22748
  */
23500
- static get Black() {
23501
- let brush = null;
23502
- if (this.sBrushes.containsKey(KnownColor.Black)) {
23503
- brush = (this.sBrushes.getValue(KnownColor.Black));
23504
- }
23505
- if ((brush == null)) {
23506
- brush = this.getBrush(KnownColor.Black);
23507
- }
23508
- return brush;
23509
- }
22749
+ static get Black() { return this.getBrush(KnownColor.Black); }
23510
22750
  /**
23511
22751
  * Gets the BlanchedAlmond default brush.
23512
22752
  * @public
23513
22753
  */
23514
- static get BlanchedAlmond() {
23515
- let brush = null;
23516
- if (this.sBrushes.containsKey(KnownColor.BlanchedAlmond)) {
23517
- brush = (this.sBrushes.getValue(KnownColor.BlanchedAlmond));
23518
- }
23519
- if ((brush == null)) {
23520
- brush = this.getBrush(KnownColor.BlanchedAlmond);
23521
- }
23522
- return brush;
23523
- }
22754
+ static get BlanchedAlmond() { return this.getBrush(KnownColor.BlanchedAlmond); }
23524
22755
  /**
23525
22756
  * Gets the Blue default brush.
23526
22757
  * @public
23527
22758
  */
23528
- static get Blue() {
23529
- let brush = null;
23530
- if (this.sBrushes.containsKey(KnownColor.Blue)) {
23531
- brush = (this.sBrushes.getValue(KnownColor.Blue));
23532
- }
23533
- if ((brush == null)) {
23534
- brush = this.getBrush(KnownColor.Blue);
23535
- }
23536
- return brush;
23537
- }
22759
+ static get Blue() { return this.getBrush(KnownColor.Blue); }
23538
22760
  /**
23539
22761
  * Gets the BlueViolet default brush.
23540
22762
  * @public
23541
22763
  */
23542
- static get BlueViolet() {
23543
- let brush = null;
23544
- if (this.sBrushes.containsKey(KnownColor.BlueViolet)) {
23545
- brush = (this.sBrushes.getValue(KnownColor.BlueViolet));
23546
- }
23547
- if ((brush == null)) {
23548
- brush = this.getBrush(KnownColor.BlueViolet);
23549
- }
23550
- return brush;
23551
- }
22764
+ static get BlueViolet() { return this.getBrush(KnownColor.BlueViolet); }
23552
22765
  /**
23553
22766
  * Gets the Brown default brush.
23554
22767
  * @public
23555
22768
  */
23556
- static get Brown() {
23557
- let brush = null;
23558
- if (this.sBrushes.containsKey(KnownColor.Brown)) {
23559
- brush = (this.sBrushes.getValue(KnownColor.Brown));
23560
- }
23561
- if ((brush == null)) {
23562
- brush = this.getBrush(KnownColor.Brown);
23563
- }
23564
- return brush;
23565
- }
22769
+ static get Brown() { return this.getBrush(KnownColor.Brown); }
23566
22770
  /**
23567
22771
  * Gets the BurlyWood default brush.
23568
22772
  * @public
23569
22773
  */
23570
- static get BurlyWood() {
23571
- let brush = null;
23572
- if (this.sBrushes.containsKey(KnownColor.BurlyWood)) {
23573
- brush = (this.sBrushes.getValue(KnownColor.BurlyWood));
23574
- }
23575
- if ((brush == null)) {
23576
- brush = this.getBrush(KnownColor.BurlyWood);
23577
- }
23578
- return brush;
23579
- }
22774
+ static get BurlyWood() { return this.getBrush(KnownColor.BurlyWood); }
23580
22775
  /**
23581
22776
  * Gets the CadetBlue default brush.
23582
22777
  * @public
23583
22778
  */
23584
- static get CadetBlue() {
23585
- let brush = null;
23586
- if (this.sBrushes.containsKey(KnownColor.CadetBlue)) {
23587
- brush = (this.sBrushes.getValue(KnownColor.CadetBlue));
23588
- }
23589
- if ((brush == null)) {
23590
- brush = this.getBrush(KnownColor.CadetBlue);
23591
- }
23592
- return brush;
23593
- }
22779
+ static get CadetBlue() { return this.getBrush(KnownColor.CadetBlue); }
23594
22780
  /**
23595
22781
  * Gets the Chartreuse default brush.
23596
22782
  * @public
23597
22783
  */
23598
- static get Chartreuse() {
23599
- let brush = null;
23600
- if (this.sBrushes.containsKey(KnownColor.Chartreuse)) {
23601
- brush = (this.sBrushes.getValue(KnownColor.Chartreuse));
23602
- }
23603
- if ((brush == null)) {
23604
- brush = this.getBrush(KnownColor.Chartreuse);
23605
- }
23606
- return brush;
23607
- }
22784
+ static get Chartreuse() { return this.getBrush(KnownColor.Chartreuse); }
23608
22785
  /**
23609
22786
  * Gets the Chocolate default brush.
23610
22787
  * @public
23611
22788
  */
23612
- static get Chocolate() {
23613
- let brush = null;
23614
- if (this.sBrushes.containsKey(KnownColor.Chocolate)) {
23615
- brush = (this.sBrushes.getValue(KnownColor.Chocolate));
23616
- }
23617
- if ((brush == null)) {
23618
- brush = this.getBrush(KnownColor.Chocolate);
23619
- }
23620
- return brush;
23621
- }
22789
+ static get Chocolate() { return this.getBrush(KnownColor.Chocolate); }
23622
22790
  /**
23623
22791
  * Gets the Coral default brush.
23624
22792
  * @public
23625
22793
  */
23626
- static get Coral() {
23627
- let brush = null;
23628
- if (this.sBrushes.containsKey(KnownColor.Coral)) {
23629
- brush = (this.sBrushes.getValue(KnownColor.Coral));
23630
- }
23631
- if ((brush == null)) {
23632
- brush = this.getBrush(KnownColor.Coral);
23633
- }
23634
- return brush;
23635
- }
22794
+ static get Coral() { return this.getBrush(KnownColor.Coral); }
23636
22795
  /**
23637
22796
  * Gets the CornflowerBlue default brush.
23638
22797
  * @public
23639
22798
  */
23640
- static get CornflowerBlue() {
23641
- let brush = null;
23642
- if (this.sBrushes.containsKey(KnownColor.CornflowerBlue)) {
23643
- brush = (this.sBrushes.getValue(KnownColor.CornflowerBlue));
23644
- }
23645
- if ((brush == null)) {
23646
- brush = this.getBrush(KnownColor.CornflowerBlue);
23647
- }
23648
- return brush;
23649
- }
22799
+ static get CornflowerBlue() { return this.getBrush(KnownColor.CornflowerBlue); }
23650
22800
  /**
23651
- * Gets the Corn silk default brush.
22801
+ * Gets the Cornsilk default brush.
23652
22802
  * @public
23653
22803
  */
23654
- static get Cornsilk() {
23655
- let brush = null;
23656
- if (this.sBrushes.containsKey(KnownColor.Cornsilk)) {
23657
- brush = (this.sBrushes.getValue(KnownColor.Cornsilk));
23658
- }
23659
- if ((brush == null)) {
23660
- brush = this.getBrush(KnownColor.Cornsilk);
23661
- }
23662
- return brush;
23663
- }
22804
+ static get Cornsilk() { return this.getBrush(KnownColor.Cornsilk); }
23664
22805
  /**
23665
- * Gets the Crimson default brush.
22806
+ * Gets the Crimson default brush.
23666
22807
  * @public
23667
22808
  */
23668
- static get Crimson() {
23669
- let brush = null;
23670
- if (this.sBrushes.containsKey(KnownColor.Crimson)) {
23671
- brush = (this.sBrushes.getValue(KnownColor.Crimson));
23672
- }
23673
- if ((brush == null)) {
23674
- brush = this.getBrush(KnownColor.Crimson);
23675
- }
23676
- return brush;
23677
- }
22809
+ static get Crimson() { return this.getBrush(KnownColor.Crimson); }
23678
22810
  /**
23679
22811
  * Gets the Cyan default brush.
23680
22812
  * @public
23681
22813
  */
23682
- static get Cyan() {
23683
- let brush = null;
23684
- if (this.sBrushes.containsKey(KnownColor.Cyan)) {
23685
- brush = (this.sBrushes.getValue(KnownColor.Cyan));
23686
- }
23687
- if ((brush == null)) {
23688
- brush = this.getBrush(KnownColor.Cyan);
23689
- }
23690
- return brush;
23691
- }
22814
+ static get Cyan() { return this.getBrush(KnownColor.Cyan); }
23692
22815
  /**
23693
22816
  * Gets the DarkBlue default brush.
23694
22817
  * @public
23695
22818
  */
23696
- static get DarkBlue() {
23697
- let brush = null;
23698
- if (this.sBrushes.containsKey(KnownColor.DarkBlue)) {
23699
- brush = (this.sBrushes.getValue(KnownColor.DarkBlue));
23700
- }
23701
- if ((brush == null)) {
23702
- brush = this.getBrush(KnownColor.DarkBlue);
23703
- }
23704
- return brush;
23705
- }
22819
+ static get DarkBlue() { return this.getBrush(KnownColor.DarkBlue); }
23706
22820
  /**
23707
22821
  * Gets the DarkCyan default brush.
23708
22822
  * @public
23709
22823
  */
23710
- static get DarkCyan() {
23711
- let brush = null;
23712
- if (this.sBrushes.containsKey(KnownColor.DarkCyan)) {
23713
- brush = (this.sBrushes.getValue(KnownColor.DarkCyan));
23714
- }
23715
- if ((brush == null)) {
23716
- brush = this.getBrush(KnownColor.DarkCyan);
23717
- }
23718
- return brush;
23719
- }
22824
+ static get DarkCyan() { return this.getBrush(KnownColor.DarkCyan); }
23720
22825
  /**
23721
22826
  * Gets the DarkGoldenrod default brush.
23722
22827
  * @public
23723
22828
  */
23724
- static get DarkGoldenrod() {
23725
- let brush = null;
23726
- if (this.sBrushes.containsKey(KnownColor.DarkGoldenrod)) {
23727
- brush = (this.sBrushes.getValue(KnownColor.DarkGoldenrod));
23728
- }
23729
- if ((brush == null)) {
23730
- brush = this.getBrush(KnownColor.DarkGoldenrod);
23731
- }
23732
- return brush;
23733
- }
22829
+ static get DarkGoldenrod() { return this.getBrush(KnownColor.DarkGoldenrod); }
23734
22830
  /**
23735
22831
  * Gets the DarkGray default brush.
23736
22832
  * @public
23737
22833
  */
23738
- static get DarkGray() {
23739
- let brush = null;
23740
- if (this.sBrushes.containsKey(KnownColor.DarkGray)) {
23741
- brush = (this.sBrushes.getValue(KnownColor.DarkGray));
23742
- }
23743
- if ((brush == null)) {
23744
- brush = this.getBrush(KnownColor.DarkGray);
23745
- }
23746
- return brush;
23747
- }
22834
+ static get DarkGray() { return this.getBrush(KnownColor.DarkGray); }
23748
22835
  /**
23749
22836
  * Gets the DarkGreen default brush.
23750
22837
  * @public
23751
22838
  */
23752
- static get DarkGreen() {
23753
- let brush = null;
23754
- if (this.sBrushes.containsKey(KnownColor.DarkGreen)) {
23755
- brush = (this.sBrushes.getValue(KnownColor.DarkGreen));
23756
- }
23757
- if ((brush == null)) {
23758
- brush = this.getBrush(KnownColor.DarkGreen);
23759
- }
23760
- return brush;
23761
- }
22839
+ static get DarkGreen() { return this.getBrush(KnownColor.DarkGreen); }
23762
22840
  /**
23763
22841
  * Gets the DarkKhaki default brush.
23764
22842
  * @public
23765
22843
  */
23766
- static get DarkKhaki() {
23767
- let brush = null;
23768
- if (this.sBrushes.containsKey(KnownColor.DarkKhaki)) {
23769
- brush = (this.sBrushes.getValue(KnownColor.DarkKhaki));
23770
- }
23771
- if ((brush == null)) {
23772
- brush = this.getBrush(KnownColor.DarkKhaki);
23773
- }
23774
- return brush;
23775
- }
22844
+ static get DarkKhaki() { return this.getBrush(KnownColor.DarkKhaki); }
23776
22845
  /**
23777
22846
  * Gets the DarkMagenta default brush.
23778
22847
  * @public
23779
22848
  */
23780
- static get DarkMagenta() {
23781
- let brush = null;
23782
- if (this.sBrushes.containsKey(KnownColor.DarkMagenta)) {
23783
- brush = (this.sBrushes.getValue(KnownColor.DarkMagenta));
23784
- }
23785
- if ((brush == null)) {
23786
- brush = this.getBrush(KnownColor.DarkMagenta);
23787
- }
23788
- return brush;
23789
- }
22849
+ static get DarkMagenta() { return this.getBrush(KnownColor.DarkMagenta); }
23790
22850
  /**
23791
22851
  * Gets the DarkOliveGreen default brush.
23792
22852
  * @public
23793
22853
  */
23794
- static get DarkOliveGreen() {
23795
- let brush = null;
23796
- if (this.sBrushes.containsKey(KnownColor.DarkOliveGreen)) {
23797
- brush = (this.sBrushes.getValue(KnownColor.DarkOliveGreen));
23798
- }
23799
- if ((brush == null)) {
23800
- brush = this.getBrush(KnownColor.DarkOliveGreen);
23801
- }
23802
- return brush;
23803
- }
22854
+ static get DarkOliveGreen() { return this.getBrush(KnownColor.DarkOliveGreen); }
23804
22855
  /**
23805
22856
  * Gets the DarkOrange default brush.
23806
22857
  * @public
23807
22858
  */
23808
- static get DarkOrange() {
23809
- let brush = null;
23810
- if (this.sBrushes.containsKey(KnownColor.DarkOrange)) {
23811
- brush = (this.sBrushes.getValue(KnownColor.DarkOrange));
23812
- }
23813
- if ((brush == null)) {
23814
- brush = this.getBrush(KnownColor.DarkOrange);
23815
- }
23816
- return brush;
23817
- }
22859
+ static get DarkOrange() { return this.getBrush(KnownColor.DarkOrange); }
23818
22860
  /**
23819
22861
  * Gets the DarkOrchid default brush.
23820
22862
  * @public
23821
22863
  */
23822
- static get DarkOrchid() {
23823
- let brush = null;
23824
- if (this.sBrushes.containsKey(KnownColor.DarkOrchid)) {
23825
- brush = (this.sBrushes.getValue(KnownColor.DarkOrchid));
23826
- }
23827
- if ((brush == null)) {
23828
- brush = this.getBrush(KnownColor.DarkOrchid);
23829
- }
23830
- return brush;
23831
- }
22864
+ static get DarkOrchid() { return this.getBrush(KnownColor.DarkOrchid); }
23832
22865
  /**
23833
22866
  * Gets the DarkRed default brush.
23834
22867
  * @public
23835
22868
  */
23836
- static get DarkRed() {
23837
- let brush = null;
23838
- if (this.sBrushes.containsKey(KnownColor.DarkRed)) {
23839
- brush = (this.sBrushes.getValue(KnownColor.DarkRed));
23840
- }
23841
- if ((brush == null)) {
23842
- brush = this.getBrush(KnownColor.DarkRed);
23843
- }
23844
- return brush;
23845
- }
22869
+ static get DarkRed() { return this.getBrush(KnownColor.DarkRed); }
23846
22870
  /**
23847
22871
  * Gets the DarkSalmon default brush.
23848
22872
  * @public
23849
22873
  */
23850
- static get DarkSalmon() {
23851
- let brush = null;
23852
- if (this.sBrushes.containsKey(KnownColor.DarkSalmon)) {
23853
- brush = (this.sBrushes.getValue(KnownColor.DarkSalmon));
23854
- }
23855
- if ((brush == null)) {
23856
- brush = this.getBrush(KnownColor.DarkSalmon);
23857
- }
23858
- return brush;
23859
- }
22874
+ static get DarkSalmon() { return this.getBrush(KnownColor.DarkSalmon); }
23860
22875
  /**
23861
22876
  * Gets the DarkSeaGreen default brush.
23862
22877
  * @public
23863
22878
  */
23864
- static get DarkSeaGreen() {
23865
- let brush = null;
23866
- if (this.sBrushes.containsKey(KnownColor.DarkSeaGreen)) {
23867
- brush = (this.sBrushes.getValue(KnownColor.DarkSeaGreen));
23868
- }
23869
- if ((brush == null)) {
23870
- brush = this.getBrush(KnownColor.DarkSeaGreen);
23871
- }
23872
- return brush;
23873
- }
22879
+ static get DarkSeaGreen() { return this.getBrush(KnownColor.DarkSeaGreen); }
23874
22880
  /**
23875
22881
  * Gets the DarkSlateBlue default brush.
23876
22882
  * @public
23877
22883
  */
23878
- static get DarkSlateBlue() {
23879
- let brush = null;
23880
- if (this.sBrushes.containsKey(KnownColor.DarkSlateBlue)) {
23881
- brush = (this.sBrushes.getValue(KnownColor.DarkSlateBlue));
23882
- }
23883
- if ((brush == null)) {
23884
- brush = this.getBrush(KnownColor.DarkSlateBlue);
23885
- }
23886
- return brush;
23887
- }
22884
+ static get DarkSlateBlue() { return this.getBrush(KnownColor.DarkSlateBlue); }
23888
22885
  /**
23889
22886
  * Gets the DarkSlateGray default brush.
23890
22887
  * @public
23891
22888
  */
23892
- static get DarkSlateGray() {
23893
- let brush = null;
23894
- if (this.sBrushes.containsKey(KnownColor.DarkSlateGray)) {
23895
- brush = (this.sBrushes.getValue(KnownColor.DarkSlateGray));
23896
- }
23897
- if ((brush == null)) {
23898
- brush = this.getBrush(KnownColor.DarkSlateGray);
23899
- }
23900
- return brush;
23901
- }
22889
+ static get DarkSlateGray() { return this.getBrush(KnownColor.DarkSlateGray); }
23902
22890
  /**
23903
22891
  * Gets the DarkTurquoise default brush.
23904
22892
  * @public
23905
22893
  */
23906
- static get DarkTurquoise() {
23907
- let brush = null;
23908
- if (this.sBrushes.containsKey(KnownColor.DarkTurquoise)) {
23909
- brush = (this.sBrushes.getValue(KnownColor.DarkTurquoise));
23910
- }
23911
- if ((brush == null)) {
23912
- brush = this.getBrush(KnownColor.DarkTurquoise);
23913
- }
23914
- return brush;
23915
- }
22894
+ static get DarkTurquoise() { return this.getBrush(KnownColor.DarkTurquoise); }
23916
22895
  /**
23917
22896
  * Gets the DarkViolet default brush.
23918
22897
  * @public
23919
22898
  */
23920
- static get DarkViolet() {
23921
- let brush = null;
23922
- if (this.sBrushes.containsKey(KnownColor.DarkViolet)) {
23923
- brush = (this.sBrushes.getValue(KnownColor.DarkViolet));
23924
- }
23925
- if ((brush == null)) {
23926
- brush = this.getBrush(KnownColor.DarkViolet);
23927
- }
23928
- return brush;
23929
- }
22899
+ static get DarkViolet() { return this.getBrush(KnownColor.DarkViolet); }
23930
22900
  /**
23931
22901
  * Gets the DeepPink default brush.
23932
22902
  * @public
23933
22903
  */
23934
- static get DeepPink() {
23935
- let brush = null;
23936
- if (this.sBrushes.containsKey(KnownColor.DeepPink)) {
23937
- brush = (this.sBrushes.getValue(KnownColor.DeepPink));
23938
- }
23939
- if ((brush == null)) {
23940
- brush = this.getBrush(KnownColor.DeepPink);
23941
- }
23942
- return brush;
23943
- }
22904
+ static get DeepPink() { return this.getBrush(KnownColor.DeepPink); }
23944
22905
  /**
23945
22906
  * Gets the DeepSkyBlue default brush.
23946
22907
  * @public
23947
22908
  */
23948
- static get DeepSkyBlue() {
23949
- let brush = null;
23950
- if (this.sBrushes.containsKey(KnownColor.DeepSkyBlue)) {
23951
- brush = (this.sBrushes.getValue(KnownColor.DeepSkyBlue));
23952
- }
23953
- if ((brush == null)) {
23954
- brush = this.getBrush(KnownColor.DeepSkyBlue);
23955
- }
23956
- return brush;
23957
- }
22909
+ static get DeepSkyBlue() { return this.getBrush(KnownColor.DeepSkyBlue); }
23958
22910
  /**
23959
22911
  * Gets the DimGray default brush.
23960
22912
  * @public
23961
22913
  */
23962
- static get DimGray() {
23963
- let brush = null;
23964
- if (this.sBrushes.containsKey(KnownColor.DimGray)) {
23965
- brush = (this.sBrushes.getValue(KnownColor.DimGray));
23966
- }
23967
- if ((brush == null)) {
23968
- brush = this.getBrush(KnownColor.DimGray);
23969
- }
23970
- return brush;
23971
- }
22914
+ static get DimGray() { return this.getBrush(KnownColor.DimGray); }
23972
22915
  /**
23973
22916
  * Gets the DodgerBlue default brush.
23974
22917
  * @public
23975
22918
  */
23976
- static get DodgerBlue() {
23977
- let brush = null;
23978
- if (this.sBrushes.containsKey(KnownColor.DodgerBlue)) {
23979
- brush = (this.sBrushes.getValue(KnownColor.DodgerBlue));
23980
- }
23981
- if ((brush == null)) {
23982
- brush = this.getBrush(KnownColor.DodgerBlue);
23983
- }
23984
- return brush;
23985
- }
22919
+ static get DodgerBlue() { return this.getBrush(KnownColor.DodgerBlue); }
23986
22920
  /**
23987
22921
  * Gets the Firebrick default brush.
23988
22922
  * @public
23989
22923
  */
23990
- static get Firebrick() {
23991
- let brush = null;
23992
- if (this.sBrushes.containsKey(KnownColor.Firebrick)) {
23993
- brush = (this.sBrushes.getValue(KnownColor.Firebrick));
23994
- }
23995
- if ((brush == null)) {
23996
- brush = this.getBrush(KnownColor.Firebrick);
23997
- }
23998
- return brush;
23999
- }
22924
+ static get Firebrick() { return this.getBrush(KnownColor.Firebrick); }
24000
22925
  /**
24001
22926
  * Gets the FloralWhite default brush.
24002
22927
  * @public
24003
22928
  */
24004
- static get FloralWhite() {
24005
- let brush = null;
24006
- if (this.sBrushes.containsKey(KnownColor.FloralWhite)) {
24007
- brush = (this.sBrushes.getValue(KnownColor.FloralWhite));
24008
- }
24009
- if ((brush == null)) {
24010
- brush = this.getBrush(KnownColor.FloralWhite);
24011
- }
24012
- return brush;
24013
- }
22929
+ static get FloralWhite() { return this.getBrush(KnownColor.FloralWhite); }
24014
22930
  /**
24015
22931
  * Gets the ForestGreen default brush.
24016
22932
  * @public
24017
22933
  */
24018
- static get ForestGreen() {
24019
- let brush = null;
24020
- if (this.sBrushes.containsKey(KnownColor.ForestGreen)) {
24021
- brush = (this.sBrushes.getValue(KnownColor.ForestGreen));
24022
- }
24023
- if ((brush == null)) {
24024
- brush = this.getBrush(KnownColor.ForestGreen);
24025
- }
24026
- return brush;
24027
- }
22934
+ static get ForestGreen() { return this.getBrush(KnownColor.ForestGreen); }
24028
22935
  /**
24029
22936
  * Gets the Fuchsia default brush.
24030
22937
  * @public
24031
22938
  */
24032
- static get Fuchsia() {
24033
- let brush = null;
24034
- if (this.sBrushes.containsKey(KnownColor.Fuchsia)) {
24035
- brush = (this.sBrushes.getValue(KnownColor.Fuchsia));
24036
- }
24037
- if ((brush == null)) {
24038
- brush = this.getBrush(KnownColor.Fuchsia);
24039
- }
24040
- return brush;
24041
- }
22939
+ static get Fuchsia() { return this.getBrush(KnownColor.Fuchsia); }
24042
22940
  /**
24043
- * Gets the Gainsborough default brush.
22941
+ * Gets the Gainsboro default brush.
24044
22942
  * @public
24045
22943
  */
24046
- static get Gainsboro() {
24047
- let brush = null;
24048
- if (this.sBrushes.containsKey(KnownColor.Gainsboro)) {
24049
- brush = (this.sBrushes.getValue(KnownColor.Gainsboro));
24050
- }
24051
- if ((brush == null)) {
24052
- brush = this.getBrush(KnownColor.Gainsboro);
24053
- }
24054
- return brush;
24055
- }
22944
+ static get Gainsboro() { return this.getBrush(KnownColor.Gainsboro); }
24056
22945
  /**
24057
22946
  * Gets the GhostWhite default brush.
24058
22947
  * @public
24059
22948
  */
24060
- static get GhostWhite() {
24061
- let brush = null;
24062
- if (this.sBrushes.containsKey(KnownColor.GhostWhite)) {
24063
- brush = (this.sBrushes.getValue(KnownColor.GhostWhite));
24064
- }
24065
- if ((brush == null)) {
24066
- brush = this.getBrush(KnownColor.GhostWhite);
24067
- }
24068
- return brush;
24069
- }
22949
+ static get GhostWhite() { return this.getBrush(KnownColor.GhostWhite); }
24070
22950
  /**
24071
22951
  * Gets the Gold default brush.
24072
22952
  * @public
24073
22953
  */
24074
- static get Gold() {
24075
- let brush = null;
24076
- if (this.sBrushes.containsKey(KnownColor.Gold)) {
24077
- brush = (this.sBrushes.getValue(KnownColor.Gold));
24078
- }
24079
- if ((brush == null)) {
24080
- brush = this.getBrush(KnownColor.Gold);
24081
- }
24082
- return brush;
24083
- }
22954
+ static get Gold() { return this.getBrush(KnownColor.Gold); }
24084
22955
  /**
24085
22956
  * Gets the Goldenrod default brush.
24086
22957
  * @public
24087
22958
  */
24088
- static get Goldenrod() {
24089
- let brush = null;
24090
- if (this.sBrushes.containsKey(KnownColor.Goldenrod)) {
24091
- brush = (this.sBrushes.getValue(KnownColor.Goldenrod));
24092
- }
24093
- if ((brush == null)) {
24094
- brush = this.getBrush(KnownColor.Goldenrod);
24095
- }
24096
- return brush;
24097
- }
22959
+ static get Goldenrod() { return this.getBrush(KnownColor.Goldenrod); }
24098
22960
  /**
24099
22961
  * Gets the Gray default brush.
24100
22962
  * @public
24101
22963
  */
24102
- static get Gray() {
24103
- let brush = null;
24104
- if (this.sBrushes.containsKey(KnownColor.Gray)) {
24105
- brush = (this.sBrushes.getValue(KnownColor.Gray));
24106
- }
24107
- if ((brush == null)) {
24108
- brush = this.getBrush(KnownColor.Gray);
24109
- }
24110
- return brush;
24111
- }
22964
+ static get Gray() { return this.getBrush(KnownColor.Gray); }
24112
22965
  /**
24113
22966
  * Gets the Green default brush.
24114
22967
  * @public
24115
22968
  */
24116
- static get Green() {
24117
- let brush = null;
24118
- if (this.sBrushes.containsKey(KnownColor.Green)) {
24119
- brush = (this.sBrushes.getValue(KnownColor.Green));
24120
- }
24121
- if ((brush == null)) {
24122
- brush = this.getBrush(KnownColor.Green);
24123
- }
24124
- return brush;
24125
- }
22969
+ static get Green() { return this.getBrush(KnownColor.Green); }
24126
22970
  /**
24127
22971
  * Gets the GreenYellow default brush.
24128
22972
  * @public
24129
22973
  */
24130
- static get GreenYellow() {
24131
- let brush = null;
24132
- if (this.sBrushes.containsKey(KnownColor.GreenYellow)) {
24133
- brush = (this.sBrushes.getValue(KnownColor.GreenYellow));
24134
- }
24135
- if ((brush == null)) {
24136
- brush = this.getBrush(KnownColor.GreenYellow);
24137
- }
24138
- return brush;
24139
- }
22974
+ static get GreenYellow() { return this.getBrush(KnownColor.GreenYellow); }
24140
22975
  /**
24141
22976
  * Gets the Honeydew default brush.
24142
22977
  * @public
24143
22978
  */
24144
- static get Honeydew() {
24145
- let brush = null;
24146
- if (this.sBrushes.containsKey(KnownColor.Honeydew)) {
24147
- brush = (this.sBrushes.getValue(KnownColor.Honeydew));
24148
- }
24149
- if ((brush == null)) {
24150
- brush = this.getBrush(KnownColor.Honeydew);
24151
- }
24152
- return brush;
24153
- }
22979
+ static get Honeydew() { return this.getBrush(KnownColor.Honeydew); }
24154
22980
  /**
24155
22981
  * Gets the HotPink default brush.
24156
22982
  * @public
24157
22983
  */
24158
- static get HotPink() {
24159
- let brush = null;
24160
- if (this.sBrushes.containsKey(KnownColor.HotPink)) {
24161
- brush = (this.sBrushes.getValue(KnownColor.HotPink));
24162
- }
24163
- if ((brush == null)) {
24164
- brush = this.getBrush(KnownColor.HotPink);
24165
- }
24166
- return brush;
24167
- }
22984
+ static get HotPink() { return this.getBrush(KnownColor.HotPink); }
24168
22985
  /**
24169
22986
  * Gets the IndianRed default brush.
24170
22987
  * @public
24171
22988
  */
24172
- static get IndianRed() {
24173
- let brush = null;
24174
- if (this.sBrushes.containsKey(KnownColor.IndianRed)) {
24175
- brush = (this.sBrushes.getValue(KnownColor.IndianRed));
24176
- }
24177
- if ((brush == null)) {
24178
- brush = this.getBrush(KnownColor.IndianRed);
24179
- }
24180
- return brush;
24181
- }
22989
+ static get IndianRed() { return this.getBrush(KnownColor.IndianRed); }
24182
22990
  /**
24183
22991
  * Gets the Indigo default brush.
24184
22992
  * @public
24185
22993
  */
24186
- static get Indigo() {
24187
- let brush = null;
24188
- if (this.sBrushes.containsKey(KnownColor.Indigo)) {
24189
- brush = (this.sBrushes.getValue(KnownColor.Indigo));
24190
- }
24191
- if ((brush == null)) {
24192
- brush = this.getBrush(KnownColor.Indigo);
24193
- }
24194
- return brush;
24195
- }
22994
+ static get Indigo() { return this.getBrush(KnownColor.Indigo); }
24196
22995
  /**
24197
22996
  * Gets the Ivory default brush.
24198
22997
  * @public
24199
22998
  */
24200
- static get Ivory() {
24201
- let brush = null;
24202
- if (this.sBrushes.containsKey(KnownColor.Ivory)) {
24203
- brush = (this.sBrushes.getValue(KnownColor.Ivory));
24204
- }
24205
- if ((brush == null)) {
24206
- brush = this.getBrush(KnownColor.Ivory);
24207
- }
24208
- return brush;
24209
- }
22999
+ static get Ivory() { return this.getBrush(KnownColor.Ivory); }
24210
23000
  /**
24211
23001
  * Gets the Khaki default brush.
24212
23002
  * @public
24213
23003
  */
24214
- static get Khaki() {
24215
- let brush = null;
24216
- if (this.sBrushes.containsKey(KnownColor.Khaki)) {
24217
- brush = (this.sBrushes.getValue(KnownColor.Khaki));
24218
- }
24219
- if ((brush == null)) {
24220
- brush = this.getBrush(KnownColor.Khaki);
24221
- }
24222
- return brush;
24223
- }
23004
+ static get Khaki() { return this.getBrush(KnownColor.Khaki); }
24224
23005
  /**
24225
23006
  * Gets the Lavender default brush.
24226
23007
  * @public
24227
23008
  */
24228
- static get Lavender() {
24229
- let brush = null;
24230
- if (this.sBrushes.containsKey(KnownColor.Lavender)) {
24231
- brush = (this.sBrushes.getValue(KnownColor.Lavender));
24232
- }
24233
- if ((brush == null)) {
24234
- brush = this.getBrush(KnownColor.Lavender);
24235
- }
24236
- return brush;
24237
- }
23009
+ static get Lavender() { return this.getBrush(KnownColor.Lavender); }
24238
23010
  /**
24239
23011
  * Gets the LavenderBlush default brush.
24240
23012
  * @public
24241
23013
  */
24242
- static get LavenderBlush() {
24243
- let brush = null;
24244
- if (this.sBrushes.containsKey(KnownColor.LavenderBlush)) {
24245
- brush = (this.sBrushes.getValue(KnownColor.LavenderBlush));
24246
- }
24247
- if ((brush == null)) {
24248
- brush = this.getBrush(KnownColor.LavenderBlush);
24249
- }
24250
- return brush;
24251
- }
23014
+ static get LavenderBlush() { return this.getBrush(KnownColor.LavenderBlush); }
24252
23015
  /**
24253
23016
  * Gets the LawnGreen default brush.
24254
23017
  * @public
24255
23018
  */
24256
- static get LawnGreen() {
24257
- let brush = null;
24258
- if (this.sBrushes.containsKey(KnownColor.LawnGreen)) {
24259
- brush = (this.sBrushes.getValue(KnownColor.LawnGreen));
24260
- }
24261
- if ((brush == null)) {
24262
- brush = this.getBrush(KnownColor.LawnGreen);
24263
- }
24264
- return brush;
24265
- }
23019
+ static get LawnGreen() { return this.getBrush(KnownColor.LawnGreen); }
24266
23020
  /**
24267
23021
  * Gets the LemonChiffon default brush.
24268
23022
  * @public
24269
23023
  */
24270
- static get LemonChiffon() {
24271
- let brush = null;
24272
- if (this.sBrushes.containsKey(KnownColor.LemonChiffon)) {
24273
- brush = (this.sBrushes.getValue(KnownColor.LemonChiffon));
24274
- }
24275
- if ((brush == null)) {
24276
- brush = this.getBrush(KnownColor.LemonChiffon);
24277
- }
24278
- return brush;
24279
- }
23024
+ static get LemonChiffon() { return this.getBrush(KnownColor.LemonChiffon); }
24280
23025
  /**
24281
23026
  * Gets the LightBlue default brush.
24282
23027
  * @public
24283
23028
  */
24284
- static get LightBlue() {
24285
- let brush = null;
24286
- if (this.sBrushes.containsKey(KnownColor.LightBlue)) {
24287
- brush = (this.sBrushes.getValue(KnownColor.LightBlue));
24288
- }
24289
- if ((brush == null)) {
24290
- brush = this.getBrush(KnownColor.LightBlue);
24291
- }
24292
- return brush;
24293
- }
23029
+ static get LightBlue() { return this.getBrush(KnownColor.LightBlue); }
24294
23030
  /**
24295
23031
  * Gets the LightCoral default brush.
24296
23032
  * @public
24297
23033
  */
24298
- static get LightCoral() {
24299
- let brush = null;
24300
- if (this.sBrushes.containsKey(KnownColor.LightCoral)) {
24301
- brush = (this.sBrushes.getValue(KnownColor.LightCoral));
24302
- }
24303
- if ((brush == null)) {
24304
- brush = this.getBrush(KnownColor.LightCoral);
24305
- }
24306
- return brush;
24307
- }
23034
+ static get LightCoral() { return this.getBrush(KnownColor.LightCoral); }
24308
23035
  /**
24309
23036
  * Gets the LightCyan default brush.
24310
23037
  * @public
24311
23038
  */
24312
- static get LightCyan() {
24313
- let brush = null;
24314
- if (this.sBrushes.containsKey(KnownColor.LightCyan)) {
24315
- brush = (this.sBrushes.getValue(KnownColor.LightCyan));
24316
- }
24317
- if ((brush == null)) {
24318
- brush = this.getBrush(KnownColor.LightCyan);
24319
- }
24320
- return brush;
24321
- }
23039
+ static get LightCyan() { return this.getBrush(KnownColor.LightCyan); }
24322
23040
  /**
24323
23041
  * Gets the LightGoldenrodYellow default brush.
24324
23042
  * @public
24325
23043
  */
24326
- static get LightGoldenrodYellow() {
24327
- let brush = null;
24328
- if (this.sBrushes.containsKey(KnownColor.LightGoldenrodYellow)) {
24329
- brush = (this.sBrushes.getValue(KnownColor.LightGoldenrodYellow));
24330
- }
24331
- if ((brush == null)) {
24332
- brush = this.getBrush(KnownColor.LightGoldenrodYellow);
24333
- }
24334
- return brush;
24335
- }
23044
+ static get LightGoldenrodYellow() { return this.getBrush(KnownColor.LightGoldenrodYellow); }
24336
23045
  /**
24337
23046
  * Gets the LightGray default brush.
24338
23047
  * @public
24339
23048
  */
24340
- static get LightGray() {
24341
- let brush = null;
24342
- if (this.sBrushes.containsKey(KnownColor.LightGray)) {
24343
- brush = (this.sBrushes.getValue(KnownColor.LightGray));
24344
- }
24345
- if ((brush == null)) {
24346
- brush = this.getBrush(KnownColor.LightGray);
24347
- }
24348
- return brush;
24349
- }
23049
+ static get LightGray() { return this.getBrush(KnownColor.LightGray); }
24350
23050
  /**
24351
23051
  * Gets the LightGreen default brush.
24352
23052
  * @public
24353
23053
  */
24354
- static get LightGreen() {
24355
- let brush = null;
24356
- if (this.sBrushes.containsKey(KnownColor.LightGreen)) {
24357
- brush = (this.sBrushes.getValue(KnownColor.LightGreen));
24358
- }
24359
- if ((brush == null)) {
24360
- brush = this.getBrush(KnownColor.LightGreen);
24361
- }
24362
- return brush;
24363
- }
23054
+ static get LightGreen() { return this.getBrush(KnownColor.LightGreen); }
24364
23055
  /**
24365
23056
  * Gets the LightPink default brush.
24366
23057
  * @public
24367
23058
  */
24368
- static get LightPink() {
24369
- let brush = null;
24370
- if (this.sBrushes.containsKey(KnownColor.LightPink)) {
24371
- brush = (this.sBrushes.getValue(KnownColor.LightPink));
24372
- }
24373
- if ((brush == null)) {
24374
- brush = this.getBrush(KnownColor.LightPink);
24375
- }
24376
- return brush;
24377
- }
23059
+ static get LightPink() { return this.getBrush(KnownColor.LightPink); }
24378
23060
  /**
24379
23061
  * Gets the LightSalmon default brush.
24380
23062
  * @public
24381
23063
  */
24382
- static get LightSalmon() {
24383
- let brush = null;
24384
- if (this.sBrushes.containsKey(KnownColor.LightSalmon)) {
24385
- brush = (this.sBrushes.getValue(KnownColor.LightSalmon));
24386
- }
24387
- if ((brush == null)) {
24388
- brush = this.getBrush(KnownColor.LightSalmon);
24389
- }
24390
- return brush;
24391
- }
23064
+ static get LightSalmon() { return this.getBrush(KnownColor.LightSalmon); }
24392
23065
  /**
24393
23066
  * Gets the LightSeaGreen default brush.
24394
23067
  * @public
24395
23068
  */
24396
- static get LightSeaGreen() {
24397
- let brush = null;
24398
- if (this.sBrushes.containsKey(KnownColor.LightSeaGreen)) {
24399
- brush = (this.sBrushes.getValue(KnownColor.LightSeaGreen));
24400
- }
24401
- if ((brush == null)) {
24402
- brush = this.getBrush(KnownColor.LightSeaGreen);
24403
- }
24404
- return brush;
24405
- }
23069
+ static get LightSeaGreen() { return this.getBrush(KnownColor.LightSeaGreen); }
24406
23070
  /**
24407
23071
  * Gets the LightSkyBlue default brush.
24408
23072
  * @public
24409
23073
  */
24410
- static get LightSkyBlue() {
24411
- let brush = null;
24412
- if (this.sBrushes.containsKey(KnownColor.LightSkyBlue)) {
24413
- brush = (this.sBrushes.getValue(KnownColor.LightSkyBlue));
24414
- }
24415
- if ((brush == null)) {
24416
- brush = this.getBrush(KnownColor.LightSkyBlue);
24417
- }
24418
- return brush;
24419
- }
23074
+ static get LightSkyBlue() { return this.getBrush(KnownColor.LightSkyBlue); }
24420
23075
  /**
24421
23076
  * Gets the LightSlateGray default brush.
24422
23077
  * @public
24423
23078
  */
24424
- static get LightSlateGray() {
24425
- let brush = null;
24426
- if (this.sBrushes.containsKey(KnownColor.LightSlateGray)) {
24427
- brush = (this.sBrushes.getValue(KnownColor.LightSlateGray));
24428
- }
24429
- if ((brush == null)) {
24430
- brush = this.getBrush(KnownColor.LightSlateGray);
24431
- }
24432
- return brush;
24433
- }
23079
+ static get LightSlateGray() { return this.getBrush(KnownColor.LightSlateGray); }
24434
23080
  /**
24435
23081
  * Gets the LightSteelBlue default brush.
24436
23082
  * @public
24437
23083
  */
24438
- static get LightSteelBlue() {
24439
- let brush = null;
24440
- if (this.sBrushes.containsKey(KnownColor.LightSteelBlue)) {
24441
- brush = (this.sBrushes.getValue(KnownColor.LightSteelBlue));
24442
- }
24443
- if ((brush == null)) {
24444
- brush = this.getBrush(KnownColor.LightSteelBlue);
24445
- }
24446
- return brush;
24447
- }
23084
+ static get LightSteelBlue() { return this.getBrush(KnownColor.LightSteelBlue); }
24448
23085
  /**
24449
23086
  * Gets the LightYellow default brush.
24450
23087
  * @public
24451
23088
  */
24452
- static get LightYellow() {
24453
- let brush = null;
24454
- if (this.sBrushes.containsKey(KnownColor.LightYellow)) {
24455
- brush = (this.sBrushes.getValue(KnownColor.LightYellow));
24456
- }
24457
- if ((brush == null)) {
24458
- brush = this.getBrush(KnownColor.LightYellow);
24459
- }
24460
- return brush;
24461
- }
23089
+ static get LightYellow() { return this.getBrush(KnownColor.LightYellow); }
24462
23090
  /**
24463
23091
  * Gets the Lime default brush.
24464
23092
  * @public
24465
23093
  */
24466
- static get Lime() {
24467
- let brush = null;
24468
- if (this.sBrushes.containsKey(KnownColor.Lime)) {
24469
- brush = (this.sBrushes.getValue(KnownColor.Lime));
24470
- }
24471
- if ((brush == null)) {
24472
- brush = this.getBrush(KnownColor.Lime);
24473
- }
24474
- return brush;
24475
- }
23094
+ static get Lime() { return this.getBrush(KnownColor.Lime); }
24476
23095
  /**
24477
23096
  * Gets the LimeGreen default brush.
24478
23097
  * @public
24479
23098
  */
24480
- static get LimeGreen() {
24481
- let brush = null;
24482
- if (this.sBrushes.containsKey(KnownColor.LimeGreen)) {
24483
- brush = (this.sBrushes.getValue(KnownColor.LimeGreen));
24484
- }
24485
- if ((brush == null)) {
24486
- brush = this.getBrush(KnownColor.LimeGreen);
24487
- }
24488
- return brush;
24489
- }
23099
+ static get LimeGreen() { return this.getBrush(KnownColor.LimeGreen); }
24490
23100
  /**
24491
23101
  * Gets the Linen default brush.
24492
23102
  * @public
24493
23103
  */
24494
- static get Linen() {
24495
- let brush = null;
24496
- if (this.sBrushes.containsKey(KnownColor.Linen)) {
24497
- brush = (this.sBrushes.getValue(KnownColor.Linen));
24498
- }
24499
- if ((brush == null)) {
24500
- brush = this.getBrush(KnownColor.Linen);
24501
- }
24502
- return brush;
24503
- }
23104
+ static get Linen() { return this.getBrush(KnownColor.Linen); }
24504
23105
  /**
24505
23106
  * Gets the Magenta default brush.
24506
23107
  * @public
24507
23108
  */
24508
- static get Magenta() {
24509
- let brush = null;
24510
- if (this.sBrushes.containsKey(KnownColor.Magenta)) {
24511
- brush = (this.sBrushes.getValue(KnownColor.Magenta));
24512
- }
24513
- if ((brush == null)) {
24514
- brush = this.getBrush(KnownColor.Magenta);
24515
- }
24516
- return brush;
24517
- }
23109
+ static get Magenta() { return this.getBrush(KnownColor.Magenta); }
24518
23110
  /**
24519
23111
  * Gets the Maroon default brush.
24520
23112
  * @public
24521
23113
  */
24522
- static get Maroon() {
24523
- let brush = null;
24524
- if (this.sBrushes.containsKey(KnownColor.Maroon)) {
24525
- brush = (this.sBrushes.getValue(KnownColor.Maroon));
24526
- }
24527
- if ((brush == null)) {
24528
- brush = this.getBrush(KnownColor.Maroon);
24529
- }
24530
- return brush;
24531
- }
23114
+ static get Maroon() { return this.getBrush(KnownColor.Maroon); }
24532
23115
  /**
24533
23116
  * Gets the MediumAquamarine default brush.
24534
23117
  * @public
24535
23118
  */
24536
- static get MediumAquamarine() {
24537
- let brush = null;
24538
- if (this.sBrushes.containsKey(KnownColor.MediumAquamarine)) {
24539
- brush = (this.sBrushes.getValue(KnownColor.MediumAquamarine));
24540
- }
24541
- if ((brush == null)) {
24542
- brush = this.getBrush(KnownColor.MediumAquamarine);
24543
- }
24544
- return brush;
24545
- }
23119
+ static get MediumAquamarine() { return this.getBrush(KnownColor.MediumAquamarine); }
24546
23120
  /**
24547
23121
  * Gets the MediumBlue default brush.
24548
23122
  * @public
24549
23123
  */
24550
- static get MediumBlue() {
24551
- let brush = null;
24552
- if (this.sBrushes.containsKey(KnownColor.MediumBlue)) {
24553
- brush = (this.sBrushes.getValue(KnownColor.MediumBlue));
24554
- }
24555
- if ((brush == null)) {
24556
- brush = this.getBrush(KnownColor.MediumBlue);
24557
- }
24558
- return brush;
24559
- }
23124
+ static get MediumBlue() { return this.getBrush(KnownColor.MediumBlue); }
24560
23125
  /**
24561
23126
  * Gets the MediumOrchid default brush.
24562
23127
  * @public
24563
23128
  */
24564
- static get MediumOrchid() {
24565
- let brush = null;
24566
- if (this.sBrushes.containsKey(KnownColor.MediumOrchid)) {
24567
- brush = (this.sBrushes.getValue(KnownColor.MediumOrchid));
24568
- }
24569
- if ((brush == null)) {
24570
- brush = this.getBrush(KnownColor.MediumOrchid);
24571
- }
24572
- return brush;
24573
- }
23129
+ static get MediumOrchid() { return this.getBrush(KnownColor.MediumOrchid); }
24574
23130
  /**
24575
23131
  * Gets the MediumPurple default brush.
24576
23132
  * @public
24577
23133
  */
24578
- static get MediumPurple() {
24579
- let brush = null;
24580
- if (this.sBrushes.containsKey(KnownColor.MediumPurple)) {
24581
- brush = (this.sBrushes.getValue(KnownColor.MediumPurple));
24582
- }
24583
- if ((brush == null)) {
24584
- brush = this.getBrush(KnownColor.MediumPurple);
24585
- }
24586
- return brush;
24587
- }
23134
+ static get MediumPurple() { return this.getBrush(KnownColor.MediumPurple); }
24588
23135
  /**
24589
23136
  * Gets the MediumSeaGreen default brush.
24590
23137
  * @public
24591
23138
  */
24592
- static get MediumSeaGreen() {
24593
- let brush = null;
24594
- if (this.sBrushes.containsKey(KnownColor.MediumSeaGreen)) {
24595
- brush = (this.sBrushes.getValue(KnownColor.MediumSeaGreen));
24596
- }
24597
- if ((brush == null)) {
24598
- brush = this.getBrush(KnownColor.MediumSeaGreen);
24599
- }
24600
- return brush;
24601
- }
23139
+ static get MediumSeaGreen() { return this.getBrush(KnownColor.MediumSeaGreen); }
24602
23140
  /**
24603
23141
  * Gets the MediumSlateBlue default brush.
24604
23142
  * @public
24605
23143
  */
24606
- static get MediumSlateBlue() {
24607
- let brush = null;
24608
- if (this.sBrushes.containsKey(KnownColor.MediumSlateBlue)) {
24609
- brush = (this.sBrushes.getValue(KnownColor.MediumSlateBlue));
24610
- }
24611
- if ((brush == null)) {
24612
- brush = this.getBrush(KnownColor.MediumSlateBlue);
24613
- }
24614
- return brush;
24615
- }
23144
+ static get MediumSlateBlue() { return this.getBrush(KnownColor.MediumSlateBlue); }
24616
23145
  /**
24617
23146
  * Gets the MediumSpringGreen default brush.
24618
23147
  * @public
24619
23148
  */
24620
- static get MediumSpringGreen() {
24621
- let brush = null;
24622
- if (this.sBrushes.containsKey(KnownColor.MediumSpringGreen)) {
24623
- brush = (this.sBrushes.getValue(KnownColor.MediumSpringGreen));
24624
- }
24625
- if ((brush == null)) {
24626
- brush = this.getBrush(KnownColor.MediumSpringGreen);
24627
- }
24628
- return brush;
24629
- }
23149
+ static get MediumSpringGreen() { return this.getBrush(KnownColor.MediumSpringGreen); }
24630
23150
  /**
24631
23151
  * Gets the MediumTurquoise default brush.
24632
23152
  * @public
24633
23153
  */
24634
- static get MediumTurquoise() {
24635
- let brush = null;
24636
- if (this.sBrushes.containsKey(KnownColor.MediumTurquoise)) {
24637
- brush = (this.sBrushes.getValue(KnownColor.MediumTurquoise));
24638
- }
24639
- if ((brush == null)) {
24640
- brush = this.getBrush(KnownColor.MediumTurquoise);
24641
- }
24642
- return brush;
24643
- }
23154
+ static get MediumTurquoise() { return this.getBrush(KnownColor.MediumTurquoise); }
24644
23155
  /**
24645
23156
  * Gets the MediumVioletRed default brush.
24646
23157
  * @public
24647
23158
  */
24648
- static get MediumVioletRed() {
24649
- let brush = null;
24650
- if (this.sBrushes.containsKey(KnownColor.MediumVioletRed)) {
24651
- brush = (this.sBrushes.getValue(KnownColor.MediumVioletRed));
24652
- }
24653
- if ((brush == null)) {
24654
- brush = this.getBrush(KnownColor.MediumVioletRed);
24655
- }
24656
- return brush;
24657
- }
23159
+ static get MediumVioletRed() { return this.getBrush(KnownColor.MediumVioletRed); }
24658
23160
  /**
24659
23161
  * Gets the MidnightBlue default brush.
24660
23162
  * @public
24661
23163
  */
24662
- static get MidnightBlue() {
24663
- let brush = null;
24664
- if (this.sBrushes.containsKey(KnownColor.MidnightBlue)) {
24665
- brush = (this.sBrushes.getValue(KnownColor.MidnightBlue));
24666
- }
24667
- if ((brush == null)) {
24668
- brush = this.getBrush(KnownColor.MidnightBlue);
24669
- }
24670
- return brush;
24671
- }
23164
+ static get MidnightBlue() { return this.getBrush(KnownColor.MidnightBlue); }
24672
23165
  /**
24673
23166
  * Gets the MintCream default brush.
24674
23167
  * @public
24675
23168
  */
24676
- static get MintCream() {
24677
- let brush = null;
24678
- if (this.sBrushes.containsKey(KnownColor.MintCream)) {
24679
- brush = (this.sBrushes.getValue(KnownColor.MintCream));
24680
- }
24681
- if ((brush == null)) {
24682
- brush = this.getBrush(KnownColor.MintCream);
24683
- }
24684
- return brush;
24685
- }
23169
+ static get MintCream() { return this.getBrush(KnownColor.MintCream); }
24686
23170
  /**
24687
23171
  * Gets the MistyRose default brush.
24688
23172
  * @public
24689
23173
  */
24690
- static get MistyRose() {
24691
- let brush = null;
24692
- if (this.sBrushes.containsKey(KnownColor.MistyRose)) {
24693
- brush = (this.sBrushes.getValue(KnownColor.MistyRose));
24694
- }
24695
- if ((brush == null)) {
24696
- brush = this.getBrush(KnownColor.MistyRose);
24697
- }
24698
- return brush;
24699
- }
23174
+ static get MistyRose() { return this.getBrush(KnownColor.MistyRose); }
24700
23175
  /**
24701
23176
  * Gets the Moccasin default brush.
24702
23177
  * @public
24703
23178
  */
24704
- static get Moccasin() {
24705
- let brush = null;
24706
- if (this.sBrushes.containsKey(KnownColor.Moccasin)) {
24707
- brush = (this.sBrushes.getValue(KnownColor.Moccasin));
24708
- }
24709
- if ((brush == null)) {
24710
- brush = this.getBrush(KnownColor.Moccasin);
24711
- }
24712
- return brush;
24713
- }
23179
+ static get Moccasin() { return this.getBrush(KnownColor.Moccasin); }
24714
23180
  /**
24715
23181
  * Gets the NavajoWhite default brush.
24716
23182
  * @public
24717
23183
  */
24718
- static get NavajoWhite() {
24719
- let brush = null;
24720
- if (this.sBrushes.containsKey(KnownColor.NavajoWhite)) {
24721
- brush = (this.sBrushes.getValue(KnownColor.NavajoWhite));
24722
- }
24723
- if ((brush == null)) {
24724
- brush = this.getBrush(KnownColor.NavajoWhite);
24725
- }
24726
- return brush;
24727
- }
23184
+ static get NavajoWhite() { return this.getBrush(KnownColor.NavajoWhite); }
24728
23185
  /**
24729
23186
  * Gets the Navy default brush.
24730
23187
  * @public
24731
23188
  */
24732
- static get Navy() {
24733
- let brush = null;
24734
- if (this.sBrushes.containsKey(KnownColor.Navy)) {
24735
- brush = (this.sBrushes.getValue(KnownColor.Navy));
24736
- }
24737
- if ((brush == null)) {
24738
- brush = this.getBrush(KnownColor.Navy);
24739
- }
24740
- return brush;
24741
- }
23189
+ static get Navy() { return this.getBrush(KnownColor.Navy); }
24742
23190
  /**
24743
23191
  * Gets the OldLace default brush.
24744
23192
  * @public
24745
23193
  */
24746
- static get OldLace() {
24747
- let brush = null;
24748
- if (this.sBrushes.containsKey(KnownColor.OldLace)) {
24749
- brush = (this.sBrushes.getValue(KnownColor.OldLace));
24750
- }
24751
- if ((brush == null)) {
24752
- brush = this.getBrush(KnownColor.OldLace);
24753
- }
24754
- return brush;
24755
- }
23194
+ static get OldLace() { return this.getBrush(KnownColor.OldLace); }
24756
23195
  /**
24757
23196
  * Gets the Olive default brush.
24758
23197
  * @public
24759
23198
  */
24760
- static get Olive() {
24761
- let brush = null;
24762
- if (this.sBrushes.containsKey(KnownColor.Olive)) {
24763
- brush = (this.sBrushes.getValue(KnownColor.Olive));
24764
- }
24765
- if ((brush == null)) {
24766
- brush = this.getBrush(KnownColor.Olive);
24767
- }
24768
- return brush;
24769
- }
23199
+ static get Olive() { return this.getBrush(KnownColor.Olive); }
24770
23200
  /**
24771
23201
  * Gets the OliveDrab default brush.
24772
23202
  * @public
24773
23203
  */
24774
- static get OliveDrab() {
24775
- let brush = null;
24776
- if (this.sBrushes.containsKey(KnownColor.OliveDrab)) {
24777
- brush = (this.sBrushes.getValue(KnownColor.OliveDrab));
24778
- }
24779
- if ((brush == null)) {
24780
- brush = this.getBrush(KnownColor.OliveDrab);
24781
- }
24782
- return brush;
24783
- }
23204
+ static get OliveDrab() { return this.getBrush(KnownColor.OliveDrab); }
24784
23205
  /**
24785
23206
  * Gets the Orange default brush.
24786
23207
  * @public
24787
23208
  */
24788
- static get Orange() {
24789
- let brush = null;
24790
- if (this.sBrushes.containsKey(KnownColor.Orange)) {
24791
- brush = (this.sBrushes.getValue(KnownColor.Orange));
24792
- }
24793
- if ((brush == null)) {
24794
- brush = this.getBrush(KnownColor.Orange);
24795
- }
24796
- return brush;
24797
- }
23209
+ static get Orange() { return this.getBrush(KnownColor.Orange); }
24798
23210
  /**
24799
23211
  * Gets the OrangeRed default brush.
24800
23212
  * @public
24801
- */
24802
- static get OrangeRed() {
24803
- let brush = null;
24804
- if (this.sBrushes.containsKey(KnownColor.OrangeRed)) {
24805
- brush = (this.sBrushes.getValue(KnownColor.OrangeRed));
24806
- }
24807
- if ((brush == null)) {
24808
- brush = this.getBrush(KnownColor.OrangeRed);
24809
- }
24810
- return brush;
24811
- }
23213
+ */
23214
+ static get OrangeRed() { return this.getBrush(KnownColor.OrangeRed); }
24812
23215
  /**
24813
23216
  * Gets the Orchid default brush.
24814
23217
  * @public
24815
23218
  */
24816
- static get Orchid() {
24817
- let brush = null;
24818
- if (this.sBrushes.containsKey(KnownColor.Orchid)) {
24819
- brush = (this.sBrushes.getValue(KnownColor.Orchid));
24820
- }
24821
- if ((brush == null)) {
24822
- brush = this.getBrush(KnownColor.Orchid);
24823
- }
24824
- return brush;
24825
- }
23219
+ static get Orchid() { return this.getBrush(KnownColor.Orchid); }
24826
23220
  /**
24827
23221
  * Gets the PaleGoldenrod default brush.
24828
23222
  * @public
24829
23223
  */
24830
- static get PaleGoldenrod() {
24831
- let brush = null;
24832
- if (this.sBrushes.containsKey(KnownColor.PaleGoldenrod)) {
24833
- brush = (this.sBrushes.getValue(KnownColor.PaleGoldenrod));
24834
- }
24835
- if ((brush == null)) {
24836
- brush = this.getBrush(KnownColor.PaleGoldenrod);
24837
- }
24838
- return brush;
24839
- }
23224
+ static get PaleGoldenrod() { return this.getBrush(KnownColor.PaleGoldenrod); }
24840
23225
  /**
24841
23226
  * Gets the PaleGreen default brush.
24842
23227
  * @public
24843
23228
  */
24844
- static get PaleGreen() {
24845
- let brush = null;
24846
- if (this.sBrushes.containsKey(KnownColor.PaleGreen)) {
24847
- brush = (this.sBrushes.getValue(KnownColor.PaleGreen));
24848
- }
24849
- if ((brush == null)) {
24850
- brush = this.getBrush(KnownColor.PaleGreen);
24851
- }
24852
- return brush;
24853
- }
23229
+ static get PaleGreen() { return this.getBrush(KnownColor.PaleGreen); }
24854
23230
  /**
24855
23231
  * Gets the PaleTurquoise default brush.
24856
23232
  * @public
24857
23233
  */
24858
- static get PaleTurquoise() {
24859
- let brush = null;
24860
- if (this.sBrushes.containsKey(KnownColor.PaleTurquoise)) {
24861
- brush = (this.sBrushes.getValue(KnownColor.PaleTurquoise));
24862
- }
24863
- if ((brush == null)) {
24864
- brush = this.getBrush(KnownColor.PaleTurquoise);
24865
- }
24866
- return brush;
24867
- }
23234
+ static get PaleTurquoise() { return this.getBrush(KnownColor.PaleTurquoise); }
24868
23235
  /**
24869
23236
  * Gets the PaleVioletRed default brush.
24870
23237
  * @public
24871
23238
  */
24872
- static get PaleVioletRed() {
24873
- let brush = null;
24874
- if (this.sBrushes.containsKey(KnownColor.PaleVioletRed)) {
24875
- brush = (this.sBrushes.getValue(KnownColor.PaleVioletRed));
24876
- }
24877
- if ((brush == null)) {
24878
- brush = this.getBrush(KnownColor.PaleVioletRed);
24879
- }
24880
- return brush;
24881
- }
23239
+ static get PaleVioletRed() { return this.getBrush(KnownColor.PaleVioletRed); }
24882
23240
  /**
24883
23241
  * Gets the PapayaWhip default brush.
24884
23242
  * @public
24885
23243
  */
24886
- static get PapayaWhip() {
24887
- let brush = null;
24888
- if (this.sBrushes.containsKey(KnownColor.PapayaWhip)) {
24889
- brush = (this.sBrushes.getValue(KnownColor.PapayaWhip));
24890
- }
24891
- if ((brush == null)) {
24892
- brush = this.getBrush(KnownColor.PapayaWhip);
24893
- }
24894
- return brush;
24895
- }
23244
+ static get PapayaWhip() { return this.getBrush(KnownColor.PapayaWhip); }
24896
23245
  /**
24897
23246
  * Gets the PeachPuff default brush.
24898
23247
  * @public
24899
23248
  */
24900
- static get PeachPuff() {
24901
- let brush = null;
24902
- if (this.sBrushes.containsKey(KnownColor.PeachPuff)) {
24903
- brush = (this.sBrushes.getValue(KnownColor.PeachPuff));
24904
- }
24905
- if ((brush == null)) {
24906
- brush = this.getBrush(KnownColor.PeachPuff);
24907
- }
24908
- return brush;
24909
- }
23249
+ static get PeachPuff() { return this.getBrush(KnownColor.PeachPuff); }
24910
23250
  /**
24911
23251
  * Gets the Peru default brush.
24912
23252
  * @public
24913
23253
  */
24914
- static get Peru() {
24915
- let brush = null;
24916
- if (this.sBrushes.containsKey(KnownColor.Peru)) {
24917
- brush = (this.sBrushes.getValue(KnownColor.Peru));
24918
- }
24919
- if ((brush == null)) {
24920
- brush = this.getBrush(KnownColor.Peru);
24921
- }
24922
- return brush;
24923
- }
23254
+ static get Peru() { return this.getBrush(KnownColor.Peru); }
24924
23255
  /**
24925
23256
  * Gets the Pink default brush.
24926
23257
  * @public
24927
23258
  */
24928
- static get Pink() {
24929
- let brush = null;
24930
- if (this.sBrushes.containsKey(KnownColor.Pink)) {
24931
- brush = (this.sBrushes.getValue(KnownColor.Pink));
24932
- }
24933
- if ((brush == null)) {
24934
- brush = this.getBrush(KnownColor.Pink);
24935
- }
24936
- return brush;
24937
- }
23259
+ static get Pink() { return this.getBrush(KnownColor.Pink); }
24938
23260
  /**
24939
23261
  * Gets the Plum default brush.
24940
23262
  * @public
24941
23263
  */
24942
- static get Plum() {
24943
- let brush = null;
24944
- if (this.sBrushes.containsKey(KnownColor.Plum)) {
24945
- brush = (this.sBrushes.getValue(KnownColor.Plum));
24946
- }
24947
- if ((brush == null)) {
24948
- brush = this.getBrush(KnownColor.Plum);
24949
- }
24950
- return brush;
24951
- }
23264
+ static get Plum() { return this.getBrush(KnownColor.Plum); }
24952
23265
  /**
24953
23266
  * Gets the PowderBlue default brush.
24954
23267
  * @public
24955
23268
  */
24956
- static get PowderBlue() {
24957
- let brush = null;
24958
- if (this.sBrushes.containsKey(KnownColor.PowderBlue)) {
24959
- brush = (this.sBrushes.getValue(KnownColor.PowderBlue));
24960
- }
24961
- if ((brush == null)) {
24962
- brush = this.getBrush(KnownColor.PowderBlue);
24963
- }
24964
- return brush;
24965
- }
23269
+ static get PowderBlue() { return this.getBrush(KnownColor.PowderBlue); }
24966
23270
  /**
24967
23271
  * Gets the Purple default brush.
24968
23272
  * @public
24969
23273
  */
24970
- static get Purple() {
24971
- let brush = null;
24972
- if (this.sBrushes.containsKey(KnownColor.Purple)) {
24973
- brush = (this.sBrushes.getValue(KnownColor.Purple));
24974
- }
24975
- if ((brush == null)) {
24976
- brush = this.getBrush(KnownColor.Purple);
24977
- }
24978
- return brush;
24979
- }
23274
+ static get Purple() { return this.getBrush(KnownColor.Purple); }
24980
23275
  /**
24981
23276
  * Gets the Red default brush.
24982
23277
  * @public
24983
23278
  */
24984
- static get Red() {
24985
- let brush = null;
24986
- if (this.sBrushes.containsKey(KnownColor.Red)) {
24987
- brush = (this.sBrushes.getValue(KnownColor.Red));
24988
- }
24989
- if ((brush == null)) {
24990
- brush = this.getBrush(KnownColor.Red);
24991
- }
24992
- return brush;
24993
- }
23279
+ static get Red() { return this.getBrush(KnownColor.Red); }
24994
23280
  /**
24995
23281
  * Gets the RosyBrown default brush.
24996
23282
  * @public
24997
23283
  */
24998
- static get RosyBrown() {
24999
- let brush = null;
25000
- if (this.sBrushes.containsKey(KnownColor.RosyBrown)) {
25001
- brush = (this.sBrushes.getValue(KnownColor.RosyBrown));
25002
- }
25003
- if ((brush == null)) {
25004
- brush = this.getBrush(KnownColor.RosyBrown);
25005
- }
25006
- return brush;
25007
- }
23284
+ static get RosyBrown() { return this.getBrush(KnownColor.RosyBrown); }
25008
23285
  /**
25009
23286
  * Gets the RoyalBlue default brush.
25010
23287
  * @public
25011
23288
  */
25012
- static get RoyalBlue() {
25013
- let brush = null;
25014
- if (this.sBrushes.containsKey(KnownColor.RoyalBlue)) {
25015
- brush = (this.sBrushes.getValue(KnownColor.RoyalBlue));
25016
- }
25017
- if ((brush == null)) {
25018
- brush = this.getBrush(KnownColor.RoyalBlue);
25019
- }
25020
- return brush;
25021
- }
23289
+ static get RoyalBlue() { return this.getBrush(KnownColor.RoyalBlue); }
25022
23290
  /**
25023
23291
  * Gets the SaddleBrown default brush.
25024
23292
  * @public
25025
23293
  */
25026
- static get SaddleBrown() {
25027
- let brush = null;
25028
- if (this.sBrushes.containsKey(KnownColor.SaddleBrown)) {
25029
- brush = (this.sBrushes.getValue(KnownColor.SaddleBrown));
25030
- }
25031
- if ((brush == null)) {
25032
- brush = this.getBrush(KnownColor.SaddleBrown);
25033
- }
25034
- return brush;
25035
- }
23294
+ static get SaddleBrown() { return this.getBrush(KnownColor.SaddleBrown); }
25036
23295
  /**
25037
23296
  * Gets the Salmon default brush.
25038
23297
  * @public
25039
23298
  */
25040
- static get Salmon() {
25041
- let brush = null;
25042
- if (this.sBrushes.containsKey(KnownColor.Salmon)) {
25043
- brush = (this.sBrushes.getValue(KnownColor.Salmon));
25044
- }
25045
- if ((brush == null)) {
25046
- brush = this.getBrush(KnownColor.Salmon);
25047
- }
25048
- return brush;
25049
- }
23299
+ static get Salmon() { return this.getBrush(KnownColor.Salmon); }
25050
23300
  /**
25051
23301
  * Gets the SandyBrown default brush.
25052
23302
  * @public
25053
23303
  */
25054
- static get SandyBrown() {
25055
- let brush = null;
25056
- if (this.sBrushes.containsKey(KnownColor.SandyBrown)) {
25057
- brush = (this.sBrushes.getValue(KnownColor.SandyBrown));
25058
- }
25059
- if ((brush == null)) {
25060
- brush = this.getBrush(KnownColor.SandyBrown);
25061
- }
25062
- return brush;
25063
- }
23304
+ static get SandyBrown() { return this.getBrush(KnownColor.SandyBrown); }
25064
23305
  /**
25065
23306
  * Gets the SeaGreen default brush.
25066
23307
  * @public
25067
23308
  */
25068
- static get SeaGreen() {
25069
- let brush = null;
25070
- if (this.sBrushes.containsKey(KnownColor.SeaGreen)) {
25071
- brush = (this.sBrushes.getValue(KnownColor.SeaGreen));
25072
- }
25073
- if ((brush == null)) {
25074
- brush = this.getBrush(KnownColor.SeaGreen);
25075
- }
25076
- return brush;
25077
- }
23309
+ static get SeaGreen() { return this.getBrush(KnownColor.SeaGreen); }
25078
23310
  /**
25079
23311
  * Gets the SeaShell default brush.
25080
23312
  * @public
25081
23313
  */
25082
- static get SeaShell() {
25083
- let brush = null;
25084
- if (this.sBrushes.containsKey(KnownColor.SeaShell)) {
25085
- brush = (this.sBrushes.getValue(KnownColor.SeaShell));
25086
- }
25087
- if ((brush == null)) {
25088
- brush = this.getBrush(KnownColor.SeaShell);
25089
- }
25090
- return brush;
25091
- }
23314
+ static get SeaShell() { return this.getBrush(KnownColor.SeaShell); }
25092
23315
  /**
25093
23316
  * Gets the Sienna default brush.
25094
23317
  * @public
25095
23318
  */
25096
- static get Sienna() {
25097
- let brush = null;
25098
- if (this.sBrushes.containsKey(KnownColor.Sienna)) {
25099
- brush = (this.sBrushes.getValue(KnownColor.Sienna));
25100
- }
25101
- if ((brush == null)) {
25102
- brush = this.getBrush(KnownColor.Sienna);
25103
- }
25104
- return brush;
25105
- }
23319
+ static get Sienna() { return this.getBrush(KnownColor.Sienna); }
25106
23320
  /**
25107
23321
  * Gets the Silver default brush.
25108
23322
  * @public
25109
23323
  */
25110
- static get Silver() {
25111
- let brush = null;
25112
- if (this.sBrushes.containsKey(KnownColor.Silver)) {
25113
- brush = (this.sBrushes.getValue(KnownColor.Silver));
25114
- }
25115
- if ((brush == null)) {
25116
- brush = this.getBrush(KnownColor.Silver);
25117
- }
25118
- return brush;
25119
- }
23324
+ static get Silver() { return this.getBrush(KnownColor.Silver); }
25120
23325
  /**
25121
23326
  * Gets the SkyBlue default brush.
25122
23327
  * @public
25123
23328
  */
25124
- static get SkyBlue() {
25125
- let brush = null;
25126
- if (this.sBrushes.containsKey(KnownColor.SkyBlue)) {
25127
- brush = (this.sBrushes.getValue(KnownColor.SkyBlue));
25128
- }
25129
- if ((brush == null)) {
25130
- brush = this.getBrush(KnownColor.SkyBlue);
25131
- }
25132
- return brush;
25133
- }
23329
+ static get SkyBlue() { return this.getBrush(KnownColor.SkyBlue); }
25134
23330
  /**
25135
23331
  * Gets the SlateBlue default brush.
25136
23332
  * @public
25137
23333
  */
25138
- static get SlateBlue() {
25139
- let brush = null;
25140
- if (this.sBrushes.containsKey(KnownColor.SlateBlue)) {
25141
- brush = (this.sBrushes.getValue(KnownColor.SlateBlue));
25142
- }
25143
- if ((brush == null)) {
25144
- brush = this.getBrush(KnownColor.SlateBlue);
25145
- }
25146
- return brush;
25147
- }
23334
+ static get SlateBlue() { return this.getBrush(KnownColor.SlateBlue); }
25148
23335
  /**
25149
23336
  * Gets the SlateGray default brush.
25150
23337
  * @public
25151
23338
  */
25152
- static get SlateGray() {
25153
- let brush = null;
25154
- if (this.sBrushes.containsKey(KnownColor.SlateGray)) {
25155
- brush = (this.sBrushes.getValue(KnownColor.SlateGray));
25156
- }
25157
- if ((brush == null)) {
25158
- brush = this.getBrush(KnownColor.SlateGray);
25159
- }
25160
- return brush;
25161
- }
23339
+ static get SlateGray() { return this.getBrush(KnownColor.SlateGray); }
25162
23340
  /**
25163
23341
  * Gets the Snow default brush.
25164
23342
  * @public
25165
23343
  */
25166
- static get Snow() {
25167
- let brush = null;
25168
- if (this.sBrushes.containsKey(KnownColor.Snow)) {
25169
- brush = (this.sBrushes.getValue(KnownColor.Snow));
25170
- }
25171
- if ((brush == null)) {
25172
- brush = this.getBrush(KnownColor.Snow);
25173
- }
25174
- return brush;
25175
- }
23344
+ static get Snow() { return this.getBrush(KnownColor.Snow); }
25176
23345
  /**
25177
23346
  * Gets the SpringGreen default brush.
25178
23347
  * @public
25179
23348
  */
25180
- static get SpringGreen() {
25181
- let brush = null;
25182
- if (this.sBrushes.containsKey(KnownColor.SpringGreen)) {
25183
- brush = (this.sBrushes.getValue(KnownColor.SpringGreen));
25184
- }
25185
- if ((brush == null)) {
25186
- brush = this.getBrush(KnownColor.SpringGreen);
25187
- }
25188
- return brush;
25189
- }
23349
+ static get SpringGreen() { return this.getBrush(KnownColor.SpringGreen); }
25190
23350
  /**
25191
23351
  * Gets the SteelBlue default brush.
25192
23352
  * @public
25193
23353
  */
25194
- static get SteelBlue() {
25195
- let brush = null;
25196
- if (this.sBrushes.containsKey(KnownColor.SteelBlue)) {
25197
- brush = (this.sBrushes.getValue(KnownColor.SteelBlue));
25198
- }
25199
- if ((brush == null)) {
25200
- brush = this.getBrush(KnownColor.SteelBlue);
25201
- }
25202
- return brush;
25203
- }
23354
+ static get SteelBlue() { return this.getBrush(KnownColor.SteelBlue); }
25204
23355
  /**
25205
23356
  * Gets the Tan default brush.
25206
23357
  * @public
25207
23358
  */
25208
- static get Tan() {
25209
- let brush = null;
25210
- if (this.sBrushes.containsKey(KnownColor.Tan)) {
25211
- brush = (this.sBrushes.getValue(KnownColor.Tan));
25212
- }
25213
- if ((brush == null)) {
25214
- brush = this.getBrush(KnownColor.Tan);
25215
- }
25216
- return brush;
25217
- }
23359
+ static get Tan() { return this.getBrush(KnownColor.Tan); }
25218
23360
  /**
25219
23361
  * Gets the Teal default brush.
25220
23362
  * @public
25221
23363
  */
25222
- static get Teal() {
25223
- let brush = null;
25224
- if (this.sBrushes.containsKey(KnownColor.Teal)) {
25225
- brush = (this.sBrushes.getValue(KnownColor.Teal));
25226
- }
25227
- if ((brush == null)) {
25228
- brush = this.getBrush(KnownColor.Teal);
25229
- }
25230
- return brush;
25231
- }
23364
+ static get Teal() { return this.getBrush(KnownColor.Teal); }
25232
23365
  /**
25233
23366
  * Gets the Thistle default brush.
25234
23367
  * @public
25235
23368
  */
25236
- static get Thistle() {
25237
- let brush = null;
25238
- if (this.sBrushes.containsKey(KnownColor.Thistle)) {
25239
- brush = (this.sBrushes.getValue(KnownColor.Thistle));
25240
- }
25241
- if ((brush == null)) {
25242
- brush = this.getBrush(KnownColor.Thistle);
25243
- }
25244
- return brush;
25245
- }
23369
+ static get Thistle() { return this.getBrush(KnownColor.Thistle); }
25246
23370
  /**
25247
23371
  * Gets the Tomato default brush.
25248
23372
  * @public
25249
23373
  */
25250
- static get Tomato() {
25251
- let brush = null;
25252
- if (this.sBrushes.containsKey(KnownColor.Tomato)) {
25253
- brush = (this.sBrushes.getValue(KnownColor.Tomato));
25254
- }
25255
- if ((brush == null)) {
25256
- brush = this.getBrush(KnownColor.Tomato);
25257
- }
25258
- return brush;
25259
- }
23374
+ static get Tomato() { return this.getBrush(KnownColor.Tomato); }
25260
23375
  /**
25261
23376
  * Gets the Transparent default brush.
25262
23377
  * @public
25263
23378
  */
25264
- static get Transparent() {
25265
- let brush = null;
25266
- if (this.sBrushes.containsKey(KnownColor.Transparent)) {
25267
- brush = (this.sBrushes.getValue(KnownColor.Transparent));
25268
- }
25269
- if ((brush == null)) {
25270
- brush = this.getBrush(KnownColor.Transparent);
25271
- }
25272
- return brush;
25273
- }
23379
+ static get Transparent() { return this.getBrush(KnownColor.Transparent); }
25274
23380
  /**
25275
23381
  * Gets the Turquoise default brush.
25276
23382
  * @public
25277
23383
  */
25278
- static get Turquoise() {
25279
- let brush = null;
25280
- if (this.sBrushes.containsKey(KnownColor.Turquoise)) {
25281
- brush = (this.sBrushes.getValue(KnownColor.Turquoise));
25282
- }
25283
- if ((brush == null)) {
25284
- brush = this.getBrush(KnownColor.Turquoise);
25285
- }
25286
- return brush;
25287
- }
23384
+ static get Turquoise() { return this.getBrush(KnownColor.Turquoise); }
25288
23385
  /**
25289
23386
  * Gets the Violet default brush.
25290
23387
  * @public
25291
23388
  */
25292
- static get Violet() {
25293
- let brush = null;
25294
- if (this.sBrushes.containsKey(KnownColor.Violet)) {
25295
- brush = (this.sBrushes.getValue(KnownColor.Violet));
25296
- }
25297
- if ((brush == null)) {
25298
- brush = this.getBrush(KnownColor.Violet);
25299
- }
25300
- return brush;
25301
- }
23389
+ static get Violet() { return this.getBrush(KnownColor.Violet); }
25302
23390
  /**
25303
23391
  * Gets the Wheat default brush.
25304
23392
  * @public
25305
23393
  */
25306
- static get Wheat() {
25307
- let brush = null;
25308
- if (this.sBrushes.containsKey(KnownColor.Wheat)) {
25309
- brush = (this.sBrushes.getValue(KnownColor.Wheat));
25310
- }
25311
- if ((brush == null)) {
25312
- brush = this.getBrush(KnownColor.Wheat);
25313
- }
25314
- return brush;
25315
- }
23394
+ static get Wheat() { return this.getBrush(KnownColor.Wheat); }
25316
23395
  /**
25317
23396
  * Gets the White default brush.
25318
23397
  * @public
25319
23398
  */
25320
- static get White() {
25321
- let brush = null;
25322
- if (this.sBrushes.containsKey(KnownColor.White)) {
25323
- brush = (this.sBrushes.getValue(KnownColor.White));
25324
- }
25325
- if ((brush == null)) {
25326
- brush = this.getBrush(KnownColor.White);
25327
- }
25328
- return brush;
25329
- }
23399
+ static get White() { return this.getBrush(KnownColor.White); }
25330
23400
  /**
25331
23401
  * Gets the WhiteSmoke default brush.
25332
23402
  * @public
25333
23403
  */
25334
- static get WhiteSmoke() {
25335
- let brush = null;
25336
- if (this.sBrushes.containsKey(KnownColor.WhiteSmoke)) {
25337
- brush = (this.sBrushes.getValue(KnownColor.WhiteSmoke));
25338
- }
25339
- if ((brush == null)) {
25340
- brush = this.getBrush(KnownColor.WhiteSmoke);
25341
- }
25342
- return brush;
25343
- }
23404
+ static get WhiteSmoke() { return this.getBrush(KnownColor.WhiteSmoke); }
25344
23405
  /**
25345
23406
  * Gets the Yellow default brush.
25346
23407
  * @public
25347
23408
  */
25348
- static get Yellow() {
25349
- let brush = null;
25350
- if (this.sBrushes.containsKey(KnownColor.Yellow)) {
25351
- brush = (this.sBrushes.getValue(KnownColor.Yellow));
25352
- }
25353
- if ((brush == null)) {
25354
- brush = this.getBrush(KnownColor.Yellow);
25355
- }
25356
- return brush;
25357
- }
23409
+ static get Yellow() { return this.getBrush(KnownColor.Yellow); }
25358
23410
  /**
25359
23411
  * Gets the YellowGreen default brush.
25360
23412
  * @public
25361
23413
  */
25362
- static get YellowGreen() {
25363
- let brush = null;
25364
- if (this.sBrushes.containsKey(KnownColor.YellowGreen)) {
25365
- brush = (this.sBrushes.getValue(KnownColor.YellowGreen));
25366
- }
25367
- if ((brush == null)) {
25368
- brush = this.getBrush(KnownColor.YellowGreen);
25369
- }
25370
- return brush;
25371
- }
23414
+ static get YellowGreen() { return this.getBrush(KnownColor.YellowGreen); }
25372
23415
  /**
25373
23416
  * Get the brush.
25374
23417
  */
25375
23418
  static getBrush(colorName) {
25376
- let pdfColor = this.getColorValue(colorName);
25377
- let brush = new PdfSolidBrush(pdfColor);
25378
- this.sBrushes.setValue(colorName, brush);
23419
+ let brush = (this.sBrushes.getValue(colorName));
23420
+ if (brush == null) {
23421
+ let pdfColor = this.getColorValue(colorName);
23422
+ brush = new PdfSolidBrush(pdfColor);
23423
+ this.sBrushes.setValue(colorName, brush);
23424
+ }
25379
23425
  return brush;
25380
23426
  }
25381
23427
  /**
25382
23428
  * Get the color value.
25383
23429
  * @param colorName The KnownColor name.
25384
23430
  */
25385
- /* tslint:disable */
23431
+ /* tslint:disable-next-line: max-line-length */
25386
23432
  static getColorValue(colorName) {
25387
23433
  let color = new PdfColor();
25388
- switch (colorName) {
25389
- case KnownColor.Transparent:
25390
- color = new PdfColor(0, 255, 255, 255);
25391
- break;
25392
- case KnownColor.AliceBlue:
25393
- color = new PdfColor(255, 240, 248, 255);
25394
- break;
25395
- case KnownColor.AntiqueWhite:
25396
- color = new PdfColor(255, 250, 235, 215);
25397
- break;
25398
- case KnownColor.Aqua:
25399
- color = new PdfColor(255, 0, 255, 255);
25400
- break;
25401
- case KnownColor.Aquamarine:
25402
- color = new PdfColor(255, 127, 255, 212);
25403
- break;
25404
- case KnownColor.Azure:
25405
- color = new PdfColor(255, 240, 255, 255);
25406
- break;
25407
- case KnownColor.Beige:
25408
- color = new PdfColor(255, 245, 245, 220);
25409
- break;
25410
- case KnownColor.Bisque:
25411
- color = new PdfColor(255, 255, 228, 196);
25412
- break;
25413
- case KnownColor.Black:
25414
- color = new PdfColor(255, 0, 0, 0);
25415
- break;
25416
- case KnownColor.BlanchedAlmond:
25417
- color = new PdfColor(255, 255, 235, 205);
25418
- break;
25419
- case KnownColor.Blue:
25420
- color = new PdfColor(255, 0, 0, 255);
25421
- break;
25422
- case KnownColor.BlueViolet:
25423
- color = new PdfColor(255, 138, 43, 226);
25424
- break;
25425
- case KnownColor.Brown:
25426
- color = new PdfColor(255, 165, 42, 42);
25427
- break;
25428
- case KnownColor.BurlyWood:
25429
- color = new PdfColor(255, 222, 184, 135);
25430
- break;
25431
- case KnownColor.CadetBlue:
25432
- color = new PdfColor(255, 95, 158, 160);
25433
- break;
25434
- case KnownColor.Chartreuse:
25435
- color = new PdfColor(255, 127, 255, 0);
25436
- break;
25437
- case KnownColor.Chocolate:
25438
- color = new PdfColor(255, 210, 105, 30);
25439
- break;
25440
- case KnownColor.Coral:
25441
- color = new PdfColor(255, 255, 127, 80);
25442
- break;
25443
- case KnownColor.CornflowerBlue:
25444
- color = new PdfColor(255, 100, 149, 237);
25445
- break;
25446
- case KnownColor.Cornsilk:
25447
- color = new PdfColor(255, 255, 248, 220);
25448
- break;
25449
- case KnownColor.Crimson:
25450
- color = new PdfColor(255, 220, 20, 60);
25451
- break;
25452
- case KnownColor.Cyan:
25453
- color = new PdfColor(255, 0, 255, 255);
25454
- break;
25455
- case KnownColor.DarkBlue:
25456
- color = new PdfColor(255, 0, 0, 139);
25457
- break;
25458
- case KnownColor.DarkCyan:
25459
- color = new PdfColor(255, 0, 139, 139);
25460
- break;
25461
- case KnownColor.DarkGoldenrod:
25462
- color = new PdfColor(255, 184, 134, 11);
25463
- break;
25464
- case KnownColor.DarkGray:
25465
- color = new PdfColor(255, 169, 169, 169);
25466
- break;
25467
- case KnownColor.DarkGreen:
25468
- color = new PdfColor(255, 0, 100, 0);
25469
- break;
25470
- case KnownColor.DarkKhaki:
25471
- color = new PdfColor(255, 189, 183, 107);
25472
- break;
25473
- case KnownColor.DarkMagenta:
25474
- color = new PdfColor(255, 139, 0, 139);
25475
- break;
25476
- case KnownColor.DarkOliveGreen:
25477
- color = new PdfColor(255, 85, 107, 47);
25478
- break;
25479
- case KnownColor.DarkOrange:
25480
- color = new PdfColor(255, 255, 140, 0);
25481
- break;
25482
- case KnownColor.DarkOrchid:
25483
- color = new PdfColor(255, 153, 50, 204);
25484
- break;
25485
- case KnownColor.DarkRed:
25486
- color = new PdfColor(255, 139, 0, 0);
25487
- break;
25488
- case KnownColor.DarkSalmon:
25489
- color = new PdfColor(255, 233, 150, 122);
25490
- break;
25491
- case KnownColor.DarkSeaGreen:
25492
- color = new PdfColor(255, 143, 188, 139);
25493
- break;
25494
- case KnownColor.DarkSlateBlue:
25495
- color = new PdfColor(255, 72, 61, 139);
25496
- break;
25497
- case KnownColor.DarkSlateGray:
25498
- color = new PdfColor(255, 47, 79, 79);
25499
- break;
25500
- case KnownColor.DarkTurquoise:
25501
- color = new PdfColor(255, 0, 206, 209);
25502
- break;
25503
- case KnownColor.DarkViolet:
25504
- color = new PdfColor(255, 148, 0, 211);
25505
- break;
25506
- case KnownColor.DeepPink:
25507
- color = new PdfColor(255, 255, 20, 147);
25508
- break;
25509
- case KnownColor.DeepSkyBlue:
25510
- color = new PdfColor(255, 0, 191, 255);
25511
- break;
25512
- case KnownColor.DimGray:
25513
- color = new PdfColor(255, 105, 105, 105);
25514
- break;
25515
- case KnownColor.DodgerBlue:
25516
- color = new PdfColor(255, 30, 144, 255);
25517
- break;
25518
- case KnownColor.Firebrick:
25519
- color = new PdfColor(255, 178, 34, 34);
25520
- break;
25521
- case KnownColor.FloralWhite:
25522
- color = new PdfColor(255, 255, 250, 240);
25523
- break;
25524
- case KnownColor.ForestGreen:
25525
- color = new PdfColor(255, 34, 139, 34);
25526
- break;
25527
- case KnownColor.Fuchsia:
25528
- color = new PdfColor(255, 255, 0, 255);
25529
- break;
25530
- case KnownColor.Gainsboro:
25531
- color = new PdfColor(255, 220, 220, 220);
25532
- break;
25533
- case KnownColor.GhostWhite:
25534
- color = new PdfColor(255, 248, 248, 255);
25535
- break;
25536
- case KnownColor.Gold:
25537
- color = new PdfColor(255, 255, 215, 0);
25538
- break;
25539
- case KnownColor.Goldenrod:
25540
- color = new PdfColor(255, 218, 165, 32);
25541
- break;
25542
- case KnownColor.Gray:
25543
- color = new PdfColor(255, 128, 128, 128);
25544
- break;
25545
- case KnownColor.Green:
25546
- color = new PdfColor(255, 0, 128, 0);
25547
- break;
25548
- case KnownColor.GreenYellow:
25549
- color = new PdfColor(255, 173, 255, 47);
25550
- break;
25551
- case KnownColor.Honeydew:
25552
- color = new PdfColor(255, 240, 255, 240);
25553
- break;
25554
- case KnownColor.HotPink:
25555
- color = new PdfColor(255, 255, 105, 180);
25556
- break;
25557
- case KnownColor.IndianRed:
25558
- color = new PdfColor(255, 205, 92, 92);
25559
- break;
25560
- case KnownColor.Indigo:
25561
- color = new PdfColor(255, 75, 0, 130);
25562
- break;
25563
- case KnownColor.Ivory:
25564
- color = new PdfColor(255, 255, 255, 240);
25565
- break;
25566
- case KnownColor.Khaki:
25567
- color = new PdfColor(255, 240, 230, 140);
25568
- break;
25569
- case KnownColor.Lavender:
25570
- color = new PdfColor(255, 230, 230, 250);
25571
- break;
25572
- case KnownColor.LavenderBlush:
25573
- color = new PdfColor(255, 255, 240, 245);
25574
- break;
25575
- case KnownColor.LawnGreen:
25576
- color = new PdfColor(255, 124, 252, 0);
25577
- break;
25578
- case KnownColor.LemonChiffon:
25579
- color = new PdfColor(255, 255, 250, 205);
25580
- break;
25581
- case KnownColor.LightBlue:
25582
- color = new PdfColor(255, 173, 216, 230);
25583
- break;
25584
- case KnownColor.LightCoral:
25585
- color = new PdfColor(255, 240, 128, 128);
25586
- break;
25587
- case KnownColor.LightCyan:
25588
- color = new PdfColor(255, 224, 255, 255);
25589
- break;
25590
- case KnownColor.LightGoldenrodYellow:
25591
- color = new PdfColor(255, 250, 250, 210);
25592
- break;
25593
- case KnownColor.LightGreen:
25594
- color = new PdfColor(255, 144, 238, 144);
25595
- break;
25596
- case KnownColor.LightGray:
25597
- color = new PdfColor(255, 211, 211, 211);
25598
- break;
25599
- case KnownColor.LightPink:
25600
- color = new PdfColor(255, 255, 182, 193);
25601
- break;
25602
- case KnownColor.LightSalmon:
25603
- color = new PdfColor(255, 255, 160, 122);
25604
- break;
25605
- case KnownColor.LightSeaGreen:
25606
- color = new PdfColor(255, 32, 178, 170);
25607
- break;
25608
- case KnownColor.LightSkyBlue:
25609
- color = new PdfColor(255, 135, 206, 250);
25610
- break;
25611
- case KnownColor.LightSlateGray:
25612
- color = new PdfColor(255, 119, 136, 153);
25613
- break;
25614
- case KnownColor.LightSteelBlue:
25615
- color = new PdfColor(255, 176, 196, 222);
25616
- break;
25617
- case KnownColor.LightYellow:
25618
- color = new PdfColor(255, 255, 255, 224);
25619
- break;
25620
- case KnownColor.Lime:
25621
- color = new PdfColor(255, 0, 255, 0);
25622
- break;
25623
- case KnownColor.LimeGreen:
25624
- color = new PdfColor(255, 50, 205, 50);
25625
- break;
25626
- case KnownColor.Linen:
25627
- color = new PdfColor(255, 250, 240, 230);
25628
- break;
25629
- case KnownColor.Magenta:
25630
- color = new PdfColor(255, 255, 0, 255);
25631
- break;
25632
- case KnownColor.Maroon:
25633
- color = new PdfColor(255, 128, 0, 0);
25634
- break;
25635
- case KnownColor.MediumAquamarine:
25636
- color = new PdfColor(255, 102, 205, 170);
25637
- break;
25638
- case KnownColor.MediumBlue:
25639
- color = new PdfColor(255, 0, 0, 205);
25640
- break;
25641
- case KnownColor.MediumOrchid:
25642
- color = new PdfColor(255, 186, 85, 211);
25643
- break;
25644
- case KnownColor.MediumPurple:
25645
- color = new PdfColor(255, 147, 112, 219);
25646
- break;
25647
- case KnownColor.MediumSeaGreen:
25648
- color = new PdfColor(255, 60, 179, 113);
25649
- break;
25650
- case KnownColor.MediumSlateBlue:
25651
- color = new PdfColor(255, 123, 104, 238);
25652
- break;
25653
- case KnownColor.MediumSpringGreen:
25654
- color = new PdfColor(255, 0, 250, 154);
25655
- break;
25656
- case KnownColor.MediumTurquoise:
25657
- color = new PdfColor(255, 72, 209, 204);
25658
- break;
25659
- case KnownColor.MediumVioletRed:
25660
- color = new PdfColor(255, 199, 21, 133);
25661
- break;
25662
- case KnownColor.MidnightBlue:
25663
- color = new PdfColor(255, 25, 25, 112);
25664
- break;
25665
- case KnownColor.MintCream:
25666
- color = new PdfColor(255, 245, 255, 250);
25667
- break;
25668
- case KnownColor.MistyRose:
25669
- color = new PdfColor(255, 255, 228, 225);
25670
- break;
25671
- case KnownColor.Moccasin:
25672
- color = new PdfColor(255, 255, 228, 181);
25673
- break;
25674
- case KnownColor.NavajoWhite:
25675
- color = new PdfColor(255, 255, 222, 173);
25676
- break;
25677
- case KnownColor.Navy:
25678
- color = new PdfColor(255, 0, 0, 128);
25679
- break;
25680
- case KnownColor.OldLace:
25681
- color = new PdfColor(255, 253, 245, 230);
25682
- break;
25683
- case KnownColor.Olive:
25684
- color = new PdfColor(255, 128, 128, 0);
25685
- break;
25686
- case KnownColor.OliveDrab:
25687
- color = new PdfColor(255, 107, 142, 35);
25688
- break;
25689
- case KnownColor.Orange:
25690
- color = new PdfColor(255, 255, 165, 0);
25691
- break;
25692
- case KnownColor.OrangeRed:
25693
- color = new PdfColor(255, 255, 69, 0);
25694
- break;
25695
- case KnownColor.Orchid:
25696
- color = new PdfColor(255, 218, 112, 214);
25697
- break;
25698
- case KnownColor.PaleGoldenrod:
25699
- color = new PdfColor(255, 238, 232, 170);
25700
- break;
25701
- case KnownColor.PaleGreen:
25702
- color = new PdfColor(255, 152, 251, 152);
25703
- break;
25704
- case KnownColor.PaleTurquoise:
25705
- color = new PdfColor(255, 175, 238, 238);
25706
- break;
25707
- case KnownColor.PaleVioletRed:
25708
- color = new PdfColor(255, 219, 112, 147);
25709
- break;
25710
- case KnownColor.PapayaWhip:
25711
- color = new PdfColor(255, 255, 239, 213);
25712
- break;
25713
- case KnownColor.PeachPuff:
25714
- color = new PdfColor(255, 255, 218, 185);
25715
- break;
25716
- case KnownColor.Peru:
25717
- color = new PdfColor(255, 205, 133, 63);
25718
- break;
25719
- case KnownColor.Pink:
25720
- color = new PdfColor(255, 255, 192, 203);
25721
- break;
25722
- case KnownColor.Plum:
25723
- color = new PdfColor(255, 221, 160, 221);
25724
- break;
25725
- case KnownColor.PowderBlue:
25726
- color = new PdfColor(255, 176, 224, 230);
25727
- break;
25728
- case KnownColor.Purple:
25729
- color = new PdfColor(255, 128, 0, 128);
25730
- break;
25731
- case KnownColor.Red:
25732
- color = new PdfColor(255, 255, 0, 0);
25733
- break;
25734
- case KnownColor.RosyBrown:
25735
- color = new PdfColor(255, 188, 143, 143);
25736
- break;
25737
- case KnownColor.RoyalBlue:
25738
- color = new PdfColor(255, 65, 105, 225);
25739
- break;
25740
- case KnownColor.SaddleBrown:
25741
- color = new PdfColor(255, 139, 69, 19);
25742
- break;
25743
- case KnownColor.Salmon:
25744
- color = new PdfColor(255, 250, 128, 114);
25745
- break;
25746
- case KnownColor.SandyBrown:
25747
- color = new PdfColor(255, 244, 164, 96);
25748
- break;
25749
- case KnownColor.SeaGreen:
25750
- color = new PdfColor(255, 46, 139, 87);
25751
- break;
25752
- case KnownColor.SeaShell:
25753
- color = new PdfColor(255, 255, 245, 238);
25754
- break;
25755
- case KnownColor.Sienna:
25756
- color = new PdfColor(255, 160, 82, 45);
25757
- break;
25758
- case KnownColor.Silver:
25759
- color = new PdfColor(255, 192, 192, 192);
25760
- break;
25761
- case KnownColor.SkyBlue:
25762
- color = new PdfColor(255, 135, 206, 235);
25763
- break;
25764
- case KnownColor.SlateBlue:
25765
- color = new PdfColor(255, 106, 90, 205);
25766
- break;
25767
- case KnownColor.SlateGray:
25768
- color = new PdfColor(255, 112, 128, 144);
25769
- break;
25770
- case KnownColor.Snow:
25771
- color = new PdfColor(255, 255, 250, 250);
25772
- break;
25773
- case KnownColor.SpringGreen:
25774
- color = new PdfColor(255, 0, 255, 127);
25775
- break;
25776
- case KnownColor.SteelBlue:
25777
- color = new PdfColor(255, 70, 130, 180);
25778
- break;
25779
- case KnownColor.Tan:
25780
- color = new PdfColor(255, 210, 180, 140);
25781
- break;
25782
- case KnownColor.Teal:
25783
- color = new PdfColor(255, 0, 128, 128);
25784
- break;
25785
- case KnownColor.Thistle:
25786
- color = new PdfColor(255, 216, 191, 216);
25787
- break;
25788
- case KnownColor.Tomato:
25789
- color = new PdfColor(255, 255, 99, 71);
25790
- break;
25791
- case KnownColor.Turquoise:
25792
- color = new PdfColor(255, 64, 224, 208);
25793
- break;
25794
- case KnownColor.Violet:
25795
- color = new PdfColor(255, 238, 130, 238);
25796
- break;
25797
- case KnownColor.Wheat:
25798
- color = new PdfColor(255, 245, 222, 179);
25799
- break;
25800
- case KnownColor.White:
25801
- color = new PdfColor(255, 255, 255, 255);
25802
- break;
25803
- case KnownColor.WhiteSmoke:
25804
- color = new PdfColor(255, 245, 245, 245);
25805
- break;
25806
- case KnownColor.Yellow:
25807
- color = new PdfColor(255, 255, 255, 0);
25808
- break;
25809
- case KnownColor.YellowGreen:
25810
- color = new PdfColor(255, 154, 205, 50);
25811
- break;
23434
+ if (colorName >= KnownColor.Transparent && colorName <= KnownColor.MenuHighlight) {
23435
+ let index = (colorName - KnownColor.Transparent) * 4;
23436
+ let alpha = this.knownColorData.charCodeAt(index + 3) === 0 ? 0 : 255;
23437
+ color = new PdfColor(alpha, this.knownColorData.charCodeAt(index), this.knownColorData.charCodeAt(index + 1), this.knownColorData.charCodeAt(index + 2));
25812
23438
  }
25813
23439
  return color;
25814
23440
  }
@@ -25818,6 +23444,13 @@ class PdfBrushes {
25818
23444
  * Local variable to store the brushes.
25819
23445
  */
25820
23446
  PdfBrushes.sBrushes = new Dictionary();
23447
+ /**
23448
+ * Packed known color data (in KnownColor enum order, starting at Transparent).
23449
+ * Each color occupies two chars: the first holds the RGB value, the second the alpha flag
23450
+ * (0 - transparent, 1 - opaque).
23451
+ */
23452
+ /* tslint:disable-next-line:max-line-length */
23453
+ 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';
25821
23454
 
25822
23455
  /**
25823
23456
  * PdfBlend.ts class for EJ2-PDF